OpenCV for Unity 2.6.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
|
Cascade classifier class for object detection. More...
Public Member Functions | |
CascadeClassifier () | |
CascadeClassifier (string filename) | |
Loads a classifier from a file. | |
void | detectMultiScale (Mat image, MatOfRect objects) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles. | |
void | detectMultiScale (Mat image, MatOfRect objects, double scaleFactor) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles. | |
void | detectMultiScale (Mat image, MatOfRect objects, double scaleFactor, int minNeighbors) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles. | |
void | detectMultiScale (Mat image, MatOfRect objects, double scaleFactor, int minNeighbors, int flags) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles. | |
void | detectMultiScale (Mat image, MatOfRect objects, double scaleFactor, int minNeighbors, int flags, in Vec2d minSize) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles. | |
void | detectMultiScale (Mat image, MatOfRect objects, double scaleFactor, int minNeighbors, int flags, in Vec2d minSize, in Vec2d maxSize) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles. | |
void | detectMultiScale (Mat image, MatOfRect objects, double scaleFactor, int minNeighbors, int flags, in(double width, double height) minSize) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles. | |
void | detectMultiScale (Mat image, MatOfRect objects, double scaleFactor, int minNeighbors, int flags, in(double width, double height) minSize, in(double width, double height) maxSize) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles. | |
void | detectMultiScale (Mat image, MatOfRect objects, double scaleFactor, int minNeighbors, int flags, Size minSize) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles. | |
void | detectMultiScale (Mat image, MatOfRect objects, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles. | |
void | detectMultiScale2 (Mat image, MatOfRect objects, MatOfInt numDetections) |
void | detectMultiScale2 (Mat image, MatOfRect objects, MatOfInt numDetections, double scaleFactor) |
void | detectMultiScale2 (Mat image, MatOfRect objects, MatOfInt numDetections, double scaleFactor, int minNeighbors) |
void | detectMultiScale2 (Mat image, MatOfRect objects, MatOfInt numDetections, double scaleFactor, int minNeighbors, int flags) |
void | detectMultiScale2 (Mat image, MatOfRect objects, MatOfInt numDetections, double scaleFactor, int minNeighbors, int flags, in Vec2d minSize) |
void | detectMultiScale2 (Mat image, MatOfRect objects, MatOfInt numDetections, double scaleFactor, int minNeighbors, int flags, in Vec2d minSize, in Vec2d maxSize) |
void | detectMultiScale2 (Mat image, MatOfRect objects, MatOfInt numDetections, double scaleFactor, int minNeighbors, int flags, in(double width, double height) minSize) |
void | detectMultiScale2 (Mat image, MatOfRect objects, MatOfInt numDetections, double scaleFactor, int minNeighbors, int flags, in(double width, double height) minSize, in(double width, double height) maxSize) |
void | detectMultiScale2 (Mat image, MatOfRect objects, MatOfInt numDetections, double scaleFactor, int minNeighbors, int flags, Size minSize) |
void | detectMultiScale2 (Mat image, MatOfRect objects, MatOfInt numDetections, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize) |
void | detectMultiScale3 (Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights) |
void | detectMultiScale3 (Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor) |
void | detectMultiScale3 (Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors) |
void | detectMultiScale3 (Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors, int flags) |
void | detectMultiScale3 (Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors, int flags, in Vec2d minSize) |
void | detectMultiScale3 (Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors, int flags, in Vec2d minSize, in Vec2d maxSize) |
void | detectMultiScale3 (Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors, int flags, in Vec2d minSize, in Vec2d maxSize, bool outputRejectLevels) |
void | detectMultiScale3 (Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors, int flags, in(double width, double height) minSize) |
void | detectMultiScale3 (Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors, int flags, in(double width, double height) minSize, in(double width, double height) maxSize) |
void | detectMultiScale3 (Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors, int flags, in(double width, double height) minSize, in(double width, double height) maxSize, bool outputRejectLevels) |
void | detectMultiScale3 (Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors, int flags, Size minSize) |
void | detectMultiScale3 (Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize) |
void | detectMultiScale3 (Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize, bool outputRejectLevels) |
bool | empty () |
Checks whether the classifier has been loaded. | |
int | getFeatureType () |
IntPtr | getNativeObjAddr () |
Size | getOriginalWindowSize () |
double double height | getOriginalWindowSizeAsValueTuple () |
Vec2d | getOriginalWindowSizeAsVec2d () |
bool | isOldFormatCascade () |
bool | load (string filename) |
Loads a classifier from a file. | |
Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
void | Dispose () |
void | ThrowIfDisposed () |
Static Public Member Functions | |
static CascadeClassifier | __fromPtr__ (IntPtr addr) |
static bool | convert (string oldcascade, string newcascade) |
Static Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
static IntPtr | ThrowIfNullIntPtr (IntPtr ptr) |
Public Attributes | |
double | width |
Protected Member Functions | |
override void | Dispose (bool disposing) |
Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject | |
DisposableOpenCVObject () | |
DisposableOpenCVObject (bool isEnabledDispose) | |
DisposableOpenCVObject (IntPtr ptr) | |
DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose) | |
override void | Dispose (bool disposing) |
Protected Member Functions inherited from OpenCVForUnity.DisposableObject | |
DisposableObject () | |
DisposableObject (bool isEnabledDispose) | |
Additional Inherited Members | |
Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject | |
Properties inherited from OpenCVForUnity.DisposableObject | |
bool | IsDisposed [get, protected set] |
bool | IsEnabledDispose [get, set] |
Cascade classifier class for object detection.
OpenCVForUnity.ObjdetectModule.CascadeClassifier.CascadeClassifier | ( | ) |
OpenCVForUnity.ObjdetectModule.CascadeClassifier.CascadeClassifier | ( | string | filename | ) |
Loads a classifier from a file.
filename | Name of the file from which the classifier is loaded. |
|
static |
|
static |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale | ( | Mat | image, |
MatOfRect | objects ) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale | ( | Mat | image, |
MatOfRect | objects, | ||
double | scaleFactor ) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale | ( | Mat | image, |
MatOfRect | objects, | ||
double | scaleFactor, | ||
int | minNeighbors ) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale | ( | Mat | image, |
MatOfRect | objects, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags ) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale | ( | Mat | image, |
MatOfRect | objects, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
in Vec2d | minSize ) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale | ( | Mat | image, |
MatOfRect | objects, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
in Vec2d | minSize, | ||
in Vec2d | maxSize ) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale | ( | Mat | image, |
MatOfRect | objects, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
in(double width, double height) | minSize ) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale | ( | Mat | image, |
MatOfRect | objects, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
in(double width, double height) | minSize, | ||
in(double width, double height) | maxSize ) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale | ( | Mat | image, |
MatOfRect | objects, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
Size | minSize ) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale | ( | Mat | image, |
MatOfRect | objects, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
Size | minSize, | ||
Size | maxSize ) |
Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale2 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | numDetections ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
numDetections | Vector of detection numbers for the corresponding objects. An object's number of detections is the number of neighboring positively classified rectangles that were joined together to form the object. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale2 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | numDetections, | ||
double | scaleFactor ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
numDetections | Vector of detection numbers for the corresponding objects. An object's number of detections is the number of neighboring positively classified rectangles that were joined together to form the object. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale2 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | numDetections, | ||
double | scaleFactor, | ||
int | minNeighbors ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
numDetections | Vector of detection numbers for the corresponding objects. An object's number of detections is the number of neighboring positively classified rectangles that were joined together to form the object. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale2 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | numDetections, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
numDetections | Vector of detection numbers for the corresponding objects. An object's number of detections is the number of neighboring positively classified rectangles that were joined together to form the object. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale2 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | numDetections, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
in Vec2d | minSize ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
numDetections | Vector of detection numbers for the corresponding objects. An object's number of detections is the number of neighboring positively classified rectangles that were joined together to form the object. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale2 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | numDetections, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
in Vec2d | minSize, | ||
in Vec2d | maxSize ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
numDetections | Vector of detection numbers for the corresponding objects. An object's number of detections is the number of neighboring positively classified rectangles that were joined together to form the object. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale2 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | numDetections, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
in(double width, double height) | minSize ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
numDetections | Vector of detection numbers for the corresponding objects. An object's number of detections is the number of neighboring positively classified rectangles that were joined together to form the object. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale2 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | numDetections, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
in(double width, double height) | minSize, | ||
in(double width, double height) | maxSize ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
numDetections | Vector of detection numbers for the corresponding objects. An object's number of detections is the number of neighboring positively classified rectangles that were joined together to form the object. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale2 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | numDetections, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
Size | minSize ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
numDetections | Vector of detection numbers for the corresponding objects. An object's number of detections is the number of neighboring positively classified rectangles that were joined together to form the object. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale2 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | numDetections, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
Size | minSize, | ||
Size | maxSize ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
image | Matrix of the type CV_8U containing an image where objects are detected. |
objects | Vector of rectangles where each rectangle contains the detected object, the rectangles may be partially outside the original image. |
numDetections | Vector of detection numbers for the corresponding objects. An object's number of detections is the number of neighboring positively classified rectangles that were joined together to form the object. |
scaleFactor | Parameter specifying how much the image size is reduced at each image scale. |
minNeighbors | Parameter specifying how many neighbors each candidate rectangle should have to retain it. |
flags | Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. |
minSize | Minimum possible object size. Objects smaller than that are ignored. |
maxSize | Maximum possible object size. Objects larger than that are ignored. If maxSize == minSize model is evaluated on single scale. |
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale3 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | rejectLevels, | ||
MatOfDouble | levelWeights ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This function allows you to retrieve the final stage decision certainty of classification. For this, one needs to set outputRejectLevels
on true and provide the rejectLevels
and levelWeights
parameter. For each resulting detection, levelWeights
will then contain the certainty of classification at the final stage. This value can then be used to separate strong from weaker classifications.
A code sample on how to use it efficiently can be found below:
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale3 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | rejectLevels, | ||
MatOfDouble | levelWeights, | ||
double | scaleFactor ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This function allows you to retrieve the final stage decision certainty of classification. For this, one needs to set outputRejectLevels
on true and provide the rejectLevels
and levelWeights
parameter. For each resulting detection, levelWeights
will then contain the certainty of classification at the final stage. This value can then be used to separate strong from weaker classifications.
A code sample on how to use it efficiently can be found below:
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale3 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | rejectLevels, | ||
MatOfDouble | levelWeights, | ||
double | scaleFactor, | ||
int | minNeighbors ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This function allows you to retrieve the final stage decision certainty of classification. For this, one needs to set outputRejectLevels
on true and provide the rejectLevels
and levelWeights
parameter. For each resulting detection, levelWeights
will then contain the certainty of classification at the final stage. This value can then be used to separate strong from weaker classifications.
A code sample on how to use it efficiently can be found below:
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale3 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | rejectLevels, | ||
MatOfDouble | levelWeights, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This function allows you to retrieve the final stage decision certainty of classification. For this, one needs to set outputRejectLevels
on true and provide the rejectLevels
and levelWeights
parameter. For each resulting detection, levelWeights
will then contain the certainty of classification at the final stage. This value can then be used to separate strong from weaker classifications.
A code sample on how to use it efficiently can be found below:
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale3 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | rejectLevels, | ||
MatOfDouble | levelWeights, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
in Vec2d | minSize ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This function allows you to retrieve the final stage decision certainty of classification. For this, one needs to set outputRejectLevels
on true and provide the rejectLevels
and levelWeights
parameter. For each resulting detection, levelWeights
will then contain the certainty of classification at the final stage. This value can then be used to separate strong from weaker classifications.
A code sample on how to use it efficiently can be found below:
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale3 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | rejectLevels, | ||
MatOfDouble | levelWeights, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
in Vec2d | minSize, | ||
in Vec2d | maxSize ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This function allows you to retrieve the final stage decision certainty of classification. For this, one needs to set outputRejectLevels
on true and provide the rejectLevels
and levelWeights
parameter. For each resulting detection, levelWeights
will then contain the certainty of classification at the final stage. This value can then be used to separate strong from weaker classifications.
A code sample on how to use it efficiently can be found below:
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale3 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | rejectLevels, | ||
MatOfDouble | levelWeights, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
in Vec2d | minSize, | ||
in Vec2d | maxSize, | ||
bool | outputRejectLevels ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This function allows you to retrieve the final stage decision certainty of classification. For this, one needs to set outputRejectLevels
on true and provide the rejectLevels
and levelWeights
parameter. For each resulting detection, levelWeights
will then contain the certainty of classification at the final stage. This value can then be used to separate strong from weaker classifications.
A code sample on how to use it efficiently can be found below:
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale3 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | rejectLevels, | ||
MatOfDouble | levelWeights, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
in(double width, double height) | minSize ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This function allows you to retrieve the final stage decision certainty of classification. For this, one needs to set outputRejectLevels
on true and provide the rejectLevels
and levelWeights
parameter. For each resulting detection, levelWeights
will then contain the certainty of classification at the final stage. This value can then be used to separate strong from weaker classifications.
A code sample on how to use it efficiently can be found below:
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale3 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | rejectLevels, | ||
MatOfDouble | levelWeights, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
in(double width, double height) | minSize, | ||
in(double width, double height) | maxSize ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This function allows you to retrieve the final stage decision certainty of classification. For this, one needs to set outputRejectLevels
on true and provide the rejectLevels
and levelWeights
parameter. For each resulting detection, levelWeights
will then contain the certainty of classification at the final stage. This value can then be used to separate strong from weaker classifications.
A code sample on how to use it efficiently can be found below:
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale3 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | rejectLevels, | ||
MatOfDouble | levelWeights, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
in(double width, double height) | minSize, | ||
in(double width, double height) | maxSize, | ||
bool | outputRejectLevels ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This function allows you to retrieve the final stage decision certainty of classification. For this, one needs to set outputRejectLevels
on true and provide the rejectLevels
and levelWeights
parameter. For each resulting detection, levelWeights
will then contain the certainty of classification at the final stage. This value can then be used to separate strong from weaker classifications.
A code sample on how to use it efficiently can be found below:
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale3 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | rejectLevels, | ||
MatOfDouble | levelWeights, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
Size | minSize ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This function allows you to retrieve the final stage decision certainty of classification. For this, one needs to set outputRejectLevels
on true and provide the rejectLevels
and levelWeights
parameter. For each resulting detection, levelWeights
will then contain the certainty of classification at the final stage. This value can then be used to separate strong from weaker classifications.
A code sample on how to use it efficiently can be found below:
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale3 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | rejectLevels, | ||
MatOfDouble | levelWeights, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
Size | minSize, | ||
Size | maxSize ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This function allows you to retrieve the final stage decision certainty of classification. For this, one needs to set outputRejectLevels
on true and provide the rejectLevels
and levelWeights
parameter. For each resulting detection, levelWeights
will then contain the certainty of classification at the final stage. This value can then be used to separate strong from weaker classifications.
A code sample on how to use it efficiently can be found below:
void OpenCVForUnity.ObjdetectModule.CascadeClassifier.detectMultiScale3 | ( | Mat | image, |
MatOfRect | objects, | ||
MatOfInt | rejectLevels, | ||
MatOfDouble | levelWeights, | ||
double | scaleFactor, | ||
int | minNeighbors, | ||
int | flags, | ||
Size | minSize, | ||
Size | maxSize, | ||
bool | outputRejectLevels ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This function allows you to retrieve the final stage decision certainty of classification. For this, one needs to set outputRejectLevels
on true and provide the rejectLevels
and levelWeights
parameter. For each resulting detection, levelWeights
will then contain the certainty of classification at the final stage. This value can then be used to separate strong from weaker classifications.
A code sample on how to use it efficiently can be found below:
|
protectedvirtual |
Reimplemented from OpenCVForUnity.DisposableObject.
bool OpenCVForUnity.ObjdetectModule.CascadeClassifier.empty | ( | ) |
Checks whether the classifier has been loaded.
int OpenCVForUnity.ObjdetectModule.CascadeClassifier.getFeatureType | ( | ) |
IntPtr OpenCVForUnity.ObjdetectModule.CascadeClassifier.getNativeObjAddr | ( | ) |
Size OpenCVForUnity.ObjdetectModule.CascadeClassifier.getOriginalWindowSize | ( | ) |
double double height OpenCVForUnity.ObjdetectModule.CascadeClassifier.getOriginalWindowSizeAsValueTuple | ( | ) |
Vec2d OpenCVForUnity.ObjdetectModule.CascadeClassifier.getOriginalWindowSizeAsVec2d | ( | ) |
bool OpenCVForUnity.ObjdetectModule.CascadeClassifier.isOldFormatCascade | ( | ) |
bool OpenCVForUnity.ObjdetectModule.CascadeClassifier.load | ( | string | filename | ) |
Loads a classifier from a file.
filename | 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. |
double OpenCVForUnity.ObjdetectModule.CascadeClassifier.width |