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

 Akzeptierte Antwort

Matt J
Matt J am 22 Dez. 2021
Bearbeitet: Matt J am 22 Dez. 2021

0 Stimmen

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');

Weitere Antworten (0)

Kategorien

Tags

Gefragt:

am 22 Dez. 2021

Bearbeitet:

am 22 Dez. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by