摘要:
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 阅读全文
摘要:
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 阅读全文