Now it is giving me a new error which basically is saying that the given image is of wrong type. But in the documentation it is saying I can send it a .jpg
You could try with the webviewer, using the webviewextra extension to allow you to pick files from your shared directories. Could you then use a upload html facility provided by FoodVision? (Alternatively write your own html page and host somewhere - perhaps locally on the device - in the app - if only html/javascript)
oh, so like use that snippet in my own file hosted in the assets folder right? and then get the file data from there? where would the response be generated then
Ok so i am doing something similar now. index.txt (489 Bytes)
Here is the website I have created till now. Now what I wanna do is get the analyzed image text and send it back to the app. How can I achieve this?
Upload the image
I think this is {{ analyzedImage.category.name.replace(/_/gi, ' ') }} - {{
probabilityText }} .
<- upload an image here
Nutrition profile of the average {{
analyzedImage.category.name.replace(/_/gi, ' ') }}
{{ nutrition.calories }} calories
what do you mean by that? like its not working or something else?
I should also clarify that this is another API called spoonacular. spoonacular recipe and food API -> docs for this