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 Exchange에서 Resizing 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