def draw_circle(event,x,y,flags,param): #global ix,iy,drawing,mode if event == cv2.EVENT_LBUTTONDBLCLK: if mode==True: print (x,y) else: print (y,x)