Tesseract Ocr Windows -

img = Image.open('test.png') text = pytesseract.image_to_string(img) print(text)

Open and run:

Also install for image handling: