NVIDIA DeepStream SDK API Reference

9.2 Release
9.2/sources/gst-plugins/gst-nvdspostprocess/postprocesslib_impl/post_processor_custom_impl.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2022-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef __POST_PROCESSOR_CUSTOM_IMPL_HPP__
19 #define __POST_PROCESSOR_CUSTOM_IMPL_HPP__
20 #include "post_processor_struct.h"
21 
22 /*
23  * C interfaces
24  */
25 
26 #ifdef __cplusplus
27 extern "C"
28 {
29 #endif
30 
43  std::vector<NvDsInferLayerInfo> const &outputLayersInfo,
44  NvDsInferNetworkInfo const &networkInfo,
45  NvDsPostProcessParseDetectionParams const &detectionParams,
46  std::vector<NvDsPostProcessObjectDetectionInfo> &objectList);
47 
52 #define CHECK_CUSTOM_PARSE_FUNC_PROTOTYPE(customParseFunc) \
53  static void __attribute__((unused)) checkFunc_ ## customParseFunc (NvDsPostProcessParseCustomFunc func = customParseFunc) \
54  { (void)func; }; \
55  extern "C" bool customParseFunc (std::vector<NvDsInferLayerInfo> const &outputLayersInfo, \
56  NvDsInferNetworkInfo const &networkInfo, \
57  NvDsPostProcessParseDetectionParams const &detectionParams, \
58  std::vector<NvDsPostProcessObjectDetectionInfo> &objectList);
59 
72  std::vector<NvDsInferLayerInfo> const &outputLayersInfo,
73  NvDsInferNetworkInfo const &networkInfo,
74  NvDsPostProcessParseDetectionParams const &detectionParams,
75  std::vector<NvDsPostProcessInstanceMaskInfo> &objectList);
76 
81 #define CHECK_CUSTOM_INSTANCE_MASK_PARSE_FUNC_PROTOTYPE(customParseFunc) \
82  static void __attribute__((unused)) checkFunc_ ## customParseFunc (NvDsPostProcessInstanceMaskParseCustomFunc func = customParseFunc) \
83  { (void)func; }; \
84  extern "C" bool customParseFunc (std::vector<NvDsInferLayerInfo> const &outputLayersInfo, \
85  NvDsInferNetworkInfo const &networkInfo, \
86  NvDsPostProcessParseDetectionParams const &detectionParams, \
87  std::vector<NvDsPostProcessInstanceMaskInfo> &objectList);
88 
103  std::vector<NvDsInferLayerInfo> const &outputLayersInfo,
104  NvDsInferNetworkInfo const &networkInfo,
105  float classifierThreshold,
106  std::vector<NvDsPostProcessAttribute> &attrList,
107  std::string &descString);
108 
113 #define CHECK_CUSTOM_CLASSIFIER_PARSE_FUNC_PROTOTYPE(customParseFunc) \
114  static void __attribute__((unused)) checkFunc_ ## customParseFunc (NvDsPostProcessClassiferParseCustomFunc func = customParseFunc) \
115  { (void)func; }; \
116  extern "C" bool customParseFunc (std::vector<NvDsInferLayerInfo> const &outputLayersInfo, \
117  NvDsInferNetworkInfo const &networkInfo, \
118  float classifierThreshold, \
119  std::vector<NvDsPostProcessAttribute> &attrList, \
120  std::string &descString);
121 
122 #ifdef __cplusplus
123 }
124 #endif
125 #endif
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: 9.2/sources/gst-plugins/gst-nvdspostprocess/postprocesslib_impl/post_processor_custom_impl.h:102
post_processor_struct.h
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: 9.2/sources/gst-plugins/gst-nvdspostprocess/postprocesslib_impl/post_processor_custom_impl.h:42
NvDsInferNetworkInfo
Holds information about the model network.
Definition: includes/nvdsinfer.h:119
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: 9.2/sources/gst-plugins/gst-nvdspostprocess/postprocesslib_impl/post_processor_custom_impl.h:71
NvDsPostProcessParseDetectionParams
Holds the detection parameters required for parsing objects.
Definition: sources/gst-plugins/gst-nvdspostprocess/postprocesslib_impl/post_processor_struct.h:561