Giter Club home page Giter Club logo

sanu's Introduction

This is the program for check the Image Similarity Measurement of two image.

programming language: python 
libraries : OpenCV

The output values between 0 and 1, 
where 1 is for total similarity and 0 for total dissimilarity.

useing Structural Similarity Index Measurement (SSIM)


# 1. Import the necessary packages
from skimage.measure import compare_ssim
from PIL import Image 
from resizeimage import resizeimage
import argparse
import imutils
import cv2
import numpy as np



Program Run Command: any one of the following command can use. 

1) python img_similarity_mes.py --first crak1.jpeg --second crak2.jpeg
2) python img_similarity_mes.py --first fruit1.png --second fruits2.png
3) python img_similarity_mes.py --first eyerov2.png --second eyerov3.png
4) python img_similarity_mes.py --first team.png --second team1.png
5) python img_similarity_mes.py --first test3.jpeg --second test4.jpeg


Program Structure:

1.get the two image as input 
2.save these image 
3.resize the saved image
4.covert image to gray scale 
5.removing salt-and-pepper noise using median filter
6.applying Structural Similarity Index and shows the SSIM Score with b/w 0-1
For Total Similarity, SSIM =1
For total dissimilarity, SSIM =0
7.threshold the difference image, and finding contours to obtain the regions of the two input images that differ
8.compute bounding box of the contour and then draw the bounding box on both input images to represent where the two images differ
9.Output :
two image with bounding box and image_Similarity SSIM Score




 



sanu's People

Contributors

sanukm avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.