Face Sentiment
Introduction
Face Sentiment api allow you to detect sentiment of person within the image. Along with sentiment other characteristics
like Age
, Face Cordinate
, Gender
, Emotion
, Race
Endpoint
Post
  https://api.oyyi.xyz/v1/ml/face-sentimentContent-Type: multipart/form-data
Parameters
file required
Image file containing face that need to be analyzed for facial sentiments- Type:
File
- Size: Max File Size Allowed
100MB
- Type:
full
Setting this value as true will return full detail version for facial sentiment- Type: only Allowed Value is
true
- Default: it is set to
false
- Type: only Allowed Value is
Example
Sample Image used
Python
import requestsurl = $BASE_URL/ml/face-sentimenttoken = 'your_bearer_token_here'headers = {'Authorization': f'Bearer {token}'}files = {'file': open('example_file.jpg', 'rb')}response = requests.post(url,params=params, headers=headers, files=files)print(response.text)
Response
Default
{ "data": { "age": 25, "face_region": { "h": 89, "w": 89, "x": 1087, "y": 375 }, "gender": "Man", "major_emotion": "sad", "major_race": "white" }}
Table of Contents