CreateVideoAnalyseTask
描述
创建一个视频分析的任务。该任务需要一个视频类型的 project,目前包括VideoStarter,VideoPOC。
请求参数
名称 | 类型 | 是否必填 | 描述 |
---|---|---|---|
Project | string | 是 | Project |
Action | String | 是 | CreateVideoAnalyseTask |
VideoUri | string | 是 | 视频 Uri OSS 地址规则为: oss://bucket/object ,其中 bucket 为和当前 Project 在同一区域的 OSS 桶名, object 为文件路径。 |
TgtUri | string | 是 | 存储数据的 OSS 地址 帧在 imgs, 语音在 audio,结果为 result/result.txt |
NotifyTopicName | String | 否 | 异步通知的 TopicName |
NotifyEndpoint | String | 否 | 异步反向通知的 Endpoint,作业处理状态可以通过该 Endpoint 异步通知到调用者 |
返回参数
名称 | 类型 | 描述 |
---|---|---|
RequestId | String | 用户发送的每次接口调用请求,无论成功与否,系统都会返回一个唯一识别码 RequestId 给用户 |
TaskId | String | TaskId 表示一个 task |
TaskType | String | Task 所属类型 |
示例
请求示例
POST https://imm.cn-shanghai.aliyuncs.com
?Action=CreateVideoAnalyseTask
&Project=test
&TgtUri=oss://xxx/test/res
&VideoUri=oss://xxx/test/1.mp4
成功返回示例
{
"RequestId": "10AFFE69-73BA-47C2-8A85-029AA9DA72A3",
"TaskId": "VideoAnalyseTask-ffcdec0c-73ba-451a-bec4-a9fe3f4cd765",
"TaskType": "VideoAnalyseTask"
}
结果说明
名称 | 类型 | 描述 |
---|---|---|
VideoTags | VideoTag 数组 | 视频标签数组 |
Audios | Audio 数组 | 音频信息数组 |
Frames | Frame 数组 | 帧信息数组 |
FailReasons | FailReason 数组 | 错误信息数组 |
数据结构Audio
名称 | 类型 | 描述 |
---|---|---|
SourcePosition | String | 时间戳信息 |
AudioUri | String | 语音资源路径 |
STTs | AudioText | 语音转文字数组 |
数据结构FailReason
名称 | 类型 | 描述 |
---|---|---|
Uri | String | 资源信息 |
Fail | String | 错误详细信息 结构为 [HTTPStatusCode ErrorCode] ErrorMessage |
结果展示
{
"VideoTags": [
{
"VideoTagName": "一套鼓乐器",
"VideoTagEnName": "Drum kit",
"VideoTagConfidence": 0.0373968
},
{
"VideoTagName": "唱片骑师",
"VideoTagEnName": "Disc jockey",
"VideoTagConfidence": 0.0151516
},
{
"VideoTagName": "跳舞",
"VideoTagEnName": "Dance",
"VideoTagConfidence": 0.0105581
}
],
"Audios": [
{
"SourcePosition": "00000000.000",
"AudioUri": "oss://imm-test-spark-cn-shanghai/test/vidoeanalyse/oss/res2/fairy/audio/0.000.wav",
"STTs": [
{
"Library": “Default”,
"Text": "你好",
"BeginTime": 1.29,
"EndTime": 16.265,
"SilenceDuration": 0,
"EmotionValue": 70,
"ChannelId": 0,
"SpeechRate": 60
}
]
}
],
"Frames": [
{
"SourcePosition": "00000010.000",
"ImageUri": "oss://imm-test-spark-cn-shanghai/test/vidoeanalyse/oss/res2/fairy/imgs/10.000.jpg",
"Faces": [
{
"FaceId": "a18e38b6f962230b6529a17d59a7a231",
"PersonId": "NOTREADY",
"Age": 27,
"AgeConfidence": 1,
"Gender": "Female",
"GenderConfidence": 1,
"FaceAttributes": {
"LeftEye": "99.902",
"LeftEyeConfidence": 1,
"RightEye": "99.948",
"RightEyeConfidence": 1,
"FaceBoundary": {
"Width": 101,
"Height": 625,
"Left": 625,
"Top": 151
}
}
}
],
"Tags": [
{
"TagName": "新娘",
"TagLevel": 2,
"TagConfidence": 0.7957686,
"ParentTagName": "其他"
}
],
"Celebritys": [
{
"CelebrityName": "哈娜·海耶斯",
"CelebrityLibraryName": "Stars",
"CelebrityConfidence": 0.75660336,
"CelebrityBoundary": {
"Width": 105,
"Height": 126,
"Left": 635,
"Top": 258
}
}
],
"OCRs": [
{
"OCRContents": "你好",
"OCRConfidence": 0.87826407,
"OCRBoundary": {
"Width": 116,
"Height": 18,
"Left": 1101,
"Top": 629
}
}
]
}
],
"FailReasons": [
{
"Uri": "oss://XXXX/test/vidoeanalyse/set/res26/imgs/30.000.jpg",
"Fail": "[400 InvalidImage] This Image is not support by VideoFrameTags."
}
]
}
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。
评论