How to track binary region in video?

1 vue (au cours des 30 derniers jours)
akhil sambar
akhil sambar le 9 Juin 2016
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

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by