Solution to stretching problem of Android zxing QR code scanning picture
In this project, zxing is integrated in QR code scanning, and the image of the scanning interface has obvious tensile deformation.
According to past experience, this problem is generally caused by the dislocation of X and Y axes. Generally, the problem can be solved by properly handling the problems of X and Y axes.
Because of this problem, many people have encountered it before and shared it on the Internet, so I don't need to make wheels again.
I read a blog here: Android zxing QR code scanning picture stretching, using the above method,
Successfully solve the picture stretching problem.
The solution is as follows:
Modify the initfromcameraparameters method in cameraconfigurationmanager.java:
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.