How to track binary region in video?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!