Skip to content

Circles counter application using computer vision hough circle transform algorithm

License

Notifications You must be signed in to change notification settings

pwwiur/hough-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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
}

About

Circles counter application using computer vision hough circle transform algorithm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages