NVIDIA DeepStream SDK API Reference

9.2 Release
9.2/sources/libs/nvmultiobjecttracker/include/modules/DataAssociator/IDataAssociator.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2021-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 DATAASSOCIATORLIB_IDATAASSOCIATOR_HPP_
19 #define DATAASSOCIATORLIB_IDATAASSOCIATOR_HPP_
20 
21 #include "modules/NvMultiObjectTracker/NvMultiObjectTracker_common.hpp"
22 #include "modules/NvMultiObjectTracker/NvTrackedObject.hpp"
23 
25 {
27 };
28 
30 class IDataAssociator
31 {
32 public:
34  virtual ~IDataAssociator() {}
35 
43  virtual void initialize(
44  const SourceFrameInfo &frameInfo, const uint32_t maxTargetsPerStream,
45  const bool useVisualTracker = false, const bool useReid = false
46  ) = 0;
47 
53  virtual assocDataOut_t associatePerStream(const assocDataIn_t in) = 0;
54 
56  virtual bool isInitialized() = 0;
57 
59  virtual const DATA_ASSOCIATOR_TYPES getDataAssociatorType() = 0;
60 
65  virtual void updateParams(const YAML::Node &fn) = 0;
66 
67 };
68 
69 #endif // DATAASSOCIATORLIB_IDATAASSOCIATOR_HPP_
DEFAULT_ASSOCIATOR
@ DEFAULT_ASSOCIATOR
Selects the default data associator.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/DataAssociator/IDataAssociator.hpp:26
DATA_ASSOCIATOR_TYPES
DATA_ASSOCIATOR_TYPES
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/DataAssociator/IDataAssociator.hpp:24
IDataAssociator::isInitialized
virtual bool isInitialized()=0
Return whether the data associator has been initialized.
IDataAssociator::associatePerStream
virtual assocDataOut_t associatePerStream(const assocDataIn_t in)=0
Associate detections with existing targets for one stream.
IDataAssociator::updateParams
virtual void updateParams(const YAML::Node &fn)=0
Update dynamic parameters during runtime.
IDataAssociator::initialize
virtual void initialize(const SourceFrameInfo &frameInfo, const uint32_t maxTargetsPerStream, const bool useVisualTracker=false, const bool useReid=false)=0
Initialize the data associator.
IDataAssociator::~IDataAssociator
virtual ~IDataAssociator()
Destroy the data-associator interface.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/DataAssociator/IDataAssociator.hpp:34
IDataAssociator
Define the interface for associating detections with tracked targets.
Definition: sources/libs/nvmultiobjecttracker/include/modules/DataAssociator/IDataAssociator.hpp:30
DATA_ASSOCIATOR_TYPES
DATA_ASSOCIATOR_TYPES
Definition: sources/libs/nvmultiobjecttracker/include/modules/DataAssociator/IDataAssociator.hpp:24
SourceFrameInfo
Information about the input source frames for the input frame batch.
Definition: sources/libs/nvmultiobjecttracker/include/modules/NvMultiObjectTracker/NvMultiObjectTracker_common.hpp:49
IDataAssociator::getDataAssociatorType
virtual const DATA_ASSOCIATOR_TYPES getDataAssociatorType()=0
Return the configured data-associator type.
assocDataIn_t
Input for the data association module.
Definition: sources/libs/nvmultiobjecttracker/include/modules/NvMultiObjectTracker/NvTrackedObject.hpp:86
assocDataOut_t
Output from the data association module.
Definition: sources/libs/nvmultiobjecttracker/include/modules/NvMultiObjectTracker/NvTrackedObject.hpp:99