Files
ANSCORE/modules/ANSFR
nghianguyenandClaude Opus 5 b5a88b9335 ANSFR: bypass CheckFaceEmbedding validation for now
CheckFaceEmbedding returns 1 unconditionally, ahead of the JPEG decode and the
CheckFace() call, so every caller is told the submitted image is acceptable.

Deliberate temporary bypass, not a fix. What stops running behind it:

  - argument guards -- a null Handle or a zero-length buffer used to return -1
    and now returns 1
  - cv::imdecode, so an undecodable JPEG is no longer rejected
  - ANSFacialRecognition::CheckFace, and with it the detector confidence
    threshold, isValidFace's geometry gate (5 landmarks inside the box, roll
    <= 27 deg, yaw asymmetry <= 0.5, pitch 0.15-0.75, mouth/eye ratio 0.6-1.6)
    and the _minFaceSize filter

Enrollment callers that relied on this as a pre-check now accept any input.
Revert this commit to restore the checks.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-22 17:37:20 +10:00
..
2026-03-28 19:56:39 +11:00
2026-04-24 17:10:29 +10:00
2026-03-28 19:56:39 +11:00
2026-03-28 19:56:39 +11:00
2026-03-28 19:56:39 +11:00
2026-03-28 19:56:39 +11:00
2026-03-28 19:56:39 +11:00
2026-04-24 17:10:29 +10:00
2026-03-28 19:56:39 +11:00
2026-03-28 19:56:39 +11:00
2026-03-28 19:56:39 +11:00
2026-03-28 19:56:39 +11:00
2026-03-28 19:56:39 +11:00
2026-03-28 19:56:39 +11:00
2026-03-28 19:56:39 +11:00
2026-03-28 19:56:39 +11:00
2026-03-28 19:56:39 +11:00
2026-03-28 19:56:39 +11:00
2026-03-28 19:56:39 +11:00
2026-03-28 19:56:39 +11:00
2026-03-28 19:56:39 +11:00