Searches for media asset clips by face image (precise search). Returns relevant person clip information in the media asset based on the coarse search results.
Operation description
For questions about the intelligent media asset search feature of Alibaba Cloud Intelligent Media Services, search for DingTalk group (30415005038) to join the Intelligent Media Services multimodal search customer support group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:SearchMediaClipByFace |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SearchLibName |
string |
No |
The name of the search library. |
test1 |
| 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**** |
| FaceSearchToken |
string |
Yes |
The value must be the same as the FaceSearchToken value in the coarse search operation. This parameter is used to determine paginated results under the same search condition. |
zxtest-huangxuan-2023-3-7-V1 |
| MediaId |
string |
Yes |
The media asset ID. |
3b187b3620c8490886cfc2a9578c**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
E44FFACD-9E90-555A-A09A-6FD3B7335E39 |
| Success |
string |
Indicates whether the operation was successful. A value of true indicates success. A value of false indicates failure. |
true |
| Code |
string |
The return code. |
200 |
| MediaClipList |
array<object> |
The collection of media asset clips that meet the requirements. |
|
|
array<object> |
|||
| Score |
number |
The score of the matched clip. The value is of the Float type and ranges from 0 to 1. |
0.99041677 |
| EntityId |
string |
The entity ID, which corresponds to the entity ID in the label analysis results. |
1031025**** |
| LabelName |
string |
The entity name. |
John Doe |
| OccurrencesInfos |
array<object> |
The clustering information of person clips. |
|
|
array<object> |
|||
| StartTime |
number |
The start time of the clip. Unit: seconds. The value is of the Float type. |
61.066353 |
| EndTime |
number |
The end time of the clip. Unit: seconds. The value is of the Float type. |
69.06635 |
| TrackData |
array<object> |
The information about the face in the clip. |
|
|
array<object> |
|||
| Timestamp |
number |
The timestamp when the face appears in the clip. Unit: seconds. The value is of the Float type. |
62.03302 |
| BoxPosition |
object |
The coordinates of the face. |
|
| X |
integer |
The x-axis coordinate of the upper-left corner. Unit: pixels. |
517 |
| Y |
integer |
The y-axis coordinate of the upper-left corner. Unit: pixels. |
409 |
| W |
integer |
The width of the rectangle frame. Unit: pixels. |
128 |
| H |
integer |
The height of the rectangle frame. Unit: pixels. |
168 |
| Expression |
string |
Expression. |
平静 |
| Category |
string |
The person type. Valid values:
|
celebrity |
| Total |
integer |
The total number of media asset clips that meet the conditions. |
5 |
Examples
Success response
JSON format
{
"RequestId": "E44FFACD-9E90-555A-A09A-6FD3B7335E39",
"Success": "true",
"Code": "200",
"MediaClipList": [
{
"Score": 0.99041677,
"EntityId": "1031025****",
"LabelName": "John Doe",
"OccurrencesInfos": [
{
"StartTime": 61.066353,
"EndTime": 69.06635,
"TrackData": [
{
"Timestamp": 62.03302,
"BoxPosition": {
"X": 517,
"Y": 409,
"W": 128,
"H": 168
}
}
],
"Expression": "平静"
}
],
"Category": "celebrity"
}
],
"Total": 5
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.