NVIDIA DeepStream SDK API Reference

9.2 Release
9.2/sources/libs/gst-nvdsinferbase/gstnvinfer_property_parser.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2018-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 __GST_NVINFER_PROPERTY_PARSER_H__
19 #define __GST_NVINFER_PROPERTY_PARSER_H__
20 
21 #include <glib.h>
22 
23 #include "nvdsinfer_context.h"
24 #include "gstnvinferbase.h"
25 
26 #define CONFIG_GROUP_PROPERTY "property"
27 
28 #define CONFIG_GROUP_INFER_PARSE_FUNC "parse-func"
29 
31 #define CONFIG_GROUP_INFER_UNIQUE_ID "gie-unique-id"
32 #define CONFIG_GROUP_INFER_INTERVAL "interval"
33 #define CONFIG_GROUP_INFER_LABEL "labelfile-path"
34 #define CONFIG_GROUP_INFER_GPU_ID "gpu-id"
35 #define CONFIG_GROUP_INFER_OUTPUT_TENSOR_META "output-tensor-meta"
36 
37 
38 #define CONFIG_GROUP_INFER_ENABLE_DLA "enable-dla"
39 #define CONFIG_GROUP_INFER_USE_DLA_CORE "use-dla-core"
40 
42 #define CONFIG_GROUP_INFER_BATCH_SIZE "batch-size"
43 #define CONFIG_GROUP_INFER_NETWORK_MODE "network-mode"
44 #define CONFIG_GROUP_INFER_MODEL_ENGINE "model-engine-file"
45 #define CONFIG_GROUP_INFER_INT8_CALIBRATION_FILE "int8-calib-file"
46 #define CONFIG_GROUP_INFER_WORKSPACE_SIZE "workspace-size"
47 
49 #define CONFIG_GROUP_INFER_OUTPUT_BLOB_NAMES "output-blob-names"
50 #define CONFIG_GROUP_INFER_IS_CLASSIFIER_LEGACY "is-classifier"
51 #define CONFIG_GROUP_INFER_NETWORK_TYPE "network-type"
52 #define CONFIG_GROUP_INFER_FORCE_IMPLICIT_BATCH_DIM "force-implicit-batch-dim"
53 #define CONFIG_GROUP_INFER_INFER_DIMENSIONS "infer-dims"
54 
56 #define CONFIG_GROUP_INFER_MODEL_COLOR_FORMAT "model-color-format"
57 #define CONFIG_GROUP_INFER_SCALE_FACTOR "net-scale-factor"
58 #define CONFIG_GROUP_INFER_OFFSETS "offsets"
59 #define CONFIG_GROUP_INFER_MEANFILE "mean-file"
60 
62 #define CONFIG_GROUP_INFER_CUSTOM_LIB_PATH "custom-lib-path"
63 #define CONFIG_GROUP_INFER_CUSTOM_PARSE_BBOX_FUNC "parse-bbox-func-name"
64 #define CONFIG_GROUP_INFER_CUSTOM_ENGINE_CREATE_FUNC "engine-create-func-name"
65 #define CONFIG_GROUP_INFER_CUSTOM_PARSE_CLASSIFIER_FUNC "parse-classifier-func-name"
66 #define CONFIG_GROUP_INFER_CUSTOM_NETWORK_CONFIG "custom-network-config"
67 
69 #define CONFIG_GROUP_INFER_MODEL "model-file"
70 #define CONFIG_GROUP_INFER_PROTO "proto-file"
71 
73 #define CONFIG_GROUP_INFER_UFF "uff-file"
74 #define CONFIG_GROUP_INFER_UFF_INPUT_DIMENSIONS "uff-input-dims"
75 #define CONFIG_GROUP_INFER_UFF_INPUT_DIMENSIONS_LEGACY "input-dims"
76 #define CONFIG_GROUP_INFER_UFF_INPUT_BLOB_NAME "uff-input-blob-name"
77 
79 #define CONFIG_GROUP_INFER_TLT_ENCODED_MODEL "tlt-encoded-model"
80 #define CONFIG_GROUP_INFER_TLT_MODEL_KEY "tlt-model-key"
81 
83 #define CONFIG_GROUP_INFER_ONNX "onnx-file"
84 
86 #define CONFIG_GROUP_INFER_NUM_DETECTED_CLASSES "num-detected-classes"
87 #define CONFIG_GROUP_INFER_ENABLE_DBSCAN "enable-dbscan"
88 #define CONFIG_GROUP_INFER_CLUSTER_MODE "cluster-mode"
89 
91 #define CONFIG_GROUP_INFER_CLASSIFIER_THRESHOLD "classifier-threshold"
92 
94 #define CONFIG_GROUP_INFER_SEGMENTATION_THRESHOLD "segmentation-threshold"
95 
97  NvDsInferContextInitParams *init_params, const gchar * cfg_file_path);
98 
100  const gchar * cfg_file_path);
101 
102 
103 #endif /*__GST_NVINFER_PROPERTY_PARSER_H__*/
gst_nvinfer_parse_config_file
gboolean gst_nvinfer_parse_config_file(GstNvInferBase *nvinfer, NvDsInferContextInitParams *init_params, const gchar *cfg_file_path)
GstNvInferBase
typedefG_BEGIN_DECLS struct _GstNvInferBase GstNvInferBase
Definition: sources/libs/gst-nvdsinferbase/gstnvinferbase.h:42
gst_nvinfer_parse_context_params
gboolean gst_nvinfer_parse_context_params(NvDsInferContextInitParams *params, const gchar *cfg_file_path)
_NvDsInferContextInitParams
Holds the initialization parameters required for the NvDsInferContext interface.
Definition: includes/nvdsinfer_context.h:246
gstnvinferbase.h