Skip to content

A script which compares images visually and prints the error between them.

License

Notifications You must be signed in to change notification settings

RISE-UNIBAS/compare_images

Repository files navigation

Compare Images

Python application

This is a RISE example script. It should work in itself. You can clone or download the repository. If you have additions to an example which you would like to share, you are welcome to create a Pull Request.

A script which compares images visually and prints the error between them.

Contents

Example on how to compare if images are similar visually. The script loads a number of images, shirinks them down, creates a grayscale version and then overlays them with each other. The larger the common area is, the more similar the images are.

Using the example

  • Install the requirements from requirements.txt:
pip install -f requirements.txt
  • Edit the example [Optional]

  • Execute the example:

python compare_images_visually.py

Disclaimer

The images used in these example depict Elisabeth Baume-Schneider, a member of the Swiss Federal Council. She is a public figure, all images were downloaded from online newspapers in 2023.

About

A script which compares images visually and prints the error between them.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages