devoworm / GSoC-2020

6 stars 3 forks source link

fix mapping of frames to time instances for video analysis #38

Closed Mayukhdeb closed 4 years ago

Mayukhdeb commented 4 years ago

for every video, there are about 250 frames, but it's metadata is split into about 130 time instances, need a way to uniformly map the frames into the time values without biases to one side. np.array_split() makes it biased towards the start with a lower number of frames per time instance in the last few frames. Need to fix this imbalance.

Mayukhdeb commented 4 years ago

fixed with scipy.interpolate.interp1d([0,num_frames], [0, max_time])