ANSFR: emit numeric AgeYears in face attributes; clearer demo overlays

- FaceAttributeToJsonString now adds "AgeYears":"<n>" beside the existing
  "Age" bucket (Kids/Young Adults/Adults/Elders) - additive key, existing
  consumers parsing "Age" are unaffected.
- Classroom demo overlay: explicit per-line labels (Gender: / Age: /
  Emotion:) and the numeric age in parentheses, e.g. "Age: Adults (28)".

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-26 11:27:25 +10:00
co-authored by Claude Fable 5
parent 775d4d6b16
commit 103c053ebb
2 changed files with 15 additions and 7 deletions
+3
View File
@@ -638,6 +638,9 @@ namespace ANSCENTER {
detectedNode.put("Age", "Adults");
else
detectedNode.put("Age", "Elders");
// Numeric age alongside the bucket — additive key, existing
// consumers keep parsing "Age" unchanged.
detectedNode.put("AgeYears", std::to_string(age));
}
if (face.isEmotionsEnabled()) {