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
imgMatMatrix of the type CV_8U or CV_8UC3 containing an image where objects are detected.
locationsPoint[]Vector of Point
foundLocationsPoint[]Vector of Point where each Point is detected object's top-left point.
confidencesdouble[]confidences
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
winStrideSize?winStride
paddingSize?padding