Skip to content

aruco_extendDictionary

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

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

ARGUMENTSnMarkers, markerSize, baseDictionary, randomSeed
FUNCTIONaruco_extendDictionary
RETURN TYPEaruco_Dictionary
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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;
nMarkers

number of markers in the dictionary

markerSize

number of bits per dimension of each markers

baseDictionary

Include the markers in this dictionary at the beginning (optional)

randomSeed

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

Returns

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.