JacobEkedahl / detect-intros-from-video

MIT License
8 stars 2 forks source link

second execution only takes one second #126

Closed tago-SE closed 4 years ago

tago-SE commented 4 years ago

Saves the result when comparing frame hashes between A and B in the json file for A. If a comparison is done between two identical files it will load the same result, provided the threshold value hasn't changed.

Result

First run: ~50 seconds for 6 files Second run: 1 second given the same 6 files.

This could be further optimized by also saving the result of A-B in B, provided that a comparison between A and B is the same as B and A (which it should be). Which would shave off 8 seconds when file B is to be compared for the first time --> ~ 42 seconds instead of 50