Hydra AI

FREEMIUM
Populariteit

8.8 / 10

Latency

3,564ms

Serviceniveau

100%

Volgers: 2
API maker:
avatar
Alessandro Lamberti
alessandro.lamberti98
Beoordeel API:
Log in om API te beoordelen

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)
Beoordeling: 5 - Stemmen: 2