Non-rectangular face extraction with openCV

asked 2016-08-07 07:06:19 -0600

oded gravatar image

updated 2018-10-20 21:21:19 -0600

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?

edit retag flag offensive close merge delete

Comments

1

e.g. skin detection -> inRange() -> findContours(). look it up, and come back with more specific questions.

berak gravatar imageberak ( 2016-08-07 08:29:01 -0600 )edit
2

Or you could go for face landmark detection

LorenaGdL gravatar imageLorenaGdL ( 2016-08-07 12:21:19 -0600 )edit