Image
- class py_doc.Image(name, bytes=None)[source]
A class for representing an image. Takes in a name and a image. If the image is not provided, the name is used to load the image.
- Parameters:
name (str) – The name of the image.
- draw_classifications(output_file=None)[source]
Draw the bounding boxes on the image. Contains the option to save the image to a file, otherwise it will just return the image.
- Parameters:
file (str) – The output file to save the image to.
- Returns:
If the file is provided, it will return a boolean based on the success, otherwise it will return the image.
- Return type:
bool or numpy.ndarray