NVIDIA DeepStream SDK API Reference

9.2 Release
sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_parser.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2025-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 CONFIG_PARSER_H
19 #define CONFIG_PARSER_H
20 
21 #include <string>
22 #include <unordered_map>
23 #include <memory>
24 #include <yaml-cpp/yaml.h>
25 #include "config_properties.h"
26 #include <iostream>
27 #include <iomanip>
28 
29 class ConfigParser {
30 public:
31  // Constructor with default config path
32  ConfigParser(const std::string& configPath = "./config.yaml");
33 
34  // Load a different config file
35  bool loadConfig(const std::string& configPath);
36 
37  // Get string value from config
38  std::string getString(const std::string& key, const std::string& defaultValue = "") const;
39 
40  // Get integer value from config
41  int getInt(const std::string& key, int defaultValue = 0) const;
42 
43  // Get float value from config
44  float getFloat(const std::string& key, float defaultValue = 0.0f) const;
45 
46  // Get boolean value from config
47  bool getBool(const std::string& key, bool defaultValue = false) const;
48 
49  // Check if config has a key
50  bool hasKey(const std::string& key) const;
51 
52  // Get the loaded config file path
53  std::string getConfigPath() const;
54 
55  // Check if config was loaded successfully
56  bool isLoaded() const;
57 
58  // Get the populated config properties
59  const ConfigProperties& getProperties() const;
60 
61  // Add this method to the ConfigParser class
62  void displayProperties() const {
63  if (!m_IsLoaded) {
64  std::cout << "No configuration loaded." << std::endl;
65  return;
66  }
67 
68  const int prop_width = 35;
69  const int val_width = 80;
70  const int table_width = prop_width + val_width + 5; // 5 for borders and separators
71 
72  // Helper function to create separator line
73  auto separator = [prop_width, val_width]() {
74  std::string sep = "+ ";
75  sep += std::string(prop_width, '-');
76  sep += " + ";
77  sep += std::string(val_width, '-');
78  sep += " +";
79  return sep;
80  };
81 
82  // Print table header
83  std::cout << separator() << std::endl;
84  std::cout << "│ ";
85  std::cout << std::setw(table_width - 2) << std::left << "Configuration Properties (" + m_ConfigPath + ")";
86  std::cout << " │" << std::endl;
87  std::cout << separator() << std::endl;
88 
89  // Print column headers
90  std::cout << "│ ";
91  std::cout << std::setw(prop_width) << std::left << "Property";
92  std::cout << " │ ";
93  std::cout << std::setw(val_width) << std::left << "Value";
94  std::cout << " │" << std::endl;
95 
96  // Inference properties
97  std::cout << separator() << std::endl;
98  std::cout << "│ " << std::setw(prop_width) << std::left << "onnx_file"
99  << " │ " << std::setw(val_width) << std::left << m_Properties.onnx_file
100  << " │" << std::endl;
101 
102  std::cout << "│ " << std::setw(prop_width) << std::left << "engine_file"
103  << " │ " << std::setw(val_width) << std::left << m_Properties.engine_file
104  << " │" << std::endl;
105 
106  std::cout << "│ " << std::setw(prop_width) << std::left << "labels_file"
107  << " │ " << std::setw(val_width) << std::left << m_Properties.labels_file
108  << " │" << std::endl;
109 
110  std::cout << "│ " << std::setw(prop_width) << std::left << "gpu_id"
111  << " │ " << std::setw(val_width) << std::left << m_Properties.gpu_id
112  << " │" << std::endl;
113 
114  std::cout << "│ " << std::setw(prop_width) << std::left << "batch_size"
115  << " │ " << std::setw(val_width) << std::left << m_Properties.batch_size
116  << " │" << std::endl;
117 
118  std::cout << "│ " << std::setw(prop_width) << std::left << "num_sensors"
119  << " │ " << std::setw(val_width) << std::left << m_Properties.num_sensors
120  << " │" << std::endl;
121 
122  std::cout << "│ " << std::setw(prop_width) << std::left << "enable_fp16"
123  << " │ " << std::setw(val_width) << std::left << (m_Properties.enable_fp16 ? "true" : "false")
124  << " │" << std::endl;
125 
126  std::cout << "│ " << std::setw(prop_width) << std::left << "force_engine_rebuild"
127  << " │ " << std::setw(val_width) << std::left << (m_Properties.force_engine_rebuild ? "true" : "false")
128  << " │" << std::endl;
129 
130  std::cout << "│ " << std::setw(prop_width) << std::left << "partial_batch"
131  << " │ " << std::setw(val_width) << std::left << (m_Properties.partial_batch ? "true" : "false")
132  << " │" << std::endl;
133 
134  std::cout << "│ " << std::setw(prop_width) << std::left << "feedback"
135  << " │ " << std::setw(val_width) << std::left << (m_Properties.feedback ? "true" : "false")
136  << " │" << std::endl;
137 
138  std::cout << "│ " << std::setw(prop_width) << std::left << "interval"
139  << " │ " << std::setw(val_width) << std::left << m_Properties.interval
140  << " │" << std::endl;
141 
142  // Calibration properties
143  std::cout << separator() << std::endl;
144  std::cout << "│ " << std::setw(prop_width) << std::left << "calib_file_path"
145  << " │ " << std::setw(val_width) << std::left << m_Properties.calib_file_path
146  << " │" << std::endl;
147 
148  std::cout << "│ " << std::setw(prop_width) << std::left << "bev_group_name"
149  << " │ " << std::setw(val_width) << std::left << m_Properties.bev_group_name
150  << " │" << std::endl;
151 
152  std::cout << "│ " << std::setw(prop_width) << std::left << "calib_mode"
153  << " │ " << std::setw(val_width) << std::left << m_Properties.calib_mode
154  << " │" << std::endl;
155 
156  std::cout << "│ " << std::setw(prop_width) << std::left << "use_camera_groups"
157  << " │ " << std::setw(val_width) << std::left << (m_Properties.use_camera_groups ? "true" : "false")
158  << " │" << std::endl;
159 
160  std::cout << "│ " << std::setw(prop_width) << std::left << "recentering"
161  << " │ " << std::setw(val_width) << std::left << (m_Properties.recentering ? "true" : "false")
162  << " │" << std::endl;
163 
164  // Preprocess properties
165  std::cout << separator() << std::endl;
166  std::cout << "│ " << std::setw(prop_width) << std::left << "preprocessed_height"
167  << " │ " << std::setw(val_width) << std::left << m_Properties.preprocessed_height
168  << " │" << std::endl;
169 
170  std::cout << "│ " << std::setw(prop_width) << std::left << "preprocessed_width"
171  << " │ " << std::setw(val_width) << std::left << m_Properties.preprocessed_width
172  << " │" << std::endl;
173 
174  auto vector_to_string = [](const std::vector<int>& vec) {
175  std::stringstream ss;
176  ss << "[";
177  for (size_t i = 0; i < vec.size(); ++i) {
178  ss << vec[i];
179  if (i < vec.size() - 1) ss << ", ";
180  }
181  ss << "]";
182  return ss.str();
183  };
184 
185  std::cout << "│ " << std::setw(prop_width) << std::left << "aug_config.resize"
186  << " │ " << std::setw(val_width) << std::left << m_Properties.aug_config.resize
187  << " │" << std::endl;
188 
189  std::cout << "│ " << std::setw(prop_width) << std::left << "aug_config.resize_dims"
190  << " │ " << std::setw(val_width) << std::left << vector_to_string(m_Properties.aug_config.resize_dims)
191  << " │" << std::endl;
192 
193  std::cout << "│ " << std::setw(prop_width) << std::left << "aug_config.crop"
194  << " │ " << std::setw(val_width) << std::left << vector_to_string(m_Properties.aug_config.crop)
195  << " │" << std::endl;
196 
197  std::cout << "│ " << std::setw(prop_width) << std::left << "aug_config.flip"
198  << " │ " << std::setw(val_width) << std::left << (m_Properties.aug_config.flip ? "true" : "false")
199  << " │" << std::endl;
200 
201  std::cout << "│ " << std::setw(prop_width) << std::left << "aug_config.rotate"
202  << " │ " << std::setw(val_width) << std::left << m_Properties.aug_config.rotate
203  << " │" << std::endl;
204 
205  std::cout << "│ " << std::setw(prop_width) << std::left << "aug_config.rotate_3d"
206  << " │ " << std::setw(val_width) << std::left << m_Properties.aug_config.rotate_3d
207  << " │" << std::endl;
208 
209 
210  // Postprocess properties
211  std::cout << "│ " << std::setw(prop_width) << std::left << "num_anchor"
212  << " │ " << std::setw(val_width) << std::left << m_Properties.num_anchor
213  << " │" << std::endl;
214 
215  std::cout << "│ " << std::setw(prop_width) << std::left << "embed_dims"
216  << " │ " << std::setw(val_width) << std::left << m_Properties.embed_dims
217  << " │" << std::endl;
218 
219  std::cout << "│ " << std::setw(prop_width) << std::left << "anchor"
220  << " │ " << std::setw(val_width) << std::left << m_Properties.anchor
221  << " │" << std::endl;
222 
223  std::cout << "│ " << std::setw(prop_width) << std::left << "anchor_handler"
224  << " │ " << std::setw(val_width) << std::left << m_Properties.anchor_handler
225  << " │" << std::endl;
226 
227  std::cout << "│ " << std::setw(prop_width) << std::left << "num_temp_instances"
228  << " │ " << std::setw(val_width) << std::left << m_Properties.num_temp_instances
229  << " │" << std::endl;
230 
231  std::cout << "│ " << std::setw(prop_width) << std::left << "default_time_interval"
232  << " │ " << std::setw(val_width) << std::left << m_Properties.default_time_interval
233  << " │" << std::endl;
234 
235  std::cout << "│ " << std::setw(prop_width) << std::left << "confidence_decay"
236  << " │ " << std::setw(val_width) << std::left << m_Properties.confidence_decay
237  << " │" << std::endl;
238 
239  std::cout << "│ " << std::setw(prop_width) << std::left << "anchor_grad"
240  << " │ " << std::setw(val_width) << std::left << (m_Properties.anchor_grad ? "true" : "false")
241  << " │" << std::endl;
242 
243  std::cout << "│ " << std::setw(prop_width) << std::left << "feat_grad"
244  << " │ " << std::setw(val_width) << std::left << (m_Properties.feat_grad ? "true" : "false")
245  << " │" << std::endl;
246 
247  std::cout << "│ " << std::setw(prop_width) << std::left << "max_time_interval"
248  << " │ " << std::setw(val_width) << std::left << m_Properties.max_time_interval
249  << " │" << std::endl;
250 
251  std::cout << "│ " << std::setw(prop_width) << std::left << "reid_dims"
252  << " │ " << std::setw(val_width) << std::left << m_Properties.reid_dims
253  << " │" << std::endl;
254 
255  std::cout << "│ " << std::setw(prop_width) << std::left << "num_output"
256  << " │ " << std::setw(val_width) << std::left << m_Properties.num_output
257  << " │" << std::endl;
258 
259  std::cout << "│ " << std::setw(prop_width) << std::left << "score_threshold"
260  << " │ " << std::setw(val_width) << std::left << m_Properties.score_threshold
261  << " │" << std::endl;
262 
263  std::cout << "│ " << std::setw(prop_width) << std::left << "num_torch_threads"
264  << " │ " << std::setw(val_width) << std::left << m_Properties.num_torch_threads
265  << " │" << std::endl;
266 
267  std::cout << "│ " << std::setw(prop_width) << std::left << "generate_3d_bbox"
268  << " │ " << std::setw(val_width) << std::left << (m_Properties.generate_3d_bbox ? "true" : "false")
269  << " │" << std::endl;
270 
271  std::cout << "│ " << std::setw(prop_width) << std::left << "generate_2d_bbox"
272  << " │ " << std::setw(val_width) << std::left << (m_Properties.generate_2d_bbox ? "true" : "false")
273  << " │" << std::endl;
274 
275  std::cout << "│ " << std::setw(prop_width) << std::left << "bbox_color_mode"
276  << " │ " << std::setw(val_width) << std::left << m_Properties.bbox_color_mode
277  << " │" << std::endl;
278 
279  std::cout << "│ " << std::setw(prop_width) << std::left << "display_class_labels"
280  << " │ " << std::setw(val_width) << std::left << (m_Properties.display_class_labels ? "true" : "false")
281  << " │" << std::endl;
282 
283  std::cout << "│ " << std::setw(prop_width) << std::left << "display_instance_ids"
284  << " │ " << std::setw(val_width) << std::left << (m_Properties.display_instance_ids ? "true" : "false")
285  << " │" << std::endl;
286 
287  std::cout << "│ " << std::setw(prop_width) << std::left << "display_class_score"
288  << " │ " << std::setw(val_width) << std::left << (m_Properties.display_class_score ? "true" : "false")
289  << " │" << std::endl;
290  std::cout << "│ " << std::setw(prop_width) << std::left << "display_3d_bbox"
291  << " │ " << std::setw(val_width) << std::left << (m_Properties.display_3d_bbox ? "true" : "false")
292  << " │" << std::endl;
293  std::cout << "│ " << std::setw(prop_width) << std::left << "display_2d_bbox"
294  << " │ " << std::setw(val_width) << std::left << (m_Properties.display_2d_bbox ? "true" : "false")
295  << " │" << std::endl;
296 
297  // Debugging properties
298  std::cout << separator() << std::endl;
299  std::cout << "│ " << std::setw(prop_width) << std::left << "log_level"
300  << " │ " << std::setw(val_width) << std::left << m_Properties.log_level
301  << " │" << std::endl;
302 
303  std::cout << "│ " << std::setw(prop_width) << std::left << "display_partial_batch_info"
304  << " │ " << std::setw(val_width) << std::left << (m_Properties.display_partial_batch_info ? "true" : "false")
305  << " │" << std::endl;
306 
307  std::cout << "│ " << std::setw(prop_width) << std::left << "display_tensor_info"
308  << " │ " << std::setw(val_width) << std::left << (m_Properties.display_tensor_info ? "true" : "false")
309  << " │" << std::endl;
310 
311  std::cout << "│ " << std::setw(prop_width) << std::left << "display_bbox_list_info"
312  << " │ " << std::setw(val_width) << std::left << (m_Properties.display_bbox_list_info ? "true" : "false")
313  << " │" << std::endl;
314 
315  std::cout << "│ " << std::setw(prop_width) << std::left << "max_objects_to_display"
316  << " │ " << std::setw(val_width) << std::left << m_Properties.max_objects_to_display
317  << " │" << std::endl;
318 
319  std::cout << "│ " << std::setw(prop_width) << std::left << "dump_frames"
320  << " │ " << std::setw(val_width) << std::left << (m_Properties.dump_frames ? "true" : "false")
321  << " │" << std::endl;
322 
323  std::cout << "│ " << std::setw(prop_width) << std::left << "dump_max_frames"
324  << " │ " << std::setw(val_width) << std::left << m_Properties.dump_max_frames
325  << " │" << std::endl;
326 
327  std::cout << "│ " << std::setw(prop_width) << std::left << "fixed_input_tensor_path"
328  << " │ " << std::setw(val_width) << std::left << m_Properties.fixed_input_tensor_path
329  << " │" << std::endl;
330 
331  std::cout << "│ " << std::setw(prop_width) << std::left << "gpu_postprocess"
332  << " │ " << std::setw(val_width) << std::left << (m_Properties.gpu_postprocess ? "true" : "false")
333  << " │" << std::endl;
334 
335  std::cout << "│ " << std::setw(prop_width) << std::left << "use_static_frame_num"
336  << " │ " << std::setw(val_width) << std::left << (m_Properties.use_static_frame_num ? "true" : "false")
337  << " │" << std::endl;
338 
339  std::cout << "│ " << std::setw(prop_width) << std::left << "trt_logger_severity"
340  << " │ " << std::setw(val_width) << std::left << m_Properties.trt_logger_severity
341  << " │" << std::endl;
342 
343  std::cout << "│ " << std::setw(prop_width) << std::left << "enable_profiler"
344  << " │ " << std::setw(val_width) << std::left << (m_Properties.enable_profiler ? "true" : "false")
345  << " │" << std::endl;
346 
347  // Print table footer
348  std::cout << separator() << std::endl;
349  }
350 
351 private:
352  // Update properties from the loaded config
353  void updatePropertiesFromConfig();
354 
355  std::string m_ConfigPath;
356  bool m_IsLoaded;
357  YAML::Node m_Config;
358  ConfigProperties m_Properties;
359 };
360 
361 #endif // CONFIG_PARSER_H
ConfigProperties::num_sensors
int num_sensors
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:38
ConfigProperties::confidence_decay
float confidence_decay
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:56
ConfigProperties::anchor_handler
std::string anchor_handler
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:53
ConfigProperties::anchor
std::string anchor
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:52
ConfigProperties::num_torch_threads
int num_torch_threads
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:68
ConfigParser::getFloat
float getFloat(const std::string &key, float defaultValue=0.0f) const
ConfigProperties::partial_batch
bool partial_batch
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:42
ConfigProperties::reid_dims
int reid_dims
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:60
ConfigProperties::AugmentationConfig::resize_dims
std::vector< int > resize_dims
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:90
ConfigParser::getProperties
const ConfigProperties & getProperties() const
ConfigProperties::bev_group_name
std::string bev_group_name
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:82
ConfigProperties::AugmentationConfig::flip
bool flip
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:92
ConfigProperties::display_2d_bbox
bool display_2d_bbox
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:78
ConfigProperties::num_output
int num_output
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:64
ConfigProperties::score_threshold
float score_threshold
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:65
ConfigProperties::aug_config
AugmentationConfig aug_config
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:97
ConfigProperties::labels_file
std::string labels_file
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:36
ConfigProperties::feat_grad
bool feat_grad
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:58
ConfigParser::loadConfig
bool loadConfig(const std::string &configPath)
ConfigProperties::enable_fp16
bool enable_fp16
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:39
ConfigProperties::interval
int interval
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:43
ConfigProperties::batch_size
int batch_size
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:37
ConfigProperties::num_anchor
int num_anchor
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:50
ConfigProperties::display_partial_batch_info
bool display_partial_batch_info
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:101
ConfigProperties::enable_profiler
bool enable_profiler
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:113
ConfigParser::getString
std::string getString(const std::string &key, const std::string &defaultValue="") const
ConfigProperties::log_level
std::string log_level
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:100
ConfigParser::hasKey
bool hasKey(const std::string &key) const
ConfigProperties
Structure containing all configurable properties from the YAML config file.
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:32
ConfigProperties::preprocessed_height
int preprocessed_height
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:46
ConfigProperties::anchor_grad
bool anchor_grad
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:57
ConfigProperties::max_time_interval
int max_time_interval
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:59
ConfigParser::isLoaded
bool isLoaded() const
ConfigParser::getConfigPath
std::string getConfigPath() const
ConfigProperties::generate_3d_bbox
bool generate_3d_bbox
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:71
ConfigParser
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_parser.h:29
ConfigProperties::num_temp_instances
int num_temp_instances
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:54
ConfigProperties::default_time_interval
float default_time_interval
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:55
ConfigProperties::display_class_labels
bool display_class_labels
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:74
ConfigProperties::embed_dims
int embed_dims
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:51
ConfigProperties::display_instance_ids
bool display_instance_ids
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:75
ConfigProperties::AugmentationConfig::rotate_3d
float rotate_3d
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:94
ConfigProperties::dump_max_frames
int dump_max_frames
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:106
config_properties.h
ConfigParser::ConfigParser
ConfigParser(const std::string &configPath="./config.yaml")
ConfigProperties::use_camera_groups
bool use_camera_groups
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:84
ConfigProperties::preprocessed_width
int preprocessed_width
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:47
ConfigProperties::display_3d_bbox
bool display_3d_bbox
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:77
ConfigParser::displayProperties
void displayProperties() const
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_parser.h:62
ConfigProperties::recentering
bool recentering
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:85
ConfigProperties::feedback
bool feedback
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:41
ConfigParser::getBool
bool getBool(const std::string &key, bool defaultValue=false) const
ConfigProperties::generate_2d_bbox
bool generate_2d_bbox
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:72
ConfigProperties::display_bbox_list_info
bool display_bbox_list_info
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:103
ConfigProperties::bbox_color_mode
std::string bbox_color_mode
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:73
ConfigProperties::use_static_frame_num
bool use_static_frame_num
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:109
ConfigProperties::gpu_id
int gpu_id
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:45
ConfigProperties::display_class_score
bool display_class_score
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:76
ConfigProperties::engine_file
std::string engine_file
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:35
ConfigProperties::display_tensor_info
bool display_tensor_info
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:102
ConfigProperties::calib_mode
std::string calib_mode
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:83
ConfigProperties::calib_file_path
std::string calib_file_path
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:81
ConfigProperties::AugmentationConfig::resize
float resize
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:89
ConfigProperties::dump_frames
bool dump_frames
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:105
ConfigProperties::AugmentationConfig::rotate
float rotate
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:93
ConfigParser::getInt
int getInt(const std::string &key, int defaultValue=0) const
ConfigProperties::onnx_file
std::string onnx_file
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:34
ConfigProperties::max_objects_to_display
int max_objects_to_display
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:104
ConfigProperties::force_engine_rebuild
bool force_engine_rebuild
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:40
ConfigProperties::gpu_postprocess
bool gpu_postprocess
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:108
ConfigProperties::trt_logger_severity
int trt_logger_severity
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:112
ConfigProperties::fixed_input_tensor_path
std::string fixed_input_tensor_path
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:107
ConfigProperties::AugmentationConfig::crop
std::vector< int > crop
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:91