You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Video class takes the path to a file as an input. I think what you are looking for can be found in demo.py with python demo.py webcam. If you would like another feature please open a ticket for it.
Hi @JustinShenk, I am trying to use fer with a webcam but getting an error when using a web cam instead of video file with
Video()
`vid = cv2.VideoCapture(0)
while True:
ret, frame = vid.read()
face_detector = FER(mtcnn=True)
input_video = Video(vid)
processing_data = input_video.analyze(face_detector, display=False)`
The following error occurs at the input_video= Video()
TypeError: stat: path should be string, bytes, os.PathLike or integer, not VideoCapture
The text was updated successfully, but these errors were encountered: