Skip to content

mcc_CChecker

objdetectclassOpenCV 5.0.0
import { mcc_CChecker } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSmcc_CChecker
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits Algorithm.

CChecker

checker object

This class contains the information about the detected checkers,i.e, their
type, the corners of the chart, the color profile, the cost, centers chart,
etc.

Constructors and members

static create

Create a new CChecker object.

create(): mcc_CChecker | null;
Returns

A pointer to the implementation of the CChecker

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

setTarget

Set the target used by this mcc_CChecker object.

setTarget(_target: number): void;
_target

target argument (number).

setBox

Set the box used by this mcc_CChecker object.

setBox(_box: Point2fVector): void;
_box

box argument (Point2fVector).

setChartsRGB

Set the charts rgb used by this mcc_CChecker object.

setChartsRGB(_chartsRGB: Mat): void;
_chartsRGB

charts rgb argument (Mat).

setChartsYCbCr

Set the charts ycb cr used by this mcc_CChecker object.

setChartsYCbCr(_chartsYCbCr: Mat): void;
_chartsYCbCr

charts ycb cr argument (Mat).

setCost

Set the cost used by this mcc_CChecker object.

setCost(_cost: number): void;
_cost

cost argument (number).

setCenter

Set the center used by this mcc_CChecker object.

setCenter(_center: Point2f): void;
_center

center argument (Point2f).

getTarget

Return the target configured on this mcc_CChecker object.

getTarget(): number;
Returns

The number result.

getBox

Return the box configured on this mcc_CChecker object.

getBox(): Point2fVector;
Returns

The Point2fVector result. Release returned native handles with using or delete(), including handles nested in results.

getColorCharts

Computes and returns the coordinates of the central parts of the charts modules.

This method computes transformation matrix from the checkers's coordinates (CChecker::getBox()) and find by this the coordinates of the central parts of the charts modules. It is used in CCheckerDetector::draw() and in ChartsRGB calculation.

getColorCharts(): Point2fVector;
Returns

The Point2fVector result. Release returned native handles with using or delete(), including handles nested in results.

getChartsRGB

Return the charts rgb configured on this mcc_CChecker object.

getChartsRGB(getStats: boolean): Mat;
2 available overloads
getChartsRGB(): Mat;
getChartsRGB(getStats: boolean): Mat;
getStats

get stats argument (boolean).

Returns

The Mat result. Release returned native handles with using or delete(), including handles nested in results.

getChartsYCbCr

Return the charts ycb cr configured on this mcc_CChecker object.

getChartsYCbCr(): Mat;
Returns

The Mat result. Release returned native handles with using or delete(), including handles nested in results.

getCost

Return the cost configured on this mcc_CChecker object.

getCost(): number;
Returns

The number result.

getCenter

Return the center configured on this mcc_CChecker object.

getCenter(): Point2f;
Returns

The Point2f result.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.