Add autoenroll and UUID#131
Merged
Merged
Conversation
…nymizationSys/face_recog_stream/selfie_logic.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces tier-aware identity tracking and a new sample refresh manager to improve the robustness and introspection of the face recognition system. The main changes include adding a
SampleRefreshManagerfor controlled gallery updates, updatingWhoTrackerto track confidence tiers for identities, and enhancing the snapshot diagnostics with tier breakdowns and improved windowed statistics.Tier-aware identity tracking and diagnostics:
who_tracker.py:WhoTrackerclass now tracks not just names but also confidence tiers ("confident", "tentative", "uncertain") for each identified face. This enables more granular downstream behavior (e.g., robot greeting only on "confident" matches) and richer diagnostics.snapshotmethod now includes per-frame and windowed breakdowns by tier (confident_now,tentative_now,confident_frames,tentative_frames), while preserving legacy fields for backward compatibility. [1] [2]Sample refresh management:
sample_refresh.py:SampleRefreshManagerclass that manages when to add new samples to the face gallery. It enforces configurable guards for match confidence, per-UUID rate limiting, and diversity checks, preventing gallery pollution and resource overuse.Module and dependency updates:
__init__.py:"selfie_logic"to the module exports to ensure tier constants are kept in sync across modules.These changes collectively make the face recognition pipeline more robust, introspectable, and ready for tier-aware downstream consumers.