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: 0

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