简体   繁体   English

为什么QR Code扫描仪在Android中无法正常工作?

[英]Why QR Code scanner doesn't work from angle in Android?

I was trying QR Code scanner in a React Native project. 我在React Native项目中尝试QR Code扫描器。 I have used these two libraries - 我已经使用了这两个库-

https://github.com/moaazsidat/react-native-qrcode-scanner https://github.com/moaazsidat/react-native-qrcode-scanner

https://github.com/ekreutz/react-native-barcode-scanner-google https://github.com/ekreutz/react-native-barcode-scanner-google

Both of these libraries doesn't scan QR Code from an angle. 这两个库都不从某个角度扫描QR Code。 Phone should be exactly in front of QR Code then only it scans. 手机应正好在QR码前面,然后才扫描。 However, same library works very fast and from any angle in iOS. 但是,同一个库可以在iOS中的任何角度快速运行。 Is it a limitation of android camera? 这是android相机的限制吗? Can we do something to achieve same behaviour in Android too? 我们也可以做一些事情来在Android中实现相同的行为吗?

I had a similar problem while developing barcode scanner for my app, I tried different libraries for Android, however Mobile vision (API developed by Google) pretty much solved this problem for me. 在为我的应用程序开发条形码扫描器时遇到了类似的问题,我尝试了针对Android的其他库,但是Mobile vision (由Google开发的API)为我解决了这个问题。 Give it a try 试试看

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM