Encode images in form of text and decode again!!
first import the package on your terminal with pip:
pip3 install im2txt
next you import the module:
now you just need to encode the image of your preference:
you will receive a
This file will have the pixel value of all pixels on the image.
To decode the .txt file back to an image we use:
you will receive the encoded image back again in form of .png!
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.