Skip to main content

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

Import following function:

from imco import compareImages

Here is a sample code to use the comparison function:

import cv2

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

# Read images
images = [cv2.imread(image_path) for image_path in image_paths]

# Define image names
names = ["Input", "Prediction 1", "Ground Truth"]

# Create comparison image
comparison_image = compareImages(images, names, True, 256, (10, 30))
cv2.imwrite("comparison_image.png", comparison_image)

License

License

Metadata

Release files for imco 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for imco 0.1.4
File Interpreter ABI Platform
imco-0.1.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / imco-0.1.4-py2.py3-none-any.whl

Download URL imco-0.1.4-py2.py3-none-any.whl
Size 7.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4685e4dc94185bb943813d04b0d3917dffd41e5a2f9947ed7fb9fdccaa11dbc8
BLAKE2b-256 checksum
How to use checksums
1cfa3791253e182fe72fca58924f09159a1498f627a2dc653ddd2e76b7c26bb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11

Release history Release notifications | RSS feed

This release

0.1.4 This release

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page