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.
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.
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.
You are now ready to process your images into Eden AI Object Detection API.
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.
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:
Using Object Detection with Eden AI API is quick and easy.
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
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.
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.