Fiducial.draw#
- Fiducial.draw(image: Image, length: int = 100, thick: int = 2) None[source][source]#
Draw marker coordinate frame into image
- Parameters:
image (
Image) – image with BGR color orderlength (int, optional) – axis length in pixels, defaults to 100
thick (int, optional) – axis thickness in pixels, defaults to 2
- Raises:
ValueError – image must have BGR color order, and C-contiguous pixel data
Draws a coordinate frame into the image representing the pose of the marker. The x-, y- and z-axes are drawn as red, green and blue line segments.
Warning
The image is drawn into in place. OpenCV requires that its pixel data is C-contiguous, otherwise a
ValueErroris raised. SeeImagefor how to create such an image.