Stop FaceAI

Stop analyzing the face any further. An initialized face analysis must be stopped to end usage of FaceAI during a session failing which it would implicitly end at end of the current video session.

Method

To stop analyzing the face from this point.

Method: EnxFaceAI.stopFaceAI(callback)

Parameter

  • callback: Callback to know that analysis has stopped.

Sample Code

// Stop Face AI Analysis
faceAI.stopFaceAI((evt) => {
if (evt.result === 0) {
// Stopped
}
});