NVIDIA DeepStream SDK API Reference

9.2 Release
sources/libs/nvmultiobjecttracker/include/modules/ReIDService/IReIDService.hpp
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 IREIDSERVICE_HPP_
19 #define IREIDSERVICE_HPP_
20 
21 #include <deque>
22 #include <map>
23 #include "modules/NvMultiObjectTracker/NvMultiObjectTracker_common.hpp"
24 #include "modules/NvMultiObjectTracker/NvTrackedObject.hpp"
25 
28 {
31 };
32 
35 {
36 public:
38  virtual ~IReIDService() {}
39 
46  virtual void initialize(
47  const SourceFrameInfo &frameInfo, const uint maxTargetsPerStream,
48  const std::shared_ptr<NvTrackedObjectManager> &targetManager
49  ) = 0;
50 
55  virtual void queryParams(NvMOTQuery &paramsQuery) = 0;
56 
61  virtual void query(const std::map<NvMOTStreamId, NvMOTFrame *> &inputMeta) = 0;
62 
64  virtual void updateTargetIDs() = 0;
65 
67  virtual const REID_SERVICE_TYPES getReIDServiceType() = 0;
68 };
69 
70 #endif // IREIDSERVICE_HPP_
IReIDService::initialize
virtual void initialize(const SourceFrameInfo &frameInfo, const uint maxTargetsPerStream, const std::shared_ptr< NvTrackedObjectManager > &targetManager)=0
Initialize variables and allocate memories.
REID_SERVICE
@ REID_SERVICE
Implementation that associates targets through a remote ReID service.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ReIDService/IReIDService.hpp:30
IReIDService::updateTargetIDs
virtual void updateTargetIDs()=0
Update target ID using remoteTargetID from reid service.
DUMMY_REID_SERVICE
@ DUMMY_REID_SERVICE
No-op implementation that performs no remote association.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ReIDService/IReIDService.hpp:29
IReIDService::query
virtual void query(const std::map< NvMOTStreamId, NvMOTFrame * > &inputMeta)=0
Send query to reid service for all unmatched active objects.
uint
unsigned int uint
Definition: sources/libs/nvmultiobjecttracker/include/modules/cuDCFv2/helper_math.h:25
IReIDService::queryParams
virtual void queryParams(NvMOTQuery &paramsQuery)=0
Populate the capabilities reported to the tracker.
REID_SERVICE_TYPES
REID_SERVICE_TYPES
Identifies the available ReID-service implementations.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ReIDService/IReIDService.hpp:27
IReIDService::getReIDServiceType
virtual const REID_SERVICE_TYPES getReIDServiceType()=0
Get the configured ReID-service implementation type.
IReIDService::~IReIDService
virtual ~IReIDService()
Release resources owned by the IReIDService instance.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ReIDService/IReIDService.hpp:38
_NvMOTQuery
Holds the capabilities and requirements reported by the tracker library.
Definition: includes/nvdstracker.h:420
SourceFrameInfo
Information about the input source frames for the input frame batch.
Definition: sources/libs/nvmultiobjecttracker/include/modules/NvMultiObjectTracker/NvMultiObjectTracker_common.hpp:49
IReIDService
Defines the interface for remote ReID association services.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ReIDService/IReIDService.hpp:34