Image Visualization Tools
Project description
imgviz
Image Visualization Tools
Installation
pip install imgviz
# there are optional dependencies like skimage, below installs all.
pip install imgviz[all]
Dependencies
Getting Started
# getting_started.py
import imgviz
# sample data of rgb, depth, class label and instance masks
data = imgviz.data.arc2017()
rgb = data["rgb"]
gray = imgviz.rgb2gray(rgb)
# colorize depth image with JET colormap
depth = data["depth"]
depthviz = imgviz.depth2rgb(depth, min_value=0.3, max_value=1)
# colorize label image
class_label = data["class_label"]
labelviz = imgviz.label2rgb(
class_label, image=gray, label_names=data["class_names"], font_size=20
)
# instance bboxes
bboxes = data["bboxes"].astype(int)
labels = data["labels"]
masks = data["masks"] == 1
captions = [data["class_names"][l] for l in labels]
maskviz = imgviz.instances2rgb(gray, masks=masks, labels=labels, captions=captions)
# tile instance masks
insviz = [
(rgb * m[:, :, None])[b[0] : b[2], b[1] : b[3]] for b, m in zip(bboxes, masks)
]
insviz = imgviz.tile(images=insviz, border=(255, 255, 255))
insviz = imgviz.resize(insviz, height=rgb.shape[0])
# tile visualization
tiled = imgviz.tile(
[rgb, depthviz, labelviz, maskviz, insviz],
row=1,
col=5,
border=(255, 255, 255),
border_width=5,
)
Examples
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 imgviz-2.0.1.tar.gz.
File metadata
- Download URL: imgviz-2.0.1.tar.gz
- Upload date:
- Size: 8.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a62cec27e43c9cddf2306ec59c7225fc095eaf6add4b3a2e35e3c3831a484c73
|
|
| MD5 |
a128035ee0d4668784fe549e917a33b8
|
|
| BLAKE2b-256 |
871b629339ff4826fd12f4d61c9f1ff86d32a52294f914e3f15105f4dd7330be
|
Provenance
The following attestation bundles were made for imgviz-2.0.1.tar.gz:
Publisher:
publish.yml on wkentaro/imgviz
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imgviz-2.0.1.tar.gz -
Subject digest:
a62cec27e43c9cddf2306ec59c7225fc095eaf6add4b3a2e35e3c3831a484c73 - Sigstore transparency entry: 1518887291
- Sigstore integration time:
-
Permalink:
wkentaro/imgviz@abb2a1c6956e82bd6947bc46b0e10305d298ed6a -
Branch / Tag:
refs/tags/v2.0.1 - Owner: https://github.com/wkentaro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@abb2a1c6956e82bd6947bc46b0e10305d298ed6a -
Trigger Event:
push
-
Statement type:
File details
Details for the file imgviz-2.0.1-py3-none-any.whl.
File metadata
- Download URL: imgviz-2.0.1-py3-none-any.whl
- Upload date:
- Size: 7.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b95e9b4d22a01a12e6c85f2dd87c542265194f2cdcba2f320dcc2bf0b9e13a1
|
|
| MD5 |
b7dc3e5fb5bd35bb7cfb5a1be63ad4e5
|
|
| BLAKE2b-256 |
e5ee68ccca51155902f706ad5b6871cc46c85986445ef4f3f8773abc434cd4e6
|
Provenance
The following attestation bundles were made for imgviz-2.0.1-py3-none-any.whl:
Publisher:
publish.yml on wkentaro/imgviz
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imgviz-2.0.1-py3-none-any.whl -
Subject digest:
1b95e9b4d22a01a12e6c85f2dd87c542265194f2cdcba2f320dcc2bf0b9e13a1 - Sigstore transparency entry: 1518887315
- Sigstore integration time:
-
Permalink:
wkentaro/imgviz@abb2a1c6956e82bd6947bc46b0e10305d298ed6a -
Branch / Tag:
refs/tags/v2.0.1 - Owner: https://github.com/wkentaro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@abb2a1c6956e82bd6947bc46b0e10305d298ed6a -
Trigger Event:
push
-
Statement type: