Skip to content

feat(camera): background blur / color / remove - #89

Merged
dPeluChe merged 2 commits into
mainfrom
feat/camera-background
Oct 10, 2026
Merged

dPeluChe merged 2 commits into
mainfrom
feat/camera-background

Conversation

@dPeluChe

Copy link
Copy Markdown
Owner

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

@dPeluChe
dPeluChe merged commit 9ab550d into main Oct 10, 2026
1 check passed
@dPeluChe
dPeluChe deleted the feat/camera-background branch October 10, 2026 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant