opencv face detection conditionals
in
Contributed Library Questions
•
1 year ago
Hi,
I'm new to processing, and trying to write code for an installation that I will be doing.
Basically, I've been using face detection in OpenCV to find faces in a live webcam feed. What I want to do is to trigger an image capture only when the size and position of the face cross certain thresholds, say 25% of the area and near the center of the image.
The opencv base code (
http://ubaa.net/shared/processing/opencv/opencv_detect.html) draws a rectangle where a face is detected ... could I use the size/position of the rectangle to decide whether or not it triggers the capture? And how can I capture the frame without the rectangle in it?
Thanks!
1