drawChessboardCorners
import { drawChessboardCorners } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Renders the detected chessboard corners.
drawChessboardCorners(image: Mat, patternSize: Size, corners: Mat, patternWasFound: boolean): void;imageInput/output value, modified by the native operation. Destination image. It must be an 8-bit color image.
patternSizeNumber of inner corners per a chessboard row and column (patternSize = cv::Size(points_per_row,points_per_column)).
cornersArray of detected corners, the output of #findChessboardCorners.
patternWasFoundParameter 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.