-
Notifications
You must be signed in to change notification settings - Fork 607
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
Indexing video with binary mask #5376
Labels
question
Further information is requested
Comments
Hi @Tomsen1410, I think you can try something like this:
as long as the content is bigger than the black bars.
It would be best for you to check which one performs better with your data. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the question.
Is it possible to index data nodes using a binary mask within a pipeline?
More precisely, I want to remove possible black bars on top and at the bottom of videos. For that, I compute all rows in a video with all-blac pixels and get a binary mask:
mask = fn.reductions.sum(video, axes=[0, 2, 3]) > 0
How can I now use the mask to crop the video accordingly?
Check for duplicates
The text was updated successfully, but these errors were encountered: