Skip to content

Wheel Detection

Ciaran-OBrien edited this page Oct 24, 2018 · 2 revisions

Going round in circles

Hough Circles

circles = cv2.HoughCircles(img,cv2.HOUGH_GRADIENT,1,40,param1=50,param2=30,minRadius=5,maxRadius=30)
circles = np.uint16(np.around(circles))
# draw the outer circle
cv2.circle(image,(i[0],i[1]),i[2],(0,255,0),2)
# draw the center of the circle
cv2.circle(image,(i[0],i[1]),2,(0,0,255),3)

Clone this wiki locally