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
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/6a6106c3-4d5d-48b1-a0e8-30d1c49dc850.jpg'
|
|
img = Image.open(img_path)
|
|
text = pytesseract.image_to_string(img, lang='eng')
|
|
print(text)
|
|
|