NVIDIA DeepStream SDK API Reference

7.0 Release
post_processor_custom_impl.h File Reference

Go to the source code of this file.

Macros

#define CHECK_CUSTOM_PARSE_FUNC_PROTOTYPE(customParseFunc)
 Validates a custom parser function definition. More...
 
#define CHECK_CUSTOM_INSTANCE_MASK_PARSE_FUNC_PROTOTYPE(customParseFunc)
 Validates a custom parser function definition. More...
 
#define CHECK_CUSTOM_CLASSIFIER_PARSE_FUNC_PROTOTYPE(customParseFunc)
 Validates the classifier custom parser function definition. More...
 

Typedefs

typedef bool(* NvDsPostProcessParseCustomFunc) (std::vector< NvDsInferLayerInfo > const &outputLayersInfo, NvDsInferNetworkInfo const &networkInfo, NvDsPostProcessParseDetectionParams const &detectionParams, std::vector< NvDsPostProcessObjectDetectionInfo > &objectList)
 Type definition for the custom bounding box parsing function. More...
 
typedef bool(* NvDsPostProcessInstanceMaskParseCustomFunc) (std::vector< NvDsInferLayerInfo > const &outputLayersInfo, NvDsInferNetworkInfo const &networkInfo, NvDsPostProcessParseDetectionParams const &detectionParams, std::vector< NvDsPostProcessInstanceMaskInfo > &objectList)
 Type definition for the custom bounding box and instance mask parsing function. More...
 
typedef bool(* NvDsPostProcessClassiferParseCustomFunc) (std::vector< NvDsInferLayerInfo > const &outputLayersInfo, NvDsInferNetworkInfo const &networkInfo, float classifierThreshold, std::vector< NvDsPostProcessAttribute > &attrList, std::string &descString)
 Type definition for the custom classifier output parsing function. More...
 

Macro Definition Documentation

◆ CHECK_CUSTOM_CLASSIFIER_PARSE_FUNC_PROTOTYPE

#define CHECK_CUSTOM_CLASSIFIER_PARSE_FUNC_PROTOTYPE (   customParseFunc)
Value:
static void checkFunc_ ## customParseFunc (NvDsPostProcessClassiferParseCustomFunc func = customParseFunc) \
{ checkFunc_ ## customParseFunc (); }; \
extern "C" bool customParseFunc (std::vector<NvDsInferLayerInfo> const &outputLayersInfo, \
NvDsInferNetworkInfo const &networkInfo, \
float classifierThreshold, \
std::vector<NvDsPostProcessAttribute> &attrList, \
std::string &descString);

Validates the classifier custom parser function definition.

Must be called after defining the function.

Definition at line 119 of file post_processor_custom_impl.h.

◆ CHECK_CUSTOM_INSTANCE_MASK_PARSE_FUNC_PROTOTYPE

#define CHECK_CUSTOM_INSTANCE_MASK_PARSE_FUNC_PROTOTYPE (   customParseFunc)
Value:
static void checkFunc_ ## customParseFunc (NvDsPostProcessInstanceMaskParseCustomFunc func = customParseFunc) \
{ checkFunc_ ## customParseFunc (); }; \
extern "C" bool customParseFunc (std::vector<NvDsInferLayerInfo> const &outputLayersInfo, \
NvDsInferNetworkInfo const &networkInfo, \
NvDsPostProcessParseDetectionParams const &detectionParams, \
std::vector<NvDsPostProcessInstanceMaskInfo> &objectList);

Validates a custom parser function definition.

Must be called after defining the function.

Definition at line 87 of file post_processor_custom_impl.h.

◆ CHECK_CUSTOM_PARSE_FUNC_PROTOTYPE

#define CHECK_CUSTOM_PARSE_FUNC_PROTOTYPE (   customParseFunc)
Value:
static void checkFunc_ ## customParseFunc (NvDsPostProcessParseCustomFunc func = customParseFunc) \
{ checkFunc_ ## customParseFunc (); }; \
extern "C" bool customParseFunc (std::vector<NvDsInferLayerInfo> const &outputLayersInfo, \
NvDsInferNetworkInfo const &networkInfo, \
NvDsPostProcessParseDetectionParams const &detectionParams, \
std::vector<NvDsPostProcessObjectDetectionInfo> &objectList);

Validates a custom parser function definition.

Must be called after defining the function.

Definition at line 58 of file post_processor_custom_impl.h.

Typedef Documentation

◆ NvDsPostProcessClassiferParseCustomFunc

typedef bool(* NvDsPostProcessClassiferParseCustomFunc) (std::vector< NvDsInferLayerInfo > const &outputLayersInfo, NvDsInferNetworkInfo const &networkInfo, float classifierThreshold, std::vector< NvDsPostProcessAttribute > &attrList, std::string &descString)

Type definition for the custom classifier output parsing function.

Parameters
[in]outputLayersInfoA vector containing information on the output layers of the model.
[in]networkInfoNetwork information.
[in]classifierThresholdClassification confidence threshold.
[out]attrListA reference to a vector in which the function is to add the parsed attributes.
[out]descStringA reference to a string object in which the function may place a description string.

Definition at line 108 of file post_processor_custom_impl.h.

◆ NvDsPostProcessInstanceMaskParseCustomFunc

typedef bool(* NvDsPostProcessInstanceMaskParseCustomFunc) (std::vector< NvDsInferLayerInfo > const &outputLayersInfo, NvDsInferNetworkInfo const &networkInfo, NvDsPostProcessParseDetectionParams const &detectionParams, std::vector< NvDsPostProcessInstanceMaskInfo > &objectList)

Type definition for the custom bounding box and instance mask parsing function.

Parameters
[in]outputLayersInfoA vector containing information on the output layers of the model.
[in]networkInfoNetwork information.
[in]detectionParamsDetection parameters required for parsing objects.
[out]objectListA reference to a vector in which the function is to add parsed objects and instance mask.

Definition at line 77 of file post_processor_custom_impl.h.

◆ NvDsPostProcessParseCustomFunc

typedef bool(* NvDsPostProcessParseCustomFunc) (std::vector< NvDsInferLayerInfo > const &outputLayersInfo, NvDsInferNetworkInfo const &networkInfo, NvDsPostProcessParseDetectionParams const &detectionParams, std::vector< NvDsPostProcessObjectDetectionInfo > &objectList)

Type definition for the custom bounding box parsing function.

Parameters
[in]outputLayersInfoA vector containing information on the output layers of the model.
[in]networkInfoNetwork information.
[in]detectionParamsDetection parameters required for parsing objects.
[out]objectListA reference to a vector in which the function is to add parsed objects.

Definition at line 48 of file post_processor_custom_impl.h.

NvDsPostProcessClassiferParseCustomFunc
bool(* NvDsPostProcessClassiferParseCustomFunc)(std::vector< NvDsInferLayerInfo > const &outputLayersInfo, NvDsInferNetworkInfo const &networkInfo, float classifierThreshold, std::vector< NvDsPostProcessAttribute > &attrList, std::string &descString)
Type definition for the custom classifier output parsing function.
Definition: post_processor_custom_impl.h:108
NvDsInferNetworkInfo
Holds information about the model network.
Definition: nvdsinfer.h:110
NvDsPostProcessParseCustomFunc
bool(* NvDsPostProcessParseCustomFunc)(std::vector< NvDsInferLayerInfo > const &outputLayersInfo, NvDsInferNetworkInfo const &networkInfo, NvDsPostProcessParseDetectionParams const &detectionParams, std::vector< NvDsPostProcessObjectDetectionInfo > &objectList)
Type definition for the custom bounding box parsing function.
Definition: post_processor_custom_impl.h:48
NvDsPostProcessInstanceMaskParseCustomFunc
bool(* NvDsPostProcessInstanceMaskParseCustomFunc)(std::vector< NvDsInferLayerInfo > const &outputLayersInfo, NvDsInferNetworkInfo const &networkInfo, NvDsPostProcessParseDetectionParams const &detectionParams, std::vector< NvDsPostProcessInstanceMaskInfo > &objectList)
Type definition for the custom bounding box and instance mask parsing function.
Definition: post_processor_custom_impl.h:77
NvDsPostProcessParseDetectionParams
Holds the detection parameters required for parsing objects.
Definition: post_processor_struct.h:539