MrinalJain17 / mydia

A simple and efficient wrapper for reading videos as NumPy tensors
https://mrinaljain17.github.io/mydia/
MIT License
25 stars 3 forks source link

Optimization when reading frames. #9

Closed MrinalJain17 closed 6 years ago

MrinalJain17 commented 6 years ago

https://github.com/MrinalJain17/mydia/blob/5ff2384fa34b5deb7f48fbbf7aedfc9a1ecfb5ab/mydia/mydia.py#L159

Terminate the loop if the required frames have been already read.

MrinalJain17 commented 6 years ago

Closing since this was not creating any significant impact. Moreover, once custom indices are supported, this method of optimization would be invalid.

Nevertheless, optimization is a major factor and therefore, a new issue has been created in that regard.

10