I have a for loop, used to mark circles under Hough function from OpenCV:
for i in circles[0,:]:
x=i[0]
y=i[1]
cv2.circle(cimg,(i[o],i[1]),i[2],(0,255,0),2)
cv2.circle(cimg,(i[o],i[1]),2,(0,0,255),3)
text='x='+str(x)
text2='y='+str(y)
cv2.puttext(img, text,(10,90),font,1,(0,0,255),cv2.line_aa)
The thing i want to do is to save every x-y coords of the circle under different variables, like a=x1, b=y1 (for iteration 1) so i would be able to call a,b and use them later. Any ideas?
If i just print i[0] it will output just the x1 (first iteration for the first circle) and x2 (second iteration from the second circle), just like this: 22 42
Thanks!