Bumblebee
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
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.Single(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 *
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.Single(file_stream)
for frame in single_frame:
...
Iterate frames with frame numbers
from bumblebee import *
if __name__ == "__main__":
video_path = "/path/to/video.mp4"
file_stream = sources.FileStream(video_path)
single_frame = datasets.Single(file_stream)
current_frame = effects.CurrentFrame(file_stream)
for frame_ind,frame in zip(current_frame,single_frame):
...
Iterate frames in batches
from bumblebee import *
if __name__ == "__main__":
video_path = "/path/to/video.mp4"
batch_size = 64
file_stream = sources.FileStream(video_path)
batch = datasets.Batch(file_stream)
for frames in batch:
...
Team
This project is currently developed and maintained by ovuruska.
License
Bumblebee has MIT license. You can find further details in LICENSE.
Metadata
Release files for eyecu-bumblebee 0.5.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| eyecu-bumblebee-0.5.7.tar.gz | 9.3 kB | Without provenance | Details for eyecu-bumblebee-0.5.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eyecu_bumblebee-0.5.7-py3-none-any.whl | Python 3 | none | any | Details for eyecu_bumblebee-0.5.7-py3-none-any.whl |
Total release size: 25.3 kB
Release files / eyecu-bumblebee-0.5.7.tar.gz
| Download URL | eyecu-bumblebee-0.5.7.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
300e175841570be999778cea5c54124e731b65d55b027608610bd6688b680bdb
|
|
BLAKE2b-256 checksum How to use checksums |
d46161dfa78d28c69e0230786d81a5b10d0abd8e2b40e40b3cc9608cad2bd186
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.6 Windows/10
|
Release files / eyecu_bumblebee-0.5.7-py3-none-any.whl
| Download URL | eyecu_bumblebee-0.5.7-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5f6de808eade5fdb2c4aaf998656b19cfa3414cf307e9bd62d2658179a045c2
|
|
BLAKE2b-256 checksum How to use checksums |
a39746e17444b2f33ef7052af7064796be1075b4157686c2d4fa210a50f86d1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.6 Windows/10
|
Security for eyecu-bumblebee 0.5.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.