eyecu-bumblebee


Nameeyecu-bumblebee JSON
Version 0.5.6 PyPI version JSON
download
home_pagehttps://github.com/Eye-C-U/bumblebee/
SummaryAdvanced pipelines for video datasets
upload_time2021-01-16 11:51:32
maintainer
docs_urlNone
authorOguz Vuruskaner
requires_python>=3.6,<4.0
licenseMIT
keywords video processing dataset numpy
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Bumblebee
[![PyPI](https://img.shields.io/pypi/v/eyecu_bumblebee.svg)](https://pypi.python.org/pypi/eyecu_bumblebee)
[![Downloads](https://pepy.tech/badge/eyecu-bumblebee/week)](https://pepy.tech/project/eyecu-bumblebee) \
![Bumblebee image](./docs/bumblebee.png)

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


- [Install](#install)
- [Motivation](#motto)
- [Our Websites](#our-websites)
- [Examples](#examples)
    - [A pipeline with basic elements](#a-pipeline-with-basic-elements)
    - [Using Manager API](#using-manager-api)
    - [Read limited section of video](#read--limited-section-of-video)
    - [Iterate frames with frame numbers](#iterate-frames-with-frame-numbers)
    - [Iterate frames in batches](#iterate-frames-in-batches)
- [Team](#team)
- [License](#license)



## Install

```
pip install eyecu_bumblebee
```

## Motivation

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

## Our Websites

[EyeCU Vision](https://eyecuvision.com/) \
[EyeCU Future](https://eyecufuture.com/) 


## Examples

### A pipeline with basic elements

```python
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

```python
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
```python
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
```python
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

```python
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](https://github.com/ovuruska).


## License
Bumblebee has MIT license. You can find further details in [LICENSE](LICENSE).


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Eye-C-U/bumblebee/",
    "name": "eyecu-bumblebee",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6,<4.0",
    "maintainer_email": "",
    "keywords": "Video Processing,Dataset,numpy",
    "author": "Oguz Vuruskaner",
    "author_email": "ovuruska@outlook.com",
    "download_url": "https://files.pythonhosted.org/packages/8d/a3/7d6bbf7bc1dafa5b805cdaff87ce5e7655460c8eaee444ff3526a7255e81/eyecu-bumblebee-0.5.6.tar.gz",
    "platform": "",
    "description": "# Bumblebee\n[![PyPI](https://img.shields.io/pypi/v/eyecu_bumblebee.svg)](https://pypi.python.org/pypi/eyecu_bumblebee)\n[![Downloads](https://pepy.tech/badge/eyecu-bumblebee/week)](https://pepy.tech/project/eyecu-bumblebee) \\\n![Bumblebee image](./docs/bumblebee.png)\n\nBumblebee provides high level components to construct training pipelines for videos conveniently.\n\n\n- [Install](#install)\n- [Motivation](#motto)\n- [Our Websites](#our-websites)\n- [Examples](#examples)\n    - [A pipeline with basic elements](#a-pipeline-with-basic-elements)\n    - [Using Manager API](#using-manager-api)\n    - [Read limited section of video](#read--limited-section-of-video)\n    - [Iterate frames with frame numbers](#iterate-frames-with-frame-numbers)\n    - [Iterate frames in batches](#iterate-frames-in-batches)\n- [Team](#team)\n- [License](#license)\n\n\n\n## Install\n\n```\npip install eyecu_bumblebee\n```\n\n## Motivation\n\nEverything should be made as simple as possible, but no simpler. - Albert Einstein\n\n## Our Websites\n\n[EyeCU Vision](https://eyecuvision.com/) \\\n[EyeCU Future](https://eyecufuture.com/) \n\n\n## Examples\n\n### A pipeline with basic elements\n\n```python\nfrom bumblebee import *\n\n\nif __name__ == \"__main__\":\n    \n    video_path = \"/path/to/video.mp4\"\n\n    # Create a source\n    file_stream = sources.FileStream(video_path)\n\n    # Add an effect\n    goto = effects.GoTo(file_stream)\n\n    END_OF_VIDEO = file_stream.get_duration()\n    goto(END_OF_VIDEO)\n\n    # Create a dataset\n    single_frame = datasets.Single(file_stream)\n\n    last_frame = single_frame.read()\n\n```\n\n### Using Manager API\n\n```python\nfrom bumblebee import *\n\n\nif __name__ == \"__main__\":\n    \n    # Create a training manager\n    manager = managers.BinaryClassification(\n        [\"path/to/video_dir\",\"path/to/another_dir\"],\n        [\"path/to/labels\"]\n    )\n\n    number_of_epochs = 300\n    \n    for epoch,(frame_no,frame,prob) in manager(number_of_epochs):\n        # Use data stuff\n        ...    \n\n```\n\n\n### Read  limited section of video\n```python\nfrom bumblebee import *\n\n\nif __name__ == \"__main__\":\n  \n    video_path = \"/path/to/video.mp4\"\n    start_frame = 35\n    end_frame = 40\n    \n    file_stream = sources.FileStream(video_path)\n    \n    limited_stream = effects.Start(file_stream,start_frame)\n    limited_stream = effects.End(limited_stream,end_frame)\n\n    single_frame = datasets.Single(file_stream)\n\n    for frame in single_frame:\n        ...  \n\n```\n\n### Iterate frames with frame numbers\n```python\nfrom bumblebee import *\n\n\nif __name__ == \"__main__\":\n  \n    video_path = \"/path/to/video.mp4\"\n    \n    file_stream = sources.FileStream(video_path)\n    \n    single_frame = datasets.Single(file_stream)\n    current_frame = effects.CurrentFrame(file_stream)\n    \n    \n    for frame_ind,frame in zip(current_frame,single_frame):\n        ...  \n\n``` \n\n\n\n### Iterate frames in batches\n\n```python\nfrom bumblebee import *\n\n\nif __name__ == \"__main__\":\n  \n    video_path = \"/path/to/video.mp4\"\n    batch_size = 64\n    \n    file_stream = sources.FileStream(video_path)\n    \n    batch = datasets.Batch(file_stream)\n    \n    for frames in batch:\n        ...  \n\n``` \n\n## Team\nThis project is currently developed and maintained by [ovuruska](https://github.com/ovuruska).\n\n\n## License\nBumblebee has MIT license. You can find further details in [LICENSE](LICENSE).\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Advanced pipelines for video datasets",
    "version": "0.5.6",
    "split_keywords": [
        "video processing",
        "dataset",
        "numpy"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "e040128be07d53cdd625e0c6e691ac61",
                "sha256": "2b465f09d787af356c4497615a1d05af51415f6c012cc55f8c4be61d8e00fc33"
            },
            "downloads": -1,
            "filename": "eyecu_bumblebee-0.5.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e040128be07d53cdd625e0c6e691ac61",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6,<4.0",
            "size": 15995,
            "upload_time": "2021-01-16T11:51:34",
            "upload_time_iso_8601": "2021-01-16T11:51:34.105526Z",
            "url": "https://files.pythonhosted.org/packages/76/04/d34c784e6ef5afd92a043eab817c3e1c80060dd7e6631a385793a92f8e09/eyecu_bumblebee-0.5.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "0607c027da966f18207d9b10514696de",
                "sha256": "95d33089d79aeaf30aed2daab42425d0c9d256ed29c3cfdefa4b34c90ea4d40d"
            },
            "downloads": -1,
            "filename": "eyecu-bumblebee-0.5.6.tar.gz",
            "has_sig": false,
            "md5_digest": "0607c027da966f18207d9b10514696de",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6,<4.0",
            "size": 11823,
            "upload_time": "2021-01-16T11:51:32",
            "upload_time_iso_8601": "2021-01-16T11:51:32.687623Z",
            "url": "https://files.pythonhosted.org/packages/8d/a3/7d6bbf7bc1dafa5b805cdaff87ce5e7655460c8eaee444ff3526a7255e81/eyecu-bumblebee-0.5.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-01-16 11:51:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "Eye-C-U",
    "error": "Could not fetch GitHub repository",
    "lcname": "eyecu-bumblebee"
}
        
Elapsed time: 0.20042s