{"id":23397522,"url":"https://github.com/rishraks/color-object-detection","last_synced_at":"2026-04-11T08:06:15.603Z","repository":{"id":267815205,"uuid":"902446812","full_name":"rishraks/Color-Object-Detection","owner":"rishraks","description":"This project enables real-time detection of user-defined color objects using a webcam. Users enter a color name, and the program identifies objects matching that color by converting it to its HSV range, applying a mask, and detecting contours. It's a practical tool for object tracking, sorting, and interactive applications.","archived":false,"fork":false,"pushed_at":"2024-12-12T15:40:00.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T18:22:10.227Z","etag":null,"topics":["computer-vision","numpy","opencv","pillow-library"],"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/rishraks.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}},"created_at":"2024-12-12T15:27:52.000Z","updated_at":"2024-12-12T15:42:51.000Z","dependencies_parsed_at":"2024-12-12T16:43:15.622Z","dependency_job_id":null,"html_url":"https://github.com/rishraks/Color-Object-Detection","commit_stats":null,"previous_names":["rishraks/color-object-detection"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rishraks/Color-Object-Detection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishraks%2FColor-Object-Detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishraks%2FColor-Object-Detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishraks%2FColor-Object-Detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishraks%2FColor-Object-Detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishraks","download_url":"https://codeload.github.com/rishraks/Color-Object-Detection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishraks%2FColor-Object-Detection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31673078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"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","numpy","opencv","pillow-library"],"created_at":"2024-12-22T08:19:05.909Z","updated_at":"2026-04-11T08:06:15.585Z","avatar_url":"https://github.com/rishraks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Color Detection Project\n\nThis project enables real-time detection of user-defined color objects using a webcam. Users input a color name, and the program identifies objects of that color by converting it to its HSV range, applying a mask, and detecting contours.\n\n## Libraries Used\n- **Numpy**: For numerical operations and array handling.\n- **OpenCV**: For image processing and real-time object detection.\n- **Webcolors**: For converting color names to RGB values.\n- **Pillow**: For image manipulation and additional utilities.\n\n## Features\n- Detects objects of a user-defined color in real time.\n- Highlights detected objects using contours.\n- Allows customization of colors through simple name input.\n\n## How It Works\n1. Users input the name of a color (e.g., \"red\", \"blue\").\n2. The program retrieves the RGB value of the color using `webcolors`.\n3. RGB values are converted to HSV for accurate color detection.\n4. A mask is applied to filter the specified color range.\n5. Detected objects are outlined using contours.\n\n## Requirements\n- Python 3.6 or higher\n- Libraries: `numpy`, `opencv-python`, `webcolors`, `Pillow`\n\nInstall the dependencies using:\n```bash\npip install numpy opencv-python webcolors Pillow\n```\n\n## Usage\n- Clone this project\n- Run the script using:\n```bash\nmain.py\n```\n- Enter a color name when prompted.\n- The program will display a video feed highlighting objects matching the specified color.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishraks%2Fcolor-object-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishraks%2Fcolor-object-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishraks%2Fcolor-object-detection/lists"}