amanwalia123 / KeyFramesExtraction

This repository contains script to divide a video into key frames.
MIT License
158 stars 34 forks source link

how to select parameter window_len? #8

Closed zHaOshuAnGye closed 2 years ago

zHaOshuAnGye commented 2 years ago

hello, nice project ! Its very useful. But I have a question : Since 'window_len' parameters have a great influence on the experimental results, how to choose the right window_len. Can you give some advice? Thank you very much.

amanwalia123 commented 2 years ago

Since window_len control the extent of smoothness in frame variation, you should give it a high value when there are too many local maximas (e.g. video is choppy or have sudden variations). The actual value is subjective to the kind of videos you are passing as input. You should also look at the generated graph to decide about optimal value for window_len.