Fiducial.create#

classmethod Fiducial.create(dict: str, id: int, sidelength: int) Image[source]#

Create a fiducial marker image

Parameters:
  • dict (str) – marker type, eg. ‘6x6_1000’

  • id (int) – marker id

  • sidelength (int) – side length of the marker in pixels

Returns:

uint8 marker image

Return type:

Image

The image is a square of size sidelength x sidelength black (value 0) pixels. The id pattern comprises white pixels (value 255) contained within the black square. There is no white border. The pattern is generated using the OpenCV library.

Seealso:

generateImageMarker