aruco_GridBoard
import { aruco_GridBoard } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits aruco_Board.
Planar board with grid arrangement of markers
More common type of board. All markers are placed in the same plane in a grid arrangement. The board image can be drawn using generateImage() method.
Constructors and members
static new
GridBoard constructor
new(size: Size, markerLength: number, markerSeparation: number, dictionary: aruco_Dictionary, ids: Mat): aruco_GridBoard;2 available overloads
new(size: Size, markerLength: number, markerSeparation: number, dictionary: aruco_Dictionary): aruco_GridBoard;new(size: Size, markerLength: number, markerSeparation: number, dictionary: aruco_Dictionary, ids: Mat): aruco_GridBoard;sizenumber of markers in x and y directions
markerLengthmarker side length (normally in meters)
markerSeparationseparation between two markers (same unit as markerLength)
dictionarydictionary of markers indicating the type of markers
idsset of marker ids in dictionary to use on board.
The aruco_GridBoard result.
clone
Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.
clone(): this;The this result.
getGridSize
Return the grid size configured on this aruco_GridBoard object.
getGridSize(): Size;The Size result.
getMarkerLength
Return the marker length configured on this aruco_GridBoard object.
getMarkerLength(): number;The number result.
getMarkerSeparation
Return the marker separation configured on this aruco_GridBoard object.
getMarkerSeparation(): number;The number 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.