Skip to main content

Advanced pipelines for video datasets

Project description

Bumblebee

PyPI Downloads
Bumblebee image

Bumblebee provides high level components to construct training pipelines for videos conveniently.

Install

pip install eyecu_bumblebee

Motivation

Everything should be made as simple as possible, but no simpler. - Albert Einstein

Our Websites

EyeCU Vision
EyeCU Future

Examples

A pipeline with basic elements

from bumblebee import *


if __name__ == "__main__":
    
    VIDEO_PATH = "/path/to/video.mp4"

    # Create a source
    file_stream = sources.FileStream(VIDEO_PATH)

    # Add an effect
    goto = effects.GoTo(file_stream)

    END_OF_VIDEO = file_stream.get_duration()
    goto(END_OF_VIDEO)

    # Create a dataset
    single_frame = datasets.SingleFrame(file_stream)

    last_frame = single_frame.read()

Using Manager API

from bumblebee import *


if __name__ == "__main__":
    
    # Create a training manager
    manager = managers.BinaryClassification(
        ["path/to/video_dir","path/to/another_dir"],
        ["path/to/labels"]
    )

    number_of_epochs = 300
    
    for epoch,(frame_no,frame,prob) in manager(number_of_epochs):
        # Use data stuff
        ...    

Read limited section of video

from bumblebee import *
from
if __name__ == "__main__":
  
    VIDEO_PATH = "/path/to/video.mp4"
    start_frame = 35
    end_frame = 40
    
    file_stream = sources.FileStream(VIDEO_PATH)
    
    limited_stream = effects.Start(file_stream,start_frame)
    limited_stream = effects.End(limited_stream,end_frame)

    single_frame = datasets.SingleFrame(file_stream)

    for frame in single_frame:
        ...  

Team

This project is currently developed and maintained by ovuruska.

License

Bumblebee has MIT license. You can find further details in 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 Distribution

eyecu-bumblebee-0.4.1.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

eyecu_bumblebee-0.4.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file eyecu-bumblebee-0.4.1.tar.gz.

File metadata

  • Download URL: eyecu-bumblebee-0.4.1.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.0 Windows/10

File hashes

Hashes for eyecu-bumblebee-0.4.1.tar.gz
Algorithm Hash digest
SHA256 fcf49cc611f2899e099720c0322e2a85b960e87adec5025fcb4721f9fc222c87
MD5 e2e6d8fe3b879d620fff6879f2794576
BLAKE2b-256 2a8e277c9cd6fdb2fb25f6285a001bb0acc0973adbf8fe46345b14088f8f7182

See more details on using hashes here.

File details

Details for the file eyecu_bumblebee-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for eyecu_bumblebee-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5152c55d2e3e1d52e0d8797b1d73bf3614da3415482c0913ad74507872e12187
MD5 85d19157c8e8ec988a03a5dd61c915ec
BLAKE2b-256 77cb1d9d009d11c79a4d90ea229546c89783dba603f3bcf12e5aa52eb5fec48a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page