How to use Face AI Web SDK?
Perform the following tasks to implement the FaceAI Web SDK:
- Install the SDK by downloading and extracting the archive. To download the Web SDK 3.1, click here.
- Locate the
EnxFaceAI.js
file in theEnxFaceAI.js
folder. TheEnxFaceAI.js
library is a standard JavaScript library. - Include
EnxFaceAI.js
in your HTML file to make use of the SDK.
<html><head><script language="javascript" src="path/EnxFaceAI.js"></script></head><body></body></html>
Note: You must enable FaceAI while defining a room for the facial expression analysis to work. To enable it, use the following setting in JSON Payload to create Room:
{ "settings": {"facex": true;}}