https://github.com/denrydu/cv_circles_counter
利用OpenCV写的几个数硬币的demo,有从图片中识别硬币的,也有可以实时视频中识别的
https://github.com/denrydu/cv_circles_counter
coin contours opencv python3
Last synced: 6 months ago
JSON representation
利用OpenCV写的几个数硬币的demo,有从图片中识别硬币的,也有可以实时视频中识别的
- Host: GitHub
- URL: https://github.com/denrydu/cv_circles_counter
- Owner: DenryDu
- Created: 2020-07-01T14:08:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-18T02:58:53.000Z (over 1 year ago)
- Last Synced: 2025-03-25T10:51:14.131Z (7 months ago)
- Topics: coin, contours, opencv, python3
- Language: Python
- Homepage:
- Size: 1.55 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Coin and circle counters for python using OpenCV
  A program that detects the number of coins or circles in an image
> 一个可以检测图片中硬币或者圆圈数量的程序
## Table of Contents
- [Background](#background)
- [Install](#install)
- [Usage](#usage)
- [Related Efforts](#related-efforts)
- [Maintainers](#maintainers)
- [Contributing](#contributing)
- [License](#license)## Background
When studying CV basic operations, I want to use these skills to detect some thing, and that's why I made this proj
在学习计算机视觉基础操作的时候,我想利用这些技巧去检测一些东西,受到一些项目启发,做了这个项目来对图片或者实时视频中的硬币或圆形物体进行检测
## Install
Just **Download** and **Unzip** the repo!
## Usage
##### 1.Find coins in an image statically
```
python3 coin_counter_test_to_find_good_parameter.py
```
```mermaid
graph LR
start[start] --> load[load image]
subgraph gray
load -- Convert to gray scale --> grayscale[Gray Image]
end
grayscale -- Apply median blur --> mblur[Image Blurred]
subgraph blur
mblur -- Apply gaussian blur --> gblur[Image Blurred]
end
subgraph edge detection
gblur -- Canny Edge Detection --> cEdge[Edges]
end
subgraph draw contours
cEdge -- Find contours --> contours[Contours]
end
contours -- Draw and Count the contours --> stop[stop]
```##### 2.Find circles from video instantly
```
python3 Find_Circles_And_Say.py
```
examples:
![]()
## Related Efforts
[scikit image segmentation](https://scikit-image.org/docs/stable/auto_examples/applications/plot_coins_segmentation.html)
## Maintainers
[@DenryDu](https://github.com/DenryDu)
## Contributors
## License***
If you find this useful, please star it! :)
Denry Du 2019