Command Line utility for cost of aws.
Project description
h5cv
show hdf5 file in image file.
h5cv command
list keys
$ h5cv -H test.h5 ls [-r] [key]
show dataset in hdf5.
$ h5cv -H test.h5 show /some_group/test.jpg.np
imgcat in hdf5.
$ h5cv -H test.h5 imgcat /some_group/test.jpg
write in hdf5.
$ h5cv -H test.h5 [--store [numpy|binary]] write -g 'images/*.jpg' [--compression gzip] [--append]
custom generator
from h5cv.core import Core
from h5cv.generator import Generator
from PIL import Image
class MyGenerator(Generator):
def __getitem__(self, path):
print(f"custom generate {path}")
return Image.open(path)
Core(
hdf5="test.h5"
).write(
"evaluation/*.jpg",
generator=MyGenerator(),
compression="gzip"
)
Installation
pip install h5cv
Installation from github
pip install git+https://github.com/toyama0919/h5cv
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
h5cv-0.1.0.tar.gz
(5.1 kB
view hashes)