Member-only story
Multi object detection using cloud vision API
In this post , we are going to see how to use google cloud computer vision api to detect multiple objects in a image, mark them with pointers and name those objects .
To start , first enable the cloud vision api in the google cloud console or via the gcloud command.
gcloud services enable vision.googleapis.com
cloud vision api
Next, create a service account with “AI platform admin” permissions.
service account
Create a json key for this service account.
Now you can create a jupyter notebook in your local machine or you can create notebook in Google cloud AI platform . ( Please note that creating a python notebook instance in GCP will incur costs).
- Import the required libraries
- Resize and visualize the image
- Normally we use cv2.rectangle to mark the identified objects, for a change we will use pointers…