How to crop a circle in OpenCV? Implementing Portrait Bokeh - Part 2

Hi everyone! In the previous blog we implemented Portrait Bokeh using Face Detection in OpenCV. While the results were good for a start, we definitely want to be closer to the output we expect. The end goal is to blur everything except the face. The main problem we noticed was: The face cropped was a rectangle, and it was clearly visible in the output result. To overcome this, we will be talking about cropping a circle in OpenCV today. This will enable us to get rid of “some” of the background noise we got earlier, for Portrait Bokeh. Let’s take this step by step, and first talk about the intuition. ...

December 10, 2020 · 10 min · Kushashwa Ravi Shrimali

Implementing Portrait Bokeh in OpenCV using Face Detection (Part-1)

OpenCV: Using face detection for Portrait Bokeh (Background Blur) (Part - 1) This blog discusses using Face Detection in OpenCV for Portrait Bokeh. We’ll be implementing Portrait Bokeh (blurring everything but faces) using 3 different methods in this series: Using Face Detection (cropping a rectangle) Using Face Detection (cropping a circle) Using Facial Landmark Detection and Convex Hull Don’t lose hopes if you are confused. We will be going through each method one by one, and hopefully the road will be crearer from here. ...

December 7, 2020 · 5 min · Kushashwa Ravi Shrimali