Python Flask OpenCV License Railway
A Flask-based web application for reading QR codes from images and PDFs.
- Upload and decode QR codes from images (PNG, JPG, JPEG, GIF, BMP, TIFF)
- Batch processing of multiple QR codes
- PDF QR code extraction
- WiFi QR code generation
- RESTful API endpoints
- Clean, responsive web interface
Visit the deployed version at: https://qr-scanner-app-production.up.railway.app/
-
Clone the repository
git clone https://github.com/armanshirzad/qr-reader.git](https://github.com/ArmanShirzad/qrRobust-scanner.git cd qr-reader -
Install dependencies
pip install -r requirements.txt
-
Set up environment variables
cp env.example .env # Edit .env with your configuration -
Run the application
python app.py
-
Open your browser Navigate to
http://localhost:5000
POST /api/decode- Decode QR code from uploaded imagePOST /api/batch- Process multiple QR codesGET /api/docs- API documentation
- Backend: Flask, Python
- QR Processing: zxing-cpp, qrcode
- Image Processing: PIL (Pillow)
- PDF Processing: PyPDF2
- Frontend: HTML, CSS, JavaScript
- Deployment: Railway
├── app.py # Main Flask application
├── templates/ # HTML templates
├── static/ # CSS and JavaScript files
├── uploads/ # Uploaded files directory
├── requirements.txt # Python dependencies
└── railway.json # Railway deployment config
This is a portfolio project. For development features, see the feature/update branch.
MIT License - feel free to use this code for your own projects!