Spaces:
Running
on
Zero
Running
on
Zero
File size: 172 Bytes
0f43f8a |
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 |