I am trying to make a face tracker that combines Haar Cascade Classification with Lucas Kanade good feature detection. However, I keep getting an error that I cannot figure
You have to delay
Example Code:
import cv2 import numpy as np import time cam = cv2.VideoCapture(0) time.sleep(2) while True: ret,frame = cam.read() cv2.imshow('webcam', frame) if cv2.waitKey(1)&0xFF == ord('q'): break cam.release() cv2.destroyAllWindows()