Skip to content

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.

License

Notifications You must be signed in to change notification settings

Priyanshu88/Pan-Card-Tampering-Detection-Streamlit-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pan Card Tampering Detection Streamlit App

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.


📔 Table of Contents

📶 Dataset

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:

🧰 Dependecies

streamlit

numpy

scikit-image==0.18.3

imutils==0.5.4

opencv-python-headless

Pillow==8.3.1

⚙️ Installation

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

⏯️ Usage

  1. Open the app in your web browser through the provided link.
  2. Click on the "Choose an image file" button to upload an image of a PAN card.
  3. The app will process the image and display the original and processed image side by side.
  4. If any tampering is detected, the app will highlight the tampered area in red.
  5. The app will display a message indicating whether tampering was detected or not.
  6. The app will also display the structural similarity index (SSIM) between the uploaded image and the reference image.

🚩 Deployment and Notebook

This tool has been deployed using Streamlit. Learn about streamlit deployment here. Checkout the notebook repository here.

⚖️ License

This project is licensed under the MIT License - see the LICENSE file for details.

🤝 Contact

Your Name - @twitter_handle - [email protected]

Project Link: https://github.com/Priyanshu88/Pan-Card-Tampering-Detection-Streamlit-App.git



Don't forget to leave a star ⭐️

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages