Scan a QR code in the terminal using the system camera or a given image.
https://user-images.githubusercontent.com/11632726/178779071-ad5ca7da-0fc3-48c1-b725-a9834db39134.mp4
powershell
scoop bucket add extras
scoop install qrscan
```bash
cargo install --locked --force qrscan ```
bash
nix profile install github:sayanarijit/qrscan
Download the appropriate binary from the latest release.
Scan via the system camera with terminal preview
bash
qrscan --preview
Scan a given image file
```bash qrscan path/to/file
cat /path/to/file | qrscan - ```
Print the QR code on the terminal
bash
qrscan <path/to/file> --qr --no-content
Also print QR code metadata
bash
qrscan <path/to/file> --metadata
Export the QR code as image files
bash
qrscan <path/to/file> --qr \
--svg path/to/out.svg \
--png path/to/out.png \
--jpeg path/to/out.jpeg \
--ascii path/to/out.ascii
Capture a screenshot of a selected area using ImageMagic and scan the QR code.
bash
import png:- | qrscan -