#qrcode #camera-image #scan #scanner #reader

app qrscan

Scan a QR code in the terminal using the system camera or a given image

10 releases

0.1.9 Jun 29, 2023
0.1.8 Jun 29, 2023
0.1.7 Sep 22, 2022
0.1.6 Jul 14, 2022

#605 in Images

Download history 24/week @ 2024-09-20 4/week @ 2024-10-04 1/week @ 2024-10-11

72 downloads per month

MIT and LGPL-3.0-or-later

24KB
390 lines

qrscan

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

Install

Packaging status

Scoop

scoop bucket add extras
scoop install qrscan

Cargo

# On Ubuntu, first install libclang-dev (apt-get install libclang-dev)
cargo install --locked --force qrscan

Nix Flake

nix profile install github:sayanarijit/qrscan

Pre-built binaries

Download the appropriate binary from the latest release.

Usage

Scan via the system camera with terminal preview

qrscan --preview

Scan 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-content

Also print QR code metadata

qrscan <path/to/file> --metadata

Export 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.ascii

Some Usage Examples

Capture a screenshot of a selected area using ImageMagic and scan the QR code.

import png:- | qrscan -

Introductions & Reviews

Dependencies

~15–25MB
~297K SLoC