Contents

step

System object: vision.CascadeObjectDetector
Package: vision

Detect objects using the Viola-Jones algorithm

Syntax

BBOX = step(DETECTOR,I)

Description

BBOX = step(DETECTOR,I) returns BBOX, an M-by-4 matrix defining M bounding boxes containing the detected objects. This method performs multi-scale 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.

    Note:   H specifies the System object™ on which to run this step method.

    The object performs an initialization the first time the step method is executed. This initialization locks nontunable properties and input specifications, such as dimensions, complexity, and data type of the input data. If you change a nontunable property or an input specification, the System object issues an error. To change nontunable properties or inputs, you must first call the release method to unlock the object.

Was this topic helpful?