简体   繁体   English

使用arcore和ml kit firebase检测到二维码后,如何使用增强现实来更改二维码的颜色

[英]how to use augmented reality to change the color of a qr code once it is detected using with arcore and ml kit firebase

我需要开发一个允许我扫描条形码的 android 应用程序,如果该条形码保存在预定义的列表中,请使用 arcore 和 ml 套件将条形码的颜色更改为绿色,如果不更改为红色

The easiest solution that can be developed in no time is to add a green/red rectangle around the QR code.可以立即开发的最简单的解决方案是在 QR 码周围添加一个绿色/红色矩形。 Otherwise you would have to update the screen pixels where you have the black (or white as you wish) and replace them with green/red pixels.否则,您必须更新具有黑色(或您希望的白色)的屏幕像素,并用绿色/红色像素替换它们。 From the developement point of view the second solution is far more complex than the other one, considering the techology that you are using.从开发的角度来看,考虑到您使用的技术,第二种解决方案比另一种复杂得多。

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

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