Reputation: 700
I'm trying for a while to read QR codes in my application. I can read normal QR codes but now i have to read qr codes flipped vertically. I have thought that when you use the front camera, zxing reads the QR code vertically-flipped. Does anybody know how to change this functionality? Back camera functionanility in the front camera and front camera functionality in the back camera.
I have been looking in the core, but I don't find anything.. :(
Thanks in advance!
Upvotes: 1
Views: 1792
Reputation: 66886
QR codes are not valid when mirror-imaged -- rotated yes, but not mirrored. This is why the library will not read them, because they are not valid.
Android does not flip the image data from the front camera when it passes it to an app. (At least, not if the device is working correctly.) It does flip the image when it displays on a SurfaceView
so that it works more intuitively on screen.
So it will certainly read valid QR codes with the front camera.
Upvotes: 1