Skip to content

The program in Java that compares any 2 images and shows the differences visually by drawing rectandles.

License

Notifications You must be signed in to change notification settings

dee-y/image-comparison

 
 

Repository files navigation

Image Comparison Build Status Coverage Status BCH compliance PRs Welcome

The program in Java that compares any 2 images and shows the differences visually by drawing rectangles.

Requirements

  • Implementation is using only standard core language and platform features, no 3rd party libraries and plagiarized code is permitted.
  • Pixels (with the same coordinates in two images) can be visually similar, but have different values of RGB. 2 pixels are considered to be "different" if they differ more than 10% from each other.
  • The output of the comparison is a copy of one of the images The differences are outlined with red rectangles as shown below.
  • No third party libraries or borrowed code are in usage.

Getting Started

To run project write:

$ git clone https://github.com/romankh3/image-comparison
$ cd image-comparison
$ ./gradlew run
Or run executable file:
$ ./run.sh

You will get the result of comparing two images. The images, which are using:

Image1

image1

Image2

image2

Do you see the difference?

Result

result

Also you can get them from:

${projectDir}/src/main/resources/image1.png
${projectDir}/src/main/resources/image2.png
${projectDir}/build/result.png

License:

This project is unlicense - see the LICENSE file for details

About

The program in Java that compares any 2 images and shows the differences visually by drawing rectandles.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 98.4%
  • Shell 1.6%