I've been testing out Google's Vision API to attach labels to different images.
For a given image, I'll get back something like this:
"google_labels": {
"responses": [{
"labelAnnotations": [{
"score": 0.8966763,
"description": "food",
"mid": "/m/02wbm"
}, {
"score": 0.80512983,
"description": "produce",
"mid": "/m/036qh8"
}, {
"score": 0.73635191,
"description": "juice",
"mid": "/m/01z1kdw"
}, {
"score": 0.69849229,
"description": "meal",
"mid": "/m/0krfg"
}, {
"score": 0.53875387,
"description": "fruit",
"mid": "/m/02xwb"
}]
}]
}
--> My questions are:
['produce', 'meal', ...]
) and where I could find that?I'm guessing 'No' and 'No' as I haven't been able to find anything, but, maybe not. Thanks!
While I can't verify the completeness of the database, the Google Open Images project has a list of around 20k classifications.
If you browse to the download page you are able to download the list with those descriptions as CSV.
I checked a few reference images within CloudVision and had the following results:
ID / CloudVision Classification / OpenImages Classification
1. 01ssh5 / Shoulder / Shoulder (Body Part)
2. 09cx8 / Finger / Finger
3. 068jd / Photograph / Photograph
4. 01k74n / Facial expression / Facial expression
5. 04hgtk / Head / Human Head
I was able to find all IDs with the same meaning in the CSV - so as a base list this should be sufficient. Be aware that you should always match by ID, not by classification, as there are a few slight changes.
If you find any IDs in CloudVision but not in the list, I'd be interested to know in the comments!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With