-
Notifications
You must be signed in to change notification settings - Fork 53
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
Reading cropped frames #387
Comments
It's a little out of scope of this package, but if they're TIFFs you can via mmaping May be possible for other image formats too |
Or by images do you mean frames from a video file? |
I mean frames from a video file. Currently I don't know how to read just portions of a frame. I am reading whole frames and discarding most pixels. |
I don't think this is supported in VideoIO. It might be possible but would require looking into whether |
I also face the same issue; I want to crop my video in time too. encoder_options = (crf=15, preset="fast") |
Is it possible to read crops of frames from disk, say frame[1:100,300:500]? We have these large images that we would like to read as efficiently as possible. Only a specific area is relevant for the calculations, and so reading the full frame to discard tons of pixels isn't very nice.
The text was updated successfully, but these errors were encountered: