This is an optical character recognition task. That uses open cv and pytesseract libraries to generate a word file of a text document.
pip install opencv-python
- Download tesseract exe from here
- Install this exe in C:\Program Files (x86)\Tesseract- OCR
pip install tesseract