File size: 240 Bytes
7bdc074
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
from PIL import Image
import pytesseract

# Load image and run OCR
image = Image.open("C:\\Users\\Acer\\Downloads\\ChatGPT Image May 3, 2025, 01_11_31 PM.png")
text = pytesseract.image_to_string(image)

print("Extracted Text:")
print(text)