Spaces:
Sleeping
Sleeping
| from PIL import Image | |
| import pytesseract | |
| def extract_screen_text(image_file) -> str: | |
| img = Image.open(image_file) | |
| return pytesseract.image_to_string(img) | |