Not able to detect 2 faces in an image
Opened this issue · 1 comments
detectFaces()
or locateFaces()
work for an image with a single face in it, but do not work for two faces in an image of the same quality. Here are the two images
The first one comfortably gives me an array of 1 face, but the other one gives me an empty array. The two images however are from the same input device. Not saying in general, that the api doesn't work. Of course it works for a good image with 2+ images which I take from the internet. What all are my options ? I am planning to put it as a part of a proctoring solution.
locateFaces
uses the dlib mmod net for face detection under the hood. I haven't played around much with this, but there is also a FrontalFaceDetector class exposed, that you can use, which is detecting faces based on HOG features.
Alternatively you can also use opencv4nodejs' CascadeClassifier
, for face detection.