Open YakirHasid opened 10 hours ago
Correction: This is not because of rec.read(), it's because of: https://github.com/Team-AY/FER-Landmarks/blob/002fa1b589d94682091444300a95ecc54468856a/api/deeplearning/deeplearning.py#L78
Need to find a faster face detector?
Timing the code
face detection takes about 0.2 seconds for each frame (multiple faces in frame could take longer)
This is because rec.read() takes some time, but if you read each frame from the video it takes a lot of time. Maybe use other forms of frame grabbers such as ffmpeg