A module to detect faces.
This module provides an interface to OpenCV face detection.
To run, please point your browser to: https://accessors.org/hosts/browser/demo/faceDetector/faceDetector.html
This module uses the UC Irvine computer vision library; see https://accessors.org/hosts/browser/modules/cvlicense.txt#in_browser">
Based on code from examples in: http://ucisysarch.github.io/opencvjs/examples/face_detect.html
A list of available filters.
Return the detected faces rectangles
An array of detected faces rectangles. If there are no faces detected, then an empty array is returned.
(static) filter(image, options, callback)
Detect faces in an image and return the image with squares around the faces.
Options: MinFaceSize - The minimum face size. (In pixels?) MaxFaceSize - The maximum face size. (In pixels?)
Any unrecognized options are ignored. Note that previously applied options for a given filter will still be used, even if they are not set in this call.
The image or path to image to detect faces in.
An object whose fields specify filter options.
The callback to invoke when the result image is ready. Needed since there may be a delay if the input image is loaded from a file.
Return number of detected faces
The number of detected faces.