ci:CreateMediaJobs permission must be granted. For details, see Cloud Infinite action.cam:passrole permission must be granted. The asynchronous processing interface performs read and write operations on COS resources through CAM's "role". The PassRole permission is used for role passing. For details, refer to Access Management - Write Operation - PassRole API.POST /jobs HTTP/1.1Host: <BucketName-APPID>.ci.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>Content-Length: <length>Content-Type: application/xml<body>
<Request><Tag>VideoTargetRec</Tag><Input><Object>input/demo.mp4</Object></Input><Operation><TemplateId>t1460606b9752148c4ab182f55163ba7cd</TemplateId><UserData>This is my data.</UserData><JobLevel>0</JobLevel></Operation><CallBack>http://callback.demo.com</CallBack><CallBackFormat>JSON<CallBackFormat></Request>
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Request | None. | Container for saving requests | Container | Yes |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Tag | Request | Tag for creating a task: VideoTargetRec | String | Yes |
Operation | Request | Operation Rule | Container | Yes |
Input | Request | Media information to be operated | Container | Yes |
CallBackFormat | Request | Job callback format, JSON or XML, default XML, priority is higher than the callback format of the queue | String | No |
CallBackType | Request | Job callback type, Url or TDMQ, default Url, priority is higher than the callback type of the queue | String | No |
CallBack | Request | job callback address, priority is higher than the callback address of the queue. When set to no, it indicates that the callback address of the queue does not generate a callback. | String | No |
CallBackMqConfig | Request | Task callback TDMQ configuration, required when CallBackType is TDMQ. For details, see CallBackMqConfig. | Container | No |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Object | Request.Input | media file name | String | No |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
TemplateId | Request.Operation | video object detection template ID | String | No |
VideoTargetRec | Request.Operation | video object detection parameters, same as Request.VideoTargetRec in the create video object detection template API | Container | No |
UserData | Request.Operation | Pass through user information Printable ASCII code Length not exceeding 1024 | String | No |
JobLevel | Request.Operation | Task priority, level limit: 0, 1, 2. Higher level means higher task priority. Default is 0. | String | No |
SnapshotPrefix | Request.Operation | Screenshot output prefix. After configuration, the screenshot output will be saved to the user's bucket at the path "SnapshotPrefix/<jobId>/<random screenshot name>", which may incur additional fees. No screenshot will be saved if the field is empty. | String | No |
<Response><JobsDetail><Code>Success</Code><Message/><JobId>j8d121820f5e411ec926ef19d53ba9c6f</JobId><State>Submitted</State><CreationTime>2022-06-27T15:23:10+0800</CreationTime><StartTime>-</StartTime><EndTime>-</EndTime><QueueId>p2242ab62c7c94486915508540933a2c6</QueueId><Tag>VideoTargetRec</Tag><Operation><TemplateId>t1460606b9752148c4ab182f55163ba7cd</TemplateId><TemplateName>video_target_rec_demo</TemplateName><UserData>This is my data.</UserData><JobLevel>0</JobLevel></Operation></JobsDetail></Response>
Node Name (Keyword) | Parent Node | Description | Type |
Response | None. | Container for saving results | Container |
Node Name (Keyword) | Parent Node | Description | Type |
JobsDetail | Response | Detailed information of the task | Container array |
Node Name (Keyword) | Parent Node | Description | Type |
Code | Response.JobsDetail | error code, which is meaningful only when State is Failed | String |
Message | Response.JobsDetail | error description, which is meaningful only when State is Failed | String |
JobId | Response.JobsDetail | ID of the newly created task | String |
Tag | Response.JobsDetail | Tag for the newly created task: VideoTargetRec | String |
State | Response.JobsDetail | Task Status Submitted: submitted, pending execution Running: executing Success: execution successful Failed: execution failed Pause: Task is paused. When the pause queue is triggered, to-be-executed tasks become paused state. Cancel: task cancelled | String |
CreationTime | Response.JobsDetail | Task Creation Time | String |
StartTime | Response.JobsDetail | Task Start Time | String |
EndTime | Response.JobsDetail | Task End Time | String |
QueueId | Response.JobsDetail | Queue ID that the task belongs to | String |
Operation | Response.JobsDetail | Operation rule | Container |
Node Name (Keyword) | Parent Node | Description | Type |
TemplateId | Response.JobsDetail.Operation | Job template ID | String |
TemplateName | Response.JobsDetail.Operation | Template name of the task, return when TemplateId exists | String |
VideoTargetRec | Response.JobsDetail.Operation | Request.Operation.VideoTargetRec in progress | Container |
VideoTargetRecResult | Response.JobsDetail.Operation | Video object detection result | Container |
UserData | Response.JobsDetail.Operation | Pass through user information | String |
JobLevel | Response.JobsDetail.Operation | Task Priority | String |
Node Name (Keyword) | Parent Node | Description | Type |
BodyRecognition | Response.JobsDetail.Operation.VideoTargetRecResult | Human recognition result | Container array |
PetRecognition | Response.JobsDetail.Operation.VideoTargetRecResult | Pet recognition result | Container array |
CarRecognition | Response.JobsDetail.Operation.VideoTargetRecResult | Vehicle identification result | Container array |
Node Name (Keyword) | Parent Node | Description | Type |
Time | Response.JobsDetail.Operation.VideoTargetRecResult.BodyRecognition | Screenshot time point, in seconds | String |
Url | Response.JobsDetail.Operation.VideoTargetRecResult.BodyRecognition | Screenshot URL | String |
BodyInfo | Response.JobsDetail.Operation.VideoTargetRecResult.BodyRecognition | Human recognition result(s) | Container array |
Node Name (Keyword) | Parent Node | Description | Type |
Time | Response.JobsDetail.Operation.VideoTargetRecResult.PetRecognition | Screenshot time point, in seconds | String |
Url | Response.JobsDetail.Operation.VideoTargetRecResult.PetRecognition | Screenshot URL | String |
PetInfo | Response.JobsDetail.Operation.VideoTargetRecResult.PetRecognition | Pet recognition results, possibly multiple | Container array |
Node Name (Keyword) | Parent Node | Description | Type |
Time | Response.JobsDetail.Operation.VideoTargetRecResult.CarRecognition | Screenshot time point, in seconds | String |
Url | Response.JobsDetail.Operation.VideoTargetRecResult.CarRecognition | Screenshot URL | String |
CarInfo | Response.JobsDetail.Operation.VideoTargetRecResult.CarRecognition | Vehicle identification result(s) | Container array |
Node Name (Keyword) | Parent Node | Description | Type |
Name | Response.JobsDetail.Operation.VideoTargetRecResult.BodyRecognition.BodyInfo | Recognition type | String |
Score | Response.JobsDetail.Operation.VideoTargetRecResult.BodyRecognition.BodyInfo | Recognition confidence, value range: [0-100]. Higher value indicates higher probability. | Int |
Location | Response.JobsDetail.Operation.VideoTargetRecResult.BodyRecognition.BodyInfo | Coordinates of human body detected in figure | Container |
Node Name (Keyword) | Parent Node | Description | Type |
X | Response.JobsDetail.Operation.VideoTargetRecResult.BodyRecognition.BodyInfo.Location | X coordinate | String |
Y | Response.JobsDetail.Operation.VideoTargetRecResult.BodyRecognition.BodyInfo.Location | Y-axis coordinate | String |
Height | Response.JobsDetail.Operation.VideoTargetRecResult.BodyRecognition.BodyInfo.Location | (X, Y) coordinate distance height | String |
Width | Response.JobsDetail.Operation.VideoTargetRecResult.BodyRecognition.BodyInfo.Location | (X, Y) coordinate distance length | String |
Node Name (Keyword) | Parent Node | Description | Type |
Name | Response.JobsDetail.Operation.VideoTargetRecResult.PetRecognition.PetInfo | Recognition type | String |
Score | Response.JobsDetail.Operation.VideoTargetRecResult.PetRecognition.PetInfo | Recognition confidence, value range: [0-100]. Higher value indicates higher probability. | Int |
Location | Response.JobsDetail.Operation.VideoTargetRecResult.PetRecognition.PetInfo | Coordinates of pet detected in figure | Container |
Node Name (Keyword) | Parent Node | Description | Type |
X | Response.JobsDetail.Operation.VideoTargetRecResult.PetRecognition.PetInfo.Location | X coordinate | Int |
Y | Response.JobsDetail.Operation.VideoTargetRecResult.PetRecognition.PetInfo.Location | Y-axis coordinate | Int |
Height | Response.JobsDetail.Operation.VideoTargetRecResult.PetRecognition.PetInfo.Location | (X, Y) coordinate distance height | Int |
Width | Response.JobsDetail.Operation.VideoTargetRecResult.PetRecognition.PetInfo.Location | (X, Y) coordinate distance length | Int |
Node Name (Keyword) | Parent Node | Description | Type |
Name | Response.JobsDetail.Operation.VideoTargetRecResult.CarRecognition.CarInfo | Recognition type | String |
Score | Response.JobsDetail.Operation.VideoTargetRecResult.CarRecognition.CarInfo | Recognition confidence, value range: [0-100]. Higher value indicates higher probability. | Int |
Location | Response.JobsDetail.Operation.VideoTargetRecResult.CarRecognition.CarInfo | Coordinates of vehicle detected in figure | Container |
Node Name (Keyword) | Parent Node | Description | Type |
X | Response.JobsDetail.Operation.VideoTargetRecResult.CarRecognition.CarInfo.Location | X coordinate | Int |
Y | Response.JobsDetail.Operation.VideoTargetRecResult.CarRecognition.CarInfo.Location | Y-axis coordinate | Int |
Height | Response.JobsDetail.Operation.VideoTargetRecResult.CarRecognition.CarInfo.Location | (X, Y) coordinate distance height | Int |
Width | Response.JobsDetail.Operation.VideoTargetRecResult.CarRecognition.CarInfo.Location | (X, Y) coordinate distance length | Int |
POST /jobs HTTP/1.1Authorization:q-sign-algorithm=sha1&q-ak=**********************************&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=**************************************Host:test-1234567890.ci.ap-chongqing.myqcloud.comContent-Length: 166Content-Type: application/xml<Request><Tag>VideoTargetRec</Tag><Input><Object>input/demo.mp4</Object></Input><Operation><TemplateId>t1460606b9752148c4ab182f55163ba7cd</TemplateId><UserData>This is my data.</UserData><JobLevel>0</JobLevel></Operation><CallBack>http://callback.demo.com</CallBack><CallBackFormat>JSON<CallBackFormat></Request>
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 230Connection: keep-aliveDate: Mon, 28 Jun 2022 15:23:12 GMTServer: tencent-cix-ci-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****<Response><JobsDetail><Code>Success</Code><Message/><JobId>j8d121820f5e411ec926ef19d53ba9c6f</JobId><State>Submitted</State><CreationTime>2022-06-27T15:23:10+0800</CreationTime><StartTime>-</StartTime><EndTime>-</EndTime><QueueId>p2242ab62c7c94486915508540933a2c6</QueueId><Tag>VideoTargetRec</Tag><Operation><TemplateId>t1460606b9752148c4ab182f55163ba7cd</TemplateId><TemplateName>video_target_rec_demo</TemplateName><UserData>This is my data.</UserData><JobLevel>0</JobLevel></Operation></JobsDetail></Response>
POST /jobs HTTP/1.1Authorization:q-sign-algorithm=sha1&q-ak=**********************************&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=**************************************Host:test-1234567890.ci.ap-chongqing.myqcloud.comContent-Length: 166Content-Type: application/xml<Request><Tag>VideoTargetRec</Tag><Input><Object>input/demo.mp4</Object></Input><Operation><VideoTargetRec><Body>true</Body><Car>true</Car><Pet>true</Pet></VideoTargetRec><UserData>This is my data.</UserData><JobLevel>0</JobLevel></Operation><CallBack>http://callback.demo.com</CallBack><CallBackFormat>JSON<CallBackFormat></Request>
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 230Connection: keep-aliveDate: Mon, 28 Jun 2022 15:23:12 GMTServer: tencent-cix-ci-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****<Response><JobsDetail><Code>Success</Code><Message/><JobId>j8d121820f5e411ec926ef19d53ba9c6f</JobId><State>Submitted</State><CreationTime>2022-06-27T15:23:10+0800</CreationTime><StartTime>-</StartTime><EndTime>-</EndTime><QueueId>p2242ab62c7c94486915508540933a2c6</QueueId><Tag>VideoTargetRec</Tag><Operation><VideoTargetRec><Body>true</Body><Car>true</Car><Pet>true</Pet></VideoTargetRec><UserData>This is my data.</UserData><JobLevel>0</JobLevel></Operation></JobsDetail></Response>
Feedback