Recall.Ai / utils /ocr.py
Omkar1872's picture
Upload 5 files
169c9db verified
raw
history blame contribute delete
180 Bytes
import pytesseract
import cv2
def extract_text_from_image(image_path):
img = cv2.imread(image_path)
text = pytesseract.image_to_string(img)
return text.strip()