remove-wirelineDetect wire, cable, and line regions and return a mask. The returned mask can be used as input_mask in the Remove Wires API, with optional manual modifications.
/v1/images/detect-wiresCredit cost: 1
Authorization — This endpoint requires an API key. Pass it in the api-key header on every request. See the quickstart
| Name | Type | Status | Description |
|---|---|---|---|
input_image | file | Required | Image file or URL to detect wires in. |
Wire mask generated successfullySimpleDetectionResponse
| Name | Type | Description |
|---|---|---|
detected | boolean | Whether the target was detected |
mask | string | Base64-encoded RGBG mask. Null if nothing is detected. Pass as `input_mask` to the matching remove API. |
curl -X POST "https://api.snapapi.ai/v1/images/detect-wires" \
-H "api-key: YOUR_API_KEY" \
-F "input_image=@./image.jpg"{
"detected": true,
"mask": "base64_encoded_data..."
}