A beginner-friendly Python script that scans and decodes QR codes from an image.
- Reads QR codes from image files (PNG, JPG, etc.)
- Prints the decoded text or URL to the terminal
- Uses simple, widely available libraries (
opencv-python,pyzbar,Pillow)
1οΈβ£ Install dependencies pip install -r requirements.txt
2οΈβ£ Run the script python qr_scanner.py sample_images/test_qr.png If the image contains a valid QR code, youβll see: β QR Code Detected: Hello Hacktoberfest 2025!
π Folder structure qr_code_scanner/ β βββ qr_scanner.py # main script βββ README.md # usage instructions βββ requirements.txt # dependencies βββ sample_images/ # test images π§ Notes Make sure your image path is correct while testing in CLI. Works with multiple QR codes in one image. Tested with Python 3.9+.
π― Author Dhanashree Petare Contribution for Hacktoberfest 2025 under issue #4 (QR Code Scanner)