The function returns the QR Code angle detected.
The example demonstrates how to make a QR Code reader in the Python Coding Environment.
Code
sprite = Sprite('Square Box')
qr = QRCodeScanner()
qr.video("on flipped", 0)
qr.disablebox()
while True:
qr.analysecamera()
if qr.isdetected():
sprite.setx(qr.xpos("center"))
sprite.sety(qr.ypos("center"))
sprite.setdirection(qr.angle())
sprite.say(qr.codedata())
sprite.show()
else:
sprite.hide()
Output
Read More