Combine Zxing with EasyAR

0 votes
asked Jul 29 by rlmidiaalvs (450 points)
I need to get color32 or bytes[] to pass in the zxing decode. I get buffer from EasyAR image and use 'copy to byte Array', but the rotation is incorret. I tried readpixels from screen, but it's slow.  Any sugestion? Thanks!

1 Answer

0 votes
answered Jul 30 by zhangpengar (2,740 points)
selected Aug 1 by rlmidiaalvs
 
Best answer
The rotation of the image is normal, as the data is raw camera data and the camera is not aware of screen rotation. You don't need to care about the rotation if you only need to get text from zxing. QRCode is designed that rotation doesn't affect its decoding.

If you want to display the detected quadrangle, you need to first get the coordinates from zxing and then apply the rotation from inputFrame.cameraParameters().imageOrientation(screenRotation).
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...