Untitled
from PIL import Image import pytesseract # Load the image file image_path = "/mnt/data/9-18 (1).jpg" image = Image.open(image_path) # Use OCR to extract text from the image extracted_text = pytesseract.image_to_string(image) # Display the extracted text extracted_text
Leave a Comment