Skip to content

aruco_generateImageMarker

objdetectfunctionOpenCV 5.0.0
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;
dictionary

dictionary of markers indicating the type of markers

id

identifier of the marker that will be returned. It has to be a valid id in the specified dictionary.

sidePixels

size of the image in pixels

img

Output destination, filled by the native operation. output image with the marker

borderBits

width 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.