NVIDIA DeepStream SDK API Reference

6.4 Release
PostProcessAlgorithm Class Reference

Detailed Description

Definition at line 47 of file postprocesslib_impl.h.

Inheritance diagram for PostProcessAlgorithm:
Collaboration diagram for PostProcessAlgorithm:

Public Member Functions

 PostProcessAlgorithm (DSPostProcess_CreateParams *createParams)
 
virtual bool HandleEvent (GstEvent *event)
 
virtual bool SetConfigFile (const gchar *config_file)
 
virtual BufferResult ProcessBuffer (GstBuffer *inbuf)
 
std::vector< std::string > SplitString (std::string input)
 
std::set< gint > SplitStringInt (std::string input)
 
bool GetAbsFilePath (const gchar *cfg_file_path, const gchar *file_path, char *abs_path_str)
 
 ~PostProcessAlgorithm ()
 

Data Fields

gboolean hw_caps
 
guint source_id = 0
 
guint m_frameNum = 0
 
bool outputthread_stopped = false
 
std::thread * m_outputThread = NULL
 
std::queue< PacketInfom_processQ
 
std::mutex m_processLock
 
std::condition_variable m_processCV
 
gboolean m_stop = FALSE
 
std::vector< Propertym_vectorProperty
 
GstBaseTransform * m_element
 
guint m_gpuId
 GPU ID on which we expect to execute the algorithm. More...
 
cudaStream_t m_cudaStream
 

Constructor & Destructor Documentation

◆ PostProcessAlgorithm()

PostProcessAlgorithm::PostProcessAlgorithm ( DSPostProcess_CreateParams createParams)
inlineexplicit

Holds the number of classes detected by a detector network.

Holds per-class detection parameters. The array's size must be equal to numDetectedClasses.

Holds the minimum confidence threshold for the classifier to consider a label valid.

Holds a pointer to an array of pointers to output layer names.

Holds the number of output layer names.

Holds the ID of the GPU which is to run the inference.

Holds the type of clustering mode

Definition at line 51 of file postprocesslib_impl.h.

References _NvDsPostProcessContextInitParams::classifier_type, _NvDsPostProcessContextInitParams::classifierThreshold, _NvDsPostProcessContextInitParams::clusterMode, _NvDsPostProcessContextInitParams::customBBoxInstanceMaskParseFuncName, _NvDsPostProcessContextInitParams::customBBoxParseFuncName, _NvDsPostProcessContextInitParams::customClassifierParseFuncName, _NvDsPostProcessContextInitParams::gpuID, _NvDsPostProcessContextInitParams::inferInputDims, _NvDsPostProcessContextInitParams::labelsFilePath, DSPostProcess_CreateParams::m_cudaStream, DSPostProcessLibraryBase::m_cudaStream, DSPostProcess_CreateParams::m_element, DSPostProcessLibraryBase::m_element, DSPostProcess_CreateParams::m_gpuId, DSPostProcessLibraryBase::m_gpuId, m_outputThread, m_vectorProperty, _NvDsPostProcessContextInitParams::maxBatchSize, _NvDsPostProcessContextInitParams::networkType, _NvDsPostProcessContextInitParams::numDetectedClasses, _NvDsPostProcessContextInitParams::numOutputLayers, NVDSPOSTPROCESS_CLUSTER_NMS, NvDsPostProcessNetworkType_Other, _NvDsPostProcessContextInitParams::outputLayerNames, outputthread_stopped, _NvDsPostProcessContextInitParams::perClassDetectionParams, _NvDsPostProcessContextInitParams::segmentationThreshold, and _NvDsPostProcessContextInitParams::uniqueID.

◆ ~PostProcessAlgorithm()

PostProcessAlgorithm::~PostProcessAlgorithm ( )

Member Function Documentation

◆ GetAbsFilePath()

bool PostProcessAlgorithm::GetAbsFilePath ( const gchar *  cfg_file_path,
const gchar *  file_path,
char *  abs_path_str 
)

◆ HandleEvent()

virtual bool PostProcessAlgorithm::HandleEvent ( GstEvent *  event)
virtual

◆ ProcessBuffer()

virtual BufferResult PostProcessAlgorithm::ProcessBuffer ( GstBuffer inbuf)
virtual

◆ SetConfigFile()

virtual bool PostProcessAlgorithm::SetConfigFile ( const gchar *  config_file)
virtual

◆ SplitString()

std::vector<std::string> PostProcessAlgorithm::SplitString ( std::string  input)

◆ SplitStringInt()

std::set<gint> PostProcessAlgorithm::SplitStringInt ( std::string  input)

Field Documentation

◆ hw_caps

gboolean PostProcessAlgorithm::hw_caps

Definition at line 124 of file postprocesslib_impl.h.

◆ m_cudaStream

cudaStream_t DSPostProcessLibraryBase::m_cudaStream
inherited

◆ m_element

GstBaseTransform* DSPostProcessLibraryBase::m_element
inherited

◆ m_frameNum

guint PostProcessAlgorithm::m_frameNum = 0

Definition at line 168 of file postprocesslib_impl.h.

◆ m_gpuId

guint DSPostProcessLibraryBase::m_gpuId
inherited

GPU ID on which we expect to execute the algorithm.

Definition at line 53 of file nvdspostprocesslib_base.hpp.

Referenced by DSPostProcessLibraryBase::DSPostProcessLibraryBase(), and PostProcessAlgorithm().

◆ m_outputThread

std::thread* PostProcessAlgorithm::m_outputThread = NULL

Definition at line 172 of file postprocesslib_impl.h.

Referenced by PostProcessAlgorithm().

◆ m_processCV

std::condition_variable PostProcessAlgorithm::m_processCV

Definition at line 177 of file postprocesslib_impl.h.

◆ m_processLock

std::mutex PostProcessAlgorithm::m_processLock

Definition at line 176 of file postprocesslib_impl.h.

◆ m_processQ

std::queue<PacketInfo> PostProcessAlgorithm::m_processQ

Definition at line 175 of file postprocesslib_impl.h.

◆ m_stop

gboolean PostProcessAlgorithm::m_stop = FALSE

Definition at line 179 of file postprocesslib_impl.h.

◆ m_vectorProperty

std::vector<Property> PostProcessAlgorithm::m_vectorProperty

Definition at line 182 of file postprocesslib_impl.h.

Referenced by PostProcessAlgorithm().

◆ outputthread_stopped

bool PostProcessAlgorithm::outputthread_stopped = false

Definition at line 169 of file postprocesslib_impl.h.

Referenced by PostProcessAlgorithm().

◆ source_id

guint PostProcessAlgorithm::source_id = 0

Definition at line 167 of file postprocesslib_impl.h.


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