neodroidvision.utilities.visualisation.bounding_box_visualisation.encode_image_array_as_png_str

neodroidvision.utilities.visualisation.bounding_box_visualisation.encode_image_array_as_png_str(image: <module 'PIL.Image' from '/home/heider/miniconda3/envs/py38/lib/python3.8/site-packages/PIL/Image.py'>) bytes[source]

Encodes a numpy array into a PNG string.

Args: image: a numpy array with shape [height, width, 3].

Returns: PNG encoded image string.