Using PyTessaract to create OCR (Optical Character Recognition) to extract text from an image file in Python
- TKinter
- PyTessaract
- OpenCV
for taking Input of an image from the user
pip install tk
to recognize text from the image
pip install pytesseract
to read an image and perform certain image-processing techniques
pip install opencv-python
Important
- Run the file "main.py" in the initial directory
- Enter the path for the image.
- Open the "extracted_text.txt" file created after running the program.
Note
- Remember to perform the initial setup before test-driving
- You can also directly run "test2.py" or "test3.py" files they have different preprocessing applied to them.