In the program I use a canny filter like this:
circles = cv2.HoughCircles(cannyresult,cv2.cv.CV_HOUGH_GRADIENT,1,10)
if circles is None:
print'no '
Then the terminal prints no
which means there is no result back, and the cannyresult
is a picture with a lot of circles. Can someone help me on this please?
It's all about parameters, it always is. The parameters used in HoughCircles play a fundamental role.
I wish I could help you more, but without an input image to work with my hands are tied. The last reference I shared with you provides links to other answers with actual source code that demonstrates the importance of tweaking the function parameters until they work for you.