Bug reports, improvements, and ideas are welcome.
git clone https://github.com/gabrimatic/ocr-capture.git
cd ocr-capture
swiftc -O -o ocr-capture ocr-capture.swift -framework Cocoa -framework Visionocr-capture/
├── ocr-capture.swift # Single-file source
├── setup.sh # Install script (compile + skhd + hotkey)
├── README.md
├── LICENSE
├── CHANGELOG.md
├── CONTRIBUTING.md
├── CODE_OF_CONDUCT.md
└── SECURITY.md
Run the binary directly:
./ocr-captureSelect a screen region. Check the clipboard (pbpaste) for the extracted text.
- Code compiles cleanly with
swiftc -O - Binary runs and produces correct clipboard output
- No credentials or personal data in any file
- PR description explains what changed and why
Include:
- macOS version
- Xcode/Swift version (
swift --version) - Full terminal output including any error
- Steps to reproduce
- What you expected vs. what happened