This is a simple application to detect tampering of Pan Cards using Structural Similarity Index Measure (SSIM). It is used to measure similarity of two images. A Pan Card is tampered if it's SSIM value with original Pan Card template is low.
Original Pan Card template: https://www.thestatesman.com/wp-content/uploads/2019/07/pan-card.jpg
Tampered Pan Card Sample: https://assets1.cleartax-cdn.com/s/img/20170526124335/Pan4.png
See the implementation details with IPython Notebook
To use the app on local machine, open Anaconda Prompt and run the following commands:
- Clone the Repository
git clone https://github.com/Pranav-Nagpure/Pan-Card-Tampering-Detection.git
- Change Working Directory
cd Pan-Card-Tampering-Detection
- If needed create a Virtual Environment and activate it
conda create -n environment_name python=3.10
conda activate environment_name
- Install the requirements
python -m pip install -r requirements.txt
- Run the App
python app.py
-
Open the URL generated in a browser to use the App
-
You can use images in the sample_images folder