Hydra AI

FREEMIUM
(Ким) Alessandro Lamberti | Оновлено a day ago | Artificial Intelligence/Machine Learning
Популярність

8.8 / 10

Затримки

3,564ms

Рівень обслуговування

100%

Відстежувачі: 2
Створювач API:
avatar
Alessandro Lamberti
alessandro.lamberti98
Ставки по API:
Увійти в «Ставки по 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)
Рейтинг: 5 - Голосів: 2