second_canvas = 250*np.ones((300,300,3), dtype="uint8")
cv2_imshow(second_canvas)
cX1,cY1 = (second_canvas.shape[1]//2,0)
cX2,cY2 = (second_canvas.shape[1],second_canvas.shape[0]//2)
cX3,cY3 = (second_canvas.shape[1]//2,second_canvas.shape[0])
for i in range(1,4):
cv2.circle(second_canvas, (cX'{}',cY'{}').format(i), 175,(0,255,0))
cv2_imshow(second_canvas)
As in here, I want for loop in order to use the respective variable. Can anyone help, please if there is a way to do this? Thanks
xy = []and thenxy.append((second_canvas.shape[1]//2,0))etc. Then you can simply iterate over the list:for x,y in xy: