A class to find the positions of the ColorCharts in the image.
More...
#include <opencv2/objdetect/mcc_checker_detector.hpp>
A class to find the positions of the ColorCharts in the image.
◆ create()
Python: |
---|
| cv.mcc.CCheckerDetector.create( | | ) -> | retval |
| cv.mcc.CCheckerDetector.create( | net | ) -> | retval |
| cv.mcc.CCheckerDetector_create( | | ) -> | retval |
| cv.mcc.CCheckerDetector_create( | net | ) -> | retval |
◆ draw()
Python: |
---|
| cv.mcc.CCheckerDetector.draw( | checkers, img[, color[, thickness]] | ) -> | img |
Draws the checker to the given image.
- Parameters
-
img | image in color space BGR |
checkers | The checkers which will be drawn by this object. |
color | The color by with which the squares of the checker will be drawn |
thickness | The thickness with which the sqaures will be drawn |
◆ getBestColorChecker()
Python: |
---|
| cv.mcc.CCheckerDetector.getBestColorChecker( | | ) -> | retval |
Get the best color checker. By the best it means the one detected with the highest confidence.
- Returns
- checker A single colorchecker, if atleast one colorchecker was detected, 'nullptr' otherwise.
◆ getColorChartType()
virtual ColorChart cv::mcc::CCheckerDetector::getColorChartType |
( |
| ) |
const |
|
pure virtual |
Python: |
---|
| cv.mcc.CCheckerDetector.getColorChartType( | | ) -> | retval |
◆ getDetectionParams()
Python: |
---|
| cv.mcc.CCheckerDetector.getDetectionParams( | | ) -> | retval |
◆ getListColorChecker()
virtual std::vector< Ptr< CChecker > > cv::mcc::CCheckerDetector::getListColorChecker |
( |
| ) |
|
|
pure virtual |
Python: |
---|
| cv.mcc.CCheckerDetector.getListColorChecker( | | ) -> | retval |
Get the list of all detected colorcheckers.
- Returns
- checkers vector of colorcheckers
◆ getRefColors()
virtual Mat cv::mcc::CCheckerDetector::getRefColors |
( |
| ) |
|
|
pure virtual |
Python: |
---|
| cv.mcc.CCheckerDetector.getRefColors( | | ) -> | retval |
Gets the reference color for chart.
◆ process() [1/2]
virtual bool cv::mcc::CCheckerDetector::process |
( |
InputArray | image, |
|
|
const int | nc = 1 ) |
|
pure virtual |
Python: |
---|
| cv.mcc.CCheckerDetector.process( | image[, nc] | ) -> | retval |
| cv.mcc.CCheckerDetector.processWithROI( | image, regionsOfInterest[, nc] | ) -> | retval |
Find the ColorCharts in the given image.
Differs from the above one only in the arguments.
This version searches for the chart in the full image.
The found charts are not returned but instead stored in the detector, these can be accessed later on using getBestColorChecker() and getListColorChecker()
- Parameters
-
image | image in color space BGR |
nc | number of charts in the image, if you don't know the exact then keeping this number high helps. |
- Returns
- true if atleast one chart is detected otherwise false
◆ process() [2/2]
virtual bool cv::mcc::CCheckerDetector::process |
( |
InputArray | image, |
|
|
const std::vector< Rect > & | regionsOfInterest, |
|
|
const int | nc = 1 ) |
|
pure virtual |
Python: |
---|
| cv.mcc.CCheckerDetector.process( | image[, nc] | ) -> | retval |
| cv.mcc.CCheckerDetector.processWithROI( | image, regionsOfInterest[, nc] | ) -> | retval |
Find the ColorCharts in the given image.
The found charts are not returned but instead stored in the detector, these can be accessed later on using getBestColorChecker() and getListColorChecker()
- Parameters
-
image | image in color space BGR |
regionsOfInterest | regions of image to look for the chart, if it is empty, charts are looked for in the entire image |
nc | number of charts in the image, if you don't know the exact then keeping this number high helps. |
- Returns
- true if atleast one chart is detected otherwise false
◆ setColorChartType()
virtual void cv::mcc::CCheckerDetector::setColorChartType |
( |
ColorChart | chartType | ) |
|
|
pure virtual |
Python: |
---|
| cv.mcc.CCheckerDetector.setColorChartType( | chartType | ) -> | None |
Sets the color chart type for MCC detection.
- Parameters
-
chartType | ColorChart enum specifying the type of color chart to detect. |
◆ setDetectionParams()
Python: |
---|
| cv.mcc.CCheckerDetector.setDetectionParams( | params | ) -> | None |
Sets the detection paramaters for mcc.
- Parameters
-
The documentation for this class was generated from the following file: