フィルターのクリア

mark a rectangle over playing video

3 ビュー (過去 30 日間)
ilona
ilona 2015 年 11 月 28 日
回答済み: safa BY 2018 年 7 月 16 日
Hello guys, my goal is to be able to play a video frame by frame and then let the user mark with a rectangle chosen object (for example the user should be able to choose faces and chairs from the movie that is beeing displayed) then I would like to find a way to save the properties of the rectangles selected by the user (for example in frame 11 - [x,y,width,hight] of the marked rectangle) but for some reason the rectangle selection appears on a different window, why? how do I resolve this?
this is my code so far:
videoFReader = vision.VideoFileReader('sample.avi');
videoPlayer = vision.VideoPlayer;
hold on;
imrect;
daspect([1,1,1])
while ~isDone(videoFReader)
videoFrame = step(videoFReader);
step(videoPlayer, videoFrame);
end
release(videoPlayer);
release(videoFReader);

回答 (1 件)

safa BY
safa BY 2018 年 7 月 16 日
Hello, Did you find any solution ? I m looking for the same code solution plz

カテゴリ

Help Center および File ExchangeC4ISR についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by