Loading and Saving Images in Python
Simple ways to load and save images using PIL, OpenCV, and Matplotib
Published in
3 min readMay 26, 2020
Prerequisites:
Install PIL, OpenCV, and matplotlib libraries.
Loading image using PIL in a new window
Show() loads the image in a new window
from PIL import Image
img_PIL = Image.open(r'\dogs-v-cats\dog.1.jpg')
img_PIL.show()