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
imgMatMatrix of the type CV_8U or CV_8UC3 containing an image where objects are detected.
foundLocationsRect[]Vector of rectangles where each rectangle contains the detected object.
locationsDetectionROI[]Vector of DetectionROI
hitThresholddoubleThreshold 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.
groupThresholdintMinimum possible number of rectangles minus 1. The threshold is used in a group of rectangles to retain it.