Check out the tutorial here:
Install pytesseract library
pytesseract- (OCR)Optical Character Recognition
Command : pip install pytesseract
Download and run tesseract-ocr setup file Link :https://github.com/UB-Mannheim/tesseract/wiki
Write and execute the code