Scan a QR code in the terminal using the system camera or a given image.
qrscan.mp4
scoop bucket add extras
scoop install qrscan# On Ubuntu, first install libclang-dev (apt-get install libclang-dev)
cargo install --locked --force qrscannix-env -f https://github.com/NixOS/nixpkgs/tarball/master -iA qrscannix profile install github:sayanarijit/qrscanDownload the appropriate binary from the latest release.
Scan via the system camera with terminal preview
qrscan --previewScan a given image file
qrscan path/to/file
# Or read from stdin
cat /path/to/file | qrscan -Print the QR code on the terminal
qrscan <path/to/file> --qr --no-contentAlso print QR code metadata
qrscan <path/to/file> --metadataExport the QR code as image files
qrscan <path/to/file> --qr \
--svg path/to/out.svg \
--png path/to/out.png \
--jpeg path/to/out.jpeg \
--ascii path/to/out.asciiCapture a screenshot of a selected area using ImageMagic and scan the QR code.
import png:- | qrscan -