nghianguyenandClaude Opus 4.8 fda0f6f86f ANSFR: name the real cause when enrollment cannot compute embeddings
Enrolling a face while the recognizer engine is down used to store the
user row and silently drop the embedding: InsertUser is a pure DB write,
Feature() returns empty when uninitialized, and InsertFace's size check
misreported that as "Invalid embedding generated" — blaming the face.
The result surfaces hours later as every match returning Unknown/2.0
with nothing in the log saying why (seen on the A400: 45 users, zero
embeddings).

- ANSFRBase gains a public IsInitialized() accessor (flag existed but
  was protected).
- InsertFace / InsertMultipleFaces gate on it before computing the
  embedding and log the true cause: recognizer not initialized, face
  NOT enrolled, fix engine errors then re-enroll.
- The residual invalid-embedding message now reports actual vs expected
  size and the remaining causes (unusable crop / recognizer reloading).
- Reload() warns when the database has users but zero embeddings — the
  one line that identifies stale half-enrolled databases at startup.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-21 11:36:22 +10:00
2026-06-18 05:55:31 +10:00
2026-04-22 16:52:40 +10:00
2026-05-14 17:48:09 +10:00
2026-06-18 05:55:31 +10:00
2026-06-12 14:13:26 +10:00
2026-03-29 14:10:05 +11:00
2026-06-18 05:55:31 +10:00
2026-03-28 16:54:11 +11:00
2026-05-01 11:16:47 +10:00
2026-03-29 14:10:05 +11:00
2026-03-28 16:54:11 +11:00
2026-03-29 14:10:05 +11:00
2026-03-29 14:10:05 +11:00
2026-03-29 14:10:05 +11:00
2026-06-18 05:55:31 +10:00
2026-03-28 13:13:41 +11:00
S
Description
No description provided
13 MiB
Languages
C 55.3%
C++ 43.4%
Python 0.5%
CMake 0.3%
Objective-C++ 0.2%
Other 0.2%