Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.16 KB

README.md

File metadata and controls

31 lines (21 loc) · 1.16 KB

Hough circle counter

Circle counter application using computer vision hough circle transform algorithm. Another capabillity of this application is to save bounding boxes for object detection tasks for deep learning porpuses. It saves a xml file named the same as image name in opened directory for labels. The structure of the xml file inherited from labelImg project which is suitable for tensorflow. You can also open the same directory with labelImg to correct labels.

Installation

First clone project to your directory, Then install following packages:

pip install numpy opencv-python matplotlib pillow

After installation run it by this command:

python main.py

Demo

hough-counter-demo

Config

You can change default config using init function in main.py file:

config = {
    "img_default_width": 600,
    "img_default_height": 400,
    "minDist": 22,
    "minRadius": 22,
    "maxRadius": 50,
    "gaussian_default": 5,
    "median_default": 7,
    "threshold": 0
}