You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
as long as the content is bigger than the black bars.
You can also try nonsilent_region operation that was designed for the audio signal in mind but should work in your case as well
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: