Extracts a blind watermark.
Operation description
-
Before you use this API, make sure that you understand the billing methods and pricing of Intelligent Media Management (IMM).
Important Asynchronous tasks are not guaranteed to be completed within a specific time frame. -
Make sure that a project is created in IMM. For more information, see Create a project.
-
Make sure the service region and project are the same as those used to add the blind watermark using the EncodeBlindWatermark operation. Otherwise, the watermark cannot be extracted.
-
The watermark can be extracted even after the image undergoes attacks such as compression, scaling, clipping, and color changes.
-
This API is compatible with the previous version of the blind watermarking feature. Some parameters are from the previous DecodeBlindWatermark API.
-
This is an asynchronous API. After a task starts, its information is saved for only 7 days. After this period, the information can no longer be retrieved. Call the GetTask or ListTasks API to retrieve the TaskId and view task information. Alternatively, set the Notification parameter to receive task information through asynchronous notification messages.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:CreateDecodeBlindWatermarkTask |
create |
*Project
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
The project name. For information about how to obtain the project name, see Create a project. Important The project name must be the same as the one used to add the blind watermark with the EncodeBlindWatermark operation. Otherwise, the watermark cannot be extracted. |
immtest |
| SourceURI |
string |
Yes |
The Object Storage Service (OSS) URI of the image. The OSS URI must be in the |
oss://target/sampleobject.jpg |
| StrengthLevel |
string |
No |
The watermark extraction level, which controls the extraction precision. A higher level indicates a longer processing time and a better extraction effect. Valid values:
|
low |
| WatermarkType |
string |
No |
The type of the embedded watermark. Valid value: text (Image watermarks are not supported. Therefore, this parameter can only be set to text.) Valid values:
|
text |
| TargetURI |
string |
No |
A parameter from the earlier DecodeBlindWatermark API. It specifies the OSS URI where the image is saved after the blind watermark is parsed. The OSS URI must be in the |
oss://target/targetobject.jpg |
| ImageQuality |
integer |
No |
A parameter from the earlier DecodeBlindWatermark API. It specifies the quality of the output image. The default value is 90. The value must be in the range of 70 to 100. A higher quality results in a larger image size and better watermark parsing quality. |
90 |
| Model |
string |
No |
A parameter from the earlier DecodeBlindWatermark API. It specifies the watermark algorithm model. Valid values include FFT, FFT_FULL, DWT, and DWT_IBG. The default value is FFT. If this parameter is left empty, the new version of the blind watermarking feature is used. Otherwise, the earlier version is used. Valid values:
|
FFT |
| OriginalImageURI |
string |
No |
A parameter from the earlier DecodeBlindWatermark API. It specifies the OSS URI of the image before the blind watermark was added. This parameter is not required when Model is set to DWT or DWT_IBG. The OSS URI must be in the |
oss://imm-test/testcases/watermarktestbefore.jpg |
| Notification | Notification |
No |
The notification configuration. For more information, click Notification. For the format of asynchronous notification messages, see Asynchronous notification message format. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response parameters |
||
| RequestId |
string |
The ID of the request. |
4A7A2D0E-D8B8-4DA0-8127-EB32C6600ADE |
| EventId |
string |
The event ID. |
27C-1jyAP5qQI7RoI8lFFwvMrWtl0ft |
| TaskId |
string |
The task ID. |
DecodeBlindWatermark-78ac8f3b-59e0-45a6-9b67-32168c3f22b9 |
Examples
Success response
JSON format
{
"RequestId": "4A7A2D0E-D8B8-4DA0-8127-EB32C6600ADE",
"EventId": "27C-1jyAP5qQI7RoI8lFFwvMrWtl0ft",
"TaskId": "DecodeBlindWatermark-78ac8f3b-59e0-45a6-9b67-32168c3f22b9"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.