Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
try:
from PIL import Image
except ImportError:
import Image
import pytesseract
def ocr_extraction(filename):
"""
This function will handle the core OCR processing of images.
"""
text = pytesseract.image_to_string(Image.open(filename))
return text
@suryak-cs
Copy link
Author

suryak-cs commented Mar 18, 2021

OCR Extraction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment