Repository navigation
feat(camera): background blur / color / remove - #89
Merged
Merged
Conversation
… segmentation Claude-Session: https://claude.ai/code/session_01AtVdfpinqXvo6p3fZwxacg
…yed by frame identity, quarter-res blur, render bundle Claude-Session: https://claude.ai/code/session_01AtVdfpinqXvo6p3fZwxacg
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.
Camera panel gets Background: Off, Blur, Color, Remove. Vision person segmentation (on device) builds a matte per camera frame (cached per 30 fps bucket); the compositor keeps the person and blurs, recolors or cuts the rest before the PiP shape/border. Project.cameraBackground is optional and applied at render time only, so the source recording is untouched and Off restores it. Balanced in preview, accurate on export.
Spike numbers (M1 Max, 1080p): fast 13.7 ms, balanced 20.3 ms, accurate 58.7 ms per frame.
Tests: real-pixel checks for all modes, Codable round trip (old projects decode), and a real-frame segmentation check that runs when CAMERA_BG_SAMPLE points at a photo.
Not verified: end to end in the running app (preview smoothness at 60 fps canvas, export of a long clip). Contains SimpleColorPicker.swift identical to the one in #88.
https://claude.ai/code/session_01AtVdfpinqXvo6p3fZwxacg