loupe

Computer vision from the command line, using native OS APIs. Face detection, OCR, barcode and QR scanning, image classification, facial landmarks, body and hand pose estimation. No external services, no dependencies.

loupe faces photo.jpg                          # detect faces
loupe faces --blur -o blurred.jpg photo.jpg    # blur faces
loupe ocr screenshot.png                       # extract text
loupe barcode label.png                        # scan barcodes
loupe classify photo.jpg                       # scene/object labels

Built in Zig, wrapping the macOS Vision framework and Windows WinRT APIs. All commands support --json. Also builds as a C-compatible shared library.

Install

# macOS / Linux
brew install georgemandis/tap/loupe

# Windows
scoop bucket add georgemandis https://github.com/georgemandis/scoop-bucket
scoop install loupe

Read More

Recipes