Detect faces
detect_facesFind faces in an image without storing it, returning face counts, quality-gate results, and per-face bounding boxes and scores so you can check a photo or selfie before indexing.
Instructions
Find the faces in an image without storing anything. Returns detected_face_count, gated_face_count (faces that pass the quality gate) and per face: bounding box (ratios), det_score, min_px and quality_passed. Useful to check a photo or selfie before indexing. Costs 93 credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gcs_key | No | Object key of the image on the CDN configured for your account (instead of a URL). | |
| file_path | No | Path to the image on this computer (JPEG, PNG, WebP, GIF, BMP, TIFF or HEIC). | |
| image_url | No | Public http(s) URL of the image. SightRadar downloads it; it must be reachable from the internet. | |
| image_base64 | No | The image as base64 (a data: URL is fine). Up to 30 MB decoded. Prefer image_url for large files. | |
| idempotency_key | No | Optional. A retry that reuses the key is never charged twice: if the first call finished, the retry gets 409 duplicate_request_already_processed; if it is still running, 409 duplicate_request_in_flight. Use a new key for each different request. |