Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Created March 30, 2020 13:42
Show Gist options
  • Save aravindpai/31f0b0430b3ddcad79875d7a244c99c5 to your computer and use it in GitHub Desktop.
Save aravindpai/31f0b0430b3ddcad79875d7a244c99c5 to your computer and use it in GitHub Desktop.
threshold = 15 * 10e3
for i in range(len(images)-1):
if(nonzero[i]>threshold):
scene_change_idx = i
break
frames = frames[:(scene_change_idx+1)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment