mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
integrated most of the new Python stuff into the reference manual
This commit is contained in:
@@ -199,12 +199,16 @@ Checks whether the classifier has been loaded.
|
||||
.. ocv:function:: bool CascadeClassifier::empty() const
|
||||
|
||||
|
||||
.. ocv:pyfunction:: cv2.CascadeClassifier.empty() -> retval
|
||||
|
||||
CascadeClassifier::load
|
||||
---------------------------
|
||||
Loads a classifier from a file.
|
||||
|
||||
.. ocv:function:: bool CascadeClassifier::load(const string& filename)
|
||||
|
||||
.. ocv:pyfunction:: cv2.CascadeClassifier.load(filename) -> retval
|
||||
|
||||
:param 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.
|
||||
|
||||
|
||||
@@ -224,6 +228,9 @@ Detects objects of different sizes in the input image. The detected objects are
|
||||
|
||||
.. ocv:function:: void CascadeClassifier::detectMultiScale( const Mat& image, vector<Rect>& objects, double scaleFactor=1.1, int minNeighbors=3, int flags=0, Size minSize=Size())
|
||||
|
||||
.. ocv:pyfunction:: cv2.CascadeClassifier.detectMultiScale(image[, scaleFactor[, minNeighbors[, flags[, minSize[, maxSize]]]]]) -> objects
|
||||
.. ocv:pyfunction:: cv2.CascadeClassifier.detectMultiScale(image, rejectLevels, levelWeights[, scaleFactor[, minNeighbors[, flags[, minSize[, maxSize[, outputRejectLevels]]]]]]) -> objects
|
||||
|
||||
:param image: Matrix of the type ``CV_8U`` containing an image where objects are detected.
|
||||
|
||||
:param objects: Vector of rectangles where each rectangle contains the detected object.
|
||||
@@ -271,6 +278,10 @@ Groups the object candidate rectangles.
|
||||
|
||||
.. ocv:function:: void groupRectangles(vector<Rect>& rectList, int groupThreshold, double eps=0.2)
|
||||
|
||||
.. ocv:pyfunction:: cv2.groupRectangles(rectList, groupThreshold[, eps]) -> None
|
||||
.. ocv:pyfunction:: cv2.groupRectangles(rectList, groupThreshold[, eps]) -> weights
|
||||
.. ocv:pyfunction:: cv2.groupRectangles(rectList, groupThreshold, eps, weights, levelWeights) -> None
|
||||
|
||||
:param rectList: Input/output vector of rectangles. Output vector includes retained and grouped rectangles.
|
||||
|
||||
:param groupThreshold: Minimum possible number of rectangles minus 1. The threshold is used in a group of rectangles to retain it.
|
||||
|
||||
Reference in New Issue
Block a user