Forum Archive

How to scan qrcode

yaley

Hi it’s me, i have another question about scanning qrcode, i saw @omz that one, but that one was rotated, not good for scanning, can you please help?

@omz scan qrcode link: https://gist.github.com/omz/11891cb1c7ed459d34c7

I also tried to present it with an specific orientation, but still cannot.
Pls helpppppppppppp

Can you also give me an example of it?

JonB

What if you adjust main_view.transform

E.g.


main_view.transform=ui.Transform.rotation(math.pi/2)

Also, try with -pi/2, or pi.

yaley

@JonB thanks!
```
pi/2

 rotated the camera but wrong rotation

-pi/2
```
is working and with correct rotation!

Thank you!