drawFrameAxes
import { drawFrameAxes } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Draw axes of the world/object coordinate system from pose estimation. See: solvePnP
drawFrameAxes(image: Mat, cameraMatrix: Mat, distCoeffs: Mat, rvec: Mat, tvec: Mat, length: number, thickness: number): void;2 available overloads
drawFrameAxes(image: Mat, cameraMatrix: Mat, distCoeffs: Mat, rvec: Mat, tvec: Mat, length: number): void;drawFrameAxes(image: Mat, cameraMatrix: Mat, distCoeffs: Mat, rvec: Mat, tvec: Mat, length: number, thickness: number): void;imageInput/output value, modified by the native operation. Input/output image. It must have 1 or 3 channels. The number of channels is not altered.
cameraMatrixInput 3x3 floating-point matrix of camera intrinsic parameters.
\cameramatrix{A}distCoeffsInput vector of distortion coefficients
\distcoeffs. If the vector is empty, the zero distortion coefficients are assumed.rvecRotation vector (see
Rodrigues) that, together with tvec, brings points from the model coordinate system to the camera coordinate system.tvecTranslation vector.
lengthLength of the painted axes in the same unit than tvec (usually in meters).
thicknessLine thickness of the painted axes.
This function draws the axes of the world/object coordinate system w.r.t. to the camera frame. OX is drawn in red, OY in green and OZ in blue.
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.