xtract.bot

Edge detect (Canny)

Try it interactively →
POST /api/image-edges

Run Canny edge detection on an image. Returns a black-on-white edge map. Configurable thresholds. Useful for line-art generation, contour analysis, and design tracing.

Runs Canny edge detection on the input and returns a black-on-white edge map. Useful for: - Generating line-art versions of photographs. - Contour-tracing for downstream geometric analysis. - Quick visualisation of structure in an image. Two thresholds (`low` and `high`) tune sensitivity. Defaults are chosen automatically from the image's gradient distribution, so you usually do not need to set them.

Inputs

NameTypeDefaultDescription
image*fileInput image bytes.
lowerThresholdnumber (0…1000)50Canny lower hysteresis threshold.
upperThresholdnumber (0…1000)150Canny upper hysteresis threshold.
blurKernelnumber (0…31)5Gaussian blur kernel size before Canny (odd; 0 disables).

Response

Modes: binary, json. Cache: yes (24h TTL).