Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Non-rectangular face extraction with openCV

Using this code I can get a rectangle of a face:

std::vector<rect> faces;
//-- Detect faces face_cascade.detectMultiScale( frame_gray, faces, 1.1, 2, 0|CASCADE_SCALE_IMAGE, Size(200, 200) ); How can I get an contour of a face?

Non-rectangular face extraction with openCV

Using this code I can get a rectangle of a face:

std::vector<rect> faces;
//-- Detect faces face_cascade.detectMultiScale( frame_gray, faces, 1.1, 2, 0|CASCADE_SCALE_IMAGE, Size(200, 200) ); How can I get an contour of a face?