C# Класс OpenCvSharp.LatentSvmDetector

Find rectangular regions in the given image that are likely to contain objects and corresponding confidence levels
Наследование: OpenCvSharp.DisposableCvObject
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Описание методов

Clear() публичный Метод

Clear all trained models and their names stored in an class object.
public Clear ( ) : void
Результат void

Detect() публичный Метод

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.
Результат ObjectDetection[]

Dispose() защищенный Метод

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. ///
Результат void

Empty() публичный Метод

public Empty ( ) : bool
Результат bool

GetClassCount() публичный Метод

Return a count of loaded models (classes).
public GetClassCount ( ) : long
Результат long

GetClassNames() публичный Метод

Return the class (model) names that were passed in constructor or method load or extracted from models filenames in those methods.
public GetClassNames ( ) : string[]
Результат string[]

LatentSvmDetector() публичный Метод

Default constructor
public LatentSvmDetector ( ) : System
Результат System

LatentSvmDetector() публичный Метод

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".
Результат System

Load() публичный Метод

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".
Результат bool