Pan Card Temparing Detection Project
Pan Card Temparing Detection Project
Pan Card Temparing Detection Project
• For this project we will calculate structural similarity of original PAN card and the PAN card
uploaded by user.
STEPS
• Loading original and user provided images.
• Here, we checked the format and size of the original and tampered image.
Tampered Image
NEED OF EDGE DETECTION
Edge detection is an image processing
technique for finding the boundaries of objects
within images. It works by detecting
discontinuities in brightness. Edge detection is
used for image segmentation and data
extraction in areas such as image processing,
computer vision, and machine vision.
WE CONVERT THEM INTO
GRAYSCALE
Converting images into grayscale is very much beneficial in accuracy of image processing, because in
image processing many applications doesn't help us in identifying the important, edges of the coloured
images also coloured images are bit complex to understand by machine because they have 3 channel while
grayscale has only 1 channel.
INFERENCE :
Here is another very interactive way to show the
contours in terms of heated threshold i.e. by finding
the heated zone (text/image zone) and normal
zone(without text/image).
Threshold Image
SUMMARY
Finding out structural similarity of the images helped us in finding the difference or similarity in the
shape of the images. Similarly, finding out the threshold and contours based on those threshold for the
images converted into grayscale binary also helped us in shape analysis and recognition.
As, our SSIM is ~31.2% we can say that the image user provided is fake or tampered.
Finally we visualized the differences and similarities between the images using by displaying the
images with contours, difference and threshold.
CONCLUSION
This project can be used in different organizations where customers or users need to provide any kind
of id in order to get themselves verified. The organization can use this project to find out whether the ID
is original or fake. Similarly this can be used for any type of ID like Aadhar, voter id, etc.
FUTURE SCOPE
We going to enhance the detection of digital signature and digital watermarking further in our project
and also linked it with government database which will make it more reliable because of more training
and testing data.
REFERENCE
• https://www.w3schools.com/
• https://www.javatpoint.com/
• https://www.geeksforgeeks.org/python-programming-language/
• https://www.programiz.com/python-programming/examples
• https://github.com/
• https://www.youtube.com/