Skip to content

Instantly share code, notes, and snippets.

@Downes
Created September 25, 2025 19:44
Show Gist options
  • Select an option

  • Save Downes/619be8953c3ad16ddffb9a83c4843901 to your computer and use it in GitHub Desktop.

Select an option

Save Downes/619be8953c3ad16ddffb9a83c4843901 to your computer and use it in GitHub Desktop.
OCR webp with Python
pip install easyocr
Then create ocr.py
import easyocr
reader = easyocr.Reader(['en']) # supports many languages
result = reader.readtext('page1.webp', detail=0)
print("\n".join(result))
(put your webp filename in place of page1.webp )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment