产品动态
产品公告
GET /<ObjectKey>?ci-process=AIGameRec HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>
GET /?ci-process=AIGameRec&detect-url=<detect-url> HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>
参数名称 | 描述 | 是否必选 | 类型 |
ObjectKey | 对象文件名,例如 picture.jpg | 与 detect-url 必须二选一 | String |
ci-process | 固定值为AIGameRec,表示使用游戏场景识别功能 | 是 | String |
detect-url | 您可以通过填写 detect-url 对任意公网可访问的图片进行游戏场景识别。不填写 detect-url 时,后台会默认处理 ObjectKey;填写了 detect-url 时,后台会处理 detect-url 链接,无需再填写 ObjectKey ,detect-url 示例:http://www.example.com/abc.jpg ,需要进行 UrlEncode,处理后为 http%3A%2F%2Fwww.example.com%2Fabc.jpg。 | 与 ObjectKey 必须二选一 | String |
参数名称 | 类型 | 描述 |
RecognitionResult | Container | 图片游戏标签识别结果 |
参数名称 | 类型 | 描述 |
GameLabels | Container | 游戏标签信息 |
参数名称 | 类型 | 描述 |
Confidence | Int | 该标签的置信度分数,分数越高则该标签准确度越高 |
FirstCategory | String | 一级标签 |
SecondCategory | String | 二级标签 |
GameName | String | 识别出的游戏标签名称 |
GET /ObjectKey?ci-process=AIGameRec HTTP/1.1Host: examplebucket-1250000000.cos.ap-chengdu.myqcloud.comDate: Tue, 03 Apr 2019 09:06:15 GMTAuthorization:XXXXXXXXXXXX
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 645Date: Tue, 03 Apr 2018 09:06:16 GMTStatus: 200 OKx-cos-request-id: NWFjMzQ0MDZfOTBmYTUwXzZkZV8z****<RecognitionResult><GameLabels><Confidence>100</Confidence><FirstCategory>游戏</FirstCategory><SecondCategory>游戏</SecondCategory><GameName>王者荣耀</GameName></GameLabels></RecognitionResult>
文档反馈