How to track binary region in video?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!