JustinShenk/fer

Analysis for specific time interval of the video

BaggioMarco opened this issue · 3 comments

Hi,

is it possibile at the moment running the analysis only for a specific segment of the video? For instance, analyse the video only from second 3.5 to second 7.8. If it is possibile, could you let me know how to do that?
thanks

thanks @JustinShenk could you please let me know which is such block of code I could try to integrate? I'll be glad to make some test on it as soon as I'm able to locate it, thanks

You could use similar logic to https://github.com/justinshenk/fer/blob/9ee385841f35b50fdf9740d9ab1f9cca96316b78/src/fer/classes.py#L220 to check if frameCount / frequency (which equals seconds elapsed in the video) is within a certain range, else continue.