app.backend.visualization.helpers package

Submodules

app.backend.visualization.helpers.get_and_process_image module

The module to obtain an image by the URL and process it.

app.backend.visualization.helpers.get_and_process_image.get_and_process_image(url: str) _io.BytesIO

Get the image by the URL, then crop it into a circle using numpy and Pillow, and return cropped version of the image.

Args:

url: the URL to the image we need to get and process.

Returns:

io.BytesIO: the io.BytesIO object that contains processed image.

Module contents

The helpers for the visualization module.