Affdex SDK
Technical Reference (C++)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
affdex::Detector Class Reference

Base detector class. More...

#include <Detector.h>

Inheritance diagram for affdex::Detector:
affdex::FrameDetector affdex::PhotoDetector affdex::VideoDetector affdex::CameraDetector

Public Member Functions

AFFDEXSDK Detector ()
 Constructor. More...
 
virtual AFFDEXSDK ~Detector ()
 Virtual destructor. More...
 
virtual AFFDEXSDK void start ()
 Initialize the detector. More...
 
virtual AFFDEXSDK void stop ()
 Stop the detector. More...
 
virtual AFFDEXSDK void reset ()
 Reset the processing state of the detector. This method enables an already initialized detector to begin processing a second video/camera feed. More...
 
virtual AFFDEXSDK bool isRunning ()
 Returns the state of the detector. More...
 
virtual AFFDEXSDK FaceDetectorMode getFaceDetectorMode () const
 Gets the face detector configuration in use More...
 
virtual AFFDEXSDK unsigned int getMaxNumberFaces () const
 Gets the max number of faces to be tracked. More...
 
AFFDEXSDK virtual DEPRECATED void setLicensePath (const affdex::path &licensePath)
 Sets the path to the license file used to verify the SDK. More...
 
AFFDEXSDK virtual DEPRECATED void setLicenseString (const char *licenseString)
 Sets the license string used to verify the SDK. More...
 
virtual AFFDEXSDK void setClassifierPath (const affdex::path &classifierPath)
 Sets the classifier path. More...
 
virtual AFFDEXSDK void setFaceListener (FaceListener *listener)
 Sets the FaceListener listener. More...
 
AFFDEXSDK FaceListenergetFaceListener ()
 Gets the current FaceListener. More...
 
virtual AFFDEXSDK void setImageListener (ImageListener *listener)
 Sets the image listener. More...
 
AFFDEXSDK ImageListenergetImageListener ()
 Gets the current ImageListener. More...
 
virtual AFFDEXSDK ProcessStatusListenergetProcessStatusListener ()
 Gets the current ProcessStatusListener. More...
 
virtual AFFDEXSDK void setProcessStatusListener (ProcessStatusListener *listener)
 Sets the Processing Status listener. More...
 
virtual AFFDEXSDK void setDetectAllExpressions (bool detectAllExpressions)
 Configure the detection state of all expressions. More...
 
virtual AFFDEXSDK void setDetectAllEmotions (bool detectAllEmotions)
 Configure the detection state of all expressions. More...
 
virtual AFFDEXSDK void setDetectAllEmojis (bool detectAllEmojis)
 Configure the detection state of all emojis. More...
 
virtual AFFDEXSDK void setDetectAllAppearances (bool detectAllAppearances)
 Configure the detection state of all appearances. More...
 
virtual AFFDEXSDK bool getDetectGender ()
 Gets the current state of gender detection. More...
 
virtual AFFDEXSDK void setDetectGender (bool activate)
 Configure the gender detection state. More...
 
virtual AFFDEXSDK bool getDetectGlasses ()
 Gets the current state of glasses detection. More...
 
virtual AFFDEXSDK void setDetectGlasses (bool activate)
 Configure the glasses detection state. More...
 
virtual AFFDEXSDK bool getDetectAge ()
 Gets the current state of age detection. More...
 
virtual AFFDEXSDK void setDetectAge (bool activate)
 Configure the age detection state. More...
 
virtual AFFDEXSDK bool getDetectEthnicity ()
 Gets the current state of ethnicity detection. More...
 
virtual AFFDEXSDK void setDetectEthnicity (bool activate)
 Configure the ethnicity detection state. More...
 
virtual AFFDEXSDK bool getDetectEngagement ()
 Gets the current state of engagement detection. More...
 
virtual AFFDEXSDK void setDetectEngagement (bool activate)
 Configure the engagement detection state. More...
 
virtual AFFDEXSDK bool getDetectLipCornerDepressor ()
 Gets the current state of lip corner depressor detection. More...
 
virtual AFFDEXSDK void setDetectLipCornerDepressor (bool activate)
 Configure the lip corner depressor detection state. More...
 
virtual AFFDEXSDK bool getDetectSmile ()
 Gets the current state of smile detection. More...
 
virtual AFFDEXSDK void setDetectSmile (bool activate)
 Configure the smile detection state. More...
 
virtual AFFDEXSDK bool getDetectAttention ()
 Gets the current state of attention detection. More...
 
virtual AFFDEXSDK void setDetectAttention (bool activate)
 Configure the attention detection state. More...
 
virtual AFFDEXSDK bool getDetectValence ()
 Gets the current state of valence detection. More...
 
virtual AFFDEXSDK bool getDetectJoy ()
 Gets the current state of joy detection. More...
 
virtual AFFDEXSDK void setDetectJoy (bool activate)
 Configure the joy detection state. More...
 
virtual AFFDEXSDK bool getDetectFear ()
 Gets the current state of fear detection. More...
 
virtual AFFDEXSDK void setDetectFear (bool activate)
 Configure the fear detection state. More...
 
virtual AFFDEXSDK bool getDetectDisgust ()
 Gets the current state of disgust detection. More...
 
virtual AFFDEXSDK void setDetectDisgust (bool activate)
 Configure the disgust detection state. More...
 
virtual AFFDEXSDK bool getDetectSadness ()
 Gets the current state of sadness detection. More...
 
virtual AFFDEXSDK void setDetectSadness (bool activate)
 Configure the sadness detection state. More...
 
virtual AFFDEXSDK bool getDetectAnger ()
 Gets the current state of anger detection. More...
 
virtual AFFDEXSDK void setDetectAnger (bool activate)
 Configure the anger detection state. More...
 
virtual AFFDEXSDK bool getDetectSurprise ()
 Gets the current state of surprise detection. More...
 
virtual AFFDEXSDK void setDetectSurprise (bool activate)
 Configure the surprise detection state. More...
 
virtual AFFDEXSDK bool getDetectContempt ()
 Gets the current state of contempt detection. More...
 
virtual AFFDEXSDK void setDetectContempt (bool activate)
 Configure the contempt detection state. More...
 
virtual AFFDEXSDK void setDetectValence (bool activate)
 Configure the valence detection state. More...
 
virtual AFFDEXSDK bool getDetectBrowRaise ()
 Gets the current state of eyebrow raise detection. More...
 
virtual AFFDEXSDK void setDetectInnerBrowRaise (bool activate)
 Configure the inner eyebrow raise detection state. More...
 
virtual AFFDEXSDK bool getDetectInnerBrowRaise ()
 Gets the current state of inner eyebrow raise detection. More...
 
virtual AFFDEXSDK void setDetectBrowRaise (bool activate)
 Configure the eyebrow raise detection state. More...
 
virtual AFFDEXSDK bool getDetectBrowFurrow ()
 Gets the current state of eyebrow furrow detection. More...
 
virtual AFFDEXSDK void setDetectBrowFurrow (bool activate)
 Configure the eyebrow furrow detection state. More...
 
virtual AFFDEXSDK bool getDetectNoseWrinkle ()
 Gets the current state of nose wrinkler detection. More...
 
virtual AFFDEXSDK void setDetectNoseWrinkle (bool activate)
 Configure the nose wrinkler detection state. More...
 
virtual AFFDEXSDK bool getDetectUpperLipRaise ()
 Gets the current state of upper lip raiser detection. More...
 
virtual AFFDEXSDK void setDetectUpperLipRaise (bool activate)
 Configure the upper lip raiser detection state. More...
 
virtual AFFDEXSDK bool getDetectChinRaise ()
 Gets the current state of chin raiser detection. More...
 
virtual AFFDEXSDK void setDetectChinRaise (bool activate)
 Configure the chin raiser detection state. More...
 
virtual AFFDEXSDK bool getDetectLipPucker ()
 Gets the current state of lip pucker detection. More...
 
virtual AFFDEXSDK void setDetectLipPucker (bool activate)
 Configure the lip pucker detection state. More...
 
virtual AFFDEXSDK bool getDetectLipPress ()
 Gets the current state of lip press detection. More...
 
virtual AFFDEXSDK void setDetectLipPress (bool activate)
 Configure the lip press detection state. More...
 
virtual AFFDEXSDK bool getDetectMouthOpen ()
 Gets the current state of mouth open detection. More...
 
virtual AFFDEXSDK void setDetectMouthOpen (bool activate)
 Configure the mouth open detection state. More...
 
virtual AFFDEXSDK bool getDetectLipSuck ()
 Gets the current state of lip suck detection. More...
 
virtual AFFDEXSDK void setDetectLipSuck (bool activate)
 Configure the lip suck detection state. More...
 
virtual AFFDEXSDK bool getDetectSmirk ()
 Gets the current state of smirk detection. More...
 
virtual AFFDEXSDK void setDetectSmirk (bool activate)
 Configure the smirk detection state. More...
 
virtual AFFDEXSDK bool getDetectEyeClosure ()
 Gets the current state of eye closure detection. More...
 
virtual AFFDEXSDK void setDetectEyeClosure (bool activate)
 Configure the eye closure detection state. More...
 
virtual AFFDEXSDK bool getDetectEyeWiden ()
 Gets the current state of eye widen detection. More...
 
virtual AFFDEXSDK void setDetectEyeWiden (bool activate)
 Configure the eye widen detection state. More...
 
virtual AFFDEXSDK bool getDetectCheekRaise ()
 Gets the current state of cheek raise detection. More...
 
virtual AFFDEXSDK void setDetectCheekRaise (bool activate)
 Configure the cheek raise detection state. More...
 
virtual AFFDEXSDK bool getDetectLidTighten ()
 Gets the current state of lid tighten detection. More...
 
virtual AFFDEXSDK void setDetectLidTighten (bool activate)
 Configure the lid tighten detection state. More...
 
virtual AFFDEXSDK bool getDetectDimpler ()
 Gets the current state of dimpler detection. More...
 
virtual AFFDEXSDK void setDetectDimpler (bool activate)
 Configure the dimpler detection state. More...
 
virtual AFFDEXSDK bool getDetectLipStretch ()
 Gets the current state of lip stretch detection. More...
 
virtual AFFDEXSDK void setDetectLipStretch (bool activate)
 Configure the lip stretch detection state. More...
 
virtual AFFDEXSDK bool getDetectJawDrop ()
 Gets the current state of jaw drop detection. More...
 
virtual AFFDEXSDK void setDetectJawDrop (bool activate)
 Configure the jaw drop detection state. More...
 
virtual AFFDEXSDK void enableAnalytics ()
 Enable Analytics. More...
 
virtual AFFDEXSDK void disableAnalytics ()
 Disable Analytics. More...
 

Protected Member Functions

 Detector (const bool useStaticClassifiers, const float processFrameRate, const unsigned int maxNumFaces, const FaceDetectorMode faceConfig)
 Initializes a new instance of the Detector class. More...
 
 Detector (const bool useStaticClassifiers, const float processFrameRate, const FaceDetectorMode faceConfig)
 Initializes a new instance of the Detector class. More...
 

Protected Attributes

std::shared_ptr< affdex::DetectorBase > mDetectorBase
 Smart pointer to underlying DetectorBase More...
 

Detailed Description

Base detector class.

Constructor & Destructor Documentation

AFFDEXSDK affdex::Detector::Detector ( )
inline

Constructor.

virtual AFFDEXSDK affdex::Detector::~Detector ( )
inlinevirtual

Virtual destructor.

affdex::Detector::Detector ( const bool  useStaticClassifiers,
const float  processFrameRate,
const unsigned int  maxNumFaces,
const FaceDetectorMode  faceConfig 
)
protected

Initializes a new instance of the Detector class.

Parameters
useStaticClassifiersThe use static classifiers.
processFrameRateMaximum processing framerate.
maxNumFacesThe max number of faces to be tracked.
faceConfigFace detector configuration.
affdex::Detector::Detector ( const bool  useStaticClassifiers,
const float  processFrameRate,
const FaceDetectorMode  faceConfig 
)
protected

Initializes a new instance of the Detector class.

Parameters
useStaticClassifiersThe use static classifiers.
processFrameRateMaximum processing framerate.
faceConfigFace detector configuration.

Member Function Documentation

virtual AFFDEXSDK void affdex::Detector::disableAnalytics ( )
virtual

Disable Analytics.

virtual AFFDEXSDK void affdex::Detector::enableAnalytics ( )
virtual

Enable Analytics.

virtual AFFDEXSDK bool affdex::Detector::getDetectAge ( )
virtual

Gets the current state of age detection.

Returns
True if age detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectAnger ( )
virtual

Gets the current state of anger detection.

Returns
True if anger detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectAttention ( )
virtual

Gets the current state of attention detection.

Returns
True if attention detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectBrowFurrow ( )
virtual

Gets the current state of eyebrow furrow detection.

Returns
True if eyebrow furrow detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectBrowRaise ( )
virtual

Gets the current state of eyebrow raise detection.

Returns
True if eyebrow raise detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectCheekRaise ( )
virtual

Gets the current state of cheek raise detection.

Returns
True if cheek raise detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectChinRaise ( )
virtual

Gets the current state of chin raiser detection.

Returns
True if chin raiser detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectContempt ( )
virtual

Gets the current state of contempt detection.

Returns
True if contempt detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectDimpler ( )
virtual

Gets the current state of dimpler detection.

Returns
True if dimpler detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectDisgust ( )
virtual

Gets the current state of disgust detection.

Returns
True if disgust detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectEngagement ( )
virtual

Gets the current state of engagement detection.

Returns
True if engagement detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectEthnicity ( )
virtual

Gets the current state of ethnicity detection.

Returns
True if age detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectEyeClosure ( )
virtual

Gets the current state of eye closure detection.

Returns
True if eye closure detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectEyeWiden ( )
virtual

Gets the current state of eye widen detection.

Returns
True if eye widen detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectFear ( )
virtual

Gets the current state of fear detection.

Returns
True if fear detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectGender ( )
virtual

Gets the current state of gender detection.

Returns
True if gender detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectGlasses ( )
virtual

Gets the current state of glasses detection.

Returns
True if glasses detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectInnerBrowRaise ( )
virtual

Gets the current state of inner eyebrow raise detection.

Returns
True if inner eyebrow raise detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectJawDrop ( )
virtual

Gets the current state of jaw drop detection.

Returns
True if jaw drop stretch detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectJoy ( )
virtual

Gets the current state of joy detection.

Returns
True if joy detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectLidTighten ( )
virtual

Gets the current state of lid tighten detection.

Returns
True if lid tighten detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectLipCornerDepressor ( )
virtual

Gets the current state of lip corner depressor detection.

Returns
True if lip corner depressor detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectLipPress ( )
virtual

Gets the current state of lip press detection.

Returns
True if lip press detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectLipPucker ( )
virtual

Gets the current state of lip pucker detection.

Returns
True if lip pucker detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectLipStretch ( )
virtual

Gets the current state of lip stretch detection.

Returns
True if lip stretch detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectLipSuck ( )
virtual

Gets the current state of lip suck detection.

Returns
True if lip suck detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectMouthOpen ( )
virtual

Gets the current state of mouth open detection.

Returns
True if mouth open detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectNoseWrinkle ( )
virtual

Gets the current state of nose wrinkler detection.

Returns
True if nose wrinkler detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectSadness ( )
virtual

Gets the current state of sadness detection.

Returns
True if sadness detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectSmile ( )
virtual

Gets the current state of smile detection.

Returns
True if smile detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectSmirk ( )
virtual

Gets the current state of smirk detection.

Returns
True if smirk detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectSurprise ( )
virtual

Gets the current state of surprise detection.

Returns
True if surprise detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectUpperLipRaise ( )
virtual

Gets the current state of upper lip raiser detection.

Returns
True if upper lip raiser detection is currently enabled.
virtual AFFDEXSDK bool affdex::Detector::getDetectValence ( )
virtual

Gets the current state of valence detection.

Returns
True if valence detection is currently enabled.
virtual AFFDEXSDK FaceDetectorMode affdex::Detector::getFaceDetectorMode ( ) const
virtual

Gets the face detector configuration in use

AFFDEXSDK FaceListener* affdex::Detector::getFaceListener ( )

Gets the current FaceListener.

Returns
Pointer to FaceListener. NULL if not listener was set.
AFFDEXSDK ImageListener* affdex::Detector::getImageListener ( )

Gets the current ImageListener.

Returns
Pointer to ImageListener. NULL if not listener was set.
virtual AFFDEXSDK unsigned int affdex::Detector::getMaxNumberFaces ( ) const
virtual

Gets the max number of faces to be tracked.

virtual AFFDEXSDK ProcessStatusListener* affdex::Detector::getProcessStatusListener ( )
virtual

Gets the current ProcessStatusListener.

Returns
Pointer to ProcessStatusListener. NULL if not listener was set.
virtual AFFDEXSDK bool affdex::Detector::isRunning ( )
virtual

Returns the state of the detector.

Returns
True if the detector is initialized. False otherwise.
virtual AFFDEXSDK void affdex::Detector::reset ( )
virtual

Reset the processing state of the detector. This method enables an already initialized detector to begin processing a second video/camera feed.

Reimplemented in affdex::FrameDetector.

virtual AFFDEXSDK void affdex::Detector::setClassifierPath ( const affdex::path classifierPath)
virtual

Sets the classifier path.

Parameters
classifierPathPath to the directory containing the classifier data files.
virtual AFFDEXSDK void affdex::Detector::setDetectAge ( bool  activate)
virtual

Configure the age detection state.

Parameters
activateTrue to enable age detection. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectAllAppearances ( bool  detectAllAppearances)
virtual

Configure the detection state of all appearances.

Parameters
detectAllAppearancesTrue to enable detection of all appearances. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectAllEmojis ( bool  detectAllEmojis)
virtual

Configure the detection state of all emojis.

Parameters
detectAllEmojisTrue to enable detection of all emojis. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectAllEmotions ( bool  detectAllEmotions)
virtual

Configure the detection state of all expressions.

Parameters
detectAllEmotionsTrue to enable detection of all emotions. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectAllExpressions ( bool  detectAllExpressions)
virtual

Configure the detection state of all expressions.

Parameters
detectAllExpressionsTrue to enable detection of all expressions. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectAnger ( bool  activate)
virtual

Configure the anger detection state.

Parameters
activateTrue to enable anger. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectAttention ( bool  activate)
virtual

Configure the attention detection state.

Parameters
activateTrue to enable attention. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectBrowFurrow ( bool  activate)
virtual

Configure the eyebrow furrow detection state.

Parameters
activateTrue to enable eyebrow furrow. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectBrowRaise ( bool  activate)
virtual

Configure the eyebrow raise detection state.

Parameters
activateTrue to enable eyebrow raise. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectCheekRaise ( bool  activate)
virtual

Configure the cheek raise detection state.

Parameters
activateTrue to enable cheek raise. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectChinRaise ( bool  activate)
virtual

Configure the chin raiser detection state.

Parameters
activateTrue to enable chin raiser. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectContempt ( bool  activate)
virtual

Configure the contempt detection state.

Parameters
activateTrue to enable contempt. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectDimpler ( bool  activate)
virtual

Configure the dimpler detection state.

Parameters
activateTrue to enable dimpler. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectDisgust ( bool  activate)
virtual

Configure the disgust detection state.

Parameters
activateTrue to enable disgust. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectEngagement ( bool  activate)
virtual

Configure the engagement detection state.

Parameters
activateTrue to enable engagement. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectEthnicity ( bool  activate)
virtual

Configure the ethnicity detection state.

Parameters
activateTrue to enable age detection. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectEyeClosure ( bool  activate)
virtual

Configure the eye closure detection state.

Parameters
activateTrue to enable eye closure. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectEyeWiden ( bool  activate)
virtual

Configure the eye widen detection state.

Parameters
activateTrue to enable eye widen. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectFear ( bool  activate)
virtual

Configure the fear detection state.

Parameters
activateTrue to enable fear. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectGender ( bool  activate)
virtual

Configure the gender detection state.

Parameters
activateTrue to enable gender. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectGlasses ( bool  activate)
virtual

Configure the glasses detection state.

Parameters
activateTrue to enable glasses. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectInnerBrowRaise ( bool  activate)
virtual

Configure the inner eyebrow raise detection state.

Parameters
activateTrue to enable inner eyebrow raise. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectJawDrop ( bool  activate)
virtual

Configure the jaw drop detection state.

Parameters
activateTrue to enable jaw drop. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectJoy ( bool  activate)
virtual

Configure the joy detection state.

Parameters
activateTrue to enable joy. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectLidTighten ( bool  activate)
virtual

Configure the lid tighten detection state.

Parameters
activateTrue to enable lid tighten. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectLipCornerDepressor ( bool  activate)
virtual

Configure the lip corner depressor detection state.

Parameters
activateTrue to enable lip corner depressor. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectLipPress ( bool  activate)
virtual

Configure the lip press detection state.

Parameters
activateTrue to enable lip press. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectLipPucker ( bool  activate)
virtual

Configure the lip pucker detection state.

Parameters
activateTrue to enable lip pucker. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectLipStretch ( bool  activate)
virtual

Configure the lip stretch detection state.

Parameters
activateTrue to enable lip stretch. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectLipSuck ( bool  activate)
virtual

Configure the lip suck detection state.

Parameters
activateTrue to enable lip suck. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectMouthOpen ( bool  activate)
virtual

Configure the mouth open detection state.

Parameters
activateTrue to enable mouth open. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectNoseWrinkle ( bool  activate)
virtual

Configure the nose wrinkler detection state.

Parameters
activateTrue to enable nose wrinkler. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectSadness ( bool  activate)
virtual

Configure the sadness detection state.

Parameters
activateTrue to enable sadness. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectSmile ( bool  activate)
virtual

Configure the smile detection state.

Parameters
activateTrue to enable smile. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectSmirk ( bool  activate)
virtual

Configure the smirk detection state.

Parameters
activateTrue to enable smirk. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectSurprise ( bool  activate)
virtual

Configure the surprise detection state.

Parameters
activateTrue to enable surprise. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectUpperLipRaise ( bool  activate)
virtual

Configure the upper lip raiser detection state.

Parameters
activateTrue to enable upper lip raiser. False to disable.
virtual AFFDEXSDK void affdex::Detector::setDetectValence ( bool  activate)
virtual

Configure the valence detection state.

Parameters
activateTrue to enable valence. False to disable.
virtual AFFDEXSDK void affdex::Detector::setFaceListener ( FaceListener listener)
virtual

Sets the FaceListener listener.

Parameters
listenerThe listener.
virtual AFFDEXSDK void affdex::Detector::setImageListener ( ImageListener listener)
virtual

Sets the image listener.

Parameters
listenerThe listener.
AFFDEXSDK virtual DEPRECATED void affdex::Detector::setLicensePath ( const affdex::path licensePath)
virtual

Sets the path to the license file used to verify the SDK.

Parameters
licensePathThe license path.
AFFDEXSDK virtual DEPRECATED void affdex::Detector::setLicenseString ( const char *  licenseString)
virtual

Sets the license string used to verify the SDK.

Parameters
licenseStringThe license string.
virtual AFFDEXSDK void affdex::Detector::setProcessStatusListener ( ProcessStatusListener listener)
virtual

Sets the Processing Status listener.

Parameters
listenerThe listener.

Reimplemented in affdex::VideoDetector.

virtual AFFDEXSDK void affdex::Detector::start ( )
virtual

Initialize the detector.

Exceptions
AffdexExceptionAffdexException on failure to initialize.

Reimplemented in affdex::PhotoDetector, affdex::CameraDetector, affdex::FrameDetector, and affdex::VideoDetector.

virtual AFFDEXSDK void affdex::Detector::stop ( )
virtual

Member Data Documentation

std::shared_ptr<affdex::DetectorBase> affdex::Detector::mDetectorBase
protected

Smart pointer to underlying DetectorBase


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