The Robust QR Code Detector is a Python-based tool designed to detect QR codes from images using multiple preprocessing techniques to improve accuracy. It supports batch processing of images in a directory and generates detailed reports on scan results.
- Detects QR codes using multiple preprocessing methods
- Saves detected QR code data in JSON format
- Logs scan statistics, including detection performance per method
- Supports batch processing of images in a directory
- Debug mode for detailed logging and image saving
- Performance tracking with detailed scan summaries
Ensure you have the following dependencies installed before running the script:
pip install opencv-python numpy pyzbar imghdr
Run the script to process all images in the current directory:
python script_v1.py
or
python script_v2.py
To enable debug mode for detailed logs and intermediate image saving, modify the debug
parameter:
detector = RobustQRCodeDetector(debug=True)
- QR Code Detection Results: JSON file containing detected QR codes for each image.
- Scan Summary:
qr_scan_summary.json
with statistics on the scanning process. - Debug Images (if enabled): Preprocessed images stored in
debug_preprocessed/
.
This project is open-source and available under the MIT License.