Team-AY / FER-Landmarks

0 stars 0 forks source link

Offline Video processing takes too much #52

Open YakirHasid opened 10 hours ago

YakirHasid commented 10 hours ago

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

YakirHasid commented 9 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

YakirHasid commented 9 hours ago

Need to find a faster face detector?

YakirHasid commented 9 hours ago

image Timing the code

YakirHasid commented 9 hours ago

face detection takes about 0.2 seconds for each frame (multiple faces in frame could take longer)