picture read text using python geeksforgeeks code example
Example 1: getting image from path python
from PIL import Image
import glob
image_list = []
for filename in glob.glob('yourpath/*.gif'): #assuming gif
im=Image.open(filename)
image_list.append(im)
Example 2: how to write a script to display an image in python
>>> from PIL import Image
>>> img = Image.open('test.png')
>>> img.show()