Search⌘ K
AI Features

Object Detection in the Images

Explore how to implement object detection in images using Azure Computer Vision API. Learn to detect objects with location coordinates and confidence scores. Understand how to use detect_objects and detect_objects_in_stream functions to analyze images from both URLs and local files, and how to visualize detected objects with bounding boxes.

We'll cover the following...

Introduction

In this lesson, we’re going to build a script to detect objects in an image using the Computer Vision API. The Computer Vision API detects the objects in an image and returns the bounding-boxthe co-ordinates of the objects present in the image. This differs from generating the tags for the image because the tags are generated for contextual terms too (like indoor, outdoor, etc.) which cannot be represented using the bounding-boxes.

Implementation

We’ll be using the detect_objects() function from the ComputerVisionClient class. This function accepts the URL of an image and helps to detect all the objects with their ...