C# Class OpenCvSharp.LatentSvmDetector

Find rectangular regions in the given image that are likely to contain objects and corresponding confidence levels
Inheritance: OpenCvSharp.DisposableCvObject
显示文件 Open project: shimat/opencvsharp

Public Methods

Method Description
Clear ( ) : void

Clear all trained models and their names stored in an class object.

Detect ( OpenCvSharp.Mat image, float overlapThreshold = 0.5f, int numThreads = -1 ) : ObjectDetection[]

Find rectangular regions in the given image that are likely to contain objects of loaded classes (models) and corresponding confidence levels.

Empty ( ) : bool

GetClassCount ( ) : long

Return a count of loaded models (classes).

GetClassNames ( ) : string[]

Return the class (model) names that were passed in constructor or method load or extracted from models filenames in those methods.

LatentSvmDetector ( ) : System

Default constructor

LatentSvmDetector ( IEnumerable fileNames, IEnumerable classNames ) : System

Creates the HOG descriptor and detector.

Load ( IEnumerable fileNames, IEnumerable classNames ) : bool

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Method Details

Clear() public method

Clear all trained models and their names stored in an class object.
public Clear ( ) : void
return void

Detect() public method

Find rectangular regions in the given image that are likely to contain objects of loaded classes (models) and corresponding confidence levels.
public Detect ( OpenCvSharp.Mat image, float overlapThreshold = 0.5f, int numThreads = -1 ) : ObjectDetection[]
image OpenCvSharp.Mat An image.
overlapThreshold float Threshold for the non-maximum suppression algorithm.
numThreads int Number of threads used in parallel version of the algorithm.
return ObjectDetection[]

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. /// If false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed. ///
return void

Empty() public method

public Empty ( ) : bool
return bool

GetClassCount() public method

Return a count of loaded models (classes).
public GetClassCount ( ) : long
return long

GetClassNames() public method

Return the class (model) names that were passed in constructor or method load or extracted from models filenames in those methods.
public GetClassNames ( ) : string[]
return string[]

LatentSvmDetector() public method

Default constructor
public LatentSvmDetector ( ) : System
return System

LatentSvmDetector() public method

Creates the HOG descriptor and detector.
public LatentSvmDetector ( IEnumerable fileNames, IEnumerable classNames ) : System
fileNames IEnumerable A set of filenames storing the trained detectors (models). Each file contains one model. /// See examples of such files here /opencv_extra/testdata/cv/latentsvmdetector/models_VOC2007/.
classNames IEnumerable A set of trained models names. If it’s empty then the name of each model will be /// constructed from the name of file containing the model. E.g. the model stored in "/home/user/cat.xml" will get the name "cat".
return System

Load() public method

public Load ( IEnumerable fileNames, IEnumerable classNames ) : bool
fileNames IEnumerable A set of filenames storing the trained detectors (models). Each file contains one model. /// See examples of such files here /opencv_extra/testdata/cv/latentsvmdetector/models_VOC2007/.
classNames IEnumerable A set of trained models names. If it’s empty then the name of each model will be /// constructed from the name of file containing the model. E.g. the model stored in "/home/user/cat.xml" will get the name "cat".
return bool