NVIDIA DeepStream SDK API Reference

9.2 Release
DummyReID Class Reference

Detailed Description

Provides a no-op ReID implementation.

Definition at line 57 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/DummyReID.hpp.

Inheritance diagram for DummyReID:
Collaboration diagram for DummyReID:

Public Member Functions

 DummyReID (const std::string &configFilePath)
 Construct a DummyReID instance from configuration. More...
 
virtual ~DummyReID ()
 Release resources owned by the DummyReID instance. More...
 
void initializeRuntime (const SourceFrameInfo &frameInfo, const uint maxTargetsPerStream, const std::shared_ptr< NvTrackedObjectManager > &targetManager) override
 Initialize variables and allocate memories. More...
 
void initializeModel () override
 Create TensorRT inference engine; if engine does not exist, serialize from model file. More...
 
void queryParams (NvMOTQuery &paramsQuery)
 Populate the capabilities reported to the tracker. More...
 
void doInference (const std::map< NvMOTStreamId, NvMOTFrame * > &inputMeta, std::map< NvMOTStreamId, std::deque< DetectedObjInfo >> &detectedObjects, const bool isForReAssoc) override
 Crop and rescale detected objects to create input batch to reid model. More...
 
void update () override
 Update ReID feature gallery after data association. More...
 
void removeStream (const NvMOTStreamId videoStreamId) override
 Remove a stream's reid features. More...
 
void outputReIDTensor (NvDsReidTensorBatch &reidTensorBatch) override
 Output the ReID tensor of a batch. More...
 
int outputTargetReIDInd (NvMOTStreamId streamId, uint targetInd) override
 Output a target's ReID vector index in the batch tensor. More...
 
void outputTargetReIDObj (NvMOTStreamId streamId, uint targetInd, NvDsReidTensorBatch &reidTensorBatch, NvDsObjReid &reidObj) override
 Output a target's ReID vector information. More...
 
bool isModelInitialized () override
 Report whether the inference model is initialized. More...
 
bool isRuntimeInitialized () override
 Report whether runtime resources are initialized. More...
 
const REID_TYPES getReIDType () override
 Get the configured ReID implementation type. More...
 
 DummyReID (const std::string &configFilePath)
 Construct a DummyReID instance from configuration. More...
 
virtual ~DummyReID ()
 Release resources owned by the DummyReID instance. More...
 
void initializeRuntime (const SourceFrameInfo &frameInfo, const uint maxTargetsPerStream, const std::shared_ptr< NvTrackedObjectManager > &targetManager) override
 Initialize variables and allocate memories. More...
 
void initializeModel () override
 Create TensorRT inference engine; if engine does not exist, serialize from model file. More...
 
void queryParams (NvMOTQuery &paramsQuery)
 Populate the capabilities reported to the tracker. More...
 
void doInference (const std::map< NvMOTStreamId, NvMOTFrame * > &inputMeta, std::map< NvMOTStreamId, std::deque< DetectedObjInfo >> &detectedObjects, const bool isForReAssoc) override
 Crop and rescale detected objects to create input batch to reid model. More...
 
void update () override
 Update ReID feature gallery after data association. More...
 
void removeStream (const NvMOTStreamId videoStreamId) override
 Remove a stream's reid features. More...
 
void outputReIDTensor (NvDsReidTensorBatch &reidTensorBatch) override
 Output the ReID tensor of a batch. More...
 
int outputTargetReIDInd (NvMOTStreamId streamId, uint targetInd) override
 Output a target's ReID vector index in the batch tensor. More...
 
void outputTargetReIDObj (NvMOTStreamId streamId, uint targetInd, NvDsReidTensorBatch &reidTensorBatch, NvDsObjReid &reidObj) override
 Output a target's ReID vector information. More...
 
bool isModelInitialized () override
 Report whether the inference model is initialized. More...
 
bool isRuntimeInitialized () override
 Report whether runtime resources are initialized. More...
 
const REID_TYPES getReIDType () override
 Get the configured ReID implementation type. More...
 

Protected Attributes

bool m_isModelInit
 Reid status if reid model initialized. More...
 
bool m_isRuntimeInit
 Reid status if runtime variables initialized. More...
 
DummyReIDConfigParams m_params
 Config params for reid module. More...
 

Constructor & Destructor Documentation

◆ DummyReID() [1/2]

DummyReID::DummyReID ( const std::string &  configFilePath)

Construct a DummyReID instance from configuration.

Parameters
[in]configFilePathPath to the tracker configuration file.

◆ ~DummyReID() [1/2]

virtual DummyReID::~DummyReID ( )
virtual

Release resources owned by the DummyReID instance.

◆ DummyReID() [2/2]

DummyReID::DummyReID ( const std::string &  configFilePath)

Construct a DummyReID instance from configuration.

Parameters
[in]configFilePathPath to the tracker configuration file.

◆ ~DummyReID() [2/2]

virtual DummyReID::~DummyReID ( )
virtual

Release resources owned by the DummyReID instance.

Member Function Documentation

◆ doInference() [1/2]

void DummyReID::doInference ( const std::map< NvMOTStreamId, NvMOTFrame * > &  inputMeta,
std::map< NvMOTStreamId, std::deque< DetectedObjInfo >> &  detectedObjects,
const bool  isForReAssoc 
)
overridevirtual

Crop and rescale detected objects to create input batch to reid model.

Parameters
[in]inputMetaA batch of input frames.
[in,out]detectedObjectsNewly detected objects in each stream.
[in]isForReAssocWhether this inference is for reassociation.

Implements IReID.

◆ doInference() [2/2]

void DummyReID::doInference ( const std::map< NvMOTStreamId, NvMOTFrame * > &  inputMeta,
std::map< NvMOTStreamId, std::deque< DetectedObjInfo >> &  detectedObjects,
const bool  isForReAssoc 
)
overridevirtual

Crop and rescale detected objects to create input batch to reid model.

Parameters
[in]inputMetaA batch of input frames.
[in,out]detectedObjectsNewly detected objects in each stream.
[in]isForReAssocWhether this inference is for reassociation.

Implements IReID.

◆ getReIDType() [1/2]

const REID_TYPES DummyReID::getReIDType ( )
inlineoverridevirtual

Get the configured ReID implementation type.

Implements IReID.

Definition at line 142 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/DummyReID.hpp.

References m_params, and DummyReIDConfigParams::m_reidType.

◆ getReIDType() [2/2]

const REID_TYPES DummyReID::getReIDType ( )
inlineoverridevirtual

Get the configured ReID implementation type.

Implements IReID.

Definition at line 142 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/ReID/DummyReID.hpp.

References m_params, and DummyReIDConfigParams::m_reidType.

◆ initializeModel() [1/2]

void DummyReID::initializeModel ( )
overridevirtual

Create TensorRT inference engine; if engine does not exist, serialize from model file.

Implements IReID.

◆ initializeModel() [2/2]

void DummyReID::initializeModel ( )
overridevirtual

Create TensorRT inference engine; if engine does not exist, serialize from model file.

Implements IReID.

◆ initializeRuntime() [1/2]

void DummyReID::initializeRuntime ( const SourceFrameInfo &  frameInfo,
const uint  maxTargetsPerStream,
const std::shared_ptr< NvTrackedObjectManager > &  targetManager 
)
overridevirtual

Initialize variables and allocate memories.

Parameters
[in]frameInfoMetadata about the source image, such as size and color.
[in]maxTargetsPerStreamMaximum number of targets to track in each stream.
[in]targetManagerTarget manager of the tracked objects.

Implements IReID.

◆ initializeRuntime() [2/2]

void DummyReID::initializeRuntime ( const SourceFrameInfo &  frameInfo,
const uint  maxTargetsPerStream,
const std::shared_ptr< NvTrackedObjectManager > &  targetManager 
)
overridevirtual

Initialize variables and allocate memories.

Parameters
[in]frameInfoMetadata about the source image, such as size and color.
[in]maxTargetsPerStreamMaximum number of targets to track in each stream.
[in]targetManagerTarget manager of the tracked objects.

Implements IReID.

◆ isModelInitialized() [1/2]

bool DummyReID::isModelInitialized ( )
inlineoverridevirtual

Report whether the inference model is initialized.

Implements IReID.

Definition at line 136 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/DummyReID.hpp.

References m_isModelInit.

◆ isModelInitialized() [2/2]

bool DummyReID::isModelInitialized ( )
inlineoverridevirtual

Report whether the inference model is initialized.

Implements IReID.

Definition at line 136 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/ReID/DummyReID.hpp.

References m_isModelInit.

◆ isRuntimeInitialized() [1/2]

bool DummyReID::isRuntimeInitialized ( )
inlineoverridevirtual

Report whether runtime resources are initialized.

Implements IReID.

Definition at line 139 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/ReID/DummyReID.hpp.

References m_isRuntimeInit.

◆ isRuntimeInitialized() [2/2]

bool DummyReID::isRuntimeInitialized ( )
inlineoverridevirtual

Report whether runtime resources are initialized.

Implements IReID.

Definition at line 139 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/DummyReID.hpp.

References m_isRuntimeInit.

◆ outputReIDTensor() [1/2]

void DummyReID::outputReIDTensor ( NvDsReidTensorBatch &  reidTensorBatch)
overridevirtual

Output the ReID tensor of a batch.

Parameters
[out]reidTensorBatchBatch reid tensor output to be filled.

Implements IReID.

◆ outputReIDTensor() [2/2]

void DummyReID::outputReIDTensor ( NvDsReidTensorBatch &  reidTensorBatch)
overridevirtual

Output the ReID tensor of a batch.

Parameters
[out]reidTensorBatchBatch reid tensor output to be filled.

Implements IReID.

◆ outputTargetReIDInd() [1/2]

int DummyReID::outputTargetReIDInd ( NvMOTStreamId  streamId,
uint  targetInd 
)
overridevirtual

Output a target's ReID vector index in the batch tensor.

Parameters
[in]streamIdStream index.
[in]targetIndThe target index.
Returns
The target's ReID vector index in the batch tensor, -1 means no reid feature.

Implements IReID.

◆ outputTargetReIDInd() [2/2]

int DummyReID::outputTargetReIDInd ( NvMOTStreamId  streamId,
uint  targetInd 
)
overridevirtual

Output a target's ReID vector index in the batch tensor.

Parameters
[in]streamIdStream index.
[in]targetIndThe target index.
Returns
The target's ReID vector index in the batch tensor, -1 means no reid feature.

Implements IReID.

◆ outputTargetReIDObj() [1/2]

void DummyReID::outputTargetReIDObj ( NvMOTStreamId  streamId,
uint  targetInd,
NvDsReidTensorBatch &  reidTensorBatch,
NvDsObjReid &  reidObj 
)
overridevirtual

Output a target's ReID vector information.

Parameters
[in]streamIdStream index.
[in]targetIndThe target index.
[in]reidTensorBatchBatch reid tensor to get the memory pointers.
[out]reidObjThe target's ReID vector memory pointers and feature size.

Implements IReID.

◆ outputTargetReIDObj() [2/2]

void DummyReID::outputTargetReIDObj ( NvMOTStreamId  streamId,
uint  targetInd,
NvDsReidTensorBatch &  reidTensorBatch,
NvDsObjReid &  reidObj 
)
overridevirtual

Output a target's ReID vector information.

Parameters
[in]streamIdStream index.
[in]targetIndThe target index.
[in]reidTensorBatchBatch reid tensor to get the memory pointers.
[out]reidObjThe target's ReID vector memory pointers and feature size.

Implements IReID.

◆ queryParams() [1/2]

void DummyReID::queryParams ( NvMOTQuery &  paramsQuery)
virtual

Populate the capabilities reported to the tracker.

Parameters
[out]paramsQueryThe output query parameters.

Implements IReID.

◆ queryParams() [2/2]

void DummyReID::queryParams ( NvMOTQuery &  paramsQuery)
virtual

Populate the capabilities reported to the tracker.

Parameters
[out]paramsQueryThe output query parameters.

Implements IReID.

◆ removeStream() [1/2]

void DummyReID::removeStream ( const NvMOTStreamId  videoStreamId)
overridevirtual

Remove a stream's reid features.

Parameters
[in]videoStreamIdVideo stream id.

Implements IReID.

◆ removeStream() [2/2]

void DummyReID::removeStream ( const NvMOTStreamId  videoStreamId)
overridevirtual

Remove a stream's reid features.

Parameters
[in]videoStreamIdVideo stream id.

Implements IReID.

◆ update() [1/2]

void DummyReID::update ( )
overridevirtual

Update ReID feature gallery after data association.

Implements IReID.

◆ update() [2/2]

void DummyReID::update ( )
overridevirtual

Update ReID feature gallery after data association.

Implements IReID.

Field Documentation

◆ m_isModelInit

bool DummyReID::m_isModelInit
protected

Reid status if reid model initialized.

Definition at line 146 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/DummyReID.hpp.

Referenced by isModelInitialized().

◆ m_isRuntimeInit

bool DummyReID::m_isRuntimeInit
protected

Reid status if runtime variables initialized.

Definition at line 147 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/DummyReID.hpp.

Referenced by isRuntimeInitialized().

◆ m_params

DummyReIDConfigParams DummyReID::m_params
protected

Config params for reid module.

Definition at line 148 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/DummyReID.hpp.

Referenced by getReIDType().


The documentation for this class was generated from the following file: