本接口支持通过指定服务 ID 以及降噪配置,获取降噪结果图。
说明
veImageX 在全球多个区域部署,每个区域有自己对应的 OpenAPI 域名,不支持跨区域调用。具体详情请查看服务地址。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共请求参数。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetDenoisingImage | 接口名称。当前 API 的名称为 GetDenoisingImage 。 |
Version | String | 是 | 2018-08-01 | 接口版本。当前 API 的版本为 2018-08-01 。 |
ServiceId | String | 是 |
| 服务 ID。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
StoreUri | String | 否 | tos-i-t3***nr/0866d.jpg | 待降噪的原图 URI。 若同时传入 StoreUri 和 ImageUrl,仅取值 StoreUri,ImageUrl 将会被忽略。 |
ImageUrl | String | 否 | http://test/tos-i-t3***nr/0866d.jpg~tplv-t3**nr-1.png | 公网可访问的待降噪的原图 URL。 |
OutFormat | String | 是 | webp | 输出格式,支持格式有:png、jpeg、webp。 |
Intensity | Float | 是 | 0.9 | 降噪强度,取值范围为[0,1]。取值为0时表示不降噪,取值越大降噪强度越大。 |
CanDemotion | Boolean | 是 |
| 是否支持降级,即发生错误时返回原图地址。
|
下表仅列出本接口特有的返回参数。更多信息请见公共返回参数。
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
ResUri | String | tos-i-t3**nr/bedd9 | 降噪后的图片地址,根据输入时的地址决定返回值。 |
|
| Demotion | Boolean | false
| 是否发生降级,取值如下所示: |
| | | | - true:降级 |
| | | | - false:未降级 |
POST https://imagex.volcengineapi.com/?Action=GetDenoisingImage&Version=2018-08-01&ServiceId=8j**ji { "StoreUri":"tos-i-t3***nr/0866d.jpg", "ImageUrl":"http://test/tos-i-t3***nr/0866d.jpg~tplv-t3**nr-1.png", "OutFormat":"webp", "Intensity": 0.9, "Demotion": true }
{ "ResponseMetadata": { "RequestId": "201806041104200100100232280022D30", "Action": "GetDenoisingImage", "Version": "2018-08-01", "Service": "imagex", "Region": "cn-north-1" }, "Result": { "ResUri": "tos-i-t3**nr/bedd9", "Demotion": false } }
本接口无特有的错误码。更多信息请见公共错误码。