Parameter Name | Type | Required | Description |
ReqId | String | Yes | Unique identifier for a single request. |
SessionId | String | Yes | Session ID. |
SpaceParam | No | Spatial information, supported by Avatar. | |
ImageParam | No | Avatar information, supported by 3D avatars. |
Name | Type | Required | Description |
BackgroundUrl | String | No | Background URL (less than 1 MB in size, preferably aligned with the output resolution, otherwise it will be stretched to fill). Supported formats: jpg, jpeg, png (other formats are not supported). If not provided, the last used background image will be used. |
ImagePosition | float | Yes | The X position of the character in the background image. The X coordinate is 0 when the character image is centered horizontally. The value range is [-0.5, 0.5]. The character cannot be moved out of the background image area. This is a linear value. |
ImagePositionVertical | float | Yes | The Y position of the character in the background image. The Y coordinate is 0 when the character image is aligned to the bottom. The value range is [-0.5, 0.25]. The character can be moved downward out of the background image area. This is a linear value. |
ImageZoom | float | Yes | The zoom ratio of a character relative to the original material image, calculated based on the size after zooming and the original character material image. The calculation formula is: width of the zoomed character image / (background width of the preview area / target resolution width) / width of the original character material image. The recommended value range is [0.25, 2]. |
Backgrounds | No | A list of background images. The total number of background and foreground images cannot exceed 5. Notes: 1. For streamers whose shooting background has not been removed, this parameter cannot take effect. 2. For streamers whose shooting background has been removed, the background takes effect in the following priority order: 2.1 The background set by this parameter. 2.2 Green screen. 3. If this parameter is used, it will override the BackgroundUrl. | |
Foregrounds | No | A list of foreground images. The total number of background and foreground images cannot exceed 5. To clear previously set foreground images, set the array to []. If this parameter is not provided during an update, the foreground data will be retained. |
Name | Type | Required | Description |
ImageVerticalOffset | float | No | The vertical rotation angle of the 3D avatar's upper body |
ImageHorizontalOffset | float | No | The horizontal rotation angle of the 3D avatar's upper body. |
ImageExtraParam | float | No | The color-changing parameter for 3D avatars. For specific parameters, refer to the Interactive Digital Human platform. |
Parameter Name | Type | Required | Description |
URL | String | Yes | URL of the layer resource. Image formats: jpg, jpeg, png, mjpeg, and gif are supported. Image size: It is recommended that it does not exceed 2 MB. |
X | int | Yes | The X-coordinate of the top-left corner for resource placement. |
Y | int | Yes | The Y-coordinate of the top-left corner for resource placement. |
Width | int | Yes | The width of the resource output. |
Height | int | Yes | The height of the resource output. |
Name | Type | Required | Description |
ReqId | String | Yes | Unique identifier for a single request. |
{"Header": {},"Payload": {"ReqId": "d7aa08da33dd4a662ad5be508c5b77cf","SessionId": "m123adfafvbadsafd","ImageParam": {"ImageVerticalOffset": 10,"ImageHorizontalOffset": 10,"ImageExtraParam": "{\\"JacketColor\\":{\\"colorValue\\":10491928},\\"DressColor\\": {\\"colorValue\\":10491928},\\"shoeColor\\": {\\"colorValue\\": 10491928}}"},"SpaceParam": {"BackgroundUrl": "https://virtualhuman-cos-prod-1251316161.cos.ap-nanjing.myqcloud.com/ai-resource/1518804312073965568","ImagePosition": -0.01,"ImagePositionVertical": -0.01,"ImageZoom": 1}}}
{"Header": {"Code": 0,"Message": "","RequestID": "123",},"Payload": {"ReqId": "d7aa08da33dd4a662ad5be508c5b77cf",}}
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback