How to use Object Detection API with Python in 5 minutes?
Tutorial

How to use Object Detection API with Python in 5 minutes?

In this tutorial, you will learn how to use Object Detection API in 5 minutes using Python and Eden AI Object Detection API. Eden AI provides an easy and developer-friendly API that allows you to detect objects in images.

What is Object Detection ? 

Object detection (or object classification) is a Computer Vision technique that aims to identify and locate the presence of an object instance or class of objects in an image. Therefore, it does not require data for model training. Particular attention is paid to the detection of faces and people. Object detection can be found in many domains, such as content-based image search or video surveillance. If you want to learn more about what Computer Vision can offer, check out our selection of Best Computer Vision APIs.

 

Exemple of Object Detection results on Eden AI platform

Getting Started with Object Detection API

The first step to using Object Detection API with Python is to install Python's requests package, that will allow you to call Eden AI API.

Next, you'll need to install Python's JSON package in order to read and print the result of the API request.

How to use Object Detection API with Python

You are now ready to process your images into Eden AI Object Detection API.

1. Get an Object Detection API Key on Eden AI

To perform Object Detection, make sure to create an account on Eden AI for free. Then, you will be able to get your API key direclty from the homepage with free credits offered by Eden AI.

Eden AI platform - Get your API key

2. Start detecting objects in your images

Now that you have imported packages on Python and gotten your API key, you will be able to detect objects in images.With Eden AI, you can choose from a range of different engines you want for Object Detection. To help you choose the best provider according to your needs and type of project, you can access our list of Object Detection providers.

Here is the Python script you need to write on your notebook:

As shown above, we have called two different Object Detection engines in the script. Subsequently, Eden AI API will return in its JSON response results of those providers.

Once the request is done, you will be able to get the result with this print :

Here is an example of a Object Detection API response:

Example of a Object Detection API response

Benefits of using Automatic Translation API with Eden AI

Using Object Detection with Eden AI API is quick and easy.

Best Automatic Translation AIs in one API

Save time and cost

We offer a unified API for all providers: simple and standard to use, with a quick switch between providers and an access to the specificic features of each provider

Easy to integrate

The JSON output format is the same for all suppliers thanks to Eden AI's standardisation work. The response elements are also standardised thanks to Eden AI's powerful matching algorithms.

Customization

With Eden AI you have the possibility to integrate a third party platform: we can quickly develop connectors. To go further and customize your Automatic Translation request with specific parameters, check out our documentation.

Related Posts

Try Eden AI for free.

You can directly start building now. If you have any questions, don't hesitate to schedule a call with us!

Get started