{"id":13857092,"url":"https://github.com/devicehive/devicehive-video-analysis","last_synced_at":"2026-01-23T23:54:33.925Z","repository":{"id":145475061,"uuid":"110832062","full_name":"devicehive/devicehive-video-analysis","owner":"devicehive","description":null,"archived":false,"fork":false,"pushed_at":"2019-02-07T21:28:42.000Z","size":25,"stargazers_count":155,"open_issues_count":12,"forks_count":88,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-11-22T14:39:22.030Z","etag":null,"topics":["iot","machine-learning","python","tensorflow"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devicehive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-11-15T12:42:58.000Z","updated_at":"2024-07-05T18:21:32.000Z","dependencies_parsed_at":"2023-05-24T09:15:10.893Z","dependency_job_id":null,"html_url":"https://github.com/devicehive/devicehive-video-analysis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devicehive/devicehive-video-analysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devicehive%2Fdevicehive-video-analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devicehive%2Fdevicehive-video-analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devicehive%2Fdevicehive-video-analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devicehive%2Fdevicehive-video-analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devicehive","download_url":"https://codeload.github.com/devicehive/devicehive-video-analysis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devicehive%2Fdevicehive-video-analysis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265199604,"owners_count":23726683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["iot","machine-learning","python","tensorflow"],"created_at":"2024-08-05T03:01:25.541Z","updated_at":"2026-01-23T23:54:33.875Z","avatar_url":"https://github.com/devicehive.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square)](LICENSE)\n\n# Video analysis demo\n\n## Requirements\n\n### Python\n* openCV with video support ([Instruction](https://docs.opencv.org/trunk/d7/d9f/tutorial_linux_install.html))\n* tensorflow ([Instruction](https://www.tensorflow.org/install/install_linux))\n* [devicehive-python-webconfig](https://github.com/devicehive/devicehive-python-webconfig) (for daemon.py)\n* pafy (for direct video links)\n* youtube-dl (for direct video links from [youtube](https://www.youtube.com))\n\nAll requirements are listed in [requirements](requirements.txt) file, ~~except _openCV_ (because of video support described [here](https://pypi.python.org/pypi/opencv-python#frequently-asked-questions), [here](https://github.com/skvark/opencv-python/issues/49) and [here](https://github.com/skvark/opencv-python/issues/50))~~\n\nSo ~~(almost)~~ all required packages can be installed by _pip_\n\n**Update:** Since [this](https://github.com/skvark/opencv-python/releases/tag/11) release opencv-python ships with FFmpeg, V4L and V4L2. So i have added it to [requirements](requirements.txt).\n```bash\npip install -r requirements.txt\n```\n\n### Models data\n* download and extract [data.tar.gz](https://s3.amazonaws.com/video-analysis-demo/data.tar.gz) to source folder\n\n## Running\n\n### Local demo\nTo evaluate video file run\n```bash\npython eval.py --video=\"/path_to_video_file/\"\n```\n\nAlso video url can be passed (tested for youtube)\n```bash\npython eval.py --video=\"youtube_url\"\n```\n\nIf _--video_ is not provided video device \"0\" (usually it's web cam) will be used by default.\n\nPress _q_ to close program.\\\nPress _s_ to save currents frame to file.\n\nRun \n```bash\npython eval.py --help\n``` \nfor more info about available arguments.\n\n### Web based demo\nThere is demo with web interface and devicehive integration.\nIt will capture video stream from your web cam, evaluate it and send predictions to devicehive.\nTo use it run\n```bash\npython daemon.py\n```\nand go to http://127.0.0.1:8000 to configure devicehive connection.\nVideo stream is available on http://127.0.0.1:8000/events/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevicehive%2Fdevicehive-video-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevicehive%2Fdevicehive-video-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevicehive%2Fdevicehive-video-analysis/lists"}