Face detection is a computer technology being used in a variety of applications that identifies human faces in digital images.
There are a number of approaches and techniques to achieve face detection. In this post, we will be dealing with one of the easiest and simplest way of detecting face in an image, video or canvas using facedetect plugin.
The faceDetection method returns an array object and coords variables becomes an array. Following is the result of array elements.
x: Y coord of the face y: Y coord of the face width: Width of the face height: Height of the face positionX: X position relative to the document positionY: Y position relative to the document offsetX: X position relative to the offset parent offsetY: Y position relative to the offset parent confidence: Level of confidence
For visual guide, here is video for you.
If you want to learn how to make your own face recognition application using python, here is a nice tutorial series at python36.com.