aruco_extendDictionary
import { aruco_extendDictionary } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Extend base dictionary by new nMarkers
aruco_extendDictionary(nMarkers: number, markerSize: number, baseDictionary: aruco_Dictionary, randomSeed: number): aruco_Dictionary;3 available overloads
aruco_extendDictionary(nMarkers: number, markerSize: number): aruco_Dictionary;aruco_extendDictionary(nMarkers: number, markerSize: number, baseDictionary: aruco_Dictionary): aruco_Dictionary;aruco_extendDictionary(nMarkers: number, markerSize: number, baseDictionary: aruco_Dictionary, randomSeed: number): aruco_Dictionary;nMarkersnumber of markers in the dictionary
markerSizenumber of bits per dimension of each markers
baseDictionaryInclude the markers in this dictionary at the beginning (optional)
randomSeeda user supplied seed for theRNG()
This function creates a new dictionary composed by nMarkers markers and each markers composed by markerSize x markerSize bits. If baseDictionary is provided, its markers are directly included and the rest are generated based on them. If the size of baseDictionary is higher than nMarkers, only the first nMarkers in baseDictionary are taken and no new marker is added.
The aruco_Dictionary 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.