NVIDIA DeepStream SDK API Reference

9.1 Release
9.1/sources/gst-plugins/gst-nvinfer/gstnvinfer_meta_utils.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 #include "gstnvinfer.h"
19 #include "gstnvinfer_impl.h"
20 
21 void attach_metadata_detector (GstNvInfer * nvinfer, GstMiniObject * tensor_out_object,
22  GstNvInferFrame & frame, NvDsInferDetectionOutput & detection_output,
23  float segmentationThreshold);
24 
25 void attach_metadata_classifier (GstNvInfer * nvinfer, GstMiniObject * tensor_out_object,
26  GstNvInferFrame & frame, GstNvInferObjectInfo & object_info);
27 
29  GstNvInferObjectInfo &new_result);
30 
31 void attach_metadata_segmentation (GstNvInfer * nvinfer, GstMiniObject * tensor_out_object,
32  GstNvInferFrame & frame, NvDsInferSegmentationOutput & segmentation_output);
33 
34 /* Attaches the raw tensor output to the GstBuffer as metadata. */
35 void attach_tensor_output_meta (GstNvInfer *nvinfer, GstMiniObject * tensor_out_object,
36  GstNvInferBatch *batch, NvDsInferContextBatchOutput *batch_output);
gstnvinfer_impl.h
_GstNvInferObjectHistory
Holds the inference information/history for one object based on it's tracking id.
Definition: sources/gst-plugins/gst-nvinfer/gstnvinfer.h:148
merge_classification_output
void merge_classification_output(GstNvInferObjectHistory &history, GstNvInferObjectInfo &new_result)
NvDsInferSegmentationOutput
Holds information parsed from segmentation network output for one frame.
Definition: sources/includes/nvdsinfer_context.h:599
attach_metadata_detector
void attach_metadata_detector(GstNvInfer *nvinfer, GstMiniObject *tensor_out_object, GstNvInferFrame &frame, NvDsInferDetectionOutput &detection_output, float segmentationThreshold)
attach_metadata_segmentation
void attach_metadata_segmentation(GstNvInfer *nvinfer, GstMiniObject *tensor_out_object, GstNvInferFrame &frame, NvDsInferSegmentationOutput &segmentation_output)
NvDsInferDetectionOutput
Holds information on all objects detected by a detector network in one frame.
Definition: sources/includes/nvdsinfer_context.h:571
attach_metadata_classifier
void attach_metadata_classifier(GstNvInfer *nvinfer, GstMiniObject *tensor_out_object, GstNvInferFrame &frame, GstNvInferObjectInfo &object_info)
GstNvInferBatch
Holds information about the batch of frames to be inferred.
Definition: sources/gst-plugins/gst-nvinfer/gstnvinfer_impl.h:99
GstNvInfer
typedefG_BEGIN_DECLS struct _GstNvInfer GstNvInfer
Definition: sources/gst-plugins/gst-nvinfer/gstnvinfer.h:50
NvDsInferContextBatchOutput
Holds the output for all of the frames in a batch (an array of frame), and related buffer information...
Definition: sources/includes/nvdsinfer_context.h:645
attach_tensor_output_meta
void attach_tensor_output_meta(GstNvInfer *nvinfer, GstMiniObject *tensor_out_object, GstNvInferBatch *batch, NvDsInferContextBatchOutput *batch_output)
GstNvInferFrame
Holds info about one frame in a batch for inferencing.
Definition: sources/gst-plugins/gst-nvinfer/gstnvinfer_impl.h:56
gstnvinfer.h
GstNvInferObjectInfo
Holds the cached information of an object.
Definition: sources/gst-plugins/gst-nvinfer/gstnvinfer.h:128