Jump to top

VisionFaceDetectorOptions

interface

Options for vision face detector.

Properties

classificationMode

</>

Indicates whether to run additional classifiers for characterizing attributes such as "smiling" and "eyes open".

classificationMode: NO_CLASSIFICATIONS | ALL_CLASSIFICATIONS;

contourMode

</>

Sets whether to detect no contours or all contours. Processing time increases as the number of contours to search for increases, so detecting all contours will increase the overall detection time. Note that it would return up to 5 faces contours.

contourMode: NO_CONTOURS | ALL_CONTOURS;

landmarkMode

</>

Sets whether to detect no landmarks or all landmarks. Processing time increases as the number of landmarks to search for increases, so detecting all landmarks will increase the overall detection time. Detecting landmarks can improve pose estimation.

landmarkMode: NO_LANDMARKS | ALL_LANDMARKS;

minFaceSize

</>

Sets the smallest desired face size, expressed as a proportion of the width of the head to the image width. For example, if a value of 0.1 is specified then the smallest face to search for is roughly 10% of the width of the image being searched.

minFaceSize: undefined | number;

performanceMode

</>

Extended option for controlling additional accuracy / speed trade-offs in performing face detection. In general, choosing the more accurate mode will generally result in longer runtime, whereas choosing the faster mode will generally result in detecting fewer faces.

performanceMode: FAST | ACCURATE;