Hello i wanted a component for google vision , but that will take a time , and i think , in this plataform have a json and web api , and i can make a post to google vision whit my key to make it works , But this its the problem i dont know how to do it , i read the tutorial of web api but i dont untherstant to much , can anyone tell me where to read to do this?
I only want to take a picture and make a POST to google vision api and then get that “tags” and “descriptions” to save it in firebase for example
Okay i did it¡¡¡ , Only need to do its copy the example in google api documents and paste in the body of the web api , now i need to know how to extract from json xD
@angelshce22, Do you have to use the Google Vision API? We have an Image Recognizer component (see docs here) that uses Microsoft’s Vision API. Perhaps that will be sufficient for your needs.
I know we have a image tecognizer component , But dont work well , micrsosoft if u draw a triangle in your skin only can say its a tatto , google vision can say , its your arm,tatto,triangle,and the color ,
As for your question about how to extract data from JSON, the easiest way use our Get object from JSON block and then use the get property of object block to pull out the pieces. See here for some more information.
The thing is, you need to know what the types of each property are. So, for example, “responses” will be a list (aka an array in JSON language), as will “labelAnnotations”. You can tell this from the fact that the value of those properties start with a “[” in the JSON (another clue is that the property name ends in an “s”).
So, since those properties are lists, you probably want to loop over the responses, select the first label annotation and then do whatever you need to do with value of that label annotation’s “score” property (e.g. add it to list, append it to a string, etc).
Hi Angel,
I know this is over a year old but I’m trying to do the same thing. I cant figure out where my API key goes, what URL to use, and what header/ parameter is needed.
Can you send me a snippet of how you laid this out.