Project reasons aside, macOS has perfectly capable, local, native OCR that you can access programmatically, without having to install something else.
OCR starts from screenshots though. This only grabs text via accessibility APIs, before rendering or any screenshots.
OCR starts from screenshots though. This only grabs text via accessibility APIs, before rendering or any screenshots.