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: 1.0.0
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

[Missing <param name="weights"/> documentation for "M:OpenCvSharp.HOGDescriptor.Detect(OpenCvSharp.Mat,System.Double[]@,System.Double,System.Nullable{OpenCvSharp.Size},System.Nullable{OpenCvSharp.Size},OpenCvSharp.Point[])"]

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

[Missing <param name="searchLocations"/> documentation for "M:OpenCvSharp.HOGDescriptor.Detect(OpenCvSharp.Mat,System.Double[]@,System.Double,System.Nullable{OpenCvSharp.Size},System.Nullable{OpenCvSharp.Size},OpenCvSharp.Point[])"]

Return Value

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