C# 클래스 OpenCvSharp.CascadeClassifier

Cascade classifier class for object detection.
상속: OpenCvSharp.DisposableCvObject
파일 보기 프로젝트 열기: shimat/opencvsharp 1 사용 예제들

공개 메소드들

메소드 설명
CascadeClassifier ( ) : System

Default constructor

CascadeClassifier ( string fileName ) : System

Loads a classifier from a file.

DetectMultiScale ( OpenCvSharp.Mat image, double scaleFactor = 1.1, int minNeighbors = 3, HaarDetectionType flags, Size minSize = null, Size maxSize = null ) : Rect[]

Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.

DetectMultiScale ( OpenCvSharp.Mat image, int &rejectLevels, double &levelWeights, double scaleFactor = 1.1, int minNeighbors = 3, HaarDetectionType flags, Size minSize = null, Size maxSize = null, bool outputRejectLevels = false ) : Rect[]

Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.

Empty ( ) : bool

Checks whether the classifier has been loaded.

GetFeatureType ( ) : int

GetOriginalWindowSize ( ) : Size

IsOldFormatCascade ( ) : bool

Load ( string fileName ) : bool

Loads a classifier from a file.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

메소드 상세

CascadeClassifier() 공개 메소드

Default constructor
public CascadeClassifier ( ) : System
리턴 System

CascadeClassifier() 공개 메소드

Loads a classifier from a file.
public CascadeClassifier ( string fileName ) : System
fileName string Name of the file from which the classifier is loaded.
리턴 System

DetectMultiScale() 공개 메소드

Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.
public DetectMultiScale ( OpenCvSharp.Mat image, double scaleFactor = 1.1, int minNeighbors = 3, HaarDetectionType flags, Size minSize = null, Size maxSize = null ) : Rect[]
image OpenCvSharp.Mat Matrix of the type CV_8U containing an image where objects are detected.
scaleFactor double Parameter specifying how much the image size is reduced at each image scale.
minNeighbors int Parameter specifying how many neighbors each candidate rectangle should have to retain it.
flags HaarDetectionType Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. /// It is not used for a new cascade.
minSize Size Minimum possible object size. Objects smaller than that are ignored.
maxSize Size Maximum possible object size. Objects larger than that are ignored.
리턴 Rect[]

DetectMultiScale() 공개 메소드

Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.
public DetectMultiScale ( OpenCvSharp.Mat image, int &rejectLevels, double &levelWeights, double scaleFactor = 1.1, int minNeighbors = 3, HaarDetectionType flags, Size minSize = null, Size maxSize = null, bool outputRejectLevels = false ) : Rect[]
image OpenCvSharp.Mat Matrix of the type CV_8U containing an image where objects are detected.
rejectLevels int
levelWeights double
scaleFactor double Parameter specifying how much the image size is reduced at each image scale.
minNeighbors int Parameter specifying how many neighbors each candidate rectangle should have to retain it.
flags HaarDetectionType Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. /// It is not used for a new cascade.
minSize Size Minimum possible object size. Objects smaller than that are ignored.
maxSize Size Maximum possible object size. Objects larger than that are ignored.
outputRejectLevels bool
리턴 Rect[]

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() 공개 메소드

Checks whether the classifier has been loaded.
public Empty ( ) : bool
리턴 bool

GetFeatureType() 공개 메소드

public GetFeatureType ( ) : int
리턴 int

GetOriginalWindowSize() 공개 메소드

public GetOriginalWindowSize ( ) : Size
리턴 Size

IsOldFormatCascade() 공개 메소드

public IsOldFormatCascade ( ) : bool
리턴 bool

Load() 공개 메소드

Loads a classifier from a file.
public Load ( string fileName ) : bool
fileName string Name of the file from which the classifier is loaded. /// The file may contain an old HAAR classifier trained by the haartraining application /// or a new cascade classifier trained by the traincascade application.
리턴 bool