Code Monkey home page Code Monkey logo

spot-the-differences's Introduction

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..

spot-the-differences's People

Contributors

arnabsen1729 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.