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.
Comments
Leave a comment