Is there a QR Code/Barcode API that detects orientation?

2.5k views Asked by At

I see the Google Barcode API and want to use QR codes. But I want to be able to detect whether it's rightside up, rotated 90-deg, 180-deg, or 270-deg, and count these as 4 different values.

I don't think this API supports orientations. Are there any that do?

I want to build this into an iOS and Android app.

If it's not using QR Codes, it could be something else, but ideally square, not like a wide barcode.

1

There are 1 answers

1
lessthanoptimal On

BoofCV's QR code detector gives you precise location of position patterns and alignment patterns. There's also a bounding rectangle.

https://boofcv.org/index.php?title=Example_Detect_QR_Code