从 iOS 7 开始,Apple 通过 AV Foundation 添加了内置基本条形码扫描功能。
Android 5 或 6(或任何 future 版本)有类似的功能吗?
只是一些基本的东西,例如 UPC、EAN、QR 码等。
最佳答案
Android 没有,但 Google Play 服务 Vision API确实如此。
要使用它,您需要将 Google Play Services SDK 添加为应用中的依赖项,最终用户需要在其设备上安装 Google Play Services 和 Android 4.2.2 或更高版本。
Vision API 目前支持以下格式
- 一维条码:EAN-13、EAN-8、UPC-A、UPC-E、Code-39、Code-93、Code-128、ITF、Codabar
- 二维条码:QR 码、Data Matrix、PDF-417、AZTEC
关于android - Android 5或6(或 future 版本)是否有像iOS一样内置的条形码扫描API?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38082550/