Skip to content

Getting Started

To use the OpenCV Face Recognition Python SDK, first register at the OpenCV Face Recognition Developer Portal.

After registering, you can find your Developer Key on the Dashboard once you log in.

You will need your Developer Key to use this SDK.

Install requirements

With your Developer Key handy, you can simply pip install our SDK as shown below:

pip install opencv-face-recognition

To facilitate RAD (Rapid Application Development), we highly recommend that you use Google Colab notebook while familiarizing yourself with our APIs, and planning the UI for your own users.

Import and initialize SDK

Since our SDK supports multiple regions, you need to initialize it with a respective BACKEND_URL indicating the region you would like to host your data in, and also with a DEVELOPER_KEY. To do so, execute code snippet below with respective region:

# Import the SDK
from opencv.fr import FR

# Define the region, and developer key
# SG: "https://sg.opencv.fr"
# US: "https://us.opencv.fr"
# EU: "https://eu.opencv.fr"

BACKEND_URL = "https://sg.opencv.fr"
DEVELOPER_KEY = "8zt.......................................ZmQ2"

# Initialize the SDK
sdk = FR(BACKEND_URL, DEVELOPER_KEY)

Now we are ready to use the SDK to perform various operations.