NVIDIA DeepStream SDK API Reference

9.2 Release
NvMOTContext Class Reference

Detailed Description

Context for input video streams.

Definition at line 23 of file sources/libs/nvmultiobjecttracker/include/modules/NvMultiObjectTracker/context.hpp.

Collaboration diagram for NvMOTContext:

Public Member Functions

 NvMOTContext (const NvMOTConfig &configIn, NvMOTConfigResponse &configResponse)
 Initialize a tracking context from the negotiated configuration. More...
 
 ~NvMOTContext ()
 Release the batch localizer owned by the context. More...
 
NvMOTStatus queryParams (NvMOTQuery &paramsQuery)
 Output query parameters. More...
 
NvMOTStatus processFrame (const NvMOTProcessParams *params, NvMOTTrackedObjBatch *pTrackedObjectsBatch)
 Process a batch of frames. More...
 
NvMOTStatus retrieveMiscData (const NvMOTProcessParams *params, NvMOTTrackerMiscData *pTrackerMiscData)
 Output miscellaneous past-frame data when it is available. More...
 
NvMOTStatus removeStream (const NvMOTStreamId streamIdMask)
 Terminate trackers and release resources for a stream when the stream is removed. More...
 
NvMOTStatus updateParams (const std::string &configStr)
 Update the subset of tracker parameters that supports dynamic configuration. More...
 
 NvMOTContext (const NvMOTConfig &configIn, NvMOTConfigResponse &configResponse)
 Initialize a tracking context from the negotiated configuration. More...
 
 ~NvMOTContext ()
 Release the batch localizer owned by the context. More...
 
NvMOTStatus queryParams (NvMOTQuery &paramsQuery)
 Output query parameters. More...
 
NvMOTStatus processFrame (const NvMOTProcessParams *params, NvMOTTrackedObjBatch *pTrackedObjectsBatch)
 Process a batch of frames. More...
 
NvMOTStatus retrieveMiscData (const NvMOTProcessParams *params, NvMOTTrackerMiscData *pTrackerMiscData)
 Output miscellaneous past-frame data when it is available. More...
 
NvMOTStatus removeStream (const NvMOTStreamId streamIdMask)
 Terminate trackers and release resources for a stream when the stream is removed. More...
 
NvMOTStatus updateParams (const std::string &configStr)
 Update the subset of tracker parameters that supports dynamic configuration. More...
 

Protected Attributes

NvMOTConfig m_Config
 Tracker configuration retained by the context. More...
 
std::shared_ptr< IBatchLocalizer > m_pLocalizer
 Batch localizer used by this context. More...
 

Constructor & Destructor Documentation

◆ NvMOTContext() [1/2]

NvMOTContext::NvMOTContext ( const NvMOTConfig &  configIn,
NvMOTConfigResponse &  configResponse 
)

Initialize a tracking context from the negotiated configuration.

Parameters
[in]configInTracker configuration supplied by the client.
[out]configResponseConfiguration response populated with initialization status.

◆ ~NvMOTContext() [1/2]

NvMOTContext::~NvMOTContext ( )

Release the batch localizer owned by the context.

◆ NvMOTContext() [2/2]

NvMOTContext::NvMOTContext ( const NvMOTConfig &  configIn,
NvMOTConfigResponse &  configResponse 
)

Initialize a tracking context from the negotiated configuration.

Parameters
[in]configInTracker configuration supplied by the client.
[out]configResponseConfiguration response populated with initialization status.

◆ ~NvMOTContext() [2/2]

NvMOTContext::~NvMOTContext ( )

Release the batch localizer owned by the context.

Member Function Documentation

◆ processFrame() [1/2]

NvMOTStatus NvMOTContext::processFrame ( const NvMOTProcessParams *  params,
NvMOTTrackedObjBatch *  pTrackedObjectsBatch 
)

Process a batch of frames.

Parameters
[in]paramsParameters for the frames to process.
[out]pTrackedObjectsBatchObject tracks produced for the batch.

◆ processFrame() [2/2]

NvMOTStatus NvMOTContext::processFrame ( const NvMOTProcessParams *  params,
NvMOTTrackedObjBatch *  pTrackedObjectsBatch 
)

Process a batch of frames.

Parameters
[in]paramsParameters for the frames to process.
[out]pTrackedObjectsBatchObject tracks produced for the batch.

◆ queryParams() [1/2]

NvMOTStatus NvMOTContext::queryParams ( NvMOTQuery &  paramsQuery)

Output query parameters.

Parameters
[out]paramsQueryQuery structure populated with tracker requirements.

◆ queryParams() [2/2]

NvMOTStatus NvMOTContext::queryParams ( NvMOTQuery &  paramsQuery)

Output query parameters.

Parameters
[out]paramsQueryQuery structure populated with tracker requirements.

◆ removeStream() [1/2]

NvMOTStatus NvMOTContext::removeStream ( const NvMOTStreamId  streamIdMask)

Terminate trackers and release resources for a stream when the stream is removed.

Parameters
[in]streamIdMaskStream ID mask selecting streams to remove.

◆ removeStream() [2/2]

NvMOTStatus NvMOTContext::removeStream ( const NvMOTStreamId  streamIdMask)

Terminate trackers and release resources for a stream when the stream is removed.

Parameters
[in]streamIdMaskStream ID mask selecting streams to remove.

◆ retrieveMiscData() [1/2]

NvMOTStatus NvMOTContext::retrieveMiscData ( const NvMOTProcessParams *  params,
NvMOTTrackerMiscData *  pTrackerMiscData 
)

Output miscellaneous past-frame data when it is available.

Parameters
[in]paramsParameters for the frames to process.
[out]pTrackerMiscDataMiscellaneous tracker output.

◆ retrieveMiscData() [2/2]

NvMOTStatus NvMOTContext::retrieveMiscData ( const NvMOTProcessParams *  params,
NvMOTTrackerMiscData *  pTrackerMiscData 
)

Output miscellaneous past-frame data when it is available.

Parameters
[in]paramsParameters for the frames to process.
[out]pTrackerMiscDataMiscellaneous tracker output.

◆ updateParams() [1/2]

NvMOTStatus NvMOTContext::updateParams ( const std::string &  configStr)

Update the subset of tracker parameters that supports dynamic configuration.

Parameters
[in]configStrStringified YAML configuration parameters to update.

◆ updateParams() [2/2]

NvMOTStatus NvMOTContext::updateParams ( const std::string &  configStr)

Update the subset of tracker parameters that supports dynamic configuration.

Parameters
[in]configStrStringified YAML configuration parameters to update.

Field Documentation

◆ m_Config

NvMOTConfig NvMOTContext::m_Config
protected

Tracker configuration retained by the context.

Definition at line 69 of file sources/libs/nvmultiobjecttracker/include/modules/NvMultiObjectTracker/context.hpp.

◆ m_pLocalizer

std::shared_ptr< IBatchLocalizer > NvMOTContext::m_pLocalizer
protected

Batch localizer used by this context.

Definition at line 70 of file sources/libs/nvmultiobjecttracker/include/modules/NvMultiObjectTracker/context.hpp.


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