Quick Start
Environment Preparation
- 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.
- Obtain the endpoints of Face Recognition. For details, see Regions and Endpoints.
- For details about Face Recognition APIs, see the Face Recognition API Reference.
- 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 to obtain the access keys.
- Install the Python environment. The Python SDK can run on Python 2.7 and Python 3.6.
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
- Download the Python SDK of Face Recognition and decompress it.
- Download and install setuptools.
- On the command-line interface (CLI), switch to the decompressed directory of Python SDK.
- In the SDK directory, run the Python setup.py install command to install the Python SDK to the development environment, or directly import the .py file to the project.
During Python programming of Face Recognition, all files in the frsclient folder are referenced: from frsclient import *
Last Article: Python SDK
Next Article: SDK API Example
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.