CMU-INF-DIVA / loaders

Video loaders

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loaders

Author: Lijun Yu

Email: lijun@lj-y.com

A submodule of video loaders.

Loaders

API

from loaders import get_loader

video_path = ...
loader_class = get_loader('AVI-R')  # Or MoviePy, Decord, OpenCV

loader = loader_class(video_path)
for frame_batch in loader(): # Optional params: start=0, end=None, stride=1, batch_size=1
    # Do something with the frame batch

loader.close()  # Release resources

Dependency

See actev_base.

License

See License.

About

Video loaders

License:MIT License


Languages

Language:Python 100.0%