Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- img = imread('img.jpg');
- bw = im2bw(img);
- cc = bwconncomp(bw);
- stats = regionprops(cc, 'BoundingBox');
- [36,50 37,50 29 29]
- [46,50 363,50 11 13]
- [60,50 135,50 10 8]
- [60,50 246,50 7 14]
- [155,50 42,50 8 14]
- [155,50 156,50 3 3]
- [155,50 260,50 5 8]
- [182,50 355,50 5 8]
- [259,50 48,50 7 8]
- [261,50 260,50 3 2]
- [261,50 366,50 5 8]
- [280,50 154,50 8 8]
- [365,50 151,50 8 8]
- [367,50 13,50 8 8]
- [373,50 262,50 2 3]
- [394,50 358,50 5 8]
Add Comment
Please, Sign In to add comment