Cloud Face Detection contains two simple to follow and reuse face-detection demos. You may apply its components and functionality in your own Unity projects.
Apart from the detection of user faces, you can also find additional information about the users, like their gender or age. This way you may tweak the game at run-time accordingly, for optimal user experience. This package uses Azure cognitive services for the face detection. It works with both Unity Pro and Unity Personal editors.
How to run the Face Detection Demo:
For instructions on how to run the demos, see the ‘Readme-Face-Detection.pdf’ file in the package.
Download:
* The official release of ‘Cloud Face Detection’-package is available at Unity Asset Store.
What’s new in version 1.2:
1. Improved the cloud face manager to work in non-blocking mode during the web calls.
2. Renamed FaceManager to CloudFaceManager, to avoid interference with similarly named components.
3. Removed the package reference to Newtonsoft Json library.
4. Updated the package to work with Unity 5.3 and the internal JsonUtility.
Is it possible to track eyes?
Well, this is face tracker, not eye-tracker. But you can get the head rotation (yaw and roll), as well as the positions of many important face points (optionally).
Hi! Have you tested how accurate the tracking is. How big can the error between the calculated and the real rotations and 3D coordinates be?
The face and emotion tracking seems to be quite accurate. I don’t understand the question regarding rotations and 3d coordinates. Could you be more specific.
Pingback: Cloud User Manager | RFilkov.com - Technology, Health and More
Is it possible use Kinect V2 instead of webcam?
I think this was already done in Kinect-v2 driver update that came with the Windows 10 Anniversary update last year.
Have anyone tested this on android. I’ve tried the demo scene, it works well in editor mac and windows, but it shows no face detected on android always. I thought it might be an issue with app requiring internet access
(for the api to work) so I added internet access option to require in unity, but the result is still same. Please help.
I think I have tested it on Android phone before the package release, but anyway will check it again later.
Yep, it still works. Just tested UIFaceDetectionDemo-scene.
I have the same issue “no face detected” on android. Have you found anything?
hi,I run in Unity , but have a error :
InvalidOperationException: Cannot override system-specified headers.
Please help.
Unity Version 2017.1.0f3
Please open CloudFaceManager.cs and comment out this line: headers.Add(“Content-Length”, imageBytes.Length.ToString());
It works,thx
not working for me…
already commented out //headers.Add(“Content-Length”, imageBytes.Length.ToString());
oh sorry @rongweijun my fault. it works. the headers need to be commented from two lines..
line 116 and 165
I get the error below after commenting out the line. Exception: InvalidImageSize – Image size is too small or too big.
After I comment out the line, I get this error
Exception: InvalidImageSize – Image size is too small or too big.
Have you debugged to check the size of the image sent to the web service? How big is it?
After giving the valid subscription key it is showing an error as invalid subscription key.
Hm. Can you please copy here the messages from the Unity console.
After giving the valid subscription key it is showing an error as invalid subscription key. Exception: Access denied due to invalid subscription key. Make sure you are subscribed to an API you are trying to call and provide the right key
Pay attention to the face-service location parameter. I for instance had to change it from ‘westus’ to ‘westcentralus’. Look at the URL you got, when you received the Face subscription key. Last but not least, remove the Emotion subscription key (delete its value), if you don’t have a valid one. If you do, check its service location, too.
I want to run it for Unity 5.3 ..but in the asset store it says min required is Unity 5.5 ..
How can i download for Unity 5.3 ? Also what are the other dependencies ?
Download it with Unity 5.5 or later, then export it in Unity-package and import it in the older Unity editor. Keep in mind you may get syntax errors to work around, because the API changes a bit in the later Unity versions.
After giving the valid subscription key it is showing an error as invalid subscription key. Exception: Access denied due to invalid subscription key. Make sure you are subscribed to an API you are trying to call and provide the right key.
Pay attention to the face-service location parameter. I for instance had to change it from ‘westus’ to ‘westcentralus’. Look at the URL you got, when you received the Face subscription key. Last but not least, remove the Emotion subscription key (delete its value), if you don’t have a valid one. If you do, check its service location, too.