This is a Streamlit app that allows users to upload an image of a PAN card and detect if there has been any tampering. The app also calculates the structural similarity index (SSIM) between the uploaded image and a reference image to validate the ID.
This project has a wide dataset scope but for the reference of example we have worked on Permanant Account Number issued for indians to verify their identity. The reference image looks like below:
streamlit
numpy
scikit-image==0.18.3
imutils==0.5.4
opencv-python-headless
Pillow==8.3.1
Clone the repository and install the required dependencies using the following commands:
git clone https://github.com/Priyanshu88/Pan-Card-Tampering-Detection-Streamlit-App.git
cd Pan-Card-Tampering-Detection-Streamlit-App
pip install -r requirements.txt
streamlit run app.py
- Open the app in your web browser through the provided link.
- Click on the "Choose an image file" button to upload an image of a PAN card.
- The app will process the image and display the original and processed image side by side.
- If any tampering is detected, the app will highlight the tampered area in red.
- The app will display a message indicating whether tampering was detected or not.
- The app will also display the structural similarity index (SSIM) between the uploaded image and the reference image.
This tool has been deployed using Streamlit
. Learn about streamlit deployment here
. Checkout the notebook repository here
.
This project is licensed under the MIT License - see the LICENSE file for details.
Your Name - @twitter_handle - [email protected]
Project Link: https://github.com/Priyanshu88/Pan-Card-Tampering-Detection-Streamlit-App.git