简体   繁体   English

expo 的图像检测反应原生

[英]Image Detection for expo react native

I would like to include a feature in my app, where you can scan a certain picture and the app would recognise this image.我想在我的应用程序中包含一个功能,您可以在其中扫描特定图片,应用程序会识别此图像。 Just like the image recognition feature in Viro: https://docs.viromedia.com/docs/ar-image-recognition .就像 Viro 中的图像识别功能: https://docs.viromedia.com/docs/ar-image-recognition So I would set a certain image and it only needs to recognise this image.所以我会设置一个特定的图像,它只需要识别这个图像。

I'm working with expo react native.我正在使用 expo 反应原生。

Does anybody have and idea how I might build this feature?有人知道我如何构建这个功能吗?

Thanks谢谢

You can possibly just make it call a python service on the backend and pass it the image and get back the result for it.您可以让它在后端调用 python 服务并将图像传递给它并取回结果。

If you want to go serverless, you can even get a premade AWS lamda function, which you can call and pass it the image, and it'll do the processing for you.如果你想要 go 无服务器,你甚至可以得到一个预制的 AWS lamda function,你可以调用它并将图像传递给它,它会为你做处理。

In the end, it's better if you do this kind of processing on the server side, your app could get locked up because image processing can take time and you don't want that to happen on a mobile app.最后,最好在服务器端进行这种处理,因为图像处理可能需要时间,而您不希望在移动应用程序上发生这种情况,您的应用程序可能会被锁定。

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

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