Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to compute the center of a bounding box?

I'm using the QRCodeDetector class to get a position on a SR Code. So I use the detectAndDecode() method to search for a QR code and it returns a bounding box with the QR code region.

I know how to calculate the center of a square or rectangle. But I don't understand how the bounding box data is set.

How to compute the center of a bounding box?

I'm using the QRCodeDetector class to get a position on a SR Code. So I use the detectAndDecode() method to search for a QR code and it returns a bounding box with the QR code region.

I know how to calculate the center of a square or rectangle. But I don't understand how the bounding box data is set.