Answer to Question #69534 in MatLAB | Mathematica | MathCAD | Maple for Min

Question #69534
I have detected the mouth on image using the viola jones algorithm on MATLAB, I need the codings to apply different colors on the detected mouth.
1
Expert's answer
2017-10-23T13:34:07-0400
To detect a feature:
1. Define and set up your cascade object detector using the constructor.
2. Call the step method with the input image, I, the cascade object detector object, detector,
points PTS, and any optional properties. See the syntax below for using the step method.

3. Use the step syntax with input image, I, the selected Cascade object detector object,
and any optional properties to perform detection.
4. BBOX = step(detector,I) returns BBOX, an M-by- 4 matrix defining M bounding boxes
containing the detected objects. This method performs multiscale object detection on the input
image, I. Each row of the output matrix, BBOX, contains a four-element vector, [x y width
height], that specifies in pixels, the upper-left corner and size of a bounding box. The input
image I, must be a grayscale or truecolor (RGB) image.
5. BBOX = step(detector,I,roi) detects objects within the rectangular search region
specified by roi. You must specify roi as a 4-element vector, [x y width height], that defines a
rectangular region of interest within image I. Set the 'UseROI' property to true to use this
syntax.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS