Spaces:
Running
on
Zero
Running
on
Zero
File size: 172 Bytes
a746d34 |
1 2 3 4 5 6 7 |
import pytesseract
from PIL import Image
def ocr_extract_text(image_path):
image = Image.open(image_path)
text = pytesseract.image_to_string(image)
return text |