更改

安全帽检测系统

添加303字节2017年10月27日 (五) 07:45
/* python opencv */
使用摄像头捕获视频并显示
 
import cv2
import numpy
import matplotlib.pyplot as plot
 
imcap = cv2.VideoCapture(0)
 
while(1):
# get a frame
ret, frame = imcap.read()
# show a frame
cv2.imshow("capture", frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
imcap.release()
cv2.destroyAllWindows()
=参考=
行政员管理员
6,105
个编辑