推特 阿里云技术文档正文

ListVideoFrames_媒体集视频处理_视频管理类操作_API手册_智能媒体管理

admin 阿里云技术文档 2020-02-11 211 0
阿里云服务器优惠

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 的唯一标识。

示例

请求示例

  1. POST https://imm.cn-shanghai.aliyuncs.com
  2. ?Action= ListVideoFrames
  3. &Project=test
  4. &SetId=test-set
  5. &VideoUri=oss://xxx/test/1.mp4

此处的示例,目的是展示关键参数,还需要其他的公共参数才能正常调用,推荐使用 SDK 来发送

成功返回示例

  1. {
  2. "RequestId": "BE7D87A4-9F91-4EF6-96CA-4763063F34D1",
  3. "Frames": [
  4. {
  5. "OCRModifyTime": "2018-12-26T15:41:32.618Z",
  6. "FacesModifyTime": "2018-12-26T15:41:30.346Z",
  7. "Celebrity": [],
  8. "OCR": [
  9. {
  10. "OCRContents": "DEPAFTMENT OF CORRECTONS",
  11. "OCRConfidence": 0.954262,
  12. "OCRBoundary": {
  13. "Height": 34,
  14. "Width": 198,
  15. "Left": 165
  16. }
  17. },
  18. {
  19. "OCRContents": "LBSNEWSCUM",
  20. "OCRConfidence": 0.8219689,
  21. "OCRBoundary": {
  22. "Height": 18,
  23. "Width": 146,
  24. "Left": 966
  25. }
  26. }
  27. ],
  28. "CelebrityFailReason": "",
  29. "OCRStatus": "Success",
  30. "Faces": [],
  31. "SourcePosition": "00000060.000",
  32. "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\"}}",
  33. "ImageUri": "oss://xxxxxxxxx/test/vidoeanalyse/set/res22/imgs/60.000.jpg",
  34. "ImageWidth": 1280,
  35. "ImageFormat": "jpg",
  36. "CelebrityModifyTime": "",
  37. "SourceType": "video",
  38. "CelebrityStatus": "NotProcessed",
  39. "TagsModifyTime": "2018-12-26T15:41:31.116Z",
  40. "ModifyTime": "2018-12-26T15:41:28.783Z",
  41. "FileSize": 165092,
  42. "Tags": [],
  43. "SourceUri": "oss://xxx/test/1.mp4",
  44. "CreateTime": "2018-12-26T15:41:28.783Z",
  45. "FacesStatus": "Success",
  46. "TagsStatus": "Success",
  47. "RemarksA": "",
  48. "RemarksB": "",
  49. "RemarksC": "",
  50. "RemarksD": "",
  51. "ExternalId": "",
  52. "ImageHeight": 720
  53. },
  54. {
  55. "OCRModifyTime": "2018-12-26T15:41:32.883Z",
  56. "FacesModifyTime": "2018-12-26T15:41:30.68Z",
  57. "Celebrity": [
  58. {
  59. "CelebrityConfidence": 0.5930119,
  60. "CelebrityBoundary": {
  61. "Top": 597,
  62. "Height": 455,
  63. "Width": 377,
  64. "Left": 532
  65. },
  66. "CelebrityLibraryName": "Politicians",
  67. "CelebrityName": "若泽·阿尔贝托·阿泽雷多·洛佩斯"
  68. }
  69. ],
  70. "OCR": [
  71. {
  72. "OCRContents": "OCBS",
  73. "OCRConfidence": 0.99335897,
  74. "OCRBoundary": {
  75. "Height": 51,
  76. "Width": 138,
  77. "Left": 971
  78. }
  79. }
  80. ],
  81. "CelebrityFailReason": "",
  82. "OCRStatus": "Success",
  83. "Faces": [
  84. {
  85. "Age": 39,
  86. "GenderConfidence": 0.999998152256012,
  87. "Attractive": 0.7,
  88. "EmotionDetails": {
  89. "SAD": 0.004653292708098888,
  90. "SCARED": 0.0040449220687150955,
  91. "CALM": 0.5385454297065735,
  92. "ANGRY": 0.003866414539515972,
  93. "HAPPY": 0.404163122177124,
  94. "DISGUSTED": 0.00509241409599781,
  95. "SURPRISED": 0.024903524667024612
  96. },
  97. "Gender": "MALE",
  98. "FaceConfidence": 0.9757006764411926,
  99. "EmotionConfidence": 0.5385454297065735,
  100. "Emotion": "CALM",
  101. "FaceId": "d914660f02b43623ebcaa9d52a73fa94066eda736e76e248f60ee56d1c9e45d9",
  102. "FaceAttributes": {
  103. "Glasses": "GLASSES",
  104. "GlassesConfidence": 1,
  105. "RaceConfidence": 0.9999902248382568,
  106. "Beard": "NONE",
  107. "Race": "YELLOW",
  108. "MaskConfidence": 1,
  109. "BeardConfidence": 1,
  110. "FaceBoundary": {
  111. "Top": 218,
  112. "Height": 354,
  113. "Width": 354,
  114. "Left": 487
  115. },
  116. "Mask": "NONE"
  117. }
  118. }
  119. ],
  120. "SourcePosition": "00000070.000",
  121. "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\"}}",
  122. "ImageUri": "oss://xxxxxxxxx/test/vidoeanalyse/set/res22/imgs/70.000.jpg",
  123. "ImageWidth": 1280,
  124. "ImageFormat": "jpg",
  125. "CelebrityModifyTime": "2018-12-26T15:41:48.04Z",
  126. "SourceType": "video",
  127. "CelebrityStatus": "Success",
  128. "TagsModifyTime": "2018-12-26T15:41:31.47Z",
  129. "ModifyTime": "2018-12-26T15:41:28.813Z",
  130. "FileSize": 51867,
  131. "Tags": [],
  132. "SourceUri": "oss://xxx/test/1.mp4",
  133. "CreateTime": "2018-12-26T15:41:28.813Z",
  134. "FacesStatus": "Success",
  135. "TagsStatus": "Success",
  136. "RemarksA": "",
  137. "RemarksB": "",
  138. "RemarksC": "",
  139. "RemarksD": "",
  140. "ExternalId": "",
  141. "ImageHeight": 720
  142. }
  143. ],
  144. "VideoUri": "oss://xxx/test/1.mp4",
  145. "SetId": "Set-fc2ff7fb-b3b6-43a3-941d-5adae620d2ae",
  146. "NextMarker": ""
  147. }
版权声明

本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。

评论

-----