navigate.tools.image.text_array
- navigate.tools.image.text_array(text: str, offset: tuple = (0, 0))
Create a binary array from a piece of text
Use Default font to avoid OS related errors.
- Parameters:
text (str) – Text to convert
offset (tuple) – (x,y) offset from upper left of image
font_size (int) – Size of font in pixels
- Returns:
Binary array of text
- Return type:
np.array