This project has moved. For the latest updates, please go here.

Read and find qrcode size

Sep 30, 2013 at 8:41 PM

How could I read and find the QRCode size in a image.

We already have the barcode points, but and the bounding rectangle!?

Thanks a lot,
Oct 2, 2013 at 12:21 PM
You get the result points from the decoding method. Now you can calculate the rectangle from it.
You can look into the WinForms demo which does exactly the same.
Oct 2, 2013 at 4:45 PM
Hi micjahn,

Thanks for your answer, but this way it gives us a inbounding rectangle like this:


I wanna the outbounding rectangle in red like this image:


Do you know if is it possible!?

Thanks a lot,
Oct 3, 2013 at 5:04 PM
Yes, but it isn't that easy.
ZXing.Net doesn't give the outbounding points because it uses the center of the finder patterns internally.
One way is to look manually for the start of the quite zone around the code and stretching the rectangle.
Other way needs some changes in the detector and pattern finder classes.
Patches are welcome.