Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Omkar1872
/
Recall.Ai
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
Recall.Ai
/
utils
/
ocr.py
Omkar1872
Upload 5 files
169c9db
verified
5 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
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()