Coder Social home page Coder Social logo

sayanarijit / qrscan Goto Github PK

View Code? Open in Web Editor NEW
149.0 6.0 7.0 112 KB

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

License: MIT License

Rust 86.05% Nix 13.95%
camera command-line console-application qrcode qrcode-scanner terminal

qrscan's Introduction

qrscan

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

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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.