樹莓派python3+opencv調用usb攝像頭顯示和圖像預處理並進行保存

camera.pypython #!/usr/bin/env python3 # -*- coding:utf-8 -*- import cv2 import numpy as np name = 0 cap = cv2.VideoCapture(0) cap.set(3,640) cap.set(4,480) ret, frame = cap.read() rows, cols, chan
相關文章
相關標籤/搜索