2017-02-19 83 views

回答

0

您可以通過捕獲實時視頻:

cap = cv.VideoCapture(0) 

然後,你可以得到由

while(True) 
    ret, frame = cap.read() 
    # Perform your comparison here, 
    # between (frame) and your image 
    if cv2.waitKey(1) & 0xFF == ord('q'): 
     break 
cap.release() 
cv2.destroyAllWindows() 
每一個幀(圖片)
相關問題