Quick Start

Environment Preparation

  1. Enable the Face Recognition service: Log in to the Face Recognition management console, select a sub-service, and click Enable Service on the right.

    You only need to enable the service once.

  2. Obtain the endpoints of Face Recognition. For details, see Regions and Endpoints.
  3. For details about Face Recognition APIs, see the Face Recognition API Reference.
  4. Obtain the AK/SK of your HUAWEI CLOUD account.

    If no AK/SK has been generated, log in to , enter the My Credentials page, and choose Access Keys > Create Access Key to obtain the access keys.

  1. Install the Go and set the Go language environment variables.

SDKs provided by Face Recognition do not support access retries. If the access is abnormal, the SDK directly returns the request results. Therefore, the client needs to establish a retry mechanism.

SDK Acquisition and Installation

  1. Download the Go SDK of Face Recognition and decompress it.
  2. On Eclipse, create a Go project, copy all content in the Go SDK folder to the folder in the newly created project.
  3. Right-click the project and choose Build Project from the drop-down list, and wait until the building is complete.