Class CudaCascadeClassifier
Cascade Classifier for object detection using Cuda
public class CudaCascadeClassifier : SharedPtrObject, IDisposable
- Inheritance
-
CudaCascadeClassifier
- Implements
- Inherited Members
Constructors
CudaCascadeClassifier(FileStorage)
Create a Cuda cascade classifier using the specific file storage
public CudaCascadeClassifier(FileStorage fs)
Parameters
fs
FileStorageThe file storage to create the classifier from
CudaCascadeClassifier(string)
Create a Cuda cascade classifier using the specific file
public CudaCascadeClassifier(string fileName)
Parameters
fileName
stringThe file to create the classifier from
Properties
ClassifierSize
The classifier size
public Size ClassifierSize { get; }
Property Value
FindLargestObject
If true, only return the largest object
public bool FindLargestObject { get; set; }
Property Value
MaxNumObjects
The maximum number of objects
public int MaxNumObjects { get; set; }
Property Value
MaxObjectSize
The maximum object size
public Size MaxObjectSize { get; set; }
Property Value
MinNeighbors
Parameter specifying how many neighbors each candidate rectangle should have to retain it
public int MinNeighbors { get; set; }
Property Value
MinObjectSize
The minimum object size
public Size MinObjectSize { get; set; }
Property Value
ScaleFactor
Parameter specifying how much the image size is reduced at each image scale
public double ScaleFactor { get; set; }
Property Value
Methods
Convert(IOutputArray)
Converts objects array from internal representation to standard vector.
public Rectangle[] Convert(IOutputArray objects)
Parameters
objects
IOutputArrayObjects array in internal representation.
Returns
- Rectangle[]
Resulting array.
DetectMultiScale(IInputArray, IOutputArray, Stream)
Detects objects of different sizes in the input image.
public void DetectMultiScale(IInputArray image, IOutputArray objects, Stream stream = null)
Parameters
image
IInputArrayMatrix of type CV_8U containing an image where objects should be detected.
objects
IOutputArrayBuffer to store detected objects (rectangles).
stream
StreamUse a Stream to call the function asynchronously (non-blocking) or null to call the function synchronously (blocking).
DisposeObject()
Release all unmanaged resources associated with this object
protected override void DisposeObject()