Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
Q

qrscan

> 编程语言
Open source

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

187 stars0 likes1 views
WebsiteGitHub

About

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

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

Scoop

powershell
scoop bucket add extras
scoop install qrscan

Cargo

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

Nix

Nixpkgs
bash
nix-env -f https://github.com/NixOS/nixpkgs/tarball/master -iA qrscan
Flake
bash
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

bash
qrscan --preview

Scan a given image file

bash
qrscan path/to/file

# Or read from stdin

cat /path/to/file | qrscan -

Print the QR code on the terminal

bash
qrscan  --qr --no-content

Also print QR code metadata

bash
qrscan  --metadata

Export the QR code as image files

bash
qrscan  --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.

bash
import png:- | qrscan -

Introductions & Reviews

  • Scan QR codes right from your Linux Terminal ~ The Lunduke Journal

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustcameracommand-lineconsole-applicationqrcode

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言