ci:CreateBodyJointsDetectJob permission is required. For details, see Cloud Infinite action.cam:passrole permission is required. The asynchronous processing interface performs read and write operations on COS resources through the "role" in CAM. 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>SegmentVideoBody</Tag><Input><Object>input/test.mp4</Object></Input><Operation><SegmentVideoBody><Mode>Mask</Mode></SegmentVideoBody><UserData>This is my data.</UserData><JobLevel>0</JobLevel><Output><Region>ap-chongqing</Region><Bucket>test-123456789</Bucket><Object>output/out.mp4</Object></Output></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 | Create task Tag: SegmentVideoBody | String | Yes |
Input | Request | Object information to be operated | Container | Yes |
Operation | Request | Operation rule | Container | Yes |
CallBackFormat | Request | Job callback format, JSON or XML, default is XML, priority is higher than the callback format of the queue | String | No |
CallBackType | Request | Job callback type, Url or TDMQ, default is 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 means the queue's callback address 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 | File path | String | Yes |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
SegmentVideoBody | Request.Operation | Video portrait matting configuration | Container | No |
Output | Request.Operation | Output configuration | Container | Yes |
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 levels indicate higher task priority, default is 0. | String | No |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Mode | Request.Operation.SegmentVideoBody | Matting Mode Mask: Output alpha channel result Foreground: Output foreground video Combination: Output the video synthesized from the foreground after matting and the custom background Default value: Mask | String | No |
SegmentType | Request.Operation.SegmentVideoBody | Matting Type HumanSeg: Portrait matting GreenScreenSeg: Green screen matting SolidColorSeg: Solid color background matting Default value: HumanSeg | String | No |
BackgroundRed | Request.Operation.SegmentVideoBody | The parameter takes effect when mode is Foreground, with background color set to red, parameter value range [0, 255], default value 0. | String | No |
BackgroundGreen | Request.Operation.SegmentVideoBody | The parameter takes effect when mode is Foreground, with background color set to green, parameter value range [0, 255], default value 0. | String | No |
BackgroundBlue | Request.Operation.SegmentVideoBody | The parameter takes effect when mode is Foreground, with background color set to blue, parameter value range [0, 255], default value 0. | String | No |
BackgroundLogoUrl | Request.Operation.SegmentVideoBody | Import a background file. This parameter is required when mode is Combination, and the background file must be in the same bucket as the source file. | String | No |
BinaryThreshold | Request.Operation.SegmentVideoBody | Adjust the edge position of image matting, with a value range of [0, 255], and a default value of 0. | String | No |
RemoveRed | Request.Operation.SegmentVideoBody | Background color for solid color background matting (red), takes effect when SegmentType is SolidColorSeg, value range is [0, 255], default value is 0. | String | No |
RemoveGreen | Request.Operation.SegmentVideoBody | Background color for solid color background matting (green), takes effect when SegmentType is SolidColorSeg, value range is [0, 255], default value is 0. | String | No |
RemoveBlue | Request.Operation.SegmentVideoBody | Background color for solid color background matting (blue), takes effect when SegmentType is SolidColorSeg, value range is [0, 255], default value is 0. | String | No |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Region | Request.Operation.Output | Region of the storage bucket | String | Yes |
Bucket | Request.Operation.Output | Bucket for storing results | String | Yes |
Object | Request.Operation.Output | Output result filename | String | Yes |
<Response><JobsDetail><Code>Success</Code><Message/><JobId>ac7c990a00bf211ed946af9e0691f2b7a</JobId><State>Submitted</State><CreationTime>2022-06-27T14:44:10+0800</CreationTime><StartTime>-</StartTime><EndTime>-</EndTime><QueueId>pcd463e1467964d39ad2d3f66aacd8199</QueueId><Tag>SegmentVideoBody</Tag><Input><BucketId>test-123456789</BucketId><Object>input/test.mp4</Object><Region>ap-chongqing</Region></Input><Operation><SegmentVideoBody><Mode>Mask</Mode></SegmentVideoBody><UserData>This is my data.</UserData><JobLevel>0</JobLevel><Output><Region>ap-chongqing</Region><Bucket>test-123456789</Bucket><Object>output/out.mp4</Object></Output></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 | Task detailed information | Container array |
Node Name (Keyword) | Parent Node | Description | Type |
Code | Response.JobsDetail | error code, meaningful only when State is Failed | String |
Message | Response.JobsDetail | error description, meaningful only when State is Failed | String |
JobId | Response.JobsDetail | Create task ID | String |
Tag | Response.JobsDetail | Create task Tag: SegmentVideoBody | String |
State | Response.JobsDetail | Task Status Submitted Pending execution Running: Executing Success: Execution successful Failed: Execution failed Pause: Task pause. 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 | String | |
Input | Response.JobsDetail | Request.Input node in the same request | Container |
Operation | Response.JobsDetail | Rules of this task | Container |
Node Name (Keyword) | Parent Node | Description | Type |
SegmentVideoBody | Response.JobsDetail.Operation | Request.Operation.SegmentVideoBody in the same request | Container |
Output | Response.JobsDetail.Operation | Same as Request.Operation.Output in the request | Container |
UserData | Response.JobsDetail.Operation | Pass through user information | String |
JobLevel | Response.JobsDetail.Operation | Task Priority | String |
MediaInfo | Response.JobsDetail.Operation | Output file's media information, do not return if the task is incomplete, see MediaInfo for details. | Container |
MediaResult | Response.JobsDetail.Operation | Output file's basic information, do not return if the task is incomplete, see MediaResult for details. | Container |
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-beijing.myqcloud.comContent-Length: 166Content-Type: application/xml<Request><Tag>SegmentVideoBody</Tag><Input><Object>input/test.mp4</Object></Input><Operation><SegmentVideoBody><Mode>Mask</Mode></SegmentVideoBody><UserData>This is my data.</UserData><JobLevel>0</JobLevel><Output><Region>ap-chongqing</Region><Bucket>test-123456789</Bucket><Object>output/out.mp4</Object></Output></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>ac7c990a00bf211ed946af9e0691f2b7a</JobId><State>Submitted</State><CreationTime>2022-06-27T14:44:10+0800</CreationTime><StartTime>-</StartTime><EndTime>-</EndTime><QueueId>pcd463e1467964d39ad2d3f66aacd8199</QueueId><Tag>SegmentVideoBody</Tag><Input><BucketId>test-123456789</BucketId><Object>input/test.mp4</Object><Region>ap-chongqing</Region></Input><Operation><SegmentVideoBody><Mode>Mask</Mode></SegmentVideoBody><UserData>This is my data.</UserData><JobLevel>0</JobLevel><Output><Region>ap-chongqing</Region><Bucket>test-123456789</Bucket><Object>output/out.mp4</Object></Output></Operation></JobsDetail></Response>
Feedback