i wanna find minimum boundingbox that can fit in qr code . i searched and i diidn't know how to implement it pleade help

 採用された回答

Matt J
Matt J 2021 年 12 月 22 日
編集済み: Matt J 2021 年 12 月 22 日

0 投票

load Image
BW=bwareafilt( imclose(~Image,ones(25)) ,1);
reg=regionprops(BW,'BoundingBox')
reg = struct with fields:
BoundingBox: [428.5000 172.5000 322 321]
imshow(Image)
drawrectangle('Position',reg.BoundingBox,'Color','red');

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeResizing and Reshaping Matrices についてさらに検索

タグ

質問済み:

2021 年 12 月 22 日

編集済み:

2021 年 12 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by