I am using pytesseract in the below code:
def fnd(): for fname in list: x = None x = np.array([np.array(PIL.Image.open(fname))])
Pytesseract writes and reads every image you pass it. This is unnecessary when running 35 images. Instead, you should use a python tesseract API interface. This will be significantly faster.