aruco_generateImageMarker
import { aruco_generateImageMarker } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Generate a canonical marker image
aruco_generateImageMarker(dictionary: aruco_Dictionary, id: number, sidePixels: number, img: Mat, borderBits: number): void;2 available overloads
aruco_generateImageMarker(dictionary: aruco_Dictionary, id: number, sidePixels: number, img: Mat): void;aruco_generateImageMarker(dictionary: aruco_Dictionary, id: number, sidePixels: number, img: Mat, borderBits: number): void;dictionarydictionary of markers indicating the type of markers
ididentifier of the marker that will be returned. It has to be a valid id in the specified dictionary.
sidePixelssize of the image in pixels
imgOutput destination, filled by the native operation. output image with the marker
borderBitswidth of the marker border.
This function returns a marker image in its canonical form (i.e. ready to be printed)
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.