How to use Landmark Detection API with JavaScript in 5 minutes?

How to use Landmark Detection API with JavaScript in 5 minutes?

·

3 min read

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

What is Landmark Detection?

Landmark detection is a technique used in computer vision to identify and locate specific, known structures or features in an image or video. This can include buildings, monuments, natural features, and other distinctive objects.

Landmark Detection API result on Eden AI

The output of a landmark detection system may include the location and shape of the detected landmarks, as well as a confidence score indicating how likely the detection is to be correct. Landmark detection is used in a variety of applications, including robotics, augmented reality, and self-driving cars.

Getting Started with Landmark Detection API using JavaScript

The first step to use Landmark Detection is to set Axios, a promise-based HTTP client for the browser and Node.js, that will allow you to call Eden AI API.

Next, you'll need to initialize the File System module in order to access local files on your computer.

Finally, you'll need to create your multipart/formdata parameters form:

How to use Landmark Detection API with JavaScript

1. Get a Landmark Detection API Key on Eden AI

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

Eden AI platform - Get your API key

Get your API key for FREE

2. Let’s Detect Landmarks in your images

Now that you have initialized the required JavaScript modules and got your API key, you will be able to detect landmarks in images. With Eden AI, you can choose from a wide range of different engines you want for Landmark Detection. You can access Landmark Detection providers available on Eden AI on our documentation here.

Here is the JavaScript code to add the formdata parameters values for your request:

For example, we called two different Landmark Detection engines. Once the parameters values are passed, you can configure your request:

Then, you just need to launch the request and print the result:

Here is an example of a Landmark Detection API response:

Benefits of using Landmark Detection API with Eden AI

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

Multiple AI engines 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 specific 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 Landmark Detection request with specific parameters, check out our documentation.

Create your Account on Eden AI