{"id":17772545,"url":"https://github.com/qijiezhao/py-denseflow","last_synced_at":"2025-03-15T16:31:31.464Z","repository":{"id":43583554,"uuid":"97668238","full_name":"qijiezhao/py-denseflow","owner":"qijiezhao","description":"Extract TVL1 optical flows in python (multi-process \u0026\u0026 multi-server)","archived":false,"fork":false,"pushed_at":"2018-01-14T05:55:09.000Z","size":9,"stargazers_count":192,"open_issues_count":9,"forks_count":67,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-27T03:46:28.893Z","etag":null,"topics":["optical-flow","python","tvl1"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qijiezhao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-19T03:20:09.000Z","updated_at":"2025-02-12T11:41:48.000Z","dependencies_parsed_at":"2022-07-12T18:19:10.697Z","dependency_job_id":null,"html_url":"https://github.com/qijiezhao/py-denseflow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qijiezhao%2Fpy-denseflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qijiezhao%2Fpy-denseflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qijiezhao%2Fpy-denseflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qijiezhao%2Fpy-denseflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qijiezhao","download_url":"https://codeload.github.com/qijiezhao/py-denseflow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243760014,"owners_count":20343622,"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":["optical-flow","python","tvl1"],"created_at":"2024-10-26T21:39:40.631Z","updated_at":"2025-03-15T16:31:31.149Z","avatar_url":"https://github.com/qijiezhao.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Py-denseflow\r\n\r\n\r\nThis is a python port of denseflow, which extract the videos' frames and **optical flow images** with **TVL1 algorithm** as default.\r\n\r\n---\r\n\r\n### Requirements:\r\n- numpy\r\n- cv2\r\n- PIL.Image\r\n- multiprocess\r\n- scikit-video (optional)\r\n- scipy\r\n\r\n## Installation\r\n#### Install the requirements:\r\n```\r\npip install -r requirements.txt\r\n\r\n```\r\n\r\n---\r\n\r\n## Usage\r\nThe denseflow.py contains two modes including '**run**' and '**debug**'.\r\n\r\n\r\nhere 'debug' is built for debugging the video paths and video-read methods. ([IPython.embed](http://ipython.org/ipython-doc/dev/interactive/reference.html#embedding) suggested)\r\n\r\nJust simply run the following code:\r\n\r\n```\r\npython denseflow.py --new_dir=denseflow_py --num_workers=1 --step=1 --bound=20 --mode=debug\r\n\r\n```\r\nWhile in 'run' mode, here we provide multi-process as well as multi-server with manually s_/e_ IDs setting.\r\n\r\nfor example:  server 0 need to process 3000 videos with 4 processes parallelly working:\r\n\r\n```\r\npython denseflow.py --new_dir=denseflow_py --num_workers=4 --step=1 --bound=20 --mode=run --s_=0 --e_=3000\r\n```\r\n\r\n---\r\n\r\nJust feel free to let me know if any bugs exist.\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqijiezhao%2Fpy-denseflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqijiezhao%2Fpy-denseflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqijiezhao%2Fpy-denseflow/lists"}