Re:Show HN: BokehCamera – Blur webcam background photorealis...
by teawrecks on Tuesday August 31, 2021 @04:33PM
(#28373250)
You're going to have photographers arguing that this is merely depth of field, and for it to be called bokeh you need light sources/reflections to bloom in the shape of the aperture. Which would be a super cool feature.
[ Parent
| on HN ]
Re:Show HN: BokehCamera – Blur webcam background photorealis...
by dheera on Tuesday August 31, 2021 @06:25PM
(#28374419)
Yeah that would be cool! I guess that's actually not that hard to implement since I just need to do some sort of 2D convolution with the aperture shape, instead of just cv2.blur.
The tricky thing is that in order to get different amount of blur at different depths, I interpolate between precomputed 3 levels of blur, since that vectorizes well at -O3, I'm not sure how to compute a per-pixel varying blur efficiently without going to the GPU.
Re:Show HN: BokehCamera – Blur webcam background photorealis...
by underwater on Tuesday August 31, 2021 @06:32PM
(#28374472)
That's what I thought this was doing, based on the description. The reason that Meet backgrounds look fake is because they do a Gaussian Blur instead of simulating a lens. A physical bokeh will blow out highlights, whereas a Gaussian Blur will smooth out bright spots.