Created
July 26, 2020 16:46
-
-
Save vaibhavgehani/8b9bc613b7b107def0974398fa1f383b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try: | |
| from PIL import Image | |
| except ImportError: | |
| import Image | |
| import pytesseract | |
| def ocr_extraction(filename): | |
| pytesseract.pytesseract.tesseract_cmd = r'C:/Users/intel/AppData/Local/Tesseract-OCR/tesseract.exe' | |
| text=pytesseract.image_to_string(Image.open(filename)) | |
| return(text) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment