kenken999's picture
fda
0f43f8a
raw
history blame
172 Bytes
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