Skip to content

A simple tool to decode QR codes of Swiss QR bills

License

Notifications You must be signed in to change notification settings

smartive/swiss-qr-bill-decoder

Repository files navigation

Swiss QR bill decoder

This project contains a tool to decode the Swiss QR bill. It reads the QR code from an image or a pdf and decodes the data json based on the Swiss QR bill specification.

It contains a lib crate that can be used as a library and a bin crate that can be used as a command line tool.

Warning

Users of this project do so at their own risk. There are no guarantees of any kind regarding the reliability, functionality, or security of this tool. The authors are not responsible for any damage or losses incurred from using this software.

Usage

As a library

See cli/src/main.rs for an example on how to use the library.

As a command line tool

To run the tool in debug mode, use the following command:

cargo run -- <path_to_image>

For additional options, run:

cargo run -- --help

To build a release version, use the following command:

cargo build --release

The binary will be located at target/release/swiss-qr-bill-decoder and can be run as follows:

./target/release/swiss-qr-bill-decoder <path_to_image>

Run tests

cargo test