Macocr
macOS OCR CLI for https://developer.apple.com/documentation/vision/vnrecognizetextrequest
Install / Use
/learn @ughe/MacocrREADME
macocr
OCR command line utility for macOS 10.15+. Utilizes the VNRecognizeTextRequest API.
Build and Run
swift build
swift run
If -c release is not used, then the executable may be located at: ./.build/debug/macocr
Python Build and Run
pip install git+https://github.com/ughe/macocr.git
# or locally: cd macocr && pip install -e .
usage:
from macocr_py import macocr
result_json = macocr("./input.png")
