Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Allow videos to be iterable. #6

Closed
masasin opened this issue May 14, 2019 · 1 comment
Closed

ENH: Allow videos to be iterable. #6

masasin opened this issue May 14, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@masasin
Copy link

masasin commented May 14, 2019

There's a function to iterate over all the frames in a video, but it would be much prettier to just for frame in video: directly, especially if you're already controlling what you're getting using the context manager.

@masasin masasin changed the title Allow videos to be iterable. ENH: Allow videos to be iterable. May 14, 2019
@anbergem anbergem added the enhancement New feature or request label May 15, 2019
@anbergem
Copy link
Owner

Great proposal! My first thought is that this would have to be done by extending the cv2.VideoCapture class, adding an __iter__ method. Any inputs on this?

I'm currently developing tests, but I'll be sure to add this soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants