{"id":29179516,"url":"https://github.com/tugcantopaloglu/object-movement-detection-image-processing","last_synced_at":"2026-04-27T17:33:14.828Z","repository":{"id":302078139,"uuid":"1011165992","full_name":"tugcantopaloglu/object-movement-detection-image-processing","owner":"tugcantopaloglu","description":"A object movement detection for ros and realtime robots. No framework pure image processing.","archived":false,"fork":false,"pushed_at":"2025-06-30T12:06:22.000Z","size":6735,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-30T13:24:26.760Z","etag":null,"topics":["image-processing","movement-detection","python","ros"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tugcantopaloglu.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-30T12:01:27.000Z","updated_at":"2025-06-30T12:06:26.000Z","dependencies_parsed_at":"2025-06-30T13:25:18.576Z","dependency_job_id":"5168ae9c-17d8-4868-8226-eabe93ccca1c","html_url":"https://github.com/tugcantopaloglu/object-movement-detection-image-processing","commit_stats":null,"previous_names":["tugcantopaloglu/object-movement-detection-image-processing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tugcantopaloglu/object-movement-detection-image-processing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tugcantopaloglu%2Fobject-movement-detection-image-processing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tugcantopaloglu%2Fobject-movement-detection-image-processing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tugcantopaloglu%2Fobject-movement-detection-image-processing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tugcantopaloglu%2Fobject-movement-detection-image-processing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tugcantopaloglu","download_url":"https://codeload.github.com/tugcantopaloglu/object-movement-detection-image-processing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tugcantopaloglu%2Fobject-movement-detection-image-processing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32348048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T17:12:42.749Z","status":"ssl_error","status_checked_at":"2026-04-27T17:12:41.658Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["image-processing","movement-detection","python","ros"],"created_at":"2025-07-01T19:02:48.194Z","updated_at":"2026-04-27T17:33:14.809Z","avatar_url":"https://github.com/tugcantopaloglu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Robot Motion Analysis\n\nThis project detects the motion of robots positioned on a **3 × 3 grid** in a video file.  \nUsing **Python** and **OpenCV**, it analyses which robots move each second and writes the results as a table to a text file.\n\n---\n\n## Features\n\n- Motion detection for **9 robots** on a 3×3 grid\n- Homography (perspective correction) with **Harris corner detection**\n- Motion detection via background subtraction, angle difference and pixel differencing\n- Second‑by‑second results saved in a table\n- Visual debug overlay during video playback\n\n---\n\n## Usage\n\n\u003e **Tip:** Open the project folder in _Visual Studio Code → “Open Folder”_.  \n\u003e Then the `video_file` variable can easily point to videos placed in the same directory.  \n\u003e Otherwise supply the video path via the command line.  \n\u003e A sample video is provided as **`video.mp4`** in the root.  \n\u003e If you rename it, update `video_file` (around line 397).\n\n1. Install dependencies:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n2. Run:\n\n   ```bash\n   python main.py tusas-odev2-test.mp4\n   ```\n\n   or set `video_file` directly inside the code (line 397).\n\n   To slow playback for detailed inspection, increase `WAIT_MS` (line 399, default **1 ms**).\n\nUpon completion the script creates **`tusas-odev2-ogr.txt`** in the project folder.  \nYou can grade it with `odev_kontrol.py`.\n\n### Arguments\n\n| Arg          | Description                               |\n| ------------ | ----------------------------------------- |\n| `video_file` | _required_ – path to the video to analyse |\n| `--wait-ms`  | frame delay in debug mode (default **1**) |\n\nExample:\n\n```bash\npython main.py tusas-odev2-test.mp4 --wait-ms 120\n```\n\n---\n\n## Output Format\n\n```\nSecond  Robot‑1 Robot‑2 ... Robot‑9\n 1)       0       1  ...    0\n 2)       1       1  ...    0\n ...\n```\n\nSaved to **`tusas-odev2-ogr.txt`**.\n\n---\n\n## Requirements\n\n- Python 3.7+\n- OpenCV\n- NumPy\n\n---\n\n## Notes\n\n- Provide the correct video name/path; relative paths may fail if the folder is not opened in VS Code.\n- The result file is saved in the current working directory.\n- Debug windows let you watch the analysis live.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftugcantopaloglu%2Fobject-movement-detection-image-processing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftugcantopaloglu%2Fobject-movement-detection-image-processing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftugcantopaloglu%2Fobject-movement-detection-image-processing/lists"}