I've built a project based on the zxing 1.7 package, and done modifications according to posts in the issue #178 thread (that has vanished recently). The problem I'm facing is that the QR codes get compressed/squished, and this causes problems with the scanning. I'm not looking for anyone to do my coding for me, but if someone knows of this issue or has an idea about what could be causing it, I would greatly appreciate it if you let me know.
Asked
Active
Viewed 1,012 times
0
-
Have you tried the latest 2.0 package? It even comes with core.jar already compiled :O – Graham Smith Mar 23 '12 at 11:58
-
I have not tried the new package as of yet since we have integrated the 1.7 package (or rather parts of it) into our own project. Any suggestions on what could be the cause of the problems as described is greatly appreciated. – inept.robot.overlord Mar 23 '12 at 14:30
-
The tweak is simple, though need a little bit of changes across multiple files. Here I have put a complete solution for this question: http://stackoverflow.com/questions/16252791/how-to-show-zxing-camera-in-portrait-mode-on-android/16252917#16252917 – Roy Lee Apr 27 '13 at 16:35
1 Answers
0
(Issue 178 was deleted because it was just getting spammed. I reopened it temporarily just for your reference: http://code.google.com/p/zxing/issues/detail?id=178)
Yes you should use 2.0, but it is not the problem. You are not configuring the camera properly to work in portrait orientation. You need to call setDisplayOrientation()
as well as choose a preview size that (roughly) matches your screen aspect ratio. If you don't, you'll get the issues you see.
This is nothing to do with the library though, but your app.

Sean Owen
- 66,182
- 23
- 141
- 173
-
Thanks for your answer and for opening the issue. I never said it was a problem with the library, I only asked for advice about what could be causing my problem. – inept.robot.overlord Mar 27 '12 at 08:58