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.
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87659960689ccf0a7715638f0acf70804a58751fb42a34ce209216959b7c7991
|
|
| MD5 |
30853b6de1357c0ee610bf8afdc4c0a5
|
|
| BLAKE2b-256 |
689c4330775d2d07c68f6fbf6e9996e8951e64009c2848419ff4270469fe7071
|