qr-decoder-cli

command module
v0.0.0-...-e3e7796 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2021 License: GPL-3.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

qr-decoder-cli

Simple CLI tool for decoding qrcodes from jpeg,png images. Uses https://github.com/liyue201/goqr library.

Install

Depends upon https://github.com/liyue201/goqr

So install it first via go get github.com/liyue201/goqr. Then you can simply run the script file directly.

Usage
1. Single file

go run qr-decoder-cli/main.go --input=</path/to/image.jpg>

2. Multiple files via GLOB pattern

Both are valid

go run qr-decoder-cli/main.go --input="</path/to/*.png>"

or

go run qr-decoder-cli/main.go --input "</path/to/*.png>"

3. If decoded data is a url , use --status to check the HTTP Status

go run qr-decoder-cli/main.go --input=</path/to/image.jpg> --status

go run qr-decoder-cli/main.go --input="</path/to/*.jpg>" --status

Help

-i, --input string
Image file path. Can also be a glob pattern like /home/user/*.jpeg

-status, --status
Perform an HTTP GET request to the decoded url

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址