Image Comparator (imco)
Compare image similarity with metrics printed automatically below every image. See example image below.
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
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)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|