Scan a QR code in the terminal using a given (PNG or JPEG) image.
qrscan.mp4
Download the appropriate binary from the latest release.
This requires pkg-config, libpng, and libjpeg.
sudo apt install --no-install-recommends -y pkg-config libpng-dev libjpeg-dev
git clone --recurse-submodules https://github.com/redraiment/qrscan.git
cd qrscan
make
sudo make install
This requires pkg-config, libpng, and libjpeg.
brew install pkg-config libpng libjpeg
git clone --recurse-submodules https://github.com/redraiment/qrscan.git
cd qrscan
make
sudo make install
qrscan [OPTIONS] [PNG|JPG|-]
--png
,--jpg
: the format of the input file, inferred from the extension by default.-c
,--count
: suppress normal output, instead print a count of QR-Code.-n NUM
,--index NUM
: Output the NUM QR-Code value only.
-v
,--version
: show the version and exit.-h
,--help
: show help message and exit.
- Read from image file:
qrscan image.png
- Read from stdin:
cat image.jpg | qrscan --jpg -
- Count QR-Code in image:
qrscan -c image.png
- Read the second QR-Code in image:
qrscan -2 image.png
# Or
qrscan -n 2 image.png
qrscan
is open-source software, released under the MIT License.
Feel free to explore, learn, and extend to suit your needs.