产品动态
产品公告
GET /<ObjectKey>?ci-process=detect-pet HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>
参数名称 | 描述 | 类型 | 是否必选 |
ObjectKey | 对象文件名,例如 picture.jpg | string | 是 |
ci-process | 数据万象处理能力,宠物识别固定为 detect-pet | String | 是 |
<Response><ResultInfo><Score>64</Score><Name>dog</Name><Location><X>59</X><Y>51</Y><Height>225</Height><Width>175</Width></Location></ResultInfo><ResultInfo>...</ResultInfo></Response>
节点名称(关键字) | 父节点 | 描述 | 类型 |
Response | 无 | 保存结果的容器 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
ResultInfo | Response | 保存结果的容器 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
Score | Response.ResultInfo | 分数,范围在0 - 100之间,值越高,表示目标为相应结果的可能性越高 | int |
Name | Response.ResultInfo | 宠物名称 | string |
Location | Response.ResultInfo | 保存宠物位置的容器 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
X | Response.ResultInfo.Location | x 轴坐标 | int |
Y | Response.ResultInfo.Location | y 轴坐标 | int |
Height | Response.ResultInfo.Location | (x,y)坐标距离高度 | int |
Width | Response.ResultInfo.Location | (x,y)坐标距离长度 | int |
错误码 | 描述 | HTTP状态码 |
FailedOperation.NoObjectDetected | 未检测到目标 | 400 Bad Request |
InternalError | 文件下载失败/其他未知错误 | 400 Bad Request |
GET /test.jpg?ci-process=detect-pet HTTP/1.1Authorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=****************************************&x-cos-security-token=mUvZ3UZ4XbqDyK6iGsTFBQoHNO***Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.com
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 359Date: Mon, 26 Apr 2021 02:19:16 GMTServer: tencent-imagex-ci-request-id: NjA4NjIzMjNfOTBmYTUwNjRfNjAx****<Response><ResultInfo><Score>64</Score><Name>dog</Name><Location><X>59</X><Y>51</Y><Height>225</Height><Width>175</Width></Location></ResultInfo><ResultInfo><Score>62</Score><Name>dog</Name><Location><X>237</X><Y>60</Y><Height>208</Height><Width>177</Width></Location></ResultInfo></Response>
文档反馈