Ask Your Question
0

HoughCircles freezes

asked 2019-11-29 07:19:28 -0600

mael15 gravatar image

Hi, I am excited about the HoughCircles function and impressed how well it works in the demo. I would love to use it in this image: https://drive.google.com/file/d/1ft3e... But even though I played around a lot with the parameters, HoughCircles continues to freeze. I do not understand the documentation for the param1 and param2 so I cannot give them meaningful values. I use these values: HoughCircles(src_gray, circles, HOUGH_GRADIENT, 1, 10, cannyThreshold, accumulatorThreshold, 3, -1); Can someone please explain these parameters in more detail and/or give me working values for this picture? Thank you!

edit retag flag offensive close merge delete

Comments

Do you want to circles all of them or just black circles?

supra56 gravatar imagesupra56 ( 2019-12-01 20:20:02 -0600 )edit

I want to detect all the small ones at the end of the lines. My idea is to load the image into my app, let the user draw one circle the size of the one he wants to detect and one line between two circle centers to get the distance. Then take both values +-50% as input values for the HoughCircles function.

mael15 gravatar imagemael15 ( 2019-12-02 04:05:26 -0600 )edit

In what languages..python3, perl vc,etc? I merely do python 3.7 Your problem can be solved If I do on python 3 .7.

supra56 gravatar imagesupra56 ( 2019-12-02 09:39:06 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-12-02 08:57:38 -0600

mael15 gravatar image

updated 2019-12-02 08:58:03 -0600

Okay, it did not freeze but due to a very low accThresh value there were 180k circle centers found an those took very long to process. The question remains: How can one find adequate values for cannyThresh and accThresh?

edit flag offensive delete link more

Comments

That is not answered.

supra56 gravatar imagesupra56 ( 2019-12-02 09:40:55 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-11-29 07:19:28 -0600

Seen: 698 times

Last updated: Dec 02 '19