Analysis for specific time interval of the video
BaggioMarco opened this issue · 3 comments
BaggioMarco commented
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
JustinShenk commented
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
<#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>.
BaggioMarco commented
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
JustinShenk commented
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.