| CascadeClassifierDetectMultiScale Method (Mat, Double, Int32, HaarDetectionType, NullableSize, NullableSize) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public virtual Rect[] DetectMultiScale(
Mat image,
double scaleFactor = 1.1,
int minNeighbors = 3,
HaarDetectionType flags = ,
Nullable<Size> minSize = null,
Nullable<Size> maxSize = null
)
Public Overridable Function DetectMultiScale (
image As Mat,
Optional scaleFactor As Double = 1.1,
Optional minNeighbors As Integer = 3,
Optional flags As HaarDetectionType = ,
Optional minSize As Nullable(Of Size) = Nothing,
Optional maxSize As Nullable(Of Size) = Nothing
) As Rect()
public:
virtual array<Rect>^ DetectMultiScale(
Mat^ image,
double scaleFactor = 1.1,
int minNeighbors = 3,
HaarDetectionType flags = ,
Nullable<Size> minSize = nullptr,
Nullable<Size> maxSize = nullptr
)
abstract DetectMultiScale :
image : Mat *
?scaleFactor : float *
?minNeighbors : int *
?flags : HaarDetectionType *
?minSize : Nullable<Size> *
?maxSize : Nullable<Size>
(* Defaults:
let _scaleFactor = defaultArg scaleFactor 1.1
let _minNeighbors = defaultArg minNeighbors 3
let _flags = defaultArg flags
let _minSize = defaultArg minSize null
let _maxSize = defaultArg maxSize null
*)
-> Rect[]
override DetectMultiScale :
image : Mat *
?scaleFactor : float *
?minNeighbors : int *
?flags : HaarDetectionType *
?minSize : Nullable<Size> *
?maxSize : Nullable<Size>
(* Defaults:
let _scaleFactor = defaultArg scaleFactor 1.1
let _minNeighbors = defaultArg minNeighbors 3
let _flags = defaultArg flags
let _minSize = defaultArg minSize null
let _maxSize = defaultArg maxSize null
*)
-> Rect[]
Parameters
- image
- Type: OpenCvSharpMat
Matrix of the type CV_8U containing an image where objects are detected. - scaleFactor (Optional)
- Type: SystemDouble
Parameter specifying how much the image size is reduced at each image scale. - minNeighbors (Optional)
- Type: SystemInt32
Parameter specifying how many neighbors each candidate rectangle should have to retain it. - flags (Optional)
- Type: OpenCvSharpHaarDetectionType
Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects.
It is not used for a new cascade. - minSize (Optional)
- Type: SystemNullableSize
Minimum possible object size. Objects smaller than that are ignored. - maxSize (Optional)
- Type: SystemNullableSize
Maximum possible object size. Objects larger than that are ignored.
Return Value
Type:
RectVector of rectangles where each rectangle contains the detected object.
See Also