Info
This question is closed. Reopen it to edit or answer.
hi , my question is that how i can find a goal post in hocky match video ??
1 view (last 30 days)
Show older comments
i am using this
img = imread('2.jpg');
bw = im2bw(img);
% find both black and white regions
stats = [regionprops(bw)]
% show the image and draw the detected rectangles on it
imshow(bw);
hold on;
for i = 1:numel(stats)
rectangle('Position', stats(i).BoundingBox, ...
'Linewidth', 1, 'EdgeColor', 'r', 'LineStyle', '--');
end
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!