PAN Card Detection is a web application that analyzes uploaded PAN images, identifies tampering or inconsistencies, and flags suspicious regions. It helps automate KYC verification, reduce fraud, and ensure secure identity verification workflows.
This Flask-based application uses computer vision techniques to:
- Detect and validate PAN card images
- Identify tampering, forgery, or quality issues
- Highlight suspicious regions in the card
- Assist in quick, reliable document verification for security and compliance
-
Upload a PAN Card Image
Click the upload button and select a PAN card photo (JPG/PNG) -
View Detection Results
The app analyzes the image and displays:- Original card image
- Detected tampering regions (highlighted)
- Confidence score
- Verification status
-
Review Findings
Check authenticity indicators and decide whether to accept or reject the card
- Python 3.8 or higher
- pip (Python package manager)
-git clone https://github.com/rivu-intel45/pan-card-authentication-app.git
-pip install -r requirements.txt
The app will start on http://localhost:5000
- Flask - Web framework
- OpenCV - Image processing & computer vision
- NumPy - Numerical computations
- Pillow - Image manipulation
- Scikit-Image - Advanced image analysis
-pan-card-detection/ โโโ app.py # Main Flask application โโโ config.py # Configuration settings โโโ pan_card_detection.py # Core detection logic โโโ requirements.txt # Python dependencies โโโ templates/ # HTML templates โโโ static/ # CSS, JS, images โโโ README.md # This file
โ
Image Upload & Validation
โ
Tampering Detection
โ
Region Highlighting
โ
Confidence Scoring
โ
Real-time Processing
โ
User-friendly Interface
- QR code verification integration
- PAN 2.0 database verification
Contributions are welcome! Feel free to fork, submit issues, or make pull requests.
Happy verifying! ๐