| Crates.io | qr-tester |
| lib.rs | qr-tester |
| version | 0.5.6 |
| created_at | 2025-11-18 05:02:06.904321+00 |
| updated_at | 2025-11-19 18:06:01.1899+00 |
| description | A CLI tool to scan QR codes from images and benchmark performance |
| homepage | https://github.com/kookyleo/qr-tester |
| repository | https://github.com/kookyleo/qr-tester |
| max_upload_size | |
| id | 1937906 |
| size | 122,513 |
A CLI tool for scanning QR codes from images and benchmarking performance.
cargo install qr-tester
cargo install --git https://github.com/kookyleo/qr-tester.git
Or clone and build:
git clone https://github.com/kookyleo/qr-tester.git
cd qr-tester
cargo build --release
Scan a single image file:
qr-tester image.png
Scan an entire directory:
qr-tester /path/to/images/
-v, --verbose: Verbose output mode-j, --json: Output results in JSON format-d, --debug: Enable debug logging-h, --help: Display help information-V, --version: Display version informationqr-tester -v /path/to/images/
qr-tester -j qrcode.png
qr-tester -d -v /path/to/images/
The tool displays results in a table format:
QR Code Detection Performance Test Results
======================================================================================
File Path QRs Grayscale Prepare Detect Grids Decode QR Total
--------------------------------------------------------------------------------------
/path/to/qrcode1.png 1 5.23ms 10.45ms 50.12ms 8.34ms 74.14ms
/path/to/qrcode2.jpg 2 6.78ms 12.67ms 65.23ms 12.45ms 97.13ms
--------------------------------------------------------------------------------------
Stats: Success: 2 Failed: 0 With QR: 2 Total QRs: 3 Avg Time: 85.64ms
After scanning, the tool displays:
clap: Command-line argument parsingimage: Image loading and processingrqrr: High-performance pure Rust QR code recognitionwalkdir: Directory traversalanyhow: Error handlingcolored: Colorful terminal outputserde/serde_json: JSON serializationApache-2.0