云相册的API人脸接口ListFaces怎么使用
描述
分批列出当前用户照片中包含的人脸
请求参数
请求示例https://cloudphoto.cn-shanghai.aliyuncs.com/?Action=ListFaces
&Cursor=0
&Direction=forward
&Size=1
&State=active
&StoreName=cloudphoto-demo
&LibraryId=alice-001
&<公共请求参数>
返回参数
Faces
Cover
返回示例
JSON格式
{
"TotalCount":8,
"Action":"ListFaces",
"Message":"success",
"RequestId":"F6D18E5D-DD05-4063-8DFA-11F7903D410E",
"Faces":[
{
"Name":"人脸ITTFZW",
"IsMe":false,
"Mtime":1500889601901,
"Axis":[
59,
25,
88,
62
],
"State":"active",
"Id":824116397045981184,
"Ctime":1500380320897,
"Cover":{
"Md5":"596cf2553f06ba5d2c249f206dc2f217",
"Mtime":1500628851724,
"State":"active",
"Height":201,
"Id":824117117514162176,
"Ctime":1500380492669,
"Width":300,
"Title":"u=151615998,4109027133&fm=26&gp=0.jpg",
"FileId":"3aNW0Z4rToeko4eKeZcUcQAAAApwZDIE"
},
"PhotosCount":1
}
],
"NextCursor":"1500889601901:824116397045981184",
"Code":"Success"
}
XML格式
<?xml version="1.0" encoding="UTF-8"?>
<ListFacesResponse>
<Action>ListFaces</Action>
<TotalCount>8</TotalCount>
<Message>success</Message>
<RequestId>AE1E3C70-FD84-4586-9E97-8DB7A5051808</RequestId>
<Faces>
<Face>
<Name>人脸ITTFZW</Name>
<IsMe>false</IsMe>
<Axis>
<Axis>59</Axis>
<Axis>25</Axis>
<Axis>88</Axis>
<Axis>62</Axis>
</Axis>
<Mtime>1500889601901</Mtime>
<State>active</State>
<Cover>
<Mtime>1500628851724</Mtime>
<Md5>596cf2553f06ba5d2c249f206dc2f217</Md5>
<State>active</State>
<Height>201</Height>
<Ctime>1500380492669</Ctime>
<Id>824117117514162176</Id>
<Width>300</Width>
<FileId>3aNW0Z4rToeko4eKeZcUcQAAAApwZDIE</FileId>
<Title><![CDATA[u=151615998,4109027133&fm=26&gp=0.jpg]]></Title>
</Cover>
<Ctime>1500380320897</Ctime>
<Id>824116397045981184</Id>
<PhotosCount>1</PhotosCount>
</Face>
</Faces>
<NextCursor>1500889601901:824116397045981184</NextCursor>
<Code>Success</Code>
</ListFacesResponse>
收起
云栖大讲堂
2017-10-27 10:53:31
1914
0
0
条回答
写回答
取消
提交回答