Image quality scoring
The Image Quality Scoring operator evaluates an image's visual quality based on clarity, noise, color saturation, and exposure to provide an objective, quantitative score. 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 more information, see or Create and manage workflows.
Permissions
In a Basic project, users with the roles of project administrator, developer, analyst, or a custom role with the Dataset - Use permission can use any dataset in the project for the operator's input and output.
Supported file formats
The Image Quality Scoring operator supports the following file formats: jpg, jpeg, jpe, jfif, png, bmp, tiff, tif, webp, heic, heif, gif, ico, ppm, pgm, pbm, pnm, and tga.
Procedure
-
In the top navigation bar of the Dataphin homepage, choose Develop > Data Development.
-
In the top navigation bar of the Development page, select your Project.
-
In the left-side navigation pane, choose Data Processing > Workflow. In the Workflow list, click your target workflow to open its canvas. From the Operator Library on the left, drag the Image Quality Scoring operator to the canvas. In the Image Quality Scoring panel on the right, configure the following parameters.
Parameter
Description
Step Name
Enter a name for the operator. The name can contain any character and be up to 256 characters long.
Input Configuration
Dataset
Select the dataset to process. You can select only a hybrid dataset. After you select a dataset, you must also select a Version. By default, the earliest version of the dataset is selected.
If this operator is downstream from another, its input dataset is typically the upstream operator's output dataset.
Input Field
Select the field from the input dataset that contains the storage URL of the image to process. You can only select fields where the Is URL parameter is set to Yes.
Filter Condition (Optional)
Use SQL syntax. You only need to enter the filter condition that follows the
WHEREclause. System global variables are supported, such as${bizdate}for the business date.Operator Configuration
Processing Model
You can select a System-Built-in Model (CLIP-IQA) or a large multimodal model. If you select a large multimodal model, you must specify a Model for the operator. You can only select models with the model type Vision (Image and Video) that are Enabled on the Model Configuration page of Intelligent Application Management.
NoteFor information about the pricing factors for system models, see System-built-in models supported by Intelligent Application.
If you have purchased the advanced authorization package for your models, no Credits are deducted. Otherwise, a 0.2x rate applies.
Output Configuration
Dataset
You can select Source Dataset or Other Dataset. If the metadata table of the source dataset does not have a primary key, the output dataset defaults to Other Dataset.
When you select Other Dataset, you must also specify a hybrid dataset or a Table Dataset and its Version as the output dataset. By default, the earliest version of the dataset is selected. You can also select a different version of the source dataset.
When you select Source Dataset, the operator writes the generated metadata to the metadata table of the same source dataset version.
Load Policy
If the metadata table of the selected output dataset contains a primary key, the default selection is update on primary key conflict. If no primary key exists, the default selection is append data.
-
Append Data: Appends new data directly to the destination table. An error occurs if there is a primary key or constraint conflict.
-
Update on Primary Key Conflict: If a primary key or constraint conflict occurs, the system deletes the existing row with the duplicate primary key before inserting the new data.
-
Overwrite: Deletes the existing data in the destination table before writing the new data.
NoteWhen Source Dataset is selected for the output, Update on Primary Key Conflict is the only available load policy.
Field Mapping
The Image Quality Scoring operator always outputs the following field:
quality_score: A score that ranges from 0 to 1. A higher score indicates better image quality. A score greater than 0.5 is generally considered good.By default, the operator's output fields are mapped to destination fields with the same name. You can also manually select destination fields for a custom mapping. In addition, you can map pass-through fields from the source dataset to the destination dataset. Manage field mappings using the following options:
-
Add Output Field: Click to add a new, empty field mapping row. This feature is available only when Other Dataset is selected as the output dataset.
-
Batch Mapping: Click to perform batch mapping by manual selection, by name, or by row. This feature is available only when Other Dataset is selected as the output dataset.
-
Delete a mapping: Click the Delete icon to delete a field mapping row. Mappings for the operator's fixed output fields cannot be deleted.
-
After configuring the operator, click Save in the toolbar at the top of the canvas.
After you configure an individual operator, you can continue to build a complete workflow by adding upstream or downstream operators.