Actions14
Face → Crop Face
AI-generatedSummary
Crop a face region from an input image binary using face detection with configurable parameters.
Inputs
- Image Binary Field (required) — Name of the binary field containing the image to crop the face from.
- Confidence Threshold — Minimum confidence threshold (0-1) for detecting a face to be cropped.
- Width — Width of the resulting cropped face image.
- Height — Height of the resulting cropped face image.
- Respect Aspect Ratio — Whether to maintain the original aspect ratio when cropping the face image.
Output shape
a single item with JSON and binary data
Returns the cropped face image as binary data in PNG format; JSON output includes width, height, and face confidence score. The output binary field is named 'data' with filename 'cropped_face.png'. The output is paired with the input item.
Examples
Example 1: Crop a face from an image
Set Image Binary Field to the binary data field name containing the image. Configure optional confidence threshold, width, height, and aspect ratio to customize the face crop. The node returns the cropped face image as binary data that can be used downstream.