You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

10 lines
333 B

#!/usr/bin/env python3
import sys
sys.path.insert(0, '/root/.openclaw/workspace/venv/lib/python3.12/site-packages')
import pytesseract
from PIL import Image
img_path = '/root/.openclaw/media/inbound/2201db38-c852-4e06-baae-40806cc8d836.jpg'
img = Image.open(img_path)
text = pytesseract.image_to_string(img, lang='eng')
print(text)