Affdex SDK
Technical Reference (C++)
Public Member Functions | List of all members
affdex::FaceListener Class Referenceabstract

Interface providing callbacks to signal the appearance/disappearance of faces from a sequence of frames. More...

#include <FaceListener.h>

Public Member Functions

virtual void onFaceFound (float timestamp, FaceId faceId)=0
 Indicates that the face detector has started tracking a new face. More...
 
virtual void onFaceLost (float timestamp, FaceId faceId)=0
 Indicates that the face detector has stopped tracking a face. More...
 

Detailed Description

Interface providing callbacks to signal the appearance/disappearance of faces from a sequence of frames.

Member Function Documentation

virtual void affdex::FaceListener::onFaceFound ( float  timestamp,
FaceId  faceId 
)
pure virtual

Indicates that the face detector has started tracking a new face.

When the face tracker detects a face for the first time method is called. The receiver should expect that tracking continues until detection has stopped.

Parameters
timestampFrame timestamp when new face was first observed.
faceIdFace identified.
virtual void affdex::FaceListener::onFaceLost ( float  timestamp,
FaceId  faceId 
)
pure virtual

Indicates that the face detector has stopped tracking a face.

When the face tracker no longer finds a face this method is called. The receiver should expect that there is no face tracking until the detector is started.

Parameters
timestampFrame timestamp when previously observed face is no longer present.
faceIdFace identified.

The documentation for this class was generated from the following file: