Detect faces
detect_facesDetect faces in a video, returning per-timestamp bounding boxes with confidence, plus tracks that link detections across frames and flag the main subject.
Instructions
Find faces in a video, sampled over time.
Returns per-timestamp bounding boxes with confidence, in both source pixels and 0..1 normalised coordinates, plus 'tracks' — detections linked across frames into one entry per person, with the likely main subject flagged.
Sampling at 2 fps is usually enough to follow a talking head; raise sample_fps for fast movement. Needs the 'vision' extra; the small detection model is downloaded and cached on first use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | Video file to analyse. | |
| max_frames | No | Safety cap on sampled frames. | |
| sample_fps | No | Frames sampled per second. Higher is more precise and slower. | |
| analysis_width | No | Frames are downscaled to this width before detection, for speed. | |
| include_frames | No | Return every sampled frame. Turn off for a long clip to get only tracks. | |
| min_confidence | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| job_id | Yes | ||
| status | No | queued | |
| message | No | Job queued. Poll job_status for progress, then job_result. |