Skip to content

Python script that will spot the differences between two images.

License

Notifications You must be signed in to change notification settings

arnabsen1729/Spot-the-differences

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spot the differences.

We all played this game in childhood. Well, I was very bad at it, so I though let's create a python script which will do that for me.

Well, unfortunately the program is equally bad ;~;

Installation

The modules it requires are:

  1. Pillow: Imaging library
  2. OpenCV2
  3. Matplotlib
  4. Imutils
  5. Skimage
  6. Numpy

You can install these modules manually or use this command

$ pip3 install -r requirements.txt

Usage

See help

$ python main.py -h

usage: main.py [-h] --img1 IMG1 --img2 IMG2

Will spot the differences between two images and circle them.

optional arguments:
  -h, --help   show this help message and exit
  --img1 IMG1  the path to image 1
  --img2 IMG2  the path to image 2

Pass the paths of the images as arguments

$ python3 main.py --img1 ./test1/img1.png --img2 ./test1/img2.png

It will open up a pyplot window which will show the differences by encircling them.

Something like this

img1

And this

img2

img3

How does it work

To Do..

Releases

No releases published

Packages

No packages published

Languages