remove-textDetect text regions and return a mask. The returned mask can be used as input_mask in the Remove Text API, with optional manual modifications.
/v1/images/detect-textCredit 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 text in. |
Text 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-text" \
-H "api-key: YOUR_API_KEY" \
-F "input_image=@./image.jpg"{
"detected": true,
"mask": "base64_encoded_data..."
}