GET /<ObjectKey>?ci-process=ImageSearch&action=SearchImage&MatchThreshold=&Offset= HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>Content-Length: <length>Content-Type: application/xml<body>
节点名称(关键字) | 描述 | 类型 | 是否必选 |
MatchThreshold | 出参 Score 中,只有超过 MatchThreshold 值的结果才会返回。默认为0 | Int | 否 |
Offset | 起始序号,默认值为0 | Int | 否 |
Limit | 返回数量,默认值为10,最大值为100 | Int | 否 |
Filter | 针对入库时提交的 Tags 信息进行条件过滤。支持>、>=、<、<=、=、!=,多个条件之间支持 AND 和 OR 进行连接 | String | 否 |
<Response><Count>2</Count><ImageInfos><EntityId>apple</EntityId><PicName>ObjectKey1</PicName><Score>99</Score><CustomContent>XXX</CustomContent><Tags>{"key1":"value1","key2":"value2"}</Tags></ImageInfos><ImageInfos><EntityId>apple</EntityId><PicName>ObjectKey2</PicName><Score>90</Score><CustomContent>XXX</CustomContent><Tags>{"key1":"value1","key2":"value2"}</Tags></ImageInfos></Response>
节点名称(关键字) | 父节点 | 描述 | 类型 |
Response | 无 | 保存结果的容器 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
RequestId | Response | 请求的唯一 ID | String |
Count | Response | 数量 | Int |
ImageInfos | Response | 图片信息 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
EntityId | ImageInfos | 物品 ID | String |
CustomContent | ImageInfos | 图片自定义的内容 | String |
Tags | ImageInfos | 自定义标签信息,json 字符串 | String |
PicName | ImageInfos | 图片名称 | String |
Score | ImageInfos | 相似度 | Int |
GET /<ObjectKey>?ci-process=ImageSearch&action=SearchImage&MatchThreshold=10&Offset=2 HTTP/1.1Authorization: q-sign-algorithm=sha1&q-ak=AKID8A0fBVtYFrNm02oY1g1JQQF0c3JO****&q-sign-time=1558699190;1558706390&q-key-time=1558699190;1558706390&q-header-list=date;host&q-url-param-list=&q-signature=89fa1f6a56c34e460f3db4d65f928eaf034a****Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comContent-Length: 0Content-Type: application/xml
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 150Connection: keep-aliveDate: Thu, 15 Jun 2017 12:37:29 GMTServer: tencent-cix-ci-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****<Response><Count>2</Count><ImageInfos><EntityId>apple</EntityId><PicName>ObjectKey</PicName><Score>99</Score><CustomContent>XXX</CustomContent><Tags>{"key1":"value1","key2":"value2"}</Tags></ImageInfos><ImageInfos><EntityId>apple</EntityId><PicName>ObjectKey2</PicName><Score>90</Score><CustomContent>XXX</CustomContent><Tags>{"key1":"value1","key2":"value2"}</Tags></ImageInfos></Response>
本页内容是否解决了您的问题?