ML Kit Image Labeling localized

101 views
Skip to first unread message

Matteo Gabella

unread,
Feb 1, 2019, 10:55:39 AM2/1/19
to Firebase Google Group
Hi, is it possible to obtain labels from ML Kit Image Labeling in a given language?
I easily manage to get them in english... but i need different languages, any suggestion?

in the docs i found this "In addition the text description of each label that ML Kit returns, it also returns the label's Google Knowledge Graph entity ID. This ID is a string that uniquely identifies the entity represented by the label, and is the same ID used by the Knowledge Graph Search API. You can use this string to identify an entity across languages, and independently of the formatting of the text description."
is it possibile to use graph entity id to translate the label?

thank you
Matteo

Sachin Kotwani

unread,
Feb 1, 2019, 1:40:27 PM2/1/19
to fireba...@googlegroups.com
Hi Matteo,

The image labeling API only returns results in english. If you'd like to rely on the knowledge graph entity ID instead you could use the Knowledge Graph Search API to retrieve the corresponding string in other languages (example).

Thanks,

Sachin
PM on ML Kit



--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/3eff860f-44ad-4574-aa3a-dba04e5fd625%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matteo Gabella

unread,
Feb 4, 2019, 11:05:47 AM2/4/19
to Firebase Google Group
Thank you for your reply... unfortunately is not always reliable..
i have a pic labeled with

Label: Petal, Confidence: 0.98611933, EntityID: /m/016q19

Label: Flower, Confidence: 0.97793585, EntityID: /m/0c9ph5

Label: Plant, Confidence: 0.84675586, EntityID: /m/05s2s

Label: Garden, Confidence: 0.7800221, EntityID: /m/0bl0l


but if i check the second and the 4th label with knowledge graph, i obtain only an empty response... even in english

do you know why is this happening?

thank you anyway


Matteo

Sachin Kotwani

unread,
Feb 4, 2019, 3:17:52 PM2/4/19
to fireba...@googlegroups.com
Matteo, are you using the on-device or cloud-based image labeling API?

Matteo Gabella

unread,
Feb 5, 2019, 10:13:05 AM2/5/19
to fireba...@googlegroups.com
yes!

You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/UjiRUm6TezQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

Sachin Kotwani

unread,
Feb 5, 2019, 10:14:55 AM2/5/19
to fireba...@googlegroups.com
which one of the two, on-device or cloud? or are you getting similar results with both?

Matteo Gabella

unread,
Feb 5, 2019, 11:26:34 AM2/5/19
to fireba...@googlegroups.com
ah sorry, my response was quite ambiguos :)... i use only on device library... i didn't tried with cloud feature, because was only for testing purposes

Reply all
Reply to author
Forward
0 new messages