I need to develop a digital makeup system using MatLAB GUI, I have already detected the face,eyes and mouth on image using the Viola Jones algorithm. I need the codings for the detection of the cheeks and apply different colors on the cheeks, can help me with the codings?
1
Expert's answer
2017-10-23T13:38:07-0400
The cascade object detector uses the Viola-Jones algorithm to detect people’s faces, noses, eyes, mouth, or upper body. detector = vision.CascadeObjectDetector creates a System object, detector, that detects objects using the Viola-Jones algorithm. The ClassificationModel property controls the type of object to detect. By default, the detector is configured to detect faces. detector = vision.CascadeObjectDetector(MODEL) creates a System object, detector, configured to detect objects defined by the input character vector, MODEL. The MODEL input describes the type of object to detect. There are several valid MODEL character vectors, such as 'FrontalFaceCART', 'UpperBody', and 'ProfileFace'. See the ClassificationModel property description for a full list of available models. detector = vision.CascadeObjectDetector(XMLFILE) creates a System object, detector, and configures it to use the custom classification model specified with the XMLFILE input. The XMLFILE can be created using the trainCascadeObjectDetector function or OpenCV (Open Source Computer Vision) training functionality. You must specify a full or relative path to the XMLFILE, if it is not on the MATLAB ® path. detector = vision.CascadeObjectDetector(Name,Value) configures the cascade object detector object properties. You specify these properties as one or more name-value pair arguments. Unspecified properties have default values.
Comments