ListVideoFrames
描述
获取一个视频的帧信息。
请求参数
Parameter | Type | Required | Comment |
---|---|---|---|
Project | string | 是 | Project |
Action | String | 是 | ListVideoFrames |
SetId | string | 是 | SetId |
VideoUri | String | 视频 Uri OSS 地址规则为: oss://bucket/object ,其中 bucket 为和当前 Project 在同一区域的 OSS 桶名, object 为文件路径。 |
|
Marker | string | 否 | Marker 翻页标记 |
返回参数
名称 | 类型 | 描述 |
---|---|---|
RequestId | String | 用户发送的每次接口调用请求,无论成功与否,系统都会返回一个唯一识别码 RequestId 给用户 |
VideoUri | String | 视频 Uri |
NextMarker | String | 下一个 Marker 翻页标记 |
Frames | []Image | 图片详细信息数组 |
SetId | String | 媒体集 Set 的唯一标识。 |
示例
请求示例
POST https://imm.cn-shanghai.aliyuncs.com
?Action= ListVideoFrames
&Project=test
&SetId=test-set
&VideoUri=oss://xxx/test/1.mp4
此处的示例,目的是展示关键参数,还需要其他的公共参数才能正常调用,推荐使用 SDK 来发送
成功返回示例
{
"RequestId": "BE7D87A4-9F91-4EF6-96CA-4763063F34D1",
"Frames": [
{
"OCRModifyTime": "2018-12-26T15:41:32.618Z",
"FacesModifyTime": "2018-12-26T15:41:30.346Z",
"Celebrity": [],
"OCR": [
{
"OCRContents": "DEPAFTMENT OF CORRECTONS",
"OCRConfidence": 0.954262,
"OCRBoundary": {
"Height": 34,
"Width": 198,
"Left": 165
}
},
{
"OCRContents": "LBSNEWSCUM",
"OCRConfidence": 0.8219689,
"OCRBoundary": {
"Height": 18,
"Width": 146,
"Left": 966
}
}
],
"CelebrityFailReason": "",
"OCRStatus": "Success",
"Faces": [],
"SourcePosition": "00000060.000",
"Exif": "{\n \"FileSize\": {\"value\": \"165092\"},\n \"Format\": {\"value\": \"jpg\"},\n \"ImageHeight\": {\"value\": \"720\"},\n \"ImageWidth\": {\"value\": \"1280\"},\n \"ResolutionUnit\": {\"value\": \"1\"},\n \"XResolution\": {\"value\": \"1/1\"},\n \"YResolution\": {\"value\": \"1/1\"}}",
"ImageUri": "oss://xxxxxxxxx/test/vidoeanalyse/set/res22/imgs/60.000.jpg",
"ImageWidth": 1280,
"ImageFormat": "jpg",
"CelebrityModifyTime": "",
"SourceType": "video",
"CelebrityStatus": "NotProcessed",
"TagsModifyTime": "2018-12-26T15:41:31.116Z",
"ModifyTime": "2018-12-26T15:41:28.783Z",
"FileSize": 165092,
"Tags": [],
"SourceUri": "oss://xxx/test/1.mp4",
"CreateTime": "2018-12-26T15:41:28.783Z",
"FacesStatus": "Success",
"TagsStatus": "Success",
"RemarksA": "",
"RemarksB": "",
"RemarksC": "",
"RemarksD": "",
"ExternalId": "",
"ImageHeight": 720
},
{
"OCRModifyTime": "2018-12-26T15:41:32.883Z",
"FacesModifyTime": "2018-12-26T15:41:30.68Z",
"Celebrity": [
{
"CelebrityConfidence": 0.5930119,
"CelebrityBoundary": {
"Top": 597,
"Height": 455,
"Width": 377,
"Left": 532
},
"CelebrityLibraryName": "Politicians",
"CelebrityName": "若泽·阿尔贝托·阿泽雷多·洛佩斯"
}
],
"OCR": [
{
"OCRContents": "OCBS",
"OCRConfidence": 0.99335897,
"OCRBoundary": {
"Height": 51,
"Width": 138,
"Left": 971
}
}
],
"CelebrityFailReason": "",
"OCRStatus": "Success",
"Faces": [
{
"Age": 39,
"GenderConfidence": 0.999998152256012,
"Attractive": 0.7,
"EmotionDetails": {
"SAD": 0.004653292708098888,
"SCARED": 0.0040449220687150955,
"CALM": 0.5385454297065735,
"ANGRY": 0.003866414539515972,
"HAPPY": 0.404163122177124,
"DISGUSTED": 0.00509241409599781,
"SURPRISED": 0.024903524667024612
},
"Gender": "MALE",
"FaceConfidence": 0.9757006764411926,
"EmotionConfidence": 0.5385454297065735,
"Emotion": "CALM",
"FaceId": "d914660f02b43623ebcaa9d52a73fa94066eda736e76e248f60ee56d1c9e45d9",
"FaceAttributes": {
"Glasses": "GLASSES",
"GlassesConfidence": 1,
"RaceConfidence": 0.9999902248382568,
"Beard": "NONE",
"Race": "YELLOW",
"MaskConfidence": 1,
"BeardConfidence": 1,
"FaceBoundary": {
"Top": 218,
"Height": 354,
"Width": 354,
"Left": 487
},
"Mask": "NONE"
}
}
],
"SourcePosition": "00000070.000",
"Exif": "{\n \"FileSize\": {\"value\": \"51867\"},\n \"Format\": {\"value\": \"jpg\"},\n \"ImageHeight\": {\"value\": \"720\"},\n \"ImageWidth\": {\"value\": \"1280\"},\n \"ResolutionUnit\": {\"value\": \"1\"},\n \"XResolution\": {\"value\": \"1/1\"},\n \"YResolution\": {\"value\": \"1/1\"}}",
"ImageUri": "oss://xxxxxxxxx/test/vidoeanalyse/set/res22/imgs/70.000.jpg",
"ImageWidth": 1280,
"ImageFormat": "jpg",
"CelebrityModifyTime": "2018-12-26T15:41:48.04Z",
"SourceType": "video",
"CelebrityStatus": "Success",
"TagsModifyTime": "2018-12-26T15:41:31.47Z",
"ModifyTime": "2018-12-26T15:41:28.813Z",
"FileSize": 51867,
"Tags": [],
"SourceUri": "oss://xxx/test/1.mp4",
"CreateTime": "2018-12-26T15:41:28.813Z",
"FacesStatus": "Success",
"TagsStatus": "Success",
"RemarksA": "",
"RemarksB": "",
"RemarksC": "",
"RemarksD": "",
"ExternalId": "",
"ImageHeight": 720
}
],
"VideoUri": "oss://xxx/test/1.mp4",
"SetId": "Set-fc2ff7fb-b3b6-43a3-941d-5adae620d2ae",
"NextMarker": ""
}
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。
评论