Computer vision & object detection: Which provider to choose?

Eden AI
8 min readAug 5, 2020
AI-Compare (www.ai-compare.com) — Computer vision & object detection
AI-Compare (www.ai-compare.com) — Computer vision & object detection

This article is brought to you by the AI-Compare team (www.ai-compare.com). We reference a large number of Artificial Intelligence solutions and allow you to test them directly through our API. In this article, we test several pre-trained Object Detection APIs . We test these solutions on various relevant use cases.

AI-Compare Object detection API is available on RapidAPI : https://rapidapi.com/AICompare/api/ai-compare-object-detection

AI-Compare Object detection API is also available directly here: https://ai-compare.com/vision_apis/object_detection

You are a solution provider and want to integrate AI-Compare, contact us at: contact@ai-compare.com

In recent years, within the world of Artificial Intelligence, one of the most popular applications is computer vision. This popularity is due to the huge diversity of applications and needs: medical imaging, industry, transport, surveillance, etc. Nowadays, every fields use cameras and pictures in their activities. Computer vision includes various functionalities:

AI-Compare (www.ai-compare.com) — Computer vision functionalities
AI-Compare (www.ai-compare.com) — Computer vision functionalities

This table does not represent an exhaustive list of all computer vision functionalities. Many solutions are based on several functionalities combined.

It is very important to distinguish pre-trained APIs and AutoML APIs :

  • Pre-trained APIs are APIs based on models already trained by providers and with their databases. These models are usually used to manage common vision use cases : common objects, persons, animals, contexts, vehicles, faces, etc. However, it is always relevant to try these APIs before custom models because providers constantly make their APIs more competitive and efficient.
  • For specific cases and very high precision needed, it may be better to use AutoML APIs. These APIs are provided by Google Cloud Platform, Amazon Web Services, Microsoft Azure, IBM Watson, Clarifai, Chooch AI and few others. AutoML APIs allow users to build their own custom model, exclusively trained on the user database. It allows to create specific models made only for a unique project.

This article briefly treats about pre-trained Object Detection APIs. The aim is to inform about which problematics can be solved with this kind of API? Who are the main providers on the market? What is the optimal process when using pre-trained APIs?

Providers:

During our study on Object Detection pre-trained APIs, we decided to choose 6 providers APIs that provide high performance according to many blog articles, Gartner and Forrester rankings:

AI-Compare (www.ai-compare.com) — Google, Amazon, Azure, IBM, Clarifai & Chooch AI
AI-Compare (www.ai-compare.com) — Google, Amazon, Azure, IBM, Clarifai & Chooch AI

This is the pull of providers APIs we are going to test. It is interesting to note that some other solutions and open source solutions exist.

Use cases:

As said previously, object detection APIs are used in hundreds of fields, for many various use cases. In this article, we are going to test different object detection APIs with various types of pictures representing common use cases.

We chose 3 use cases from different fields, represented by 3 pictures :

  • People counting : a park wants to count people at a precise spot analyzing pictures taken at regular intervals
  • animal detection : some searchers want to know which animals are living at a precise spot
  • home picture analysis : example : High Tech company wants to check on pictures sent by their technicians if TVs were well installed

For each use case, we tested the Object Detection API from the 6 providers, with one picture per use case. Of course, for a real project you will need to test on a representative part of your database (not only one picture) to have the right view about different performance.

AI-Compare:

For GCP, AWS, Azure and Watson, we don’t need to use their API directly. In fact, the AI-Compare Object Detection API allows to get the 4 providers APIs results with only one simple request. With few lines of code, we can have access to the results from the 4 providers. Clarifai and Chooch AI are not implemented yet on AI-Compare, so we use their API directly.

Genius functionality:

Better than comparing results from different APIs, AI-Compare provides the Genius functionality. This functionality returns a smart combination of all results. For our examples, we will see what we can get with this combined result.

Tests:

The API response is only a text response. This response (often json format) will be used to develop applications. For our example, the way to proceed is:

1- Benchmark object detections APIs available on the market

  • Search for providers
  • Test solutions with some pictures according to the project
  • Analyze prices

2- Choose the API provider that best fits with your project OR combine multiples providers APIs results

3- Integrate final API in your project / software

  • Look how to manage API in production
  • Add pre-processing and post-processing according to your project

Finally, depending on the project, the visual results with bounding boxes printed on the pictures can be useful or not. But for the benchmark, this is the best and fastest way to find and visualize performances.

Google, IBM, Clarifai, AWS, Azure and Chooch provide API for multiple computer vision functionality. They also provide a graphic interface only to test and compute few pictures.

Animals case :

AI-Compare (www.ai-compare.com) — Object Detection API benchmark (Google, Amazon, Microsoft & IBM)
AI-Compare (www.ai-compare.com) — Object Detection API benchmark (Google, Amazon, Microsoft & IBM)

For Clarifai, here is the result:

AI-Compare (www.ai-compare.com) — Object Detection API of Clarifai
AI-Compare (www.ai-compare.com) — Object Detection API of Clarifai

Chooch AI result:

AI-Compare (www.ai-compare.com) — Object Detection API of Chooch AI
AI-Compare (www.ai-compare.com) — Object Detection API of Chooch AI

AI-Compare API returns responses for AWS, GCP, IBM and Azure APIs:

AI-Compare (www.ai-compare.com) — AI-Compare Object Detection API
AI-Compare (www.ai-compare.com) — AI-Compare Object Detection API

For Clarifai, here is the API response:

AI-Compare (www.ai-compare.com) — Clarifai API
AI-Compare (www.ai-compare.com) — Clarifai API

For Chooch AI, here is the API response:

AI-Compare (www.ai-compare.com) — AI-Compare Object Detection API
AI-Compare (www.ai-compare.com) — Chooch AI API

With the visual results, we can see that Google, Chooch and Microsoft are the most efficient APIs, but they can all be complementary. Here, the Genius functionality seems to give the best results.

You can also look at the API requests in Python and the json responses. This response data will be use to realize the projects.

People use case:

AI-Compare (www.ai-compare.com) — Object Detection API benchmark (Google, Amazon, Microsoft & IBM)
AI-Compare (www.ai-compare.com) — Object Detection API benchmark (Google, Amazon, Microsoft & IBM)

Clarifai:

AI-Compare (www.ai-compare.com) — Object Detection API of Clarifai
AI-Compare (www.ai-compare.com) — Object Detection API of Clarifai

Chooch AI:

AI-Compare (www.ai-compare.com) — Object Detection API of Chooch AI
AI-Compare (www.ai-compare.com) — Object Detection API of Chooch AI

For this use case, we can note that Google Cloud API is really performing. On this picture, any people is detected by a provider but not Google. The Genius feature is interesting here insofar as to the person detection that Google does very well, it will add the context elements (park, trees, etc.) that are better detected by other providers (Chooch AI, AWS and IBM in particular).

TV detection use case:

AI-Compare (www.ai-compare.com) — Object Detection API benchmark (Google, Amazon, Microsoft & IBM)
AI-Compare (www.ai-compare.com) — Object Detection API benchmark (Google, Amazon, Microsoft & IBM)

Clarifai:

AI-Compare (www.ai-compare.com) — Object Detection API of Clarifai
AI-Compare (www.ai-compare.com) — Object Detection API of Clarifai

Chooch AI:

AI-Compare (www.ai-compare.com) — Object Detection API of Chooch AI
AI-Compare (www.ai-compare.com) — Object Detection API of Chooch AI

For this use case, all the provider APIs seem to give good performance. In this case, the Genius feature will essentially validate that AI providers are predicting the same thing and therefore secure those predictions. Moreover, the API provider choice will be based on :

  • pricing
  • execution speed
  • facility for integration
  • familiarity with a provider

So we have chosen 3 random use cases, and for the 3, it seems that the way to manage the project will be different :

  • One API chosen
  • The Genius combination of all APIs chosen
  • Custom model (with providers AutoML solutions or with open source development)

Conclusion :

Depending on the use case, the best way to obtain the highest performance is always different. For some use case, an API from the provider A will be the best, for another use case provider B’ API is better. For a more complex use case, maybe a custom model can be better, or develop a proprietary model based on open source solutions.

With AI-Compare, you can get a fast access to various results from various providers. So you can have a better idea about which is the solution that best fits for you.

The decision making is as following :

First you run your datas on AI-Compare to benchmark solutions available on the market. Then you have 3 options :

a — You find a result that push you to choose one API that fits with your attempted performance

b — Different providers give good results so you use the Genius functionality to gather forces and get a combined result, better than any single result from a provider.

c — Pre-trained APIs cannot provide good results for your project :

  • you decide to try Custom Vision models (coming soon on AI-Compare)
  • you decide to develop your own models using open source solutions

This process garanties you to make the right choice to success in your project. AI-Compare is only a tool that allows you to realize a benchmark very easily and quickly. Finally, it is possible to use AI-Compare API to realize the entire project avoiding accounts and billings from many providers, and keeping the flexibility to not just choose one provider.

AI-Compare (www.ai-compare.com) — Search for, Compare and Use the best Artificial Intelligence APIs in the market
AI-Compare (www.ai-compare.com) — Search for, Compare and Use the best Artificial Intelligence APIs in the market

AI-Compare is a SaaS providing an API connected to big (AWS, GCP, etc.) and small AI providers: object detection, OCR, NLP, speech-to-text, custom vision, etc. Our solution allows users to compare the performance of these providers APIs according to their data and use them directly via our API thus offering great flexibility and making it very easy to change supplier. In particular, we offer better performance with the “Genius” feature that cleverly combines results from multiple providers.

Our solution is aimed at developers who wish to integrate artificial intelligence bricks into their computer programs. We address companies of various sizes (from start-ups to large groups).

AI-Compare Object detection API is available on RapidAPI : https://rapidapi.com/AICompare/api/ai-compare-object-detection

AI-Compare Object detection API is also available directly here: https://ai-compare.com/vision_apis/object_detection

--

--