Repository navigation
U4: Speaker-colored boxes on live camera - #79
Merged
Merged
Conversation
- Add colorForSpeaker() to GraptionCore for stable speaker color mapping - FaceBox now accepts color parameter instead of hardcoded yellow - CameraView passes speaker color from active caption to face boxes - CaptionBubbleView now colors border and speaker text with speaker color - GraptionUI depends on GraptionCore to access colorForSpeaker() - Each speaker gets consistent color across all faces and captions
- LiveCaptionScreen now uses cameraPreviewDestination for main video area - Captions overlay on top of real camera feed (not placeholder) - Colored speaker boxes now visible alongside captions on main screen - Falls back to placeholder if no camera preview provided
Keep the face IDs, talking label, and camera flip, and color the boxes from the active caption. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Draw colored boxes around detected faces, with colors matching speaker captions in real-time.
Changes
Testing
Note
Currently all faces show same color (active speaker's color) until V3 speaker model is trained and merged. V3 will provide per-face speaker scores for individual coloring.