FaceAI Web SDK Methods

The FaceAI Web SDK v2.0 events and methods are listed below:

ActionMethod NameDescription
Initialize FaceAIinit(connectedRoomInfo, stream, callback)To start analyzing a given stream.
Face DetectorstartFaceDetector(config, callback)
stopFaceDetector(callback)
To start and stop detecting faces in the live video stream.
Face PosestartFacePose(config, callback)
stopFacePose(callback)
To start and stop analyzing face rotation and position in a video stream.
Face AgestartFaceAge(config, callback)
stopFaceAge(callback)
To start and stop analyzing and predicting face age in a video stream.
Face GenderstartFaceGender(config, callback)
stopFaceGender(callback)
To start and stop analyzing face gender in a video stream.
Face EmotionstartFaceEmotion(config, callback)
stopFaceEmotion(callback)
To start and stop analyzing face emotions in a video stream.
Face FeaturesstartFaceFeatures(config, callback)
stopFaceFeatures(callback)
To start and stop analyzing face features in a video stream.
Face Arousal ValencestartFaceArousalValence(config, callback)
stopFaceArousalValence(callback)
To start and stop analyzing face arousal valence in a video stream.
Face AttentionstartFaceAttention(config, callback)
stopFaceAttention(callback)
To start and stop analyzing face attention in a video stream.
Face WishstartFaceWish(config, callback)
stopFaceWish(callback)
To start and stop analyzing face wish in a video stream.