Image Comparison Versions Save

Published on Maven Central Java Library that compares 2 images with the same sizes and shows the differences visually by drawing rectangles. Some parts of the image can be excluded from the comparison. Can be used for automation QA tests.

3.2.0

4 years ago

⭐️ New Features

  • Added ability to change pixel tolerance level.
  • Improved algorithm to make it faster.
  • Improved JavaDocs.
  • Researched JPEG images, all work as expected.

3.1.1

5 years ago

🐞 Bug Fixes

  • Fixed #113: RED (not equals) and GREEN (ignored) areas are not shown at result image at the same time

3.1.0

5 years ago

⭐️ New Features

  • Added the ability to draw excluded areas on the result image. Rectangles with the differences drawing RED color. Rectangles of the excluded areas - GREEN color.

  • Fixed root problem on the algorithm.

  • Added returning this for setters in ImageComparison and ComparisonResult.

  • renamed image1 => expected and image2 => actual.

  • Added writeResultTo() for ComparisonResult.

3.0.1

5 years ago

🐞 Bug Fixes

  • Fixed #98: the Ignored area was not actually ignored.

3.0.0

5 years ago

⭐️ New Features

  • Added ComparisonResult as a returning value for comparing. It contains:
    • image1
    • image2
    • ComparisonState, with conditions MATCH, MISMATCH, SIZE_MISMATCH
    • Result image, only if ComparisonState is MISMATCH. When it is MATCH or SIZE_MISMATCH no needs to create result image.
  • added minimalRectangleSize and maximalRectangleCount(sorted by rectangle size).
  • Added more tests to cover more test cases.
  • Refactored CommandLineUsage, moved main() method to separated class.(@ak98neon)
  • Added ExcludedAreas functionality, which helps to exclude some parts of the image.(@mkytolai)

❤️ Contributors I'd like to say thank you for your contributions

  • @mkytolai
  • @ak98neon

:octocat: Reviewers

  • @ak98neon
  • @smashside
  • @kremenec
  • @KyryloKh

2.2.0

5 years ago

⭐️ New Features

  • Added ability to customize rectangle line width(@mkytolai).
  • Moved the main method from Image Comparison to own class(@ak98neon).
  • Added Code of Conduct and Contributing pages(@romankh3).
  • Added Point model(@romankh3).

🐞 Bug Fixes

  • Made non-static threshold field(@ak98neon).

❤️ Contributors I'd like to thank all the contributors who helped to improve it:

  • @mkytolai
  • @ak98neon

2.1.0

5 years ago

⭐️ New Features

  • Published the project to JCenter, MavenCentral
  • Update packages related to groupId.

🐞 Bug Fixes

All the bugs were successfully fixed on 2.0.2 version.

❤️ Contributors

I'd like to say thank @renatoathaydes! He helped me to publish image-comparison.

2.0.2

5 years ago

⭐️ New Features

  • Improved comparison algorithm.
  • Improved tests cases and test coverage to 100%.

🐞 Bug Fixes

  • #11: Rectangles can overlap and be included one-into-one.
  • #21: StackOverflowError when compared 2 images with a little big different area.
  • #43: Added extra overlapping based on fixing #21 bug.

❤️ Contributors I'd like to thank all the contributors who helped to improve it!

  • @renatoathaydes
  • @alexbai326
  • @pvarenik
  • @gao2q
  • @kremenec
  • @dee-y

V2.0

5 years ago
  • Allow the program to run as a traditional CLI
  • Allow using it as a library

v1.0

6 years ago

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

  • 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. We are only consider 2 pixels to be "different" if the difference between them is more than 10%.
  • The output of the comparison is a copy of one of the images image with differences outlined with red rectangles as shown below.
  • No third party libraries and borrowed code are not using.