Filter löschen
Filter löschen

How to track binary region in video?

2 Ansichten (letzte 30 Tage)
akhil sambar
akhil sambar am 9 Jun. 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

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by