{"id":21380186,"url":"https://github.com/manel15279/computer-vision-dodge-game","last_synced_at":"2025-10-15T03:21:14.617Z","repository":{"id":223066709,"uuid":"726614787","full_name":"manel15279/Computer-Vision-Dodge-Game","owner":"manel15279","description":"A university project consisting of two parts: the first part focuses on implementing various image processing filters and color-based object detection algorithms using Python and OpenCV. The second part involves the development of a dodge game enhanced with real-time object detection for player control.","archived":false,"fork":false,"pushed_at":"2024-02-18T18:27:09.000Z","size":28592,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T10:42:04.932Z","etag":null,"topics":["computer-vision","dodge-game","object-detection","opencv","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/manel15279.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":"2023-12-02T21:57:44.000Z","updated_at":"2024-02-18T01:26:33.000Z","dependencies_parsed_at":"2024-11-22T10:48:01.507Z","dependency_job_id":null,"html_url":"https://github.com/manel15279/Computer-Vision-Dodge-Game","commit_stats":null,"previous_names":["manel15279/computer-vision-dodge-game"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/manel15279/Computer-Vision-Dodge-Game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manel15279%2FComputer-Vision-Dodge-Game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manel15279%2FComputer-Vision-Dodge-Game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manel15279%2FComputer-Vision-Dodge-Game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manel15279%2FComputer-Vision-Dodge-Game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manel15279","download_url":"https://codeload.github.com/manel15279/Computer-Vision-Dodge-Game/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manel15279%2FComputer-Vision-Dodge-Game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279042500,"owners_count":26091262,"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","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["computer-vision","dodge-game","object-detection","opencv","python"],"created_at":"2024-11-22T10:37:53.358Z","updated_at":"2025-10-15T03:21:14.602Z","avatar_url":"https://github.com/manel15279.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Color-Based Object Detection \u0026 Dodge Game Project\n\n## Overview\n\nA university project consisting of two parts: the first part focuses on implementing various image processing filters and color-based object detection algorithms using Python and OpenCV. The second part involves the development of a dodge game - Chicken Escape 🐔🦊, enhanced with real-time object detection for player control.\n\n\u003cdiv style=\"width: 100%; display: flex;\"\u003e\n  \u003cimg src=\"interfaceFinal/screenshots/full_interface.png\"/\u003e\n\u003c/div\u003e\n\n## Part 1: Filters and Object Detection 📸\n\n### Filters Implemented\n- Binarization and Thresholding\n- Smoothing Filters: Mean, Median, Gaussian\n- Edge Detection Filters: Laplacian, Gradient\n- Morphological Filters: Erosion, Dilation, Closing, Opening\n- Custom Filters: Prewitt, Sobel\n\n### Object Detection\n- Developed the \"Object_Color_Detection\" function for detecting objects based on color.\n- Proposed improvements for the object detection function using the Kalman Filter for predicting the position of objects in real-time.\n- Implemented two functionalities using object color detection: \"Invisibility Cloak\" and \"Green Screen\".\n- Developed a graphical user interface (GUI) for applying filters and object detection.\n\n## Part 2: Dodge Game - Chicken Escape 🐔🦊\n\nThe Dodge Game is an implementation of computer vision principles in the gaming domain. It offers an immersive gaming experience where players control a chicken 🐔 to navigate through obstacles 🌳 and avoid fox enemies 🦊 using real-time object detection techniques.\n\n### Features\n- **Object Detection Control**: Players can control the movement of the character using real-world objects, specifically by manipulating a colored object detected through the camera. The default color is green.\n- **Dynamic Obstacle Avoidance**: The game environment presents dynamic obstacles that the player must navigate through by moving the character horizontally.\n- **Scoring System**: Players accumulate points based on their performance, with increasing difficulty levels as the game progresses.\n- **Enhancements**: Two additional enhancements, such as score tracking or speed variations, contribute to the gameplay experience.\n\n### Gameplay\n- **Objective**: Navigate the chicken character through obstacles (foxes and trees) by manipulating a colored object detected through the camera.\n- **Controls**:\n    - Keyboard Controls:\n        - \"SPACE\" bar: Start or restart the game.\n        - \"Q\": Move the character left.\n        - \"D\": Move the character right.\n        - \"E\": Quit the game.\n        - \"2\": Horizontal movement.\n        - \"3\": Horizontal and vertical movement (Kalman Filter).\n    - Object Detection: Control the character's movement by shifting the position of a colored object detected through the camera.\n\n## Installation\nTo run the project, follow these steps:\n\n1. Ensure Python is installed on your system.\n2. Install the necessary libraries: `pip install -r requirements.txt`.\n3. Run the project: `python IHM.py`.\n4. Interface Buttons:\n    - Object Detection: Start detecting and tracking the object using your webcam. (default color is green)\n    - Invisibility: Activate the invisibility mode to make the object disappear against a background.\n    - Fond Vert: Apply the green screen effect to replace the background with a custom image.\n    - Stop: Stop the object detection or background effect.\n    - Clean: Clear the canvas.\n    - Game: Run the dodge game window.\n    - Moyen: Apply the mean filter to the displayed image.\n    - Median: Apply the median filter to the displayed image.\n    - Gradient: Apply the gradient filter to the displayed image.\n    - Gaussien: Apply the Gaussian filter to the displayed image.\n    - Laplacien: Apply the Laplacian filter to the displayed image.\n    - Erode/Dilate: Apply morphological operations (erosion and dilation) to the displayed image.\n    - Closing/Opening: Apply morphological operations (closing and opening) to the displayed image.\n    - Prewitt(H/V): Apply the Prewitt filter (horizontal or vertical) to the displayed image.\n    - Sobel: Apply the Sobel filter to the displayed image.\n    - Threshold and Type Adjustments: Adjust the threshold and type for thresholding using the scales provided.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanel15279%2Fcomputer-vision-dodge-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanel15279%2Fcomputer-vision-dodge-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanel15279%2Fcomputer-vision-dodge-game/lists"}