Emotion Detection API

Emotion Detection API

Be able to detect any emotions in a given image. The model detects the following emotions on a human face: neutral, joy, sadness, surprise, anger, fear, and disgust.

API description

About the API:

Emotion recognition is the process of detecting displayed human emotions using artificial intelligence-based technologies in order to evaluate non-verbal responses to products, services, or goods. Emotion analysis can be carried out using face detection or facial recognition technology which enables programs to “examine” the sentiments on a human face by utilizing sophisticated image dispensation. Facial expressions are generally analyzed by using cameras to detect faces and capture real-time human responses to real-world scenarios. Each facial expression that an individual display causes the facial muscles to move and contract differently, and this makes the process of determining an emotion easier for the deep learning AI algorithms.

 

What this API receives and what your API provides (input/output)?

You will be passing the image URL that you want to detect the emotions. The response will provide the location of the face that is being analyzed and an emotion percentage from 0.01 to 0.99, were closer to 0.99 means more accurate emotion. 

The API will compare between "happy", "sad", "angry", "disgust", "fear", "surprise", and "neutral". 

 

What are the most common uses cases of this API?

Emotion recognition for online admissions and interviews: 

Emotion recognition can be used to understand how candidates feel during interviews and to measure how they react to certain questions. This information can be used to optimize interview structure for future candidates and streamline the application process. Using Sightcorps technology you can also measure attention using head orientation/pose analysis. 

Emotion Analysis for A/B campaign testing:

Using emotion analysis technology it is possible to pre-evaluate remotely or on-site marketing campaigns, This helps to ensure that they are evoking the right reactions before launching to the market. Using facial expression recognition software, advertisers can see which ads are receiving high engagement and positive emotional responses from viewers and provides them with the tools to run tests at scale on different target audiences to ensure that the campaigns with the highest impact are selected.

Emotion analysis for online education:

Anonymous emotion detection for online education is an ideal way to analyze the online student journey and improve it where necessary. Assess the school's course materials, teaching styles, structure, and layout by way of emotional feedback as students go through each module in real-time. Use true facial responses and engagement levels to find points of interest or course stumbling blocks and make optimizations.  

Emotion recognition in health care:

An industry that’s taking advantage of this technology is health care, with AI-powered recognition software helping to decide when patients need medicine, assess their emotional response in clinical trials, or help physicians in deciding how to best triage their patients.  

Emotion analysis in video game testing:

Video games are designed with a specific target audience in mind and aim to evoke a particular behavior and set of emotions from the users. During the testing phase, users are asked to play the game for a given period and their feedback is incorporated to make the final product. Using facial emotion recognition can aid in understanding which emotions a user is experiencing in real-time. This is a great addition to verbal feedback as it provides a more complex review of the gaming experience.

Automotive industry and emotion analysis:

Car manufacturers all over the globe are focusing on manufacturing automobiles that are safe to drive and provide a personalized experience for users. Moreover, the use of AI, ML, and deep learning techniques in facial recognition systems understand human emotions. It ensures driver safety by analyzing their facial expressions to detect fatigue or drowsiness and send alerts. The system prompts the driver to stop for a while, take a coffee break, play music, or adjust the temperature if it detects an anomaly.

 

Are there any limitations with your plans?

Besides the number of API calls per month: 

  •  
  • Basic Plan: 40 requests per minute. 
  • Pro Plan: 60 requests per minute. 
  • Pro Plus: 100 requests per minute. 

API Documentation

Endpoints


Recognize any emotions in a given picture with ease. 

Just pass the image URL and receive the emotions detected there. 

 



                                                                            
POST https://zylalabs.com/api/116/emotion+detection+api/167/detect+emotion
                                                                            
                                                                        

Detect Emotion - Endpoint Features
Object Description
Request Body [Required] Json
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            [{"probability":0.9999878406524658,"rectangle":{"left":327.18236337105435,"top":180.69215803717574,"right":630.8715751767159,"bottom":604.7218327224255},"emotion":{"value":"happy","probability":0.9994326233863831,"sentiments":{"angry":6.2288449953484815e-06,"disgust":1.0200084034295287e-05,"fear":2.044493521680124e-05,"happy":0.9994326233863831,"sad":7.940422074170783e-05,"surprise":0.0004461068310774863,"neutral":5.104433512315154e-06}}}]
                                                                                                                                                                                                                    
                                                                                                    

Detect Emotion - CODE SNIPPETS


curl --location --request POST 'https://zylalabs.com/api/116/emotion+detection+api/167/detect+emotion' --header 'Authorization: Bearer YOUR_API_KEY' 

    

Recognize any emotions in a given picture with ease. 

Just pass the image URL and receive the emotions detected there. 



                                                                            
POST https://zylalabs.com/api/116/emotion+detection+api/1061/detection+emotion
                                                                            
                                                                        

Detection Emotion - Endpoint Features
Object Description
img_url [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"detections": [{"emotions": {"angry": 1.2597256500157528e-05, "sad": 0.0008768835105001926, "neutral": 9.1164502009633e-06, "happy": 0.9969876408576965, "disgust": 0.0006652427255176008, "surprise": 0.0014275385765358806, "fear": 2.09857080335496e-05}, "crop": {"x1": 0.27869880199432373, "x2": 0.5362608432769775, "y1": 0.2154051661491394, "y2": 0.7579349875450134, "score": 0.9998095631599426}}]}
                                                                                                                                                                                                                    
                                                                                                    

Detection Emotion - CODE SNIPPETS


curl --location --request POST 'https://zylalabs.com/api/116/emotion+detection+api/1061/detection+emotion?img_url=https://eldiariony.com/wp-content/uploads/sites/2/2021/08/Lionel-Messi-3.jpg?quality=75&strip=all&w=1200' --header 'Authorization: Bearer YOUR_API_KEY' 

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Emotion Detection API REST API, simply include your bearer token in the Authorization header.

Headers

Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise
Starts at $10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected β€” plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
100%
 Response Time
1,275ms

Useful links:


Category:


Tags:


Related APIs