OCR: read a text from an image or a photo

This code will make python read the text in an image. You must install pytesseract

import pytesseract

pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract'
print(pytesseract.image_to_string(r'01.png'))