I take it for granted that when I look at a picture I can identify what the items in the picture are. However, as a baby I could not and as a young child I would probably struggle with non-every day objects in a picture. Computers are at a point in their development where they are getting better at identifying objects in pictures. With an Azure subscription in hand I’ve decided to use some Python to see how well Microsoft’s Cognitive Services can identify objects in a picture.
This project requires an active Azure subscription, and this project falls into the “Cognitive Services” part of Azure’s AI + Machine Learning selection.
From within the Cognitive Services menu select “Compute Vision”.
As with my previous Azure projects some settings need to be added:
- Name – a unique name for this project
- Subscription – the subscription to charge the project to (use Free Trial if you are on the free trial)
- Location – The location nearest to you (for me it’s UK South)
- Pricing Tier – I went with F0 as it is the cheapest option
- Resource Group – The resource group from which the project will consume resources
With settings entered hit create and wait a few moments for the resource to deploy. Once deployed you should have options for the project.
From this window make sure to click “Overview” on the left and make a note of your:
- Endpoint (should be related to the location selected earlier)
- API / Subscription Key (it is needed later and can be regenerated if required)
Microsoft keeps a list of the API details and Endpoints at:
With all that in place it’s time for some Python 🙂
The Python code for this project can be found on my GitHub: