How can i capture face recognition image?

Hi, I have managed to set up a live video cam in my code and I used OpenCV for face detection. Ellipses are drawn on detected faces. Now how can I take that ellipse and display a still image of that when I press enter? I have no idea how i can get the still pixels in that ellipse. thanks!

Hi @chaotic.rabbit,

as you already have the centerpoint and the ellipse radii you can use this and get all the pixels inside the ellipse…

Maybe you should before grep the rectangular area around the ellipse to not iterating through all the pixels.

Give it a try and see how far you get it. Come back if you need further assistance…

Cheers
— mnse

1 Like