Ensure you have the following dependencies installed:
image
numpy
pillow
- To convert image to json file, run convert_to_json("path_to_image"). The image should be in .png format and square.
- To convert json to image, run vector_to_image("path_to_json"). The array should be size 3 * n * n, where n*n is the size of future image.