NVIDIA DeepStream SDK API Reference

9.2 Release
sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/postprocess/postprocessor.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 POSTPROCESSOR_H
19 #define POSTPROCESSOR_H
20 
21 #include "gstnvdsmeta.h"
22 #include "nvdsmeta.h"
23 #include "nvdsmeta_schema.h"
24 
25 #include <torch/torch.h>
26 
27 #include "instance_bank.h"
28 #include "decoder.h"
29 #include "bbox3d_utils.h"
30 #include "display_bbox3d.h"
32 
33 #include "../utils/tensor.h"
34 #include "../utils/log_utils.h"
35 #include "../utils/tensor_init.h"
36 #include "../utils/config_properties.h"
37 
47 bool postprocess_tensors(TensorCache* tensorCache,
48  NvDsBatchMeta* batch_meta,
49  const ConfigProperties& config_properties,
51 
60 gpointer copy_user_meta(gpointer data, gpointer user_data);
61 
68 void release_user_meta_at_batch_level(gpointer data, gpointer user_data);
69 
76 guint64 calculate_mean_timestamp(NvDsBatchMeta* batch_meta);
77 
87 void display_bbox3d_list(const NvDsBbox3dObjectList* bbox3dList, const ConfigProperties& config_properties);
88 
89 #endif /* POSTPROCESSOR_H */
release_user_meta_at_batch_level
void release_user_meta_at_batch_level(gpointer data, gpointer user_data)
Release user meta data at batch level.
PrettyLogger
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/log_utils.h:57
TensorCache
Class to manage multiple tensors with string-based lookup.
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/tensor.h:511
_NvDsBbox3dObjectList
Definition: includes/nvdsmeta_schema.h:310
bbox3d_utils.h
instance_bank.h
ConfigProperties
Structure containing all configurable properties from the YAML config file.
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/utils/config_properties.h:32
display_bbox3d_list
void display_bbox3d_list(const NvDsBbox3dObjectList *bbox3dList, const ConfigProperties &config_properties)
Display the contents of a 3D bounding box object list to console.
decoder.h
sparse_box_3d_generator.h
_NvDsBatchMeta
Holds information about a formed batch containing frames from different sources.
Definition: includes/nvdsmeta.h:264
postprocess_tensors
bool postprocess_tensors(TensorCache *tensorCache, NvDsBatchMeta *batch_meta, const ConfigProperties &config_properties, PrettyLogger *logger)
Process output tensors for display and further analysis.
logger
Logger logger
calculate_mean_timestamp
guint64 calculate_mean_timestamp(NvDsBatchMeta *batch_meta)
Calculate mean timestamp from multiple frames in a batch.
data
JSAMPIMAGE data
Definition: sources/libs/nvll_batch_jpeg_encode/oss/jpeglib.h:967
display_bbox3d.h
copy_user_meta
gpointer copy_user_meta(gpointer data, gpointer user_data)
Copy user meta data from source to destination.