简体   繁体   English

RoboFlow model如何连接React Native Expo Camera

[英]How to connect RoboFlow model to React Native Expo Camera

I want to connect my roboflow model to my react native app so I can input user taken photos directly to my model to display results.我想将我的 roboflow model 连接到我的本机应用程序,这样我就可以将用户拍摄的照片直接输入到我的 model 以显示结果。 How would I go about doing this?我将如何 go 这样做?

Here is a link to my code: https://snack.expo.dev/@www112358/jealous-soylent这是我的代码的链接: https://snack.expo.dev/@www112358/jealous-soylent

I tried using Axios to make a POST req to the model but it doesn't seem to work, my code results in a error我尝试使用 Axios 向 model 发出 POST 请求,但它似乎不起作用,我的代码导致错误

are you using the example code snippets we have available to make the request?您是否使用我们提供的示例代码片段来发出请求?

https://docs.roboflow.com/inference/hosted-api#code-snippetshttps://docs.roboflow.com/inference/hosted-api#code-snippets

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

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