News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.