I was going through the Capstone Project for “The Python Programmer Bootcamp” lesson again, and I came across an issue in the Hough circle transform section.
Well, I have the same code as typed in the lesson but instead of 8 circles, as detected in the lesson, my code detected only 3 of them.
I tried running in all possible environments, spyder, CLI, and also jupyter notebook. The results were the same. Since, I am new to image processing, could you assist me with the code to debug this?
Here is the output for the circle co-ordinates and their respective radii. Code for Hough Circles circles = cv2.HoughCircles(img,cv2.HOUGH_GRADIENT,0.9,120,param1=50,param2=27,minRadius=60,maxRadius=120). If i print this, I just get 3 co-ordinates, out of 8. [[[706.5 132.5 64. ]
[875.5 264.5 70.2]
[735.5 332.5 70.2]]]
Never mind, reduced the minimum radius value to get my expected output. Cheers!!
Sounds cool! 🙂