[][src]Trait opencv::prelude::MCC_CCheckerDetector

pub trait MCC_CCheckerDetector: AlgorithmTrait {
    pub fn as_raw_MCC_CCheckerDetector(&self) -> *const c_void;
pub fn as_raw_mut_MCC_CCheckerDetector(&mut self) -> *mut c_void; pub fn set_net(&mut self, net: Net) -> Result<bool> { ... }
pub fn process_with_roi(
        &mut self,
        image: &dyn ToInputArray,
        chart_type: MCC_TYPECHART,
        regions_of_interest: &Vector<Rect>,
        nc: i32,
        use_net: bool,
        params: &Ptr<MCC_DetectorParameters>
    ) -> Result<bool> { ... }
pub fn process(
        &mut self,
        image: &dyn ToInputArray,
        chart_type: MCC_TYPECHART,
        nc: i32,
        use_net: bool,
        params: &Ptr<MCC_DetectorParameters>
    ) -> Result<bool> { ... }
pub fn get_best_color_checker(&mut self) -> Result<Ptr<dyn MCC_CChecker>> { ... }
pub fn get_list_color_checker(
        &mut self
    ) -> Result<Vector<Ptr<dyn MCC_CChecker>>> { ... } }

A class to find the positions of the ColorCharts in the image.

Required methods

Loading content...

Provided methods

pub fn set_net(&mut self, net: Net) -> Result<bool>[src]

\brief 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.

\param net the neural network, if the network in empty, then the function will return false. \return true if it was able to set the detector's network, false otherwise.

pub fn process_with_roi(
    &mut self,
    image: &dyn ToInputArray,
    chart_type: MCC_TYPECHART,
    regions_of_interest: &Vector<Rect>,
    nc: i32,
    use_net: bool,
    params: &Ptr<MCC_DetectorParameters>
) -> Result<bool>
[src]

\brief 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() \param image image in color space BGR \param chartType type of the chart to detect \param regionsOfInterest regions of image to look for the chart, if it is empty, charts are looked for in the entire image \param nc number of charts in the image, if you don't know the exact then keeping this number high helps. \param 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. \param params parameters of the detection system. More information about them can be found in the struct DetectorParameters. \return true if atleast one chart is detected otherwise false

C++ default parameters

  • nc: 1
  • use_net: false
  • params: DetectorParameters::create()

pub fn process(
    &mut self,
    image: &dyn ToInputArray,
    chart_type: MCC_TYPECHART,
    nc: i32,
    use_net: bool,
    params: &Ptr<MCC_DetectorParameters>
) -> Result<bool>
[src]

\brief 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() \param image image in color space BGR \param chartType type of the chart to detect \param nc number of charts in the image, if you don't know the exact then keeping this number high helps. \param 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. \param params parameters of the detection system. More information about them can be found in the struct DetectorParameters. \return true if atleast one chart is detected otherwise false

C++ default parameters

  • nc: 1
  • use_net: false
  • params: DetectorParameters::create()

pub fn get_best_color_checker(&mut self) -> Result<Ptr<dyn MCC_CChecker>>[src]

\brief Get the best color checker. By the best it means the one detected with the highest confidence. \return checker A single colorchecker, if atleast one colorchecker was detected, 'nullptr' otherwise.

pub fn get_list_color_checker(
    &mut self
) -> Result<Vector<Ptr<dyn MCC_CChecker>>>
[src]

\brief Get the list of all detected colorcheckers \return checkers vector of colorcheckers

Loading content...

Implementations

impl<'_> dyn MCC_CCheckerDetector + '_[src]

pub fn create() -> Result<Ptr<dyn MCC_CCheckerDetector>>[src]

\brief Returns the implementation of the CCheckerDetector.

Implementors

Loading content...