【问题标题】:Mobile Vision API BarcodeDetector only detects in centre of the screenMobile Vision API BarcodeDetector 仅在屏幕中心检测
【发布时间】:2017-07-14 05:12:42
【问题描述】:

我正在为我的应用使用 Google Play 服务(版本 10.2.0)上 Mobile Vision API 中的 BarcodeDetector。我几乎从他们提供的小应用程序中获取了代码: https://github.com/googlesamples/android-vision

并且仅当条形码位于屏幕的中间/中心时才会检测到它们。有没有办法增加这个来扩展整个屏幕/相机预览?这对用户来说有点误导,除非您在中心添加一个矩形,引导他们将条形码放在里面。

欢迎任何有关如何完成此任务的帮助!

【问题讨论】:

  • 对我来说根本没有检测到它们......想知道为什么
  • 此处相同 .. 在 KITKAT 上运行良好,但在 ANDROID 6 上运行良好

标签: android barcode android-vision vision-api


【解决方案1】:

显然,由于缺少查找器模式,这仅发生在 DataMatrix 上。对于其余的条码,它可以在屏幕上的任何地方使用。

https://github.com/googlesamples/android-vision/issues/194

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-12-30
    • 1970-01-01
    • 1970-01-01
    • 2017-10-21
    • 2017-08-30
    • 1970-01-01
    • 1970-01-01
    • 2017-09-24
    相关资源
    最近更新 更多