Updated on 2024-05-16 GMT+08:00

Image Recognition

The Image Recognition connector is used to interconnect with Huawei Cloud Image Recognition to accurately identify the content of images.

Prerequisites

Huawei Cloud Image Recognition has been enabled.

Creating an Image Recognition Connection

  1. Log in to the new ROMA Connect console.
  2. In the navigation pane on the left, choose Connector. On the page displayed, click New Connection.
  3. Choose Huawei Cloud Services > Image Recognition
  4. In the dialog box displayed, configure the connector and click OK.

    Parameter

    Description

    Name

    Enter the connector instance name.

    Authenticated By

    Select an authentication mode for the connector.

    Access Key

    Mandatory when Authentication Mode is set to AK/SK.

    Access key ID (AK) of the current account. Obtain the AK by referring to Access Keys. If an AK/SK pair has been generated, find the downloaded AK/SK file (such as credentials.csv).

    Secret Access Key

    Mandatory when Authentication Mode is set to AK/SK.

    Secret access key (SK) of the current account. Obtain the SK by referring to Access Keys. If an AK/SK pair has been generated, find the downloaded AK/SK file (such as credentials.csv).

    Description

    Enter the description of the connector to identify it.

Action

  • Celebrity recognition: Identifying movie stars and internet celebrities in images.
  • Tag recognition: Identifying the name, category, and confidence of an object in an image.

Configuration Parameters

Table 1 Celebrity recognition

Parameter

Description

Region

Region where the Image Recognition service resides.

Project

Project to which the Image Recognition service belongs.

Obtain Image from

Method to obtain the image. Options are API form parameters, Base64 encoding, and URL path.

API form parameters

If Obtain Image from is set to API form parameters, the trigger of this task flow must be OpenAPI, and images must be uploaded using form parameters of the form-data type. Set this parameter to the name of the form parameters.

Base64 encoding

If Obtain Image from is set to Base64 encoding, set this parameter to the Base64-encoded character string of the image. The size cannot exceed 10 MB.

URL path

If Obtain Image from is set to URL path, set this parameter to the URL of the image.

The value can be:

  • HTTP/HTTPS URLs on the public network
  • Huawei Cloud OBS URLs. To use OBS data, authorization is required, including service authorization, temporary authorization, and anonymous public authorization. For details, see Configuring the Access Permission of OBS.

Confidence

Threshold (0 to 1) of the confidence score. Tags with a confidence score lower than the threshold will not be returned.

Tags

Maximum number of tags that can be returned. The default value is 30.

Tag Language

Language of the returned tags.

  • zh: Chinese
  • en: English

The default value is zh.

Table 2 Tag recognition

Parameter

Description

Region

Region where the Image Recognition service resides.

Project

Project to which the Image Recognition service belongs.

Obtain Image from

Method to obtain the image, including API form parameters, Base64 encoding, and URL path.

API form parameters

If Obtain Image from is set to API form parameters, the trigger of this task flow must be OpenAPI, and images must be uploaded using form parameters of the form-data type. Set this parameter to the name of the form parameters.

Base64 encoding

If Obtain Image from is set to Base64 encoding, set this parameter to the Base64-encoded character string of the image. The size cannot exceed 10 MB.

URL path

If Obtain Image from is set to URL path, set this parameter to the URL of the image.

The value can be:

  • HTTP/HTTPS URLs on the public network
  • Huawei Cloud OBS URLs. To use OBS data, authorization is required, including service authorization, temporary authorization, and anonymous public authorization. For details, see Configuring the Access Permission of OBS.

Confidence

Threshold (0 to 1) of the confidence score. Tags with a confidence score lower than the threshold will not be returned.