Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.
/ PogoOCR Public archive

A Python tool for running OCR on Pokemon Screenshots using Google Cloud Vision

License

Notifications You must be signed in to change notification settings

TrainerDex/PogoOCR

Repository files navigation

Support Server PyPi version Maintenance wakatime codecov

A Python tool for running OCR on Pokémon Screenshots using Google Cloud Vision

Usage:

import PogoOCR
from google.oauth2 import service_account

credentials: service_account.Credentials

client = PogoOCR.OCRClient(credentials=credentials)
screenshot = PogoOCR.Screenshot.from_url(
    url="...",
    klass=PogoOCR.ScreenshotClass.ACTIVITY_VIEW,
)

request = client.open_request(screenshot, PogoOCR.Language.ENGLISH)

result = client.process_ocr(request)