{"id":18632509,"url":"https://github.com/denrydu/cv_circles_counter","last_synced_at":"2025-04-11T07:31:04.113Z","repository":{"id":106580190,"uuid":"276394711","full_name":"DenryDu/cv_circles_counter","owner":"DenryDu","description":"利用OpenCV写的几个数硬币的demo，有从图片中识别硬币的，也有可以实时视频中识别的","archived":false,"fork":false,"pushed_at":"2024-02-18T02:58:53.000Z","size":1622,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T10:51:14.131Z","etag":null,"topics":["coin","contours","opencv","python3"],"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/DenryDu.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":"2020-07-01T14:08:00.000Z","updated_at":"2024-09-18T12:30:10.000Z","dependencies_parsed_at":"2024-11-07T05:12:33.475Z","dependency_job_id":"a52f797b-8cfd-444f-8c25-afdcb5b6758b","html_url":"https://github.com/DenryDu/cv_circles_counter","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/DenryDu%2Fcv_circles_counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenryDu%2Fcv_circles_counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenryDu%2Fcv_circles_counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenryDu%2Fcv_circles_counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DenryDu","download_url":"https://codeload.github.com/DenryDu/cv_circles_counter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248358840,"owners_count":21090442,"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":["coin","contours","opencv","python3"],"created_at":"2024-11-07T05:12:26.131Z","updated_at":"2025-04-11T07:31:03.582Z","avatar_url":"https://github.com/DenryDu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Coin and circle counters for python using OpenCV\n![](https://img.shields.io/badge/language-python-green.svg)  ![](https://img.shields.io/badge/Coin_Counter-v1.0.6-519dd9.svg) ![](https://img.shields.io/badge/dependency-opencv-orange.svg)\n\nA program that detects the number of coins or circles in an image    \n\u003e 一个可以检测图片中硬币或者圆圈数量的程序\n## Table of Contents\n- [Background](#background)\n- [Install](#install)\n- [Usage](#usage)\n- [Related Efforts](#related-efforts)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Background\nWhen studying CV basic operations, I want to use these skills to detect some thing, and that's why I made this proj                 \n在学习计算机视觉基础操作的时候，我想利用这些技巧去检测一些东西，受到一些项目启发，做了这个项目来对图片或者实时视频中的硬币或圆形物体进行检测\n## Install\nJust **Download** and **Unzip** the repo!\n## Usage\n##### 1.Find coins in an image statically\n```\npython3 coin_counter_test_to_find_good_parameter.py\n```\n```mermaid\ngraph LR\n    start[start] --\u003e load[load image]\n    subgraph gray\n    load -- Convert to gray scale --\u003e grayscale[Gray Image]\n    end\n    grayscale -- Apply median blur --\u003e mblur[Image Blurred]\n    subgraph blur\n    mblur -- Apply gaussian blur --\u003e gblur[Image Blurred]\n    end\n    subgraph edge detection\n    gblur -- Canny Edge Detection --\u003e cEdge[Edges]\n    end\n    subgraph draw contours\n    cEdge -- Find contours --\u003e contours[Contours]\n    end\n    contours -- Draw and Count the contours --\u003e stop[stop]\n    \n```\n\u003c!--load image -\u003e convert to grey scale -\u003e apply median blur -\u003e apply gaussian blur -\u003e apply canny edge detection -\u003e find contours -\u003e draw contours -\u003e count the number of contours -\u003e thus, count the number of coins.\u003cbr\u003e\u003cbr\u003e--\u003e\n\n\n##### 2.Find circles from video instantly\n```\npython3 Find_Circles_And_Say.py\n```\nexamples:\n\n\u003cimg src=\"./find_circles_ex/find_circles_test_1.png\" width=\"600\"  alt=\"test_1\"/\u003e\n\u003cimg src=\"./find_circles_ex/find_circles_test_2.png\" width=\"600\"  alt=\"test_2\"/\u003e\n\n## Related Efforts\n[scikit image segmentation](https://scikit-image.org/docs/stable/auto_examples/applications/plot_coins_segmentation.html)\n## Maintainers\n[@DenryDu](https://github.com/DenryDu)\n## Contributors\n## License\n\n***\nIf you find this useful, please star it! :)\nDenry Du 2019\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenrydu%2Fcv_circles_counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenrydu%2Fcv_circles_counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenrydu%2Fcv_circles_counter/lists"}