摘要: import cv2 cap = cv2.VideoCapture(0) i = 0 while 1: ret, frame = cap.read() k = cv2.waitKey(1) if k == 27: break elif k == ord('s'): cv2.imwrite('E:/O 阅读全文
posted @ 2019-11-17 20:09 Tomorrow1126 阅读(189) 评论(0) 推荐(0) 编辑
摘要: import cv2 import numpy import os img = numpy.zeros((3, 3), dtype=numpy.uint8) print(img) img = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR) print(img) print 阅读全文
posted @ 2019-11-17 20:04 Tomorrow1126 阅读(120) 评论(0) 推荐(0) 编辑