메소드 | 설명 | |
---|---|---|
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 |
Creates the HOG descriptor and detector.
|
|
Load ( IEnumerable |
|
메소드 | 설명 | |
---|---|---|
Dispose ( bool disposing ) : void |
Clean up any resources being used.
|
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[] |
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 |
public LatentSvmDetector ( IEnumerable |
||
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 |
public Load ( IEnumerable |
||
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 |