Skip to main content
https://img.shields.io/badge/docs-stable-yellow.svg https://img.shields.io/badge/docs-v1.0.1-orange.svg https://gitlab.idiap.ch/bob/bob.io.stream/badges/v1.0.1/build.svg https://gitlab.idiap.ch/bob/bob.io.stream/badges/v1.0.1/coverage.svg https://img.shields.io/badge/gitlab-project-0000c0.svg https://img.shields.io/pypi/v/bob.io.stream.svg

Bob IO Stream

This package is part of the signal-processing and machine learning toolbox Bob.

Motivation

This package provides a way to define efficient processing pipelines, based on the concept of “streams”, to load and process or save video data stored in hdf5 files. The stream abstraction allows to define pipelines of processing steps with an easy syntax, and provides a way to access the processed data with a “numpy-like” api. It was designed to minimize computation and disk access by loading only necessary data and buffering video frames and processed data.

Installation

Complete bob’s installation instructions. Then, to install this package, run:

$ conda install bob.io.stream

Example

Here is an example of how to use the package to load data recorded with 3 different cameras, build a processing pipeline and finally load the data.

# Import Stream and StreamFile classes
# Processing filters are available through the Stream class
from bob.io.stream import StreamFile, Stream

# Open a Streamfile to a hdf5 file containing video data.
f = StreamFile("input_example.h5", face_streams.json")

# Define processing pipeline by chaining streams:
# First define the streams to load the data from the file (color, left and right), and add some processing
color = Stream("color", f)
nir_left = Stream("nir_left_stereo", f).adjust(color).normalize()
nir_right = Stream("nir_right_stereo", f).adjust(color).normalize()
all_swir = nir_left.stack(nir_right)

# Now that the pipeline is defined, the processed data can be accessed as if indexing in a numpy array:
all_streams[0]  # Loads data and apply processing to provide the first frame of the reprojected stream.
all_streams[2:10] # Loads several frames, etc...

Contact

For questions or reporting issues to this software package, contact our development mailing list.

Release files for bob.io.stream 1.0.1

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

Source distribution (sdist)

Source distribution for bob.io.stream 1.0.1
File Size Uploaded
bob.io.stream-1.0.1.zip 36.0 MB Details

Release files / bob.io.stream-1.0.1.zip

Download URL bob.io.stream-1.0.1.zip
Size 36.0 MB
Tags Source
SHA-256 checksum
How to use checksums
81817bcdc9531971d6ec4eb15aafe97e5c1c8e3528abe4b755d76d69d903416a
BLAKE2b-256 checksum
How to use checksums
0608ec2764f50932f595d27cf1df788b0527e3f1605efca5893ce07853b18fc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.7.1 requests/2.26.0 setuptools/58.0.4 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

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