forked from zhouyuchong/gst-nvinfer-custom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gstnvinfer_yaml_parser.h
37 lines (28 loc) · 1.16 KB
/
gstnvinfer_yaml_parser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this software and related documentation without an express
* license agreement from NVIDIA Corporation is strictly prohibited.
*
*/
#ifndef __GST_NVINFER_YAML_PARSER_H__
#define __GST_NVINFER_YAML_PARSER_H__
#include <glib.h>
#include "nvdsinfer_context.h"
#include "gstnvinfer.h"
#define DEFAULT_PRE_CLUSTER_THRESHOLD 0.2
#define DEFAULT_POST_CLUSTER_THRESHOLD 0.0
#define DEFAULT_EPS 0.0
#define DEFAULT_GROUP_THRESHOLD 0
#define DEFAULT_MIN_BOXES 0
#define DEFAULT_DBSCAN_MIN_SCORE 0
#define DEFAULT_NMS_IOU_THRESHOLD 0.3
#define DEFAULT_TOP_K -1
gboolean gst_nvinfer_parse_config_file_yaml (GstNvInfer *nvinfer,
NvDsInferContextInitParams *init_params, const gchar * cfg_file_path);
gboolean gst_nvinfer_parse_context_params_yaml (NvDsInferContextInitParams *params,
const gchar * cfg_file_path);
#endif /*__GST_NVINFER_PROPERTY_PARSER_H__*/