![]() |
OpenCV
4.6.0
Open Source Computer Vision
|
A class to find the positions of the ColorCharts in the image. More...
#include <opencv2/mcc/checker_detector.hpp>
Public Member Functions | |
virtual Ptr< mcc::CChecker > | getBestColorChecker ()=0 |
Get the best color checker. By the best it means the one detected with the highest confidence. More... | |
virtual std::vector< Ptr< CChecker > > | getListColorChecker ()=0 |
Get the list of all detected colorcheckers. More... | |
virtual bool | process (InputArray image, const TYPECHART chartType, const int nc=1, bool useNet=false, const Ptr< DetectorParameters > ¶ms=DetectorParameters::create())=0 |
Find the ColorCharts in the given image. More... | |
virtual bool | process (InputArray image, const TYPECHART chartType, const std::vector< Rect > ®ionsOfInterest, const int nc=1, bool useNet=false, const Ptr< DetectorParameters > ¶ms=DetectorParameters::create())=0 |
Find the ColorCharts in the given image. More... | |
virtual bool | setNet (dnn::Net net)=0 |
Set the net which will be used to find the approximate bounding boxes for the color charts. More... | |
![]() | |
Algorithm () | |
virtual | ~Algorithm () |
virtual void | clear () |
Clears the algorithm state. More... | |
virtual bool | empty () const |
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. More... | |
virtual String | getDefaultName () const |
virtual void | read (const FileNode &fn) |
Reads algorithm parameters from a file storage. More... | |
virtual void | save (const String &filename) const |
void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
simplified API for language bindings This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
virtual void | write (FileStorage &fs) const |
Stores algorithm parameters in a file storage. More... | |
Static Public Member Functions | |
static Ptr< CCheckerDetector > | create () |
Returns the implementation of the CCheckerDetector. More... | |
![]() | |
template<typename _Tp > | |
static Ptr< _Tp > | load (const String &filename, const String &objname=String()) |
Loads algorithm from the file. More... | |
template<typename _Tp > | |
static Ptr< _Tp > | loadFromString (const String &strModel, const String &objname=String()) |
Loads algorithm from a String. More... | |
template<typename _Tp > | |
static Ptr< _Tp > | read (const FileNode &fn) |
Reads algorithm from the file node. More... | |
Additional Inherited Members | |
![]() | |
void | writeFormat (FileStorage &fs) const |
A class to find the positions of the ColorCharts in the image.
|
static |
Returns the implementation of the CCheckerDetector.
|
pure virtual |
Get the best color checker. By the best it means the one detected with the highest confidence.
|
pure virtual |
Get the list of all detected colorcheckers.
|
pure virtual |
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()
image | image in color space BGR |
chartType | type of the chart to detect |
nc | number of charts in the image, if you don't know the exact then keeping this number high helps. |
useNet | if it is true the network provided using the setNet() is used for preliminary search for regions where chart could be present, inside the regionsOfInterest provied. |
params | parameters of the detection system. More information about them can be found in the struct DetectorParameters. |
|
pure virtual |
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()
image | image in color space BGR |
chartType | type of the chart to detect |
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. |
useNet | if it is true the network provided using the setNet() is used for preliminary search for regions where chart could be present, inside the regionsOfInterest provied. |
params | parameters of the detection system. More information about them can be found in the struct DetectorParameters. |
|
pure virtual |
Set the net which will be used to find the approximate bounding boxes for the color charts.
It is not necessary to use this, but this usually results in better detection rate.
net | the neural network, if the network in empty, then the function will return false. |