嗨 我是丹
Hey, I’m Dan.
[网页开发者]
[web developer]
有个小实验 我们把它叫做翻译器
It’s a little experiment that we called thing translator.
随意挑一个你照片里的东西
Let’s see. Point your camera stuff.
你知道如何用不同的语言称呼它吗?
Do you know how to say it in different language?
杯
trophy
鞋
shoe
电子广告牌
electronic signage
使用Google的机器学习API工具的快速方案是
It’s a little hack using tool of Google’s machine-learning APIs.
Cloud Vision + Translate API
Cloud Vision + Translate API
拍一张照片
You take a picture.
把它上传到 Cloud Vision API
Send it to the Cloud Vision API.
得到一些根据它外形猜测出的物品名称
Which returns a list of labels for what it sees,
以及每个名称的相关度
the confidence score of which one.
最终翻译结果是相关度最高的物品名
It take the top one.
这差不多就是
The sense of the Translate API to translated.
Translate API 的翻译原理
And that’s pretty much it.
它支持多种语言
You can do a bunch of different languages.
厂
planta
厂
Pflanze
你也可以在笔记本上使用它
Works for your laptop too,
因为它是以网站为基础 可以运行在浏览器上
since it all built for the web, running in your browser.
南瓜
pumpkin
欲知试用版的代码
You can get the code for this demo.
登录 ‘G.CO.I/AIEXPERIMENTS ‘
Try it out at ‘G.CO.l/AIEXPERIMENTS’.
