从屏幕扫描QR码 [英] Scanning QR code from screen

查看:101
本文介绍了从屏幕扫描QR码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试读取设备屏幕上显示的QR码,但是如果不先截取屏幕截图,我将找不到能够执行此操作的任何库.我知道使用 zxing 可以从图像中扫描QR码,但是当QR码出现在设备屏幕中时,有什么方法可以在运行时进行扫描吗?

I'm trying to read a QR code that appears on the device screen but I cannot find any library that does it without taking a screenshot first. I know that using zxing it is possible to scan the QR code from an image, but is there any way to do the scan on runtime when the QR code appears in the device screen?

推荐答案

您可以尝试Google的Mobile Vision API .

The detect method only requires a Frame, which you can build from a Bitmap.

这篇关于从屏幕扫描QR码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆