opencv調用攝像頭攝像並進行處理時有卡頓

應當將攝像做爲一個線程來進行採集數據,例程(python):python import cv2 import threading ... cap = cv2.VideoCapture(0) ... def captureFrame(): ret, frame = cap.read() thread1 = threading.Thread(target=captureFrame
相關文章
相關標籤/搜索