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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user