opencv-stream


Nameopencv-stream JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryWrapper over opencv for video processing and API development
upload_time2023-05-23 22:09:39
maintainer
docs_urlNone
authorOlivier
requires_python
license
keywords python video stream ai api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# opencv_stream

Under construction

Developed by Olivier 

## Examples of How To Use 

Creating A Stream


```python

from opencv_stream import VideoStreamer, ModelOutput, Model
import time
import numpy as np
import cv2

class TempModelOutput(ModelOutput):

    def to_dict(self) -> dict:
        return {"success": True}
    
    def draw(self, image: np.ndarray) -> None:
        w, h, _ = image.shape
        cv2.putText(image, "Hello from opencv_stream", (w//2, h//2), fontFace=1, fontScale=1, color=(255, 0, 0))

class TempModel(Model):

    def predict(self, image: np.ndarray) -> ModelOutput:
        return TempModelOutput()

stream = VideoStreamer.from_webcam()


stream.start_with_model(TempModel(), )


```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "opencv-stream",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,video,stream,AI,API",
    "author": "Olivier",
    "author_email": "luowensheng2018@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/24/36/1df340b9e05a33496cd9aad0bb8b7d25f1d753dacabffba7910db3430c28/opencv_stream-0.1.0.tar.gz",
    "platform": null,
    "description": "\r\n# opencv_stream\r\n\r\nUnder construction\r\n\r\nDeveloped by Olivier \r\n\r\n## Examples of How To Use \r\n\r\nCreating A Stream\r\n\r\n\r\n```python\r\n\r\nfrom opencv_stream import VideoStreamer, ModelOutput, Model\r\nimport time\r\nimport numpy as np\r\nimport cv2\r\n\r\nclass TempModelOutput(ModelOutput):\r\n\r\n    def to_dict(self) -> dict:\r\n        return {\"success\": True}\r\n    \r\n    def draw(self, image: np.ndarray) -> None:\r\n        w, h, _ = image.shape\r\n        cv2.putText(image, \"Hello from opencv_stream\", (w//2, h//2), fontFace=1, fontScale=1, color=(255, 0, 0))\r\n\r\nclass TempModel(Model):\r\n\r\n    def predict(self, image: np.ndarray) -> ModelOutput:\r\n        return TempModelOutput()\r\n\r\nstream = VideoStreamer.from_webcam()\r\n\r\n\r\nstream.start_with_model(TempModel(), )\r\n\r\n\r\n```\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Wrapper over opencv for video processing and API development",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [
        "python",
        "video",
        "stream",
        "ai",
        "api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "953439ad76cecf6c85b097681eddbcb35bb6d544469ea3415e00a4b7e7c2a874",
                "md5": "e494d75a27872afb47b42616b8b61588",
                "sha256": "e36aacdfeaae34380cf99889d56995c6b8486bb5b4f91fb607552e31f92b8f96"
            },
            "downloads": -1,
            "filename": "opencv_stream-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e494d75a27872afb47b42616b8b61588",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7323,
            "upload_time": "2023-05-23T22:09:36",
            "upload_time_iso_8601": "2023-05-23T22:09:36.733189Z",
            "url": "https://files.pythonhosted.org/packages/95/34/39ad76cecf6c85b097681eddbcb35bb6d544469ea3415e00a4b7e7c2a874/opencv_stream-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "24361df340b9e05a33496cd9aad0bb8b7d25f1d753dacabffba7910db3430c28",
                "md5": "888b6b875c0871a49ca9229bb2763f7d",
                "sha256": "d77a98d7697ca77c6b9718a98f6251def778ee9ac0f6b40b79127d4191420e65"
            },
            "downloads": -1,
            "filename": "opencv_stream-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "888b6b875c0871a49ca9229bb2763f7d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5488,
            "upload_time": "2023-05-23T22:09:39",
            "upload_time_iso_8601": "2023-05-23T22:09:39.135465Z",
            "url": "https://files.pythonhosted.org/packages/24/36/1df340b9e05a33496cd9aad0bb8b7d25f1d753dacabffba7910db3430c28/opencv_stream-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-23 22:09:39",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "opencv-stream"
}
        
Elapsed time: 0.64375s