Hydra AI

FREEMIUM
By Alessandro Lamberti | Updated 21 days ago | Machine Learning
Popularity

8.1 / 10

Latency

6,042ms

Service Level

100%

Followers: 2
API Creator:
avatar
Alessandro Lamberti
alessandro.lamberti98
Rate API:
Log In to Rate API

README

This API is able to detect faces in an image and to recognize the following attributes, for each face:

  • age
  • gender
  • emotions
  • opened eyes and mouth
  • smiling or not
  • wearing a mask or not

It’s also able to classify and detect thousands of objects in an image, with algorithms of multi-label classification and object detection

Sample request

import requests
import base64
import json

payload = {"image": "https://bit.ly/3JXlkkA"} 
url = "https://hydra-ai.p.rapidapi.com/dev/faces/analyse/"

headers = {
	"content-type": "application/json",
	"X-RapidAPI-Host": "hydra-ai.p.rapidapi.com",
	"X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY"
}

response = requests.request("POST", url, json=payload, headers=headers)
data = response.json()

print(data)

or

payload = {"image":  base64.b64encode(open("image.jpg", "rb").read()).decode("utf-8")} 

url = "https://hydra-ai.p.rapidapi.com/dev/faces/analyse/"

headers = {
	"content-type": "application/json",
	"X-RapidAPI-Host": "hydra-ai.p.rapidapi.com",
	"X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY"
}

response = requests.request("POST", url, json=payload, headers=headers)
data = response.json()

print(data)
Rating: 5 - Votes: 2