如何在不捕获图像的情况下识别条形码,QR码?

问题描述 投票:0回答:2

[我不知道如何识别条形码和QR码(甚至是字符)而没有捕获它。我已经在很多应用程序中看到,当我们将设备保持在其中任何一个(QR /条形码)上方时,应用程序会自动识别并启动处理。是否有用于此的扫描机制?如何做到这一点?这涉及什么机制?

提前感谢。

ios camera qr-code barcode-scanner scanning
2个回答
1
投票
  1) The phone camera will be launched by the library it will autofocus and scans until it finds the decoded info from the image displayed by camera

  2) The info will be parsed by the library and it will give you the result.

0
投票

您可以使用AVCaptureSession,例如:

© www.soinside.com 2019 - 2024. All rights reserved.