fix: accept frontal faces when eye detection is inconclusive
This commit is contained in:
@@ -31,9 +31,12 @@ Each XML includes its upstream license notice. They are embedded in the binary;
|
||||
no model downloads or external model paths are needed at runtime.
|
||||
|
||||
Detection runs once per capture, with the longest image edge capped at 640 px,
|
||||
using a frontal-face cascade followed by a roughly level, centered pair of eyes.
|
||||
Faces below 40 px and faces with closed/hidden eyes may be missed. This is a
|
||||
conservative side-view filter, not an exact gaze estimator. OpenCV is limited to
|
||||
using a frontal-face cascade with an optional eye-pair check. When fewer than two
|
||||
eyes are detected, the frontal-face result is accepted: missing eyes are not
|
||||
reliable evidence of a side view. When two or more eyes are detected, a roughly
|
||||
level, centered pair is required. Debug output includes the acceptance reason.
|
||||
Faces below 40 px may be missed, and some turned faces may still pass the frontal
|
||||
cascade. This is a best-effort side-view filter, not an exact gaze estimator. OpenCV is limited to
|
||||
two threads. Validate counts and timings with representative group photos on the
|
||||
kiosk before deployment; no accuracy or latency guarantee is implied.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user