Skip to main content

Python package to compare images with metrics

Project description

Image Comparator (imco)

Compare image similarity with metrics printed automatically below every image. See example image below.

comparison_image

Installation

pip install imco

To get the latest version, install:

pip install git+https://github.com/pettod/imco.git@main

Usage

# Paths to images
image_paths = [
    "path/to/image_1.png",
    "path/to/image_2.png",
    "path/to/image_3.png",
]
reference_image_path = "path/to/reference_image.png"

# Read images and define names
images = [cv2.imread(image_path) for image_path in image_paths]
reference_image = cv2.imread(reference_image_path)
names = ["Input", "Prediction 1", "Prediction 2", "Ground Truth"]

# Create comparison image
comparison_image = compareImages(images, reference_image, names, crop_size=256)
cv2.imwrite("comparison_image.png", comparison_image)

License

License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imco-0.1.1-py2.py3-none-any.whl (7.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file imco-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: imco-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for imco-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 87659960689ccf0a7715638f0acf70804a58751fb42a34ce209216959b7c7991
MD5 30853b6de1357c0ee610bf8afdc4c0a5
BLAKE2b-256 689c4330775d2d07c68f6fbf6e9996e8951e64009c2848419ff4270469fe7071

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page