ImageResizer
3.4.0
|
Provides a simple API for face detection More...
Protected Member Functions | |
override List< Face > | DetectFeatures (IplImage img, CvMemStorage storage) |
Detects features on a grayscale image. More... | |
Protected Member Functions inherited from ImageResizer.Plugins.Faces.FeatureDetectionBase< T > | |
int | CompareByNeighbors (CvAvgComp a, CvAvgComp b) |
Properties | |
int | MinFaces haarcascade_frontalface_default.xml" [get, set] |
The minimum number of faces expected More... | |
int | MaxFaces [get, set] |
The maximum number of faces wanted More... | |
float | MinSizePercent [get, set] |
The smallest face that will be detected, represented in a 1..100 percentage of the (smaller of width and height). Defaults to 3 percent (3.0f) More... | |
int | ConfidenceLevelThreshold [get, set] |
The minimum number of agreeing matches required for a face rectangle to be returned. This rule isn't applied if we don't have [MinFaces] number of faces. More... | |
int | MinConfidenceLevel [get, set] |
The minimum number of agreeing matches required for a face rectangle to be evaluated More... | |
double | ExpandX [get, set] |
The percentage by which to expand each face rectangle horizontally after detection. To expand 5% each side, set to 0.1 More... | |
double | ExpandY [get, set] |
The percentage by which to expand each face rectangle vertically after detection. To expand 20% on the top and bottom, set to 0.4 More... | |
Additional Inherited Members | |
Public Member Functions inherited from ImageResizer.Plugins.Faces.FeatureDetectionBase< T > | |
FeatureDetectionBase (string xmlFolder) | |
List< T > | DetectFeatures (Bitmap b) |
void | Dispose () |
Disposes all loaded cascades More... | |
Protected Attributes inherited from ImageResizer.Plugins.Faces.FeatureDetectionBase< T > | |
List< string > | searchFolders = new List<string>() { } |
Dictionary< string, string > | fileNames = new Dictionary<string,string>(){ } |
Dictionary< string, string > | Files = null |
Dictionary< string, CvHaarClassifierCascade > | Cascades = null |
int | scaledBounds = 1000 |
Large images will be scaled down to less than scaledBounds X scaledBounds for feature detection. Defaults to 1000 More... | |
Provides a simple API for face detection
Definition at line 30 of file FaceDetection.cs.
|
inlineprotectedvirtual |
Detects features on a grayscale image.
img | |
storage |
Implements ImageResizer.Plugins.Faces.FeatureDetectionBase< T >.
Definition at line 87 of file FaceDetection.cs.
|
getset |
The minimum number of agreeing matches required for a face rectangle to be returned. This rule isn't applied if we don't have [MinFaces] number of faces.
Definition at line 63 of file FaceDetection.cs.
|
getset |
The percentage by which to expand each face rectangle horizontally after detection. To expand 5% each side, set to 0.1
Definition at line 73 of file FaceDetection.cs.
|
getset |
The percentage by which to expand each face rectangle vertically after detection. To expand 20% on the top and bottom, set to 0.4
Definition at line 78 of file FaceDetection.cs.
|
getset |
The maximum number of faces wanted
Definition at line 51 of file FaceDetection.cs.
|
getset |
The minimum number of agreeing matches required for a face rectangle to be evaluated
Definition at line 68 of file FaceDetection.cs.
|
getset |
The minimum number of faces expected
Definition at line 47 of file FaceDetection.cs.
|
getset |
The smallest face that will be detected, represented in a 1..100 percentage of the (smaller of width and height). Defaults to 3 percent (3.0f)
Definition at line 57 of file FaceDetection.cs.