hammerspoon2-docs
    Preparing search index...

    Namespace ocr

    Recognize text in images using Apple's Vision framework. hs.ocr provides access to on-device text recognition without requiring network access or any third-party dependencies. Pass a file path to recognizeText() and receive back an HSOCRResult containing the full recognized text and individual per-region observations with confidence scores and normalized bounding boxes.

    Functions

    recognizeText
    supportedLanguages