调用GetPictureSearchResults获取图片搜索结果

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String GetPictureSearchResults

系统规定参数。取值:GetPictureSearchResults。

AlgorithmType String face

算法类型

PageNum Integer 1

分页页码

PictureContents String data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABkAAAAOECAYAAAD5Tf2iAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAP+6SURBVHhe7J0HfBTH9cd/p14RCDXASKIYgUB0XOhgbGPj2Bi3uMROHINbE

图片base64

RegionId String cn-shanghai

区域id

TopNum Integer 10

图片按照置信度由高到低返回的张数

VcsId String vcs_std-cn-78v15jq8p02

vcs实例id

BeginTime String 1561467575

开始时间

DeviceList String 34020000010172204207,34020000010172204208

设备列表,多个以”,“分隔

EndTime String 1561467313

结束时间

返回数据

名称 类型 示例值 描述
Code String 0

响应状态码

Data

响应结果集

DeviceId String 34020000010172204207

设备id

LeftUpperCornerXCoordinate String 1000

裁剪图左上角x坐标

LeftUpperCornerYCoordinate String 1000

裁剪图左上角y坐标

LocationMarkTime String 20190521223319

位置标记时间

PictureId1 String poc-vcs-sensetime/video_face_panoramic/049/20190521/20190521-6451e9cc-0a58ac14052a-00000049-00018826.jpg

原图id

PictureId2 String poc-vcs-sensetime/video_face_panoramic/049/20190521/20190521-6451e9cc-0a58ac14052a-00000049-00018826.jpg

裁剪图id

PictureUrl1 String http://poc-vcs-sensetime/video_face_panoramic/049/20190521/20190521-6451e9cc-0a58ac14052a-00000049-00018826.jpg

原图url

PictureUrl2 String http://poc-vcs-sensetime/video_face_panoramic/049/20190521/20190521-6451e9cc-0a58ac14052a-00000049-00018826.jpg

裁剪图url

RightLowerCornerXCoordinate String 0

裁剪图右下角x坐标

RightLowerCornerYCoordinate String 0

裁剪图右下角y坐标

Similarity Float 0.9

相似度

Message String SUCCESS

响应状态描述信息

RequestId String C8F236E2-7DE4-427D-B609-D2F1FF3FA255

请求id

示例

请求示例


http(s)://[Endpoint]/?Action=GetPictureSearchResults
&AlgorithmType=face
&PageNum=1
&PictureContents=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABkAAAAOECAYAAAD5Tf2iAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAP+6SURBVHhe7J0HfBTH9cd/p14RCDXASKIYgUB0XOhgbGPj2Bi3uMROHINbE
&RegionId=cn-shanghai
&TopNum=10
&VcsId=vcs_std-cn-78v15jq8p02
&<公共请求参数>

正常返回示例

JSON 格式

{
	"Data":[
		{
			"DeviceId":"34020000010172204207",
			"PictureUrl2":"http://poc-vcs-sensetime/video_face_panoramic/049/20190521/20190521-6451e9cc-0a58ac14052a-00000049-00018826.jpg",
			"LeftUpperCornerXCoordinate":"1000",
			"LocationMarkTime":"20190521223319",
			"PictureUrl1":"http://poc-vcs-sensetime/video_face_panoramic/049/20190521/20190521-6451e9cc-0a58ac14052a-00000049-00018826.jpg",
			"PictureId1":"poc-vcs-sensetime/video_face_panoramic/049/20190521/20190521-6451e9cc-0a58ac14052a-00000049-00018826.jpg",
			"PictureId2":"poc-vcs-sensetime/video_face_panoramic/049/20190521/20190521-6451e9cc-0a58ac14052a-00000049-00018826.jpg",
			"LeftUpperCornerYCoordinate":"1000",
			"RightLowerCornerYCoordinate":"0",
			"RightLowerCornerXCoordinate":"0",
			"Similarity":0.9
		}
	],
	"Message":"SUCCESS",
	"RequestId":"C8F236E2-7DE4-427D-B609-D2F1FF3FA255",
	"Code":"0"
}

错误码

访问错误中心查看更多错误码。