Searches for media assets by face image (coarse search). Accepts a face image as input and returns information about media assets that contain the person.
Operation description
To use the intelligent media asset search feature of Alibaba Cloud Intelligent Media Services or to consult about related issues, search for DingTalk group (30415005038) to join the Intelligent Media Services multimodal search customer support group and contact us.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:SearchMediaByFace |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNo |
integer |
No |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. Maximum value: 50. |
10 |
| EntityId |
string |
No |
The entity ID. |
2d3bf1e35a1e42b5ab338d701efa**** |
| PersonImageUrl |
string |
Yes |
The URL of the face image. |
https://****.oss-cn-shanghai.aliyuncs.com/input/huangxuan****.jpg |
| FaceSearchToken |
string |
Yes |
The token used to identify paginated results under the same search condition. Use this parameter together with the FaceSearchToken parameter in the refined search operation. |
zxtest-huangxuan-2023-3-7-V1 |
| SearchLibName |
string |
No |
The name of the search library. |
test1 |
| MediaType |
string |
No |
The media asset type. Valid values:
|
video |
| Namespace |
string |
No |
The namespace. |
name-1 |
| CustomFilters |
string |
No |
The custom filter. JSON string. Supported fields include integer field intField1 and string fields strField1 and strField2. Each field supports only one matching mode. Filters on different fields are combined with an AND relationship.
|
{"intField1":{"gte":12,"lte":13},"strField2":["cd","de"],"strField1":"abc"} |
| UtcCreate |
string |
No |
The creation time, in millisecond-precision timestamp. gte specifies greater than or equal to, and lte specifies less than or equal to.
|
{"gte":1761205662998,"lte":1771205662998} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
7CA7D615-CFB1-5437-9A12-2D185C3EE6CB |
| Success |
string |
Indicates whether the operation was successful. Valid values: true: The operation was successful. false: The operation failed. |
true |
| Code |
string |
The return code. |
200 |
| MediaInfoList |
array<object> |
The list of media assets that match the search criteria. |
|
|
object |
The media asset information list. |
||
| MediaId |
string |
The media asset ID. |
3b187b3620c8490886cfc2a9578c**** |
| Total |
integer |
The total number of media assets that match the search criteria. |
163 |
Examples
Success response
JSON format
{
"RequestId": "7CA7D615-CFB1-5437-9A12-2D185C3EE6CB",
"Success": "true",
"Code": "200",
"MediaInfoList": [
{
"MediaId": "3b187b3620c8490886cfc2a9578c****"
}
],
"Total": 163
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.