调用ListBodyAlgorithmResults获取人体识别算法结果,包括人体原图,目标图,人体属性值如衣服款式,衣服颜色,帽子款式等。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListBodyAlgorithmResults |
系统规定参数。取值:ListBodyAlgorithmResults。 |
AlgorithmType | String | 是 | damo |
算法类型,目前支持damo,代表达摩人体识别算法。 |
CorpId | String | 是 | 2520603458709488128 |
租户或者空间ID,请从控制台获取后查看。 |
EndTime | String | 是 | 2020-06-02 00:00:00 |
结束时间,格式为yyyy-mm-dd hh24:mm:ss。 |
PageNumber | String | 是 | 1 |
分页值。 |
PageSize | String | 是 | 10 |
分页大小。 |
StartTime | String | 是 | 2020-06-01 00:00:00 |
开始时间,格式为yyyy-mm-dd hh24:mm:ss。 |
DataSourceId | String | 否 | 33011012011327999991 |
数据源ID,通常为设备ID或者数据源ID。在控制台可以查看对应的数据源列表。 |
CapStyle | String | 否 | 11 |
帽子类型,如damo算法中11代表安全帽,0代表未戴帽子。请参考结构化数据定义来获取。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Code | String | 200 |
返回结果编码。 |
Data | Struct |
返回结果数据。 |
|
PageNumber | Integer | 1 |
分页值。 |
PageSize | Integer | 10 |
分页大小。 |
Records | Array of Records |
返回记录结果。 |
|
CapStyle | String | 11 |
帽子类型。 |
CoatColor | String | 2 | |
CoatLength | String | 2 | |
CoatStyle | String | 3 | |
CorpId | String | 2520603458709488128 |
所属租户ID或者空间ID。 |
DataSourceId | String | 33011012011327999991 |
返回记录对应的数据源ID(设备ID或者数据源ID)。 |
GenderCode | String | 1 |
记录对应的人体性别属性值。 |
HairStyle | String | 3 | |
LeftTopX | Float | 381 | |
LeftTopY | Float | 1100 | |
MaxAge | String | 40 | |
MinAge | String | 20 | |
PersonId | String | 330106120113270010010220200915064814540550154055 | |
PicUrlPath | String | vcs-20200915-20200916-poc-test-1/270/damo/combined_pic/1/1600123694245000/8b8d611bb9ec461fa75b4695573505c9.jpg?begin=0&end=966&instance=poc-test-1®ion=huadong1-center | |
RightBottomX | Float | 343 | |
RightBottomY | Float | 603 | |
ShotTime | String | 2020-09-14T22:48:14.245+0000 | |
SourceId | String | 33010612011327001001022020091506481454055 | |
TargetPicUrlPath | String | vcs-20200915-20200916-poc-test-1/270/damo/combined_pic/1/1600123694245000/8b8d611bb9ec461fa75b46953505c9.jpg?begin=0&end=96446&instance=poc-test-1®ion=huadong1-center | |
TrousersColor | String | 1 | |
TrousersLength | String | 1 | |
TrousersStyle | String | 1 | |
TotalCount | Integer | 10 |
总记录数。 |
TotalPage | Integer | 100 |
总分页数。 |
Message | String | Success |
返回消息。 |
RequestId | String | cce2a382_c4a6_416e_ad00_4545f6dc648c |
请求ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=ListBodyAlgorithmResults
&AlgorithmType=damo
&CorpId=2520603458709488128
&EndTime=2020-06-02 00:00:00
&PageNumber=1
&PageSize=10
&StartTime=2020-06-01 00:00:00
&<公共请求参数>
正常返回示例
XML
格式
<Message>Success</Message>
<RequestId>cce2a382_c4a6_416e_ad00_4545f6dc648c </RequestId>
<Data>
<TotalCount>10</TotalCount>
<PageSize>10</PageSize>
<TotalPage>100</TotalPage>
<PageNumber>1</PageNumber>
<Records>
<GenderCode>1</GenderCode>
<PicUrlPath/>
<CorpId>2520603458709488128</CorpId>
<RightBottomX/>
<RightBottomY/>
<TargetPicUrlPath/>
<MaxAge/>
<LeftTopY/>
<CapStyle>11</CapStyle>
<LeftTopX/>
<MinAge/>
<PersonId/>
<ShotTime/>
<DataSourceId>33011012011327999991</DataSourceId>
<HairStyle/>
</Records>
</Data>
<Code>200</Code>
JSON
格式
{"Message":"Success","RequestId":"cce2a382_c4a6_416e_ad00_4545f6dc648c\t","Data":{"TotalCount":"10","PageSize":"10","TotalPage":"100","PageNumber":"1","Records":[{"GenderCode":"1","PicUrlPath":"","CorpId":"2520603458709488128","RightBottomX":"","RightBottomY":"","TargetPicUrlPath":"","MaxAge":"","LeftTopY":"","CapStyle":"11","LeftTopX":"","MinAge":"","PersonId":"","ShotTime":"","DataSourceId":"33011012011327999991","HairStyle":""}]},"Code":"200"}
错误码
访问错误中心查看更多错误码。