cv::fastcv::FCVMSER Class ReferenceabstractModule-wrapper for FastCV hardware accelerated functions
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
| struct | ContourData |
| Structure containing additional information about found contour. More... |
Public Member Functions | |
| virtual | ~FCVMSER () |
| virtual void | detect (InputArray src, std::vector< std::vector< Point > > &contours)=0 |
| This is an overload for detect() function. | |
| virtual void | detect (InputArray src, std::vector< std::vector< Point > > &contours, std::vector< cv::Rect > &boundingBoxes)=0 |
| This is an overload for detect() function. | |
| virtual void | detect (InputArray src, std::vector< std::vector< Point > > &contours, std::vector< cv::Rect > &boundingBoxes, std::vector< ContourData > &contourData)=0 |
| Runs MSER blob detector on the grayscale image. | |
| virtual int | getDelta ()=0 |
| virtual cv::Size | getImgSize ()=0 |
| virtual int | getMaxArea ()=0 |
| virtual float | getMaxVariation ()=0 |
| virtual int | getMinArea ()=0 |
| virtual float | getMinDiversity ()=0 |
| virtual int | getNumNeighbors ()=0 |
MSER blob detector for grayscale images.
| inlinevirtual |
Creates MSER detector.
| imgSize | Image size. Image width has to be greater than 50, and image height has to be greater than 5. |
| numNeighbors | Number of neighbors in contours, can be 4 or 8 |
| delta | Delta to be used in MSER algorithm (the difference in grayscale values within which the region is stable ). Typical value range [0.8 8], typical value 2 |
| minArea | Minimum area (number of pixels) of a mser contour. Typical value range [10 50], typical value 30 |
| maxArea |
| pure virtual |
This is an overload for detect() function.
| src | Source image of type CV_8UC1. Image width has to be greater than 50, and image height has to be greater than 5. Pixels at the image boundary are not processed. If boundary pixels are important for a particular application, please consider padding the input image with dummy pixels of one pixel wide. |
| contours | Array containing found contours |
| pure virtual |
This is an overload for detect() function.
| src | Source image of type CV_8UC1. Image width has to be greater than 50, and image height has to be greater than 5. Pixels at the image boundary are not processed. If boundary pixels are important for a particular application, please consider padding the input image with dummy pixels of one pixel wide. |
| contours | Array containing found contours |
| boundingBoxes | Array containing bounding boxes of found contours |
| pure virtual |
Runs MSER blob detector on the grayscale image.
| src | Source image of type CV_8UC1. Image width has to be greater than 50, and image height has to be greater than 5. Pixels at the image boundary are not processed. If boundary pixels are important for a particular application, please consider padding the input image with dummy pixels of one pixel wide. |
| contours | Array containing found contours |
| boundingBoxes | Array containing bounding boxes of found contours |
| contourData | Array containing additional information about found contours |
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
| Maximum area (number of pixels) of a mser contour. Typical value 14400 or 0.25*width*height |
| maxVariation | Maximum variation in grayscale between 2 levels allowed. Typical value range [0.1 1.0], typical value 0.15 |
| minDiversity | Minimum diversity in grayscale between 2 levels allowed. Typical value range [0.1 1.0], typical value 0.2 |