The small project involves detection of unsimilarities between two documents usually an original agiainst an edited document. The use case can be in detection of edited Id cards, changed numbers on entry sheets and with good training on the model a detection of changes in the signatures is also possible.
- Obtaining the image as an entry
- checking the format and the size of the image as a comparison to the specifications used during training.
- changing the chape or the size of the image if the specifications do not match the anticipated specs used for training.
- Converting the image to grayscale as it is able to capture more metadata relating to the image in terms of marks and edges.
- Checking for a similarity index between the image and the pretrainned original image.
- Checking if the image matches a threshhold set for similarity.
- Drawing bounding rectangles to various aspects of the image. the rectangles capture marks spots and shape of letters and objects within the image. Addionally grabing the contours obtained from drawing the bounding triangles.
- Getting a plot of the diffence in the threshold between the original pre-trainned image and the image being tested for fakeness.
- Finally a comparison of the similarity score based on the original image to determine if there were any tampering with the new image.
- clone the repository
- If you are using pip create a virtual environment in the root folder
pip install imutils
- Cd into the virtual environment
source env_name/bin/activate
- Install the requirement
pip install -r requirements.txt