Image watermark detection
The image watermark detection operator finds visible watermarks in images and returns a probability score from 0.0 to 1.0. A score closer to 1.0 indicates a higher likelihood that an image contains a watermark. Use this operator to filter watermarked images and ensure data quality. This topic explains how to configure this operator.
Prerequisites
To use the workflow feature, you must first purchase the unstructured data feature for your instance.
You have created a workflow. For details, see Create and manage a workflow.
Permissions
In a Basic project, project administrators, developers, analysts, and custom project roles with the Dataset - Use permission can use any dataset within the project as an input or output for this operator.
Supported file formats
The image watermark detection operator supports the following file formats: jpg, jpeg, jpe, jfif, png, bmp, tiff, tif, webp, heic, heif, gif, ico, ppm, pgm, pbm, pnm, tga, and svg.
Procedure
In the top navigation bar of the Dataphin homepage, choose Develop > Data Development.
On the Develop page, select a Project from the top navigation bar.
In the left-side navigation pane, choose Data Processing > Workflow. In the Workflow list, click the target workflow to open its canvas. From the Operator Library on the left, drag the Image Watermark Detection operator to the canvas. Then, configure the following parameters in the Image Watermark Detection panel on the right.
Parameter
Description
Step name
Enter a name for the operator. The name can be up to 256 characters long.
Input configuration
Dataset
Select the dataset to process. You can select only a hybrid dataset. After selecting a dataset, you must also select its Version. The earliest version is selected by default.
If this operator is downstream from another, the selected dataset is typically the output dataset of the upstream operator.
Input field
Select a field from the input dataset that contains the storage URLs of the images to process. You can only select fields where the Is URL parameter is set to Yes.
Filter (Optional)
Specify the filter conditions that follow the WHERE clause in a SQL statement. You can use system-wide global variables, such as ${bizdate} for the business date.
Operator configuration
Processing model
You can select a System Built-in Model or a Multimodal Large Model. When using a Multimodal Large Model, you must also select a Model. You can only select models that are Enabled and have a model type of Vision (Images and Videos) on the Intelligent Application Management > Model Configuration page.
NoteFor information about the price coefficient for system models, see Built-in models supported by Intelligent Application.
If you have purchased an advanced license package for custom models, no credits are deducted. Otherwise, usage is billed at a 0.2x rate.
Output configuration
Dataset
You can select Source Dataset or Other Dataset. If the source dataset lacks a primary key, the output defaults to Other Dataset.
When you select Other Dataset, you must also specify a hybrid dataset or a table dataset and its Version. The earliest version is selected by default. You can also select other versions from the same data source.
When you select Source Dataset, the operator writes the generated metadata to the source dataset's metadata table.
Loading policy
If a primary key exists in the metadata table of the selected output dataset, update on primary key conflict is selected by default. If no primary key exists, append data is selected by default.
append data: Appends new data to the target table. This action fails if a primary key or constraint conflict occurs.
update on primary key conflict: If a primary key or constraint conflict occurs, the system deletes the conflicting row and then inserts the new data.
overwrite: Deletes all existing data from the target table before writing the new data.
NoteWhen the output dataset is set to Source Dataset, the only supported loading policy is update on primary key conflict.
Field mapping
The operator outputs the following field:
watermark_probability: A probability score from 0.0 to 1.0, where higher values indicate a greater likelihood of a watermark.By default, the operator's output field is mapped to the field with the same name in the output dataset. You can also manually select a target field for a custom mapping. Additionally, you can map passthrough fields from the source dataset to the target dataset. Use the following options to manage field mappings:
Add output field: Add a new, empty field mapping row. This feature is available only when the output dataset is set to Other Dataset.
Batch mapping: Map multiple fields at once: manually, by name, or by row. This feature is available only when the output dataset is set to Other Dataset.
Delete mapping: Click the Delete icon to remove a field mapping row. You cannot delete mappings for the operator's fixed output fields.
When you finish the configuration, click Save in the menu bar at the top of the canvas.
After configuring a single operator, you can continue to build your workflow by adding upstream and downstream operators.