NVIDIA DeepStream SDK API Reference

6.4 Release
cvcore::gestures::Gestures Class Reference

Detailed Description

Gestures parameters and implementation.

Definition at line 102 of file Gestures.h.

Public Types

using GesturesLikelihood = ArrayN< std::pair< uint32_t, float >, TOP_GESTURES >
 

Public Member Functions

 Gestures (const ImagePreProcessingParams &imgparams, const ModelInputParams &modelParams, const ModelInferenceParams &modelInferParams, const GesturesPostProcessorParams &postProcessParams)
 Constructor for Gestures. More...
 
 Gestures ()=delete
 Default constructor not supported. More...
 
 ~Gestures ()
 Destructor for Gestures. More...
 
void execute (Array< GesturesLikelihood > &gestures, const Tensor< NHWC, C3, U8 > &input, const Array< BBox > &inputBBox, cudaStream_t stream=0)
 Inference function for a given BGR image. More...
 

Static Public Attributes

static constexpr size_t TOP_GESTURES = 10
 Top gestures detected in order of likelihood. More...
 

Member Typedef Documentation

◆ GesturesLikelihood

Definition at line 110 of file Gestures.h.

Constructor & Destructor Documentation

◆ Gestures() [1/2]

cvcore::gestures::Gestures::Gestures ( const ImagePreProcessingParams imgparams,
const ModelInputParams modelParams,
const ModelInferenceParams modelInferParams,
const GesturesPostProcessorParams postProcessParams 
)

Constructor for Gestures.

Parameters
paramsGestures config parameters.

◆ Gestures() [2/2]

cvcore::gestures::Gestures::Gestures ( )
delete

Default constructor not supported.

◆ ~Gestures()

cvcore::gestures::Gestures::~Gestures ( )

Destructor for Gestures.

Member Function Documentation

◆ execute()

void cvcore::gestures::Gestures::execute ( Array< GesturesLikelihood > &  gestures,
const Tensor< NHWC, C3, U8 > &  input,
const Array< BBox > &  inputBBox,
cudaStream_t  stream = 0 
)

Inference function for a given BGR image.

Parameters
gesturesArray of gestures detected represented as idx, score ranked based on highest score.
inputRGB/BGR Interleaved image (CPU/GPU Input Tensor supported)
inputBBoxBounding box of hand
streamCuda stream

Field Documentation

◆ TOP_GESTURES

constexpr size_t cvcore::gestures::Gestures::TOP_GESTURES = 10
staticconstexpr

Top gestures detected in order of likelihood.

Definition at line 108 of file Gestures.h.


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