API Setup
Explore how to set up the Microsoft Computer Vision API by accessing the Azure portal, retrieving subscription keys and endpoints, and saving them to use in your Python projects. This lesson helps you prepare your environment for effective API integration and image analysis.
We'll cover the following...
We'll cover the following...
Getting the subscription key and endpoint
Go to the computer vision resource that we made in the last lesson. Then, select the “Keys and Endpoint” tab from the “Resource Management” section in the left panel.
Saving the keys
Let’s save the API key and the associated endpoint to use throughout the course. The following is the procedure to save the API key and endpoint:
- Click the “Edit” button in the following widget.
- Type the chosen subscription key and endpoint in the
SUBSCRIPTION_KEYandENDPOINTfields, respectively. - Click the “Save” button.
As soon as you save the values, the values will be replaced in the code. You can print these values by pressing the “Run” button.