필터 지우기
필터 지우기

How to track binary region in video?

조회 수: 2 (최근 30일)
akhil sambar
akhil sambar 2016년 6월 9일
I have extracted frames from video and I trying to track binary region in image here I am using the code to draw rectangle around binary but it is not tracking binary I need to track that region in video. Please help in this. thanks in advance.
all;
clc
image=imread('My_image.jpg');
BW=binary_image(image);
BW = ~BW; st = regionprops(BW, 'BoundingBox' );
for k = 1 : length(st)
thisBB = st(k).BoundingBox; rectangle('Position', [thisBB(1),thisBB(2),thisBB(3),thisBB(4)],... 'EdgeColor','r','LineWidth',2 )
end

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by