Table of Contents

Method DetectROI

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

DetectROI(Mat, Point[], out Point[], out double[], double, Size?, Size?)

evaluate specified ROI and return confidence value for each location

public void DetectROI(Mat img, Point[] locations, out Point[] foundLocations, out double[] confidences, double hitThreshold = 0, Size? winStride = null, Size? padding = null)

Parameters

img Mat

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

locations Point[]

Vector of Point

foundLocations Point[]

Vector of Point where each Point is detected object's top-left point.

confidences double[]

confidences

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

winStride Size?

winStride

padding Size?

padding