Reputation: 122
Is it possible to impose a shape, let's say rectangle, on video files in Matlab ? I know that it is easily possible to do it on image files using shape inserter but couldn't find a way to do it on videos.
So far my best guess is to extract the frames, impose the rectangles and somehow encode it again into the stream. However, I wonder if there's a more elegant way to achieve it.
Upvotes: 1
Views: 491
Reputation: 39409
That's exactly the way you have to do it.
vision.VideoFileReader
insertShape
, insertMarker
, insertText
, or insertObjectAnnotation
vision.VideoFileWriter
Upvotes: 3