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?
e.g. skin detection -> inRange() -> findContours(). look it up, and come back with more specific questions.
Or you could go for face landmark detection