{"id":22351314,"url":"https://github.com/iv4n-ga6l/optical_flow_opencv","last_synced_at":"2026-05-02T09:33:29.101Z","repository":{"id":264428093,"uuid":"843923253","full_name":"iv4n-ga6l/Optical_flow_opencv","owner":"iv4n-ga6l","description":"Optical Flow implementation in OpenCV","archived":false,"fork":false,"pushed_at":"2024-08-17T20:38:06.000Z","size":3797,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T13:13:48.480Z","etag":null,"topics":["lucas-kanade","opencv","optical-flow","python"],"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/iv4n-ga6l.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-17T20:36:09.000Z","updated_at":"2025-01-19T23:43:18.000Z","dependencies_parsed_at":"2024-11-24T08:26:59.419Z","dependency_job_id":"497dead7-2c8c-472e-8cdb-5e5364daf19d","html_url":"https://github.com/iv4n-ga6l/Optical_flow_opencv","commit_stats":null,"previous_names":["iv4n-ga6l/optical_flow_opencv"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iv4n-ga6l%2FOptical_flow_opencv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iv4n-ga6l%2FOptical_flow_opencv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iv4n-ga6l%2FOptical_flow_opencv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iv4n-ga6l%2FOptical_flow_opencv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iv4n-ga6l","download_url":"https://codeload.github.com/iv4n-ga6l/Optical_flow_opencv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245650442,"owners_count":20650103,"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":["lucas-kanade","opencv","optical-flow","python"],"created_at":"2024-12-04T12:13:41.018Z","updated_at":"2026-05-02T09:33:29.066Z","avatar_url":"https://github.com/iv4n-ga6l.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Optical Flow implementation in OpenCV\r\n\r\nOptical flow refers to the process of determining the movement of each pixel between two successive frames in a video. Essentially, it involves computing the vector that represents the change in position of a pixel as an object moves between two adjacent images. The core concept is to measure the shift in position of objects due to their motion or the movement of the camera.\r\n\r\n\r\n\r\n### Sparse Optical Flow\r\n\r\nThere is a demo `lucas_kanade.py` script of **Lucas-Kanade** algorithm which can be run with this command:\r\n\r\n```\r\npy demo.py --algorithm lucaskanade --video_path video.mp4\r\n```\r\n\r\n![Demo](lucaskanade_demo.png)\r\n\r\n### Dense Optical Flow\r\n\r\nThe wrapper of Dense Optical Flow algorithms `dense_optical_flow.py` can run a couple of OpenCV's algorithm implementations:\r\n\r\n- To start the **Dense Lucas-Kanade** algorithm:\r\n  ```\r\n  py demo.py --algorithm lucaskanade_dense --video_path video.mp4\r\n  ```\r\n\r\n  ![Demo](lucaskanade_dense_demo.png)\r\n\r\n- To start the **Farneback** algorithm:\r\n  ```\r\n  py demo.py --algorithm farneback --video_path video.mp4\r\n  ```\r\n\r\n  ![Demo](farneback_demo.png)\r\n\r\n- To start the **RLOF** algorithm:\r\n  ```\r\n  py demo.py --algorithm rlof --video_path video.mp4\r\n  ```\r\n\r\n  ![Demo](rlof_demo.png)\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiv4n-ga6l%2Foptical_flow_opencv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiv4n-ga6l%2Foptical_flow_opencv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiv4n-ga6l%2Foptical_flow_opencv/lists"}