Zum Beispiel [Taro Tamago](https://www.google.co.jp/search?q=%E7%8E%89%E8%91%B1%E3%81%95%E3%82%93%E5 % A4% AA% E9% 83% 8E & source = lnms & tbm = isch & sa = X & ei = ZPFOVMnwHo3x8gWk1YKYCQ & ved = 0CAgQ_AUoAQ & biw = 1096 & bih = 593) Senden wir eine Anfrage wie diese.
import docomocv as d
client = d.DocomoCVClient(<YOUR_API_KEY>)
client.recognize('./tamanegi.jpg', d.Recog.food)
Ein solches Ergebnis kann erhalten werden.
{'candidates': [{'sites': [{'imageUrl': 'http://ecx.images-amazon.com/images/I/61t%2BbGIlK2L._SX385_.jpg', 'url': 'http://www.amazon.co.jp/gp/product/B0094BL1RM', 'title': 'Amazon.co.jp:Yaoki-san Taro 15g x 300 Beutel:Essen&Getränk'}], 'itemId': 'food_0000193194', 'imageUrl': 'http://ecx.images-amazon.com/images/I/61t%2BbGIlK2L._SX385_.jpg', 'category': 'food', 'score': 1728.025390625, 'detail': {'releaseDate': '2012/09/03', 'quantity': '300', 'itemName': 'Yaoki-san Taro 15g x 300 Beutel', 'maker': 'Yaoki', 'brand': 'Yaoki', 'weight': '8 Kg', 'dimension': '61.4 x 57 x 43.2 cm'}}], 'recognitionId': '61486d30-5e3d-11e4-84c4-065d0f977797'}
>
Sie werden als Tamao-san Taro anerkannt!
Recommended Posts