Table of Contents

Method DetectMultiScaleROI

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

DetectMultiScaleROI(Mat, out Rect[], out DetectionROI[], double, int)

evaluate specified ROI and return confidence value for each location in multiple scales

public void DetectMultiScaleROI(Mat img, out Rect[] foundLocations, out DetectionROI[] locations, double hitThreshold = 0, int groupThreshold = 0)

Parameters

img Mat

Matrix of the type CV_8U or CV_8UC3 containing an image where objects are detected.

foundLocations Rect[]

Vector of rectangles where each rectangle contains the detected object.

locations DetectionROI[]

Vector of DetectionROI

hitThreshold double

Threshold for the distance between features and SVM classifying plane. Usually it is 0 and should be specified in the detector coefficients (as the last free coefficient). But if the free coefficient is omitted (which is allowed), you can specify it manually here.

groupThreshold int

Minimum possible number of rectangles minus 1. The threshold is used in a group of rectangles to retain it.