fer icon indicating copy to clipboard operation
fer copied to clipboard

Analysis for specific time interval of the video

Open BaggioMarco opened this issue 4 years ago • 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

BaggioMarco avatar Nov 04 '21 11:11 BaggioMarco

It is not currently possible without modifying the code. You could add a few lines in the loop over the frames to check the time which has elapsed.

On Thu 4. Nov 2021 at 12:01 BaggioMarco @.***> wrote:

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/justinshenk/fer/issues/36, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOLMZEXNVJPRIFTIHO2R7LUKJRZBANCNFSM5HLE3GDQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

justinshenk avatar Nov 04 '21 18:11 justinshenk

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

BaggioMarco avatar Nov 04 '21 18:11 BaggioMarco

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.

justinshenk avatar Nov 04 '21 20:11 justinshenk