Class LatentSvmDetector
Represents a trained latent SVM detector.
Namespace: OpenCV.Net
Assembly: OpenCV.Net.dll
Syntax
public class LatentSvmDetector : CVHandle
Methods
| Improve this Doc View SourceDetectObjects(IplImage, MemStorage, Single, Int32)
Find rectangular regions in the given image that are likely to contain objects and corresponding confidence levels.
Declaration
public Seq DetectObjects(IplImage image, MemStorage storage, float overlapThreshold = 0.5F, int numThreads = null)
Parameters
Type | Name | Description |
---|---|---|
IplImage | image | The input image on which to detect objects. |
MemStorage | storage | Memory storage to store the resultant sequence of the object candidate rectangles. |
Single | overlapThreshold | Threshold for the non-maximum suppression algorithm. |
Int32 | numThreads | Number of threads used in parallel version of the algorithm. |
Returns
Type | Description |
---|---|
Seq | A sequence of detected objects of type ObjectDetection. |
Load(String)
Loads trained detector from a file.
Declaration
public static LatentSvmDetector Load(string fileName)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | Name of the file containing the description of a trained detector. |
Returns
Type | Description |
---|---|
LatentSvmDetector | A newly created instance of the LatentSvmDetector class. |
ReleaseHandle()
Executes the code required to free the native LatentSvmDetector handle.
Declaration
protected override bool ReleaseHandle()
Returns
Type | Description |
---|---|
Boolean | true if the handle is released successfully; otherwise, in the event of a catastrophic failure, false. |