Open calloatti opened 1 year ago
Also, maybe add a "size" or "area" property to "box", with the value of the actual size of the face rectangle? Just to avoid having to do (x_max - x_min) * (y_max - y_min) for each face to get the value. I am calculating it now to avoid obvious false detections where the area is too small to be a real face.
Thanks for reporting this. It looks like some models work properly, and some sort results by probability, not the face size. We will change it in the next release.
Describe the bug
When submitting an image with 2 faces, when using "limit=1" the smallest of the 2 faces in the image is returned instead of the biggest face.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When using "limit=1" on an image with 2 faces, the bigger face should be returned, not the smallest one, as described in the docs: "maximum number of faces on the image to be recognized. It recognizes the biggest faces first. Value of 0 represents no limit. Default value: 0"
Screenshots
Desktop (please complete the following information):
Additional context
Using Docker on Windows 10 subcenter-arcface-r100 custom build v 1.1.0