Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 555 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 555 Bytes

This is a simple OCR script which uses tesseract ocr internally to extract text.

Dependencies installation:

> sudo dnf install -y tesseract    # rhel based systems 
  sudo apt install tesseract-ocr   # debian based systems 
> pip3 install --user -r requirement.txt

Usage:

> python3 src/OCR.py -f /<your image path>/image.png

or

# if using as a module
from src import OCR
obj = OCR() # create object of ocr class
obj.my_ocr(image_path) # pass image path it can pe string or list of image paths

Happy Coding :)