NVIDIA DeepStream SDK API Reference

6.1.1 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvds_roi_meta.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20  * DEALINGS IN THE SOFTWARE.
21  */
22 
38 #ifndef __NVDS_ROI_META_H__
39 #define __NVDS_ROI_META_H__
40 
41 #include "nvdsmeta.h"
42 
44 #define DS_MAX_POLYGON_POINTS 8
45 
48 
51 
53 typedef GList NvDsClassifierMetaList;
54 
56 typedef GList NvDsUserMetaList;
57 
61 typedef enum
62 {
75 } NvDsDataType;
76 
80 typedef enum
81 {
88 } NvDsUnitType;
89 
93 typedef struct NvDsRoiMeta
94 {
95  /* per roi information */
97 
100 
101  /* Scaled & converted buffer to processing width/height */
103 
104  /* Deepstream frame meta */
106 
110  gdouble scale_ratio_x;
111 
115  gdouble scale_ratio_y;
116 
118  gdouble offset_left;
119 
121  gdouble offset_top;
122 
125 
128 
129 } NvDsRoiMeta;
130 
131 #endif
NvOSD_RectParams roi
Definition: nvds_roi_meta.h:96
gdouble offset_top
offsets in vertical direction while scaling
Holds metadata for a frame in a batch.
Definition: nvdsmeta.h:265
guint roi_polygon[DS_MAX_POLYGON_POINTS][2]
currently not being used
Definition: nvds_roi_meta.h:99
UINT8 data type.
Definition: nvds_roi_meta.h:66
gdouble scale_ratio_y
Ratio by which the frame/ROI crop was scaled in vertical direction Required when scaling co-ordinates...
Region of Interests (ROIs)
Definition: nvds_roi_meta.h:85
NvDsDataType
Data type used for model in infer.
Definition: nvds_roi_meta.h:61
NvBufSurfaceParams * converted_buffer
UINT32 data type.
Definition: nvds_roi_meta.h:70
Holds the box parameters of the box to be overlayed.
NvDsFrameMeta * frame_meta
Hold the information of single buffer in the batch.
Definition: nvbufsurface.h:427
FP16 data type.
Definition: nvds_roi_meta.h:74
INT8 data type.
Definition: nvds_roi_meta.h:68
FP32 data type.
Definition: nvds_roi_meta.h:64
NvDsUserMetaList * roi_user_meta_list
Holds a pointer to a list of pointers of type NvDsUserMeta.
Holds Information about ROI Metadata.
Definition: nvds_roi_meta.h:93
GList NvDsUserMetaList
Definition: nvdsmeta.h:56
#define DS_MAX_POLYGON_POINTS
max polygon points ; currently not being used
Definition: nvds_roi_meta.h:44
Defines NVIDIA DeepStream Metadata Structures
NvDsUnitType
Unit Type Fullframe/ROI/Crop Objects.
Definition: nvds_roi_meta.h:80
struct NvDsRoiMeta NvDsRoiMeta
Holds Information about ROI Metadata.
INT32 data type.
Definition: nvds_roi_meta.h:72
gdouble offset_left
offsets in horizontal direction while scaling
GList NvDsClassifierMetaList
Definition: nvdsmeta.h:59
GList NvDsClassifierMetaList
classifier meta list
Definition: nvds_roi_meta.h:53
gdouble scale_ratio_x
Ratio by which the frame/ROI crop was scaled in horizontal direction Required when scaling co-ordinat...
GList NvDsUserMetaList
user meta list
Definition: nvds_roi_meta.h:56
NvDsClassifierMetaList * classifier_meta_list
Holds a pointer to a list of pointers of type NvDsClassifierMeta.