drawMarker
import { drawMarker } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ADDING A SET OF PREDEFINED MARKERS WHICH COULD BE USED TO HIGHLIGHT POSITIONS IN AN IMAGE
Draws a marker on a predefined position in an image.
The function cv::drawMarker draws a marker on a given position in the image. For the moment several marker types are supported, see #MarkerTypes for more information.
drawMarker(img: Mat, position: Point, color: Scalar, markerType: number, markerSize: number, thickness: number, line_type: number): void;5 available overloads
drawMarker(img: Mat, position: Point, color: Scalar): void;drawMarker(img: Mat, position: Point, color: Scalar, markerType: number): void;drawMarker(img: Mat, position: Point, color: Scalar, markerType: number, markerSize: number): void;drawMarker(img: Mat, position: Point, color: Scalar, markerType: number, markerSize: number, thickness: number): void;drawMarker(img: Mat, position: Point, color: Scalar, markerType: number, markerSize: number, thickness: number, line_type: number): void;imgInput/output value, modified by the native operation. Image.
positionThe point where the crosshair is positioned.
colorLine color.
markerTypeThe specific type of marker you want to use, see #MarkerTypes
markerSizeThe length of the marker axis [default = 20 pixels]
thicknessLine thickness.
line_typeType of the line, See #LineTypes
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.