NVIDIA DeepStream SDK API Reference

8.0 Release
nvds_analytics_meta.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2020-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
27 #ifndef _NVDS_ANALYTICS_META_H_
28 #define _NVDS_ANALYTICS_META_H_
29 
30 #include <gst/gst.h>
31 #include <vector>
32 #include <unordered_map>
33 #include <string>
34 #include <cstdint>
35 #include "nvdsmeta.h"
36 
37 #define NVDS_USER_FRAME_META_NVDSANALYTICS NVDS_FRAME_META_NVDSANALYTICS
38 #define NVDS_USER_OBJ_META_NVDSANALYTICS NVDS_OBJ_META_NVDSANALYTICS
39 
40 #ifdef __cplusplus
41 extern "C"
42 {
43 #endif
44 
54 typedef struct
55 {
57  std::vector <std::string> roiStatus;
59  std::vector <std::string> ocStatus;
61  std::vector <std::string> lcStatus;
63  std::string dirStatus;
65  guint unique_id;
67  std::string objStatus;
69 
73 typedef struct
74 {
78  std::unordered_map<std::string, bool> ocStatus;
79 
83  std::unordered_map<std::string, uint32_t> objInROIcnt;
84 
88  std::unordered_map<std::string, uint64_t> objLCCurrCnt;
89 
93  std::unordered_map<std::string, uint64_t> objLCCumCnt;
94 
96  guint unique_id;
97 
101  std::unordered_map<int, uint32_t> objCnt;
103 
104 #ifdef __cplusplus
105 }
106 #endif
107 
108 #endif
109 
NvDsAnalyticsObjInfo::lcStatus
std::vector< std::string > lcStatus
Holds the array of line crossing labels which object has crossed.
Definition: nvds_analytics_meta.h:61
NvDsAnalyticsFrameMeta::objLCCumCnt
std::unordered_map< std::string, uint64_t > objLCCumCnt
Holds a map of total cumulative count of Line crossing for configured lines, can be accessed using ke...
Definition: nvds_analytics_meta.h:93
NvDsAnalyticsFrameMeta
Holds a set of nvdsanalytics framelevel metadata.
Definition: nvds_analytics_meta.h:73
NvDsAnalyticsObjInfo::roiStatus
std::vector< std::string > roiStatus
Holds the array of ROI labels in which object is present.
Definition: nvds_analytics_meta.h:57
NvDsAnalyticsFrameMeta::unique_id
guint unique_id
Holds unique identifier for nvdsanalytics instance.
Definition: nvds_analytics_meta.h:96
NvDsAnalyticsObjInfo::unique_id
guint unique_id
Holds unique identifier for nvdsanalytics instance.
Definition: nvds_analytics_meta.h:65
NvDsAnalyticsObjInfo::dirStatus
std::string dirStatus
Holds the direction string for the tracked object.
Definition: nvds_analytics_meta.h:63
NvDsAnalyticsObjInfo::objStatus
std::string objStatus
Holds the status string for the tracked object.
Definition: nvds_analytics_meta.h:67
NvDsAnalyticsFrameMeta::objLCCurrCnt
std::unordered_map< std::string, uint64_t > objLCCurrCnt
Holds a map of total count of Line crossing in current frame for configured lines,...
Definition: nvds_analytics_meta.h:88
NvDsAnalyticsFrameMeta::ocStatus
std::unordered_map< std::string, bool > ocStatus
Holds a map of boolean status of overcrowding for configured ROIs, which can be accessed using key,...
Definition: nvds_analytics_meta.h:78
NvDsAnalyticsFrameMeta::objInROIcnt
std::unordered_map< std::string, uint32_t > objInROIcnt
Holds a map of total count of valid objects in ROI for configured ROIs, which can be accessed using k...
Definition: nvds_analytics_meta.h:83
NvDsAnalyticsObjInfo::ocStatus
std::vector< std::string > ocStatus
Holds the array of OverCrowding labels in which object is present
Definition: nvds_analytics_meta.h:59
NvDsAnalyticsObjInfo
Holds a set of nvdsanalytics object level metadata.
Definition: nvds_analytics_meta.h:54
nvdsmeta.h
NvDsAnalyticsFrameMeta::objCnt
std::unordered_map< int, uint32_t > objCnt
Holds a map of total count of objects for each class ID, can be accessed using key,...
Definition: nvds_analytics_meta.h:101