Queries DNA jobs by calling QueryDNAJobList.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:QueryDNAJobList |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JobIds |
string |
No |
The IDs of the DNA jobs to query. You can specify up to 10 job IDs at a time, separated by commas (,). |
88c6ca184c0e47098a5b665e2a12**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
25818875-5F78-4A13-BEF6-D7393642CA58 |
| JobList |
array<object> |
The DNA job information. |
|
|
array<object> |
DNAJob |
||
| DNAResult |
string |
The DNA result link. |
http://test_bucket.oss-cn-shanghai.aliyuncs.com/fingerprint/video/search_result/5/5.txt |
| PrimaryKey |
string |
The unique primary key of the video. The uniqueness is guaranteed by the user. |
3ca84a39a9024f19853b21be9cf9**** |
| DBId |
string |
The ID of the DNA library. |
2288c6ca184c0e47098a5b665e2a12**** |
| CreationTime |
string |
The time when the job was created. |
2022-12-28T03:21:37Z |
| FinishTime |
string |
The time when the job was completed. |
2022-12-28T03:21:44Z |
| Status |
string |
The job status. Valid values:
|
Queuing |
| Message |
string |
The error message of the job execution. |
"The resource operated \"a887d0b***d805ef6f7f6786302\" cannot be found" |
| Config |
string |
The DNA configuration. |
{"SaveType": "save","MediaType"":"video"} |
| UserData |
string |
The custom data. |
testdna |
| Code |
string |
The error code of the job execution. |
"InvalidParameter.ResourceNotFound" |
| Input |
object |
The input file. |
|
| Type |
string |
The type of the input file. Valid values:
|
Media |
| Media |
string |
The input file information. Both OSS addresses and media asset IDs are supported. The OSS address rules are as follows:
In the preceding rules, bucket is the name of the OSS bucket that is in the same region as the current project, and object is the file path. |
1b1b9cd148034739af413150fded**** |
| Id |
string |
The job ID. |
88c6ca184c0e47098a5b665e2a12**** |
The content of DNAResult is Array of VideoMatchInfo, where:
VideoMatchInfo details
| Name | Type | Description |
| PrimaryKey | String | The unique primary key of the matched file. |
| GlobalSimilarity | Double | The overall similarity. |
| VideoMatchSegments | Array of VideoMatchSegment | The matching segment information for video/image-to-video search. |
| AudioMatchSegments | Array of AudioMatchSegment | The matching segment information for audio-to-audio search. |
| TextMatchSegments | Array of TextMatchSegment | The matching segment information for text-to-text search. |
VideoMatchSegment/AudioMatchSegment details
| Name | Type | Description |
| StartTime | Double | The start time of the input video/audio. |
| EndTime | Double | The end time of the input video/audio. |
| MasterStartTime | Double | The start time of the video/audio in the library. |
| MasterEndTime | Double | The end time of the video/audio in the library. |
| Similarity | Double | The confidence score of the matching segment. |
TextMatchSegment details
| Name | Type | Description |
| Start | Double | The start time of the query matching segment. |
| End | Double | The end time of the query matching segment. |
| QueryText | String | The matched text segment from the query. |
| MasterText | String | The matched text segment from the library. |
| Similarity | Double | The confidence score of the matching segment. |
Examples
Success response
JSON format
{
"RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58",
"JobList": [
{
"DNAResult": "http://test_bucket.oss-cn-shanghai.aliyuncs.com/fingerprint/video/search_result/5/5.txt",
"PrimaryKey": "3ca84a39a9024f19853b21be9cf9****",
"DBId": "2288c6ca184c0e47098a5b665e2a12****",
"CreationTime": "2022-12-28T03:21:37Z",
"FinishTime": "2022-12-28T03:21:44Z",
"Status": "Queuing",
"Message": "\"The resource operated \\\"a887d0b***d805ef6f7f6786302\\\" cannot be found\"",
"Config": "{\"SaveType\": \"save\",\"MediaType\"\":\"video\"}",
"UserData": "testdna",
"Code": "\"InvalidParameter.ResourceNotFound\"",
"Input": {
"Type": "Media",
"Media": "1b1b9cd148034739af413150fded****"
},
"Id": "88c6ca184c0e47098a5b665e2a12****"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.