图像标注
使用MK中的图像标注API,你可以一幅图像中的各个主体,而且不需要你提供任何上下文相关的信息。你可以使用基于设备的API,也可以使用基于云的API。
图像标注技术可以让你了解图像中的内容。在使用这个API时,你会得到一个算法识别出的对象列表,比如说人、东西、所处的位置、活动内容等等。每一标签都会有一个分值,表示这个标签在机器学习模型中的置信度。使用这些信息,你就可以完成类似于自动图像描述和图像内容检测这样的任务了。
选择使用离线或者在线版本
离线 | 在线 | |
价格 | 免费 | 每一个月前1000次使用免费,收费后文https://firebase.google.cn/pricing |
标签覆盖范围 | 400+的标签数量,可以覆盖大多数图片中比较常见的对象,详见后文 | 10000+的类别,详见后文。 可以试试云端视觉API demo查看你提供的图片上有哪些标签。https://cloud.google.com/vision/docs/drag-and-drop |
对象在知识图谱上的id | 支持 | 支持 |
PRICE PER 1,000 UNITS, BY MONTHLY USAGE | |||
---|---|---|---|
FEATURE | 1–1,000 UNITS/MONTH | 1001–5,000,000 UNITS/MONTH | 5,000,001–20,000,000 UNITS/MONTH |
Label Detection | Free | $1.50 | $1.00 |
Text Detection | Free | $1.50 | $0.60 |
Safe Search (explicit content) Detection | Free | Free with Label Detection, or $1.50 | Free with Label Detection, or $0.60 |
Facial Detection | Free | $1.50 | $0.60 |
Landmark Detection | Free | $1.50 | $0.60 |
Logo Detection | Free | $1.50 | $0.60 |
Image Properties | Free | $1.50 | $0.60 |
Crop Hints | Free | Free with Image Properties, or $1.50 | Free with Image Properties, or $0.60 |
Web Detection | Free | $3.50 | Contact Google for more information |
Document Text Detection | Free | $1.50 | $0.60 |
Object Localizer | Free | $2.25 | $1.50 |
离线标签举例
分类 | 标签例子 |
---|---|
人 | 人群 自拍照 笑脸 |
活动 | Dancing 跳舞 Eating 吃饭 Surfing 冲浪 |
事物 | Car 汽车 Piano 钢琴 Receipt 收据 |
动物 | Bird 鸟 Cat 猫 Dog 狗 |
植物 | Flower 花 Fruit 水果 Vegetable 蔬菜 |
地点 | Beach 海滩 Lake 湖 Mountain 山 |
云端标签举例
分类 | 标签例子 | Category 类别 | Example labels 标签例子 |
---|---|---|---|
Arts & entertainment 艺术及娱乐 | Sculpture 雕塑 Musical Instrument 乐器 Dance 舞蹈 | Astronomical objects 天文名词
| Comet 彗星 Galaxy 银河 Star 星星 |
Business & industrial 商业、工业 | Restaurant 酒店 Factory 工厂 Airline 航空公司 | Colors 颜色 | Red 红 Green 绿 Blue 蓝 |
Design 设计 | Floral 印花 Pattern 图案 Wood Stain 木纹 | Drink 饮料 | Coffee 咖啡 Tea 茶 Milk 牛奶 |
Events 事件 | Meeting 会议 Picnic 野餐 Vacation 度假 | Fictional characters 虚构人物 | Santa Claus 圣诞老人 Superhero 超级英雄 Mythical creature 虚构生物 |
Food 食物 | Casserole Fruit 水果 Potato chip 炸土豆片 | Home & garden 房子、花园 | Laundry basket 洗衣篮 Dishwasher 洗碗机 Fountain 喷泉 |
Activities 活动 | Wedding 婚礼 Dancing 舞会 Motorsport 赛车 | Materials 材料 | Ceramic 陶瓷的 Textile 纺织物 Fiber 光纤 |
Media 媒体 | Newsprint 报纸 Document 文件 Sign 指示牌 | Modes of transport 交通方式 | Aircraft 飞机 Motorcycle 摩托车 Subway 地铁 |
Occupations 职业 | Actor 演员 Florist 园丁 Police 警察 | Organisms 生物 | Plant 植物 Animal 动物 Fungus 真菌 |
Organizations 组织 | Government 政府 Club 俱乐部 College 大学 | Places 地点 | Airport 机场 Mountain 山 Tent 帐篷 |
Technology 技术 | Robot 机器人 Computer 计算机 Solar panel 太阳能电池板 | Things 事物 | Bicycle 自行车 Pipe 管 Doll 洋娃娃 |
Google知识图谱中的物体ID
对于MK返回的每个标签,除了有文字描述外,还会返回这个标签在Google图谱中对应的物体id。这个Id是一串字符,唯一的定义了这个标签代表的物体,同时,这个id也可以被谷歌图谱搜索接口(https://developers.google.cn/knowledge-graph/)所使用。你可以使用这个字符串跨语言识别物体,而且与文本描述的格式无关。