Face Detection
POST
/api/ai/images/v2/face-detectionDetecting and Analysing Faces with AI
Detecting and Analysing Faces with AI using ImageCon V2
ImageCon V2 by WorqHat AI offers robust face analysis capabilities for images and videos. With ImageCon V2, you can detect faces within an image, and obtain valuable information about those faces. This includes the location of detected faces, facial landmarks such as the position of eyes, and attributes such as emotions (e.g., happiness or sadness) and the presence of glasses or face occlusion.
By submitting an image containing a face to ImageCon V2, the system will detect and analyze the facial attributes present. It provides a confidence score indicating the likelihood of a face being detected, along with detailed information about the facial attributes identified in the image.
Additionally, ImageCon V2 enables face-to-face comparison by allowing you to compare a face in one image with faces detected in another image. This feature can be useful for applications such as identity verification or searching for similar faces in a database.
ImageCon V2 by WorqHat AI empowers users to perform comprehensive face analysis, extracting key facial attributes and facilitating face-to-face comparisons. These capabilities have broad applications across industries, including security, identity verification, image search, and more.
How does it work?
ImageCon V2 by WorqHat AI provides face analysis capabilities where it returns an object for each detected face, containing information such as the bounding box, facial landmarks, quality, and pose along-with predictions for gender, age, emotion, face occlusion, and more, with
corresponding confidence scores.
It's important to note that gender binary predictions made by ImageCon V2, based on physical appearance, should not be used to determine a person's gender identity. Similarly, emotion predictions are based on facial expressions and may not reflect an individual's actual internal emotional state. It is not recommended to make decisions impacting rights, privacy, or access to services solely based on these predictions.
To ensure accuracy in classification, it is advisable to use a threshold of 99% or higher, particularly when negative impacts could arise from wrong classification. However, for Age Range, ImageCon V2 estimates lower and upper age bounds, with wider ranges indicating lower confidence. Approximating the mid-point of the range can be used as a single value for age estimation.
One valuable use of these attributes is generating aggregate statistics. For instance, attributes like Smile, Pose, and Sharpness can be utilized to automatically select the "best profile picture" in a social media application. Additionally, anonymized demographic estimation based on predicted gender and age attributes can be employed for broader sample analysis, such as at events or retail stores.
:::info
The face detection models used by ImageCon V2 are trained on real-world images of human faces. As a result, they may not support the detection of faces in cartoon/animated characters or non-human entities.
:::
Use Cases
Facial Recognition and Identity Verification: Face detection and analysis AI can be used for facial recognition tasks, allowing for identity verification or authentication. This can be valuable in access control systems, secure authentication processes, or personalized user experiences.
Emotion Analysis and User Experience Enhancement: By analyzing facial expressions and predicting emotions, face detection and analysis AI can provide insights into user reactions and sentiments. This information can be leveraged to improve user experiences, personalize content, or tailor marketing strategies.
Audience Analysis and Demographics: Face detection and analysis AI's age and gender prediction capabilities can assist in analyzing the demographics of an audience or customer base. This information can be valuable for targeted marketing campaigns, product development, or understanding customer preferences.
Content Moderation: The face analysis capabilities of face detection and analysis AI can be utilized for content moderation purposes, identifying and flagging inappropriate or offensive images or videos that violate community guidelines or policies.
Personalized Recommendations: By analyzing facial attributes such as age, gender, and emotions, face detection and analysis AI can contribute to personalized recommendation systems. This can be used in e-commerce platforms, streaming services, or content delivery systems to provide tailored recommendations based on user characteristics.
Market Research and Advertising: The facial analysis capabilities of face detection and analysis AI can aid in market research by providing insights into consumer reactions to advertisements, product packaging, or promotional materials. This information can guide advertising strategies and help optimize marketing campaigns.
Augmented Reality (AR) and Virtual Reality (VR): Face detection and analysis AI's face analysis capabilities can enhance AR and VR experiences by tracking facial landmarks and expressions. This enables interactive and immersive virtual overlays or animations that respond to user actions and emotions.
Retail Analytics and Customer Engagement: Face detection and analysis AI can be used in retail environments to analyze customer behavior, track foot traffic, and measure engagement with products or displays. This information can help retailers optimize store layouts, improve customer experiences, and increase sales conversions.
Security and Surveillance: Face detection and analysis AI's facial recognition capabilities can be employed in security and surveillance systems to identify individuals, track their movements, and enhance overall safety. This can be valuable in airports, public transportation, high-security areas, or access control systems.
Event Management and Attendee Experience: Face detection and analysis AI can be utilized in event management to analyze attendee demographics, monitor crowd sizes, and track attendee engagement. This information can assist event organizers in tailoring event experiences, optimizing event logistics, and improving overall attendee satisfaction.
Request
Request samples
Responses
{
"data": [
{
"age_range": {
"high": 33,
"low": 25
},
"beard": {
"confidence": 93.17050170898438,
"value": false
},
"bounding_box": {
"height": 0.4021410644054413,
"left": 0.30130380392074585,
"top": 0.2911665439605713,
"width": 0.3442918360233307
},
"confidence": 99.99995422363281,
"emotions": [
{
"confidence": 99.67448425292969,
"type": "HAPPY"
},
{
"confidence": 0.07944107055664062,
"type": "CALM"
},
{
"confidence": 0.028789043426513672,
"type": "SURPRISED"
},
{
"confidence": 0.00565648078918457,
"type": "FEAR"
},
{
"confidence": 0.0020623207092285156,
"type": "ANGRY"
},
{
"confidence": 0.0009189049596898258,
"type": "CONFUSED"
},
{
"confidence": 0.000762939453125,
"type": "SAD"
},
{
"confidence": 0.0003159046173095703,
"type": "DISGUSTED"
}
],
"eye_direction": {
"confidence": 99.98522186279297,
"pitch": -6.002049446105957,
"yaw": 7.93001127243042
},
"eyeglasses": {
"confidence": 99.99830627441406,
"value": true
},
"eyes_open": {
"confidence": 99.99992370605469,
"value": true
},
"face_occluded": {
"confidence": 99.7256851196289,
"value": false
},
"gender": {
"confidence": 99.74932098388672,
"value": "Male"
},
"landmarks": [
{
"type": "eyeLeft",
"x": 0.38188520073890686,
"y": 0.44456741213798523
},
{
"type": "eyeRight",
"x": 0.5260130763053894,
"y": 0.4160935878753662
},
{
"type": "mouthLeft",
"x": 0.4188040494918823,
"y": 0.5874627232551575
},
{
"type": "mouthRight",
"x": 0.5396074056625366,
"y": 0.5637969374656677
},
{
"type": "nose",
"x": 0.45920971035957336,
"y": 0.505379855632782
},
{
"type": "leftEyeBrowLeft",
"x": 0.32540541887283325,
"y": 0.4222700893878937
},
{
"type": "leftEyeBrowRight",
"x": 0.40145719051361084,
"y": 0.39395394921302795
},
{
"type": "leftEyeBrowUp",
"x": 0.360093891620636,
"y": 0.3949935734272003
},
{
"type": "rightEyeBrowLeft",
"x": 0.48347756266593933,
"y": 0.3776111304759979
},
{
"type": "rightEyeBrowRight",
"x": 0.574430525302887,
"y": 0.37279587984085083
},
{
"type": "rightEyeBrowUp",
"x": 0.525120735168457,
"y": 0.36217647790908813
},
{
"type": "leftEyeLeft",
"x": 0.3572427034378052,
"y": 0.44925856590270996
},
{
"type": "leftEyeRight",
"x": 0.41053128242492676,
"y": 0.44036445021629333
},
{
"type": "leftEyeUp",
"x": 0.37976062297821045,
"y": 0.43708986043930054
},
{
"type": "leftEyeDown",
"x": 0.38359197974205017,
"y": 0.4509022831916809
},
{
"type": "rightEyeLeft",
"x": 0.49743419885635376,
"y": 0.4231360852718353
},
{
"type": "rightEyeRight",
"x": 0.5520119667053223,
"y": 0.4107992649078369
},
{
"type": "rightEyeUp",
"x": 0.5242132544517517,
"y": 0.4085043966770172
},
{
"type": "rightEyeDown",
"x": 0.5260677337646484,
"y": 0.42276546359062195
},
{
"type": "noseLeft",
"x": 0.440029501914978,
"y": 0.5287945866584778
},
{
"type": "noseRight",
"x": 0.49290531873703003,
"y": 0.5184041857719421
},
{
"type": "mouthUp",
"x": 0.4718843698501587,
"y": 0.5579533576965332
},
{
"type": "mouthDown",
"x": 0.48075416684150696,
"y": 0.6027107834815979
},
{
"type": "leftPupil",
"x": 0.38188520073890686,
"y": 0.44456741213798523
},
{
"type": "rightPupil",
"x": 0.5260130763053894,
"y": 0.4160935878753662
},
{
"type": "upperJawlineLeft",
"x": 0.310122549533844,
"y": 0.4678308367729187
},
{
"type": "midJawlineLeft",
"x": 0.3664964735507965,
"y": 0.6197853088378906
},
{
"type": "chinBottom",
"x": 0.4978697597980499,
"y": 0.6799684762954712
},
{
"type": "midJawlineRight",
"x": 0.6183953881263733,
"y": 0.5700435042381287
},
{
"type": "upperJawlineRight",
"x": 0.621461033821106,
"y": 0.405957967042923
}
],
"mouth_open": {
"confidence": 99.74166107177734,
"value": true
},
"mustache": {
"confidence": 99.38549041748047,
"value": false
},
"pose": {
"pitch": 12.218854904174805,
"roll": -12.910552978515625,
"yaw": -4.664450168609619
},
"quality": {
"brightness": 55.832420349121094,
"sharpness": 86.86019134521484
},
"smile": {
"confidence": 99.76199340820312,
"value": true
},
"sunglasses": {
"confidence": 98.23445892333984,
"value": false
}
}
],
"processingTime": 4956.8732390000005,
"processingId": "91363d59-a5a5-46b2-9815-5141500e3bb4",
"processingCount": 1
}