Detect lines
Try it interactively →POST /api/image-detect-linesDetect straight lines in an image. Returns each line as a pair of endpoints. Useful for finding edges of buildings, roads, table boundaries.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| image* | file | — | Input image bytes. |
| cannyLower | number (0…1000) | 50 | Canny lower hysteresis threshold. |
| cannyUpper | number (0…1000) | 150 | Canny upper hysteresis threshold. |
| threshold | number | 80 | Hough accumulator vote threshold. |
| minLineLength | number | 30 | Minimum line segment length in pixels. |
| maxLineGap | number | 10 | Maximum allowed gap (px) when joining a single line. |
Response
Modes: json. Cache: yes (24h TTL).