images module¶
-
images.
get_image_as_b64
(uuid, filetype='png')¶ Gets b64 image string by uuid
Parameters: - uuid – uuid of image
- filetype – file type to output, options are jpeg, png, or gif
Returns: b64 string of image
-
images.
get_image_by_uuid
(uuid)¶ Retrieves uint array of image by its uuid
Parameters: uuid – UUID of image as string Returns: grayscale image array
-
images.
save_image
(img_str)¶ Converts image string to binary and saves onto drive
Parameters: img_str – base64 image string Returns: uuid of image
-
images.
save_image_from_arr
(img_arr)¶ Converts uint array to png file (intermediary format stored on server)
Parameters: img_arr – uint array of image Returns: uuid of image