从品牌网站建设到网络营销策划,从策略到执行的一站式服务
如下所示:
创新互联于2013年创立,先为高邑等服务建站,高邑等地企业,进行企业商务咨询服务。为高邑企业网站制作PC+手机+微官网三网同步一站式服务解决您的所有建站问题。def draw_circle(event,x,y,flags,param): global ix,iy,drawing,mode,start_x,start_y if event == cv2.EVENT_LBUTTONDOWN: if drawing == False: start_x, start_y = x,y ix,iy = x,y drawing = True elif drawing == True: cv2.line(img,(ix,iy),(x,y),(0,255,0),3) ix, iy = x, y print(drawing) elif event == cv2.EVENT_MBUTTONDOWN: drawing = False cv2.line(img, (ix, iy), (start_x, start_y), (0, 255, 0), 3) print(drawing) # # elif event == cv2.EVENT_RBUTTONUP: # cv2.line(img,(ix,iy),(x,y),(0,255,0),3) # Next we have to bind this mouse callback function to OpenCV # # window. In the main loop, we should set a keyboard binding for # key ‘m' to toggle between rectangle and circle. img = np.zeros((512,512,3), np.uint8) cv2.namedWindow('image') cv2.setMouseCallback('image',draw_circle) while(1): cv2.imshow('image',img) k = cv2.waitKey(1) & 0xFF if k == ord('m'): # 切换模式 mode = not mode elif k == 27: break cv2.destroyAllWindows()
成都网站建设公司地址:成都市青羊区太升南路288号锦天国际A座10层 建设咨询028-86922220
成都快上网科技有限公司-四川网站建设设计公司 | 蜀ICP备19037934号 Copyright 2020,ALL Rights Reserved cdkjz.cn | 成都网站建设 | © Copyright 2020版权所有.
专家团队为您提供成都网站建设,成都网站设计,成都品牌网站设计,成都营销型网站制作等服务,成都建网站就找快上网! | 成都网站建设哪家好? | 网站建设地图