NVIDIA DeepStream SDK API Reference

6.4 Release
cvcore::emotions::Emotions Class Reference

Detailed Description

Interface for loading and running Emotions.

Definition at line 46 of file Emotions.h.

Public Member Functions

 Emotions ()=delete
 Removing the default constructor for Emotions. More...
 
 Emotions (const ImagePreProcessingParams &preProcessorParams, const ModelInputParams &modelInputParams, const ModelInferenceParams &inferenceParams, size_t numEmotions=6)
 Constructor for Emotions. More...
 
 ~Emotions ()
 Destructor for Emotions. More...
 
void execute (Array< ArrayN< float, Emotions::TOP_EMOTIONS >> &emotionLikelihoods, Array< ArrayN< size_t, Emotions::TOP_EMOTIONS >> &topEmotions, const Array< ArrayN< Vector2f, NUM_FACIAL_LANDMARKS >> &inputLandmarks, cudaStream_t stream=0)
 Running Emotions for a given image. More...
 

Static Public Attributes

static constexpr std::size_t NUM_FACIAL_LANDMARKS = 68
 Number of input facial landmarks. More...
 
static constexpr std::size_t TOP_EMOTIONS = 10
 Top emotions classified in order of likelihood. More...
 

Constructor & Destructor Documentation

◆ Emotions() [1/2]

cvcore::emotions::Emotions::Emotions ( )
delete

Removing the default constructor for Emotions.

◆ Emotions() [2/2]

cvcore::emotions::Emotions::Emotions ( const ImagePreProcessingParams preProcessorParams,
const ModelInputParams modelInputParams,
const ModelInferenceParams inferenceParams,
size_t  numEmotions = 6 
)

Constructor for Emotions.

Parameters
preProcessorParamsImage preprocessing parameters.
modelInputParamsModel input parameters.
inferenceParamsInference parameters for the model.
numEmotionsnumber of the output emotions

◆ ~Emotions()

cvcore::emotions::Emotions::~Emotions ( )

Destructor for Emotions.

Member Function Documentation

◆ execute()

void cvcore::emotions::Emotions::execute ( Array< ArrayN< float, Emotions::TOP_EMOTIONS >> &  emotionLikelihoods,
Array< ArrayN< size_t, Emotions::TOP_EMOTIONS >> &  topEmotions,
const Array< ArrayN< Vector2f, NUM_FACIAL_LANDMARKS >> &  inputLandmarks,
cudaStream_t  stream = 0 
)

Running Emotions for a given image.

Parameters
emotionLikelihoodsoutput emotions likelihood vector for each image in the batch.
topEmotionsthe top ranked emotions for each image in the batch
inputLandmarksinput facial landmarks vector.
streamCuda stream

Field Documentation

◆ NUM_FACIAL_LANDMARKS

constexpr std::size_t cvcore::emotions::Emotions::NUM_FACIAL_LANDMARKS = 68
staticconstexpr

Number of input facial landmarks.

Definition at line 52 of file Emotions.h.

◆ TOP_EMOTIONS

constexpr std::size_t cvcore::emotions::Emotions::TOP_EMOTIONS = 10
staticconstexpr

Top emotions classified in order of likelihood.

Definition at line 57 of file Emotions.h.


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