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.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>