xtract.bot

Image face detect

Try it interactively →
POST /api/image-face-detect

Detect faces in an image. Returns each face's bounding rectangle plus a confidence score. Multiple faces per image are supported.

Detects faces in an image and returns: - A bounding rectangle for each face. - A confidence score (0–1). - 5 facial-landmark coordinates per face (eyes / nose / mouth corners). Multiple faces per image are supported. Pair with `image-annotate-detections` to draw the boxes onto a visualisation.

Inputs

NameTypeDefaultDescription
image*fileImage bytes containing zero or more faces.
scoreThresholdnumber (0…1)0.6Per-face confidence threshold (0..1). Lower = more recall, more false positives.
nmsThresholdnumber (0…1)0.3Non-max-suppression IoU threshold (0..1).
topKnumber (1…20000)5000Max candidate boxes considered before NMS.
multiplebooleanfalseInclude a base64-encoded crop of each detected face in the response. Forces JSON output.
paddingnumber (0…2)0.15Fraction by which to expand each crop's bounding box on every side (only used when multiple=true).
cropFormatenum (jpeg | png)"jpeg"Encoding for the per-face crops (jpeg / png).
cropQualitynumber (1…100)90JPEG quality for the per-face crops (ignored for PNG).

Response

Modes: json. Cache: yes (24h TTL).