Click or drag to resize

HOGDescriptorDetect Method (Mat, Double, Double, NullableSize, NullableSize, Point)

Performs object detection without a multi-scale window.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public virtual Point[] Detect(
	Mat img,
	out double[] weights,
	double hitThreshold = 0,
	Nullable<Size> winStride = null,
	Nullable<Size> padding = null,
	Point[] searchLocations = null
)

Parameters

img
Type: OpenCvSharpMat
Source image. CV_8UC1 and CV_8UC4 types are supported for now.
weights
Type: SystemDouble
hitThreshold (Optional)
Type: SystemDouble
Threshold for the distance between features and SVM classifying plane. Usually it is 0 and should be specfied 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 (Optional)
Type: SystemNullableSize
Window stride. It must be a multiple of block stride.
padding (Optional)
Type: SystemNullableSize
Mock parameter to keep the CPU interface compatibility. It must be (0,0).
searchLocations (Optional)
Type: OpenCvSharpPoint

Return Value

Type: Point
Left-top corner points of detected objects boundaries.
See Also