Skip to content

drawChessboardCorners

objdetectfunctionOpenCV 5.0.0
import { drawChessboardCorners } from '@banou/opencv-wasm'

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

ARGUMENTSimage, patternSize, corners, patternWasFound
FUNCTIONdrawChessboardCorners
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Renders the detected chessboard corners.

drawChessboardCorners(image: Mat, patternSize: Size, corners: Mat, patternWasFound: boolean): void;
image

Input/output value, modified by the native operation. Destination image. It must be an 8-bit color image.

patternSize

Number of inner corners per a chessboard row and column (patternSize = cv::Size(points_per_row,points_per_column)).

corners

Array of detected corners, the output of #findChessboardCorners.

patternWasFound

Parameter indicating whether the complete board was found or not. The return value of #findChessboardCorners should be passed here.

The function draws individual chessboard corners detected either as red circles if the board was not found, or as colored corners connected with lines if the board was found.

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.