Skip to content

Does the Unity version support other formats beside QR-Code? #429

Discussion options

You must be logged in to vote

My sincere apologies, the issue is not with ZXing but rather with the way that the AR foundation handles raw camera output. Apparently, when you access the camera on a mobile device the default camera rotation is landscape. So even if your phone is in portrait mode, the camera's raw image output is still in landscape. The AR foundation does not care for device rotation, however when your camera is in portrait mode it still shows it as portrait, while in the background your camera images are processed in landscape. This is a huge false positive understandably confusing for a lot of developers. To fix the issue you can rotate your Texture2D with this code:

Texture2D rotateTexture(Texture2D …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@dennisvankekem
Comment options

@dennisvankekem
Comment options

@dennisvankekem
Comment options

Comment options

You must be logged in to vote
1 reply
@micjahn
Comment options

Answer selected by dennisvankekem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants