NVIDIA DeepStream SDK API Reference

9.2 Release
DsLowLevelTracker Class Reference

Detailed Description

Adapts test frame and ROI batches to the low-level tracker API.

Definition at line 33 of file sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

Collaboration diagram for DsLowLevelTracker:

Public Member Functions

 DsLowLevelTracker ()
 Initialize empty low-level tracker input and output storage. More...
 
 ~DsLowLevelTracker ()
 Deinitialize the tracker context and release allocated metadata. More...
 
bool isInitialized ()
 Report whether the low-level tracker is initialized. More...
 
void initialize (const uint32_t gpuId, const int maxVideoStreams, const int numVideoStreams, const int maxObjectsPerFrame, const int numTransforms, const uint maxWidth, const uint maxHeight, const uint maxPitch, const NvBufSurfaceColorFormat srcImgColorFormat, std::string lowLevelTrackerConfigFilePath="", const int debugVerboseLevel=0)
 Allocate tracker metadata and initialize a low-level tracking context. More...
 
const NvMOTTrackedObjBatch & update (const FrameBatch &framesInBatch, const int numTransforms, RoiBatch rois=RoiBatch(), const bool isDetectionDone=false, const uint32_t frameBatchNo=0)
 Process a batch of frames and return the current tracker output. More...
 
const void removeStream (const NvMOTStreamId videoStreamID)
 Remove a stream from the low-level tracker context. More...
 
const std::map< NvMOTStreamId, NvMOTFrame * > getMotInputParams ()
 Return input frame metadata keyed by video stream ID. More...
 
 DsLowLevelTracker ()
 Initialize empty low-level tracker input and output storage. More...
 
 ~DsLowLevelTracker ()
 Deinitialize the tracker context and release allocated metadata. More...
 
bool isInitialized ()
 Report whether the low-level tracker is initialized. More...
 
void initialize (const uint32_t gpuId, const int maxVideoStreams, const int numVideoStreams, const int maxObjectsPerFrame, const int numTransforms, const uint maxWidth, const uint maxHeight, const uint maxPitch, const NvBufSurfaceColorFormat srcImgColorFormat, std::string lowLevelTrackerConfigFilePath="", const int debugVerboseLevel=0)
 Allocate tracker metadata and initialize a low-level tracking context. More...
 
const NvMOTTrackedObjBatch & update (const FrameBatch &framesInBatch, const int numTransforms, RoiBatch rois=RoiBatch(), const bool isDetectionDone=false, const uint32_t frameBatchNo=0)
 Process a batch of frames and return the current tracker output. More...
 
const void removeStream (const NvMOTStreamId videoStreamID)
 Remove a stream from the low-level tracker context. More...
 
const std::map< NvMOTStreamId, NvMOTFrame * > getMotInputParams ()
 Return input frame metadata keyed by video stream ID. More...
 

Protected Member Functions

void initializeLowLeveTracker (uint maxWidth, uint maxHeight, uint maxPitch, NvBufSurfaceColorFormat colorFormat, uint maxStream, uint numTransforms, std::string lowLevelTrackerConfigFilePath="")
 Recreate the low-level tracker context for configured transforms and streams. More...
 
void allocateMotOutputData (const int maxVideoStreams, const int maxObjectsPerFrame)
 Allocate current-frame tracker output storage. More...
 
void deAllocateMotOutputData ()
 Release current-frame tracker output storage. More...
 
void allocateMotInputData (const int numTransforms, const int numVideoStreams, const int maxObjectsPerFrame)
 Allocate low-level tracker input storage. More...
 
void deAllocateMotInputData ()
 Release low-level tracker input storage. More...
 
bool generateMotInputParams (const FrameBatch &framesInBatch, const int numTransforms, RoiBatch &rois, const bool isDetectionDone, const uint32_t frameBatchNo=0)
 Populate low-level tracker input metadata from frame and ROI batches. More...
 
void initializeLowLeveTracker (uint maxWidth, uint maxHeight, uint maxPitch, NvBufSurfaceColorFormat colorFormat, uint maxStream, uint numTransforms, std::string lowLevelTrackerConfigFilePath="")
 Recreate the low-level tracker context for configured transforms and streams. More...
 
void allocateMotOutputData (const int maxVideoStreams, const int maxObjectsPerFrame)
 Allocate current-frame tracker output storage. More...
 
void deAllocateMotOutputData ()
 Release current-frame tracker output storage. More...
 
void allocateMotInputData (const int numTransforms, const int numVideoStreams, const int maxObjectsPerFrame)
 Allocate low-level tracker input storage. More...
 
void deAllocateMotInputData ()
 Release low-level tracker input storage. More...
 
bool generateMotInputParams (const FrameBatch &framesInBatch, const int numTransforms, RoiBatch &rois, const bool isDetectionDone, const uint32_t frameBatchNo=0)
 Populate low-level tracker input metadata from frame and ROI batches. More...
 

Protected Attributes

NvMOTTrackedObjBatch m_motOutputObjectsMeta
 Current-frame output from the tracker. More...
 
NvMOTProcessParams m_motInputParams
 Input batch submitted to the tracker. More...
 
NvMOTMiscConfig m_motMiscConfig
 Miscellaneous tracker configuration. More...
 
NvMOTContext * mp_MotCtx
 Low-level tracker context. More...
 
NvMOTConfigResponse m_motConfigResponse
 Response to the tracker configuration request. More...
 
NvMOTCompute m_computeType
 Requested tracker compute target. More...
 
NvBufSurfaceColorFormat m_srcImgColorFormat
 Source image color format. More...
 
int m_debugVerboseLevel
 Debug verbosity level. More...
 
bool m_isIntialized
 Indicates whether the low-level tracker is initialized. More...
 
bool m_useBatchNumForFrameId = false
 Selects frame-batch numbers instead of per-stream frame numbers. More...
 

Constructor & Destructor Documentation

◆ DsLowLevelTracker() [1/2]

DsLowLevelTracker::DsLowLevelTracker ( )
inline

◆ ~DsLowLevelTracker() [1/2]

DsLowLevelTracker::~DsLowLevelTracker ( )
inline

Deinitialize the tracker context and release allocated metadata.

Deinitialize NvMOT.

De-allocate the output to the tracker.

De-allocate the input to the tracker.

Definition at line 50 of file sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

References deAllocateMotInputData(), deAllocateMotOutputData(), mp_MotCtx, and NvMOT_DeInit().

◆ DsLowLevelTracker() [2/2]

DsLowLevelTracker::DsLowLevelTracker ( )
inline

◆ ~DsLowLevelTracker() [2/2]

DsLowLevelTracker::~DsLowLevelTracker ( )
inline

Deinitialize the tracker context and release allocated metadata.

Deinitialize NvMOT.

De-allocate the output to the tracker.

De-allocate the input to the tracker.

Definition at line 50 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

References deAllocateMotInputData(), deAllocateMotOutputData(), mp_MotCtx, and NvMOT_DeInit().

Member Function Documentation

◆ allocateMotInputData() [1/2]

void DsLowLevelTracker::allocateMotInputData ( const int  numTransforms,
const int  numVideoStreams,
const int  maxObjectsPerFrame 
)
inlineprotected

◆ allocateMotInputData() [2/2]

void DsLowLevelTracker::allocateMotInputData ( const int  numTransforms,
const int  numVideoStreams,
const int  maxObjectsPerFrame 
)
inlineprotected

◆ allocateMotOutputData() [1/2]

void DsLowLevelTracker::allocateMotOutputData ( const int  maxVideoStreams,
const int  maxObjectsPerFrame 
)
inlineprotected

Allocate current-frame tracker output storage.

Parameters
[in]maxVideoStreamsMaximum number of video streams.
[in]maxObjectsPerFrameMaximum number of tracked objects per frame.

This should be equal to or larger than (# of targets)*(max length of shadow tracking)*(# of video streams).

Definition at line 239 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

References deAllocateMotOutputData(), _NvMOTTrackedObjList::frameNum, _NvMOTTrackedObjList::list, _NvMOTTrackedObjBatch::list, m_motOutputObjectsMeta, _NvMOTTrackedObjList::numAllocated, _NvMOTTrackedObjBatch::numAllocated, _NvMOTTrackedObjList::numFilled, _NvMOTTrackedObjBatch::numFilled, _NvMOTTrackedObjList::streamID, and _NvMOTTrackedObjList::valid.

◆ allocateMotOutputData() [2/2]

void DsLowLevelTracker::allocateMotOutputData ( const int  maxVideoStreams,
const int  maxObjectsPerFrame 
)
inlineprotected

Allocate current-frame tracker output storage.

Parameters
[in]maxVideoStreamsMaximum number of video streams.
[in]maxObjectsPerFrameMaximum number of tracked objects per frame.

This should be equal to or larger than (# of targets)*(max length of shadow tracking)*(# of video streams).

Definition at line 239 of file sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

References deAllocateMotOutputData(), _NvMOTTrackedObjList::frameNum, _NvMOTTrackedObjList::list, _NvMOTTrackedObjBatch::list, m_motOutputObjectsMeta, _NvMOTTrackedObjList::numAllocated, _NvMOTTrackedObjBatch::numAllocated, _NvMOTTrackedObjList::numFilled, _NvMOTTrackedObjBatch::numFilled, _NvMOTTrackedObjList::streamID, and _NvMOTTrackedObjList::valid.

Referenced by initialize().

◆ deAllocateMotInputData() [1/2]

void DsLowLevelTracker::deAllocateMotInputData ( )
inlineprotected

◆ deAllocateMotInputData() [2/2]

void DsLowLevelTracker::deAllocateMotInputData ( )
inlineprotected

◆ deAllocateMotOutputData() [1/2]

void DsLowLevelTracker::deAllocateMotOutputData ( )
inlineprotected

◆ deAllocateMotOutputData() [2/2]

void DsLowLevelTracker::deAllocateMotOutputData ( )
inlineprotected

◆ generateMotInputParams() [1/2]

bool DsLowLevelTracker::generateMotInputParams ( const FrameBatch &  framesInBatch,
const int  numTransforms,
RoiBatch &  rois,
const bool  isDetectionDone,
const uint32_t  frameBatchNo = 0 
)
inlineprotected

Populate low-level tracker input metadata from frame and ROI batches.

Parameters
[in]framesInBatchSource images and frame numbers keyed by stream ID.
[in]numTransformsNumber of input transforms per frame.
[in]roisDetection regions keyed by stream ID.
[in]isDetectionDoneIndicates whether detection completed for this batch.
[in]frameBatchNoFrame-batch number used when batch-based frame IDs are enabled.
Returns
True when at least one input frame is populated.

of bytes.

In case of NV12 image, the input cv::Mat image would have 1.5x height in CV_8UC1 format.

There are two planes: Y-ch and UV-ch.

Y-ch in NV12 is uchar.

UV-ch have half of the height of Y-ch.

UV-ch would start after Y-ch.

UV-ch in NV12 is uchar.

There is only one plane where RGBA pixels are interleaved.

RGBA is in uchar4 format.

{bboxInd, bbox, classId, detectionConfidence}.

Definition at line 346 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

References NvBufSurfaceMappedAddr::addr, _NvMOTObjToTrack::bbox, _NvMOTFrame::bufferList, NvBufSurfacePlaneParams::bytesPerPix, _NvMOTObjToTrack::classId, NvBufSurfaceParams::colorFormat, _NvMOTObjToTrack::confidence, NvBufSurfaceParams::dataPtr, NvBufSurfaceParams::dataSize, _NvMOTObjToTrackList::detectionDone, _NvMOTObjToTrack::doTracking, _NvMOTFrame::doTracking, _NvMOTProcessParams::frameList, _NvMOTTimeMeta::frameNum, _NvMOTFrame::frameNum, _NvMOTTimeMeta::frameTimeStamp, _NvMOTTimeMeta::frameTimeValid, Time::getUnixTimestampNanoSeconds(), _NvMOTRect::height, NvBufSurfacePlaneParams::height, NvBufSurfaceParams::height, _NvMOTObjToTrackList::list, _NvMOTTimeMeta::localTimestamp, m_debugVerboseLevel, m_motInputParams, m_srcImgColorFormat, m_useBatchNumForFrameId, NvBufSurfaceParams::mappedAddr, NvBufSurfacePlaneParams::num_planes, _NvMOTObjToTrackList::numAllocated, _NvMOTFrame::numBuffers, _NvMOTObjToTrackList::numFilled, _NvMOTProcessParams::numFrames, NVBUF_COLOR_FORMAT_NV12, NVBUF_COLOR_FORMAT_RGBA, _NvMOTFrame::objectsIn, NvBufSurfacePlaneParams::offset, NvBufSurfacePlaneParams::pitch, NvBufSurfaceParams::pitch, NvBufSurfaceParams::planeParams, NvBufSurfacePlaneParams::psize, _NvMOTFrame::reset, _NvMOTFrame::sensorName, _NvMOTFrame::streamID, _NvMOTFrame::timeMeta, _NvMOTRect::width, NvBufSurfacePlaneParams::width, NvBufSurfaceParams::width, _NvMOTRect::x, and _NvMOTRect::y.

◆ generateMotInputParams() [2/2]

bool DsLowLevelTracker::generateMotInputParams ( const FrameBatch &  framesInBatch,
const int  numTransforms,
RoiBatch &  rois,
const bool  isDetectionDone,
const uint32_t  frameBatchNo = 0 
)
inlineprotected

Populate low-level tracker input metadata from frame and ROI batches.

Parameters
[in]framesInBatchSource images and frame numbers keyed by stream ID.
[in]numTransformsNumber of input transforms per frame.
[in]roisDetection regions keyed by stream ID.
[in]isDetectionDoneIndicates whether detection completed for this batch.
[in]frameBatchNoFrame-batch number used when batch-based frame IDs are enabled.
Returns
True when at least one input frame is populated.

of bytes.

In case of NV12 image, the input cv::Mat image would have 1.5x height in CV_8UC1 format.

There are two planes: Y-ch and UV-ch.

Y-ch in NV12 is uchar.

UV-ch have half of the height of Y-ch.

UV-ch would start after Y-ch.

UV-ch in NV12 is uchar.

There is only one plane where RGBA pixels are interleaved.

RGBA is in uchar4 format.

{bboxInd, bbox, classId, detectionConfidence}.

Definition at line 346 of file sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

References NvBufSurfaceMappedAddr::addr, _NvMOTObjToTrack::bbox, _NvMOTFrame::bufferList, NvBufSurfacePlaneParams::bytesPerPix, _NvMOTObjToTrack::classId, NvBufSurfaceParams::colorFormat, _NvMOTObjToTrack::confidence, NvBufSurfaceParams::dataPtr, NvBufSurfaceParams::dataSize, _NvMOTObjToTrackList::detectionDone, _NvMOTObjToTrack::doTracking, _NvMOTFrame::doTracking, _NvMOTProcessParams::frameList, _NvMOTTimeMeta::frameNum, _NvMOTFrame::frameNum, _NvMOTTimeMeta::frameTimeStamp, _NvMOTTimeMeta::frameTimeValid, Time::getUnixTimestampNanoSeconds(), _NvMOTRect::height, NvBufSurfacePlaneParams::height, NvBufSurfaceParams::height, _NvMOTObjToTrackList::list, _NvMOTTimeMeta::localTimestamp, m_debugVerboseLevel, m_motInputParams, m_srcImgColorFormat, m_useBatchNumForFrameId, NvBufSurfaceParams::mappedAddr, NvBufSurfacePlaneParams::num_planes, _NvMOTObjToTrackList::numAllocated, _NvMOTFrame::numBuffers, _NvMOTObjToTrackList::numFilled, _NvMOTProcessParams::numFrames, NVBUF_COLOR_FORMAT_NV12, NVBUF_COLOR_FORMAT_RGBA, _NvMOTFrame::objectsIn, NvBufSurfacePlaneParams::offset, NvBufSurfacePlaneParams::pitch, NvBufSurfaceParams::pitch, NvBufSurfaceParams::planeParams, NvBufSurfacePlaneParams::psize, _NvMOTFrame::reset, _NvMOTFrame::sensorName, _NvMOTFrame::streamID, _NvMOTFrame::timeMeta, _NvMOTRect::width, NvBufSurfacePlaneParams::width, NvBufSurfaceParams::width, _NvMOTRect::x, and _NvMOTRect::y.

Referenced by update().

◆ getMotInputParams() [1/2]

const std::map<NvMOTStreamId, NvMOTFrame *> DsLowLevelTracker::getMotInputParams ( )
inline

◆ getMotInputParams() [2/2]

const std::map<NvMOTStreamId, NvMOTFrame *> DsLowLevelTracker::getMotInputParams ( )
inline

◆ initialize() [1/2]

void DsLowLevelTracker::initialize ( const uint32_t  gpuId,
const int  maxVideoStreams,
const int  numVideoStreams,
const int  maxObjectsPerFrame,
const int  numTransforms,
const uint  maxWidth,
const uint  maxHeight,
const uint  maxPitch,
const NvBufSurfaceColorFormat  srcImgColorFormat,
std::string  lowLevelTrackerConfigFilePath = "",
const int  debugVerboseLevel = 0 
)
inline

Allocate tracker metadata and initialize a low-level tracking context.

Parameters
[in]gpuIdGPU identifier used by the tracker.
[in]maxVideoStreamsMaximum number of video streams in output storage.
[in]numVideoStreamsNumber of video streams in input storage.
[in]maxObjectsPerFrameMaximum number of objects allocated per frame.
[in]numTransformsNumber of input transforms per frame.
[in]maxWidthMaximum transformed frame width.
[in]maxHeightMaximum transformed frame height.
[in]maxPitchMaximum transformed frame row pitch.
[in]srcImgColorFormatSource image color format.
[in]lowLevelTrackerConfigFilePathPath to the low-level tracker configuration file.
[in]debugVerboseLevelDebug verbosity level.

Allocate mot output for current frame data.

Allocate MOT input data.

Configure tracker component limits.

Leave the per-stream target limit unrestricted.

Leave the per-batch target limit unrestricted.

Initialize the low-level tracker.

Definition at line 80 of file sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

References allocateMotInputData(), allocateMotOutputData(), _NvMOTMiscConfig::gpuId, initializeLowLeveTracker(), m_debugVerboseLevel, m_isIntialized, m_motMiscConfig, and m_srcImgColorFormat.

◆ initialize() [2/2]

void DsLowLevelTracker::initialize ( const uint32_t  gpuId,
const int  maxVideoStreams,
const int  numVideoStreams,
const int  maxObjectsPerFrame,
const int  numTransforms,
const uint  maxWidth,
const uint  maxHeight,
const uint  maxPitch,
const NvBufSurfaceColorFormat  srcImgColorFormat,
std::string  lowLevelTrackerConfigFilePath = "",
const int  debugVerboseLevel = 0 
)
inline

Allocate tracker metadata and initialize a low-level tracking context.

Parameters
[in]gpuIdGPU identifier used by the tracker.
[in]maxVideoStreamsMaximum number of video streams in output storage.
[in]numVideoStreamsNumber of video streams in input storage.
[in]maxObjectsPerFrameMaximum number of objects allocated per frame.
[in]numTransformsNumber of input transforms per frame.
[in]maxWidthMaximum transformed frame width.
[in]maxHeightMaximum transformed frame height.
[in]maxPitchMaximum transformed frame row pitch.
[in]srcImgColorFormatSource image color format.
[in]lowLevelTrackerConfigFilePathPath to the low-level tracker configuration file.
[in]debugVerboseLevelDebug verbosity level.

Allocate mot output for current frame data.

Allocate MOT input data.

Configure tracker component limits.

Leave the per-stream target limit unrestricted.

Leave the per-batch target limit unrestricted.

Initialize the low-level tracker.

Definition at line 80 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

References allocateMotInputData(), allocateMotOutputData(), _NvMOTMiscConfig::gpuId, initializeLowLeveTracker(), m_debugVerboseLevel, m_isIntialized, m_motMiscConfig, and m_srcImgColorFormat.

◆ initializeLowLeveTracker() [1/2]

void DsLowLevelTracker::initializeLowLeveTracker ( uint  maxWidth,
uint  maxHeight,
uint  maxPitch,
NvBufSurfaceColorFormat  colorFormat,
uint  maxStream,
uint  numTransforms,
std::string  lowLevelTrackerConfigFilePath = "" 
)
inlineprotected

Recreate the low-level tracker context for configured transforms and streams.

Parameters
[in]maxWidthMaximum transformed frame width.
[in]maxHeightMaximum transformed frame height.
[in]maxPitchMaximum transformed frame row pitch.
[in]colorFormatTransformed frame color format.
[in]maxStreamMaximum number of video streams.
[in]numTransformsNumber of input transforms per frame.
[in]lowLevelTrackerConfigFilePathPath to the low-level tracker configuration file.

Store the allocation size in bytes.

Configure the NvMOT context.

Deinitialize NvMOT.

Initialize NvMOT.

Release temporary configuration storage.

Definition at line 181 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

References _NvMOTPerTransformBatchConfig::bufferType, _NvMOTConfig::computeConfig, _NvMOTConfig::customConfigFilePath, _NvMOTConfig::customConfigFilePathSize, m_computeType, m_motConfigResponse, m_motMiscConfig, _NvMOTPerTransformBatchConfig::maxHeight, _NvMOTPerTransformBatchConfig::maxPitch, _NvMOTPerTransformBatchConfig::maxSize, _NvMOTConfig::maxStreams, _NvMOTPerTransformBatchConfig::maxWidth, _NvMOTConfig::miscConfig, mp_MotCtx, _NvMOTConfig::numTransforms, NVBUF_MEM_CUDA_UNIFIED, NvMOT_DeInit(), NvMOT_Init(), NvMOTStatus_OK, and _NvMOTConfig::perTransformBatchConfig.

◆ initializeLowLeveTracker() [2/2]

void DsLowLevelTracker::initializeLowLeveTracker ( uint  maxWidth,
uint  maxHeight,
uint  maxPitch,
NvBufSurfaceColorFormat  colorFormat,
uint  maxStream,
uint  numTransforms,
std::string  lowLevelTrackerConfigFilePath = "" 
)
inlineprotected

Recreate the low-level tracker context for configured transforms and streams.

Parameters
[in]maxWidthMaximum transformed frame width.
[in]maxHeightMaximum transformed frame height.
[in]maxPitchMaximum transformed frame row pitch.
[in]colorFormatTransformed frame color format.
[in]maxStreamMaximum number of video streams.
[in]numTransformsNumber of input transforms per frame.
[in]lowLevelTrackerConfigFilePathPath to the low-level tracker configuration file.

Store the allocation size in bytes.

Configure the NvMOT context.

Deinitialize NvMOT.

Initialize NvMOT.

Release temporary configuration storage.

Definition at line 181 of file sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

References _NvMOTPerTransformBatchConfig::bufferType, _NvMOTConfig::computeConfig, _NvMOTConfig::customConfigFilePath, _NvMOTConfig::customConfigFilePathSize, m_computeType, m_motConfigResponse, m_motMiscConfig, _NvMOTPerTransformBatchConfig::maxHeight, _NvMOTPerTransformBatchConfig::maxPitch, _NvMOTPerTransformBatchConfig::maxSize, _NvMOTConfig::maxStreams, _NvMOTPerTransformBatchConfig::maxWidth, _NvMOTConfig::miscConfig, mp_MotCtx, _NvMOTConfig::numTransforms, NVBUF_MEM_CUDA_UNIFIED, NvMOT_DeInit(), NvMOT_Init(), NvMOTStatus_OK, and _NvMOTConfig::perTransformBatchConfig.

Referenced by initialize().

◆ isInitialized() [1/2]

bool DsLowLevelTracker::isInitialized ( )
inline

Report whether the low-level tracker is initialized.

Definition at line 64 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

References m_isIntialized.

◆ isInitialized() [2/2]

bool DsLowLevelTracker::isInitialized ( )
inline

Report whether the low-level tracker is initialized.

Definition at line 64 of file sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

References m_isIntialized.

◆ removeStream() [1/2]

const void DsLowLevelTracker::removeStream ( const NvMOTStreamId  videoStreamID)
inline

Remove a stream from the low-level tracker context.

Parameters
[in]videoStreamIDVideo stream ID to remove.

Definition at line 149 of file sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

References mp_MotCtx, and NvMOT_RemoveStreams().

◆ removeStream() [2/2]

const void DsLowLevelTracker::removeStream ( const NvMOTStreamId  videoStreamID)
inline

Remove a stream from the low-level tracker context.

Parameters
[in]videoStreamIDVideo stream ID to remove.

Definition at line 149 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

References mp_MotCtx, and NvMOT_RemoveStreams().

◆ update() [1/2]

const NvMOTTrackedObjBatch& DsLowLevelTracker::update ( const FrameBatch &  framesInBatch,
const int  numTransforms,
RoiBatch  rois = RoiBatch(),
const bool  isDetectionDone = false,
const uint32_t  frameBatchNo = 0 
)
inline

Process a batch of frames and return the current tracker output.

Parameters
[in]framesInBatchSource images and frame numbers keyed by stream ID.
[in]numTransformsNumber of input transforms per frame.
[in]roisDetection regions keyed by stream ID.
[in]isDetectionDoneIndicates whether detection completed for this batch.
[in]frameBatchNoFrame-batch number used when batch-based frame IDs are enabled.

Construct the input data.

Process a frame.

Definition at line 123 of file sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

References generateMotInputParams(), m_motInputParams, m_motOutputObjectsMeta, mp_MotCtx, _NvMOTTrackedObjBatch::numFilled, NvMOT_Process(), and NvMOTStatus_OK.

◆ update() [2/2]

const NvMOTTrackedObjBatch& DsLowLevelTracker::update ( const FrameBatch &  framesInBatch,
const int  numTransforms,
RoiBatch  rois = RoiBatch(),
const bool  isDetectionDone = false,
const uint32_t  frameBatchNo = 0 
)
inline

Process a batch of frames and return the current tracker output.

Parameters
[in]framesInBatchSource images and frame numbers keyed by stream ID.
[in]numTransformsNumber of input transforms per frame.
[in]roisDetection regions keyed by stream ID.
[in]isDetectionDoneIndicates whether detection completed for this batch.
[in]frameBatchNoFrame-batch number used when batch-based frame IDs are enabled.

Construct the input data.

Process a frame.

Definition at line 123 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

References generateMotInputParams(), m_motInputParams, m_motOutputObjectsMeta, mp_MotCtx, _NvMOTTrackedObjBatch::numFilled, NvMOT_Process(), and NvMOTStatus_OK.

Field Documentation

◆ m_computeType

NvMOTCompute DsLowLevelTracker::m_computeType
protected

Requested tracker compute target.

Definition at line 508 of file sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

Referenced by DsLowLevelTracker(), and initializeLowLeveTracker().

◆ m_debugVerboseLevel

int DsLowLevelTracker::m_debugVerboseLevel
protected

◆ m_isIntialized

bool DsLowLevelTracker::m_isIntialized
protected

Indicates whether the low-level tracker is initialized.

Definition at line 511 of file sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

Referenced by DsLowLevelTracker(), initialize(), and isInitialized().

◆ m_motConfigResponse

NvMOTConfigResponse DsLowLevelTracker::m_motConfigResponse
protected

Response to the tracker configuration request.

Definition at line 507 of file sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

Referenced by initializeLowLeveTracker().

◆ m_motInputParams

NvMOTProcessParams DsLowLevelTracker::m_motInputParams
protected

◆ m_motMiscConfig

NvMOTMiscConfig DsLowLevelTracker::m_motMiscConfig
protected

Miscellaneous tracker configuration.

Definition at line 505 of file sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

Referenced by initialize(), and initializeLowLeveTracker().

◆ m_motOutputObjectsMeta

NvMOTTrackedObjBatch DsLowLevelTracker::m_motOutputObjectsMeta
protected

◆ m_srcImgColorFormat

NvBufSurfaceColorFormat DsLowLevelTracker::m_srcImgColorFormat
protected

Source image color format.

Definition at line 509 of file sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

Referenced by generateMotInputParams(), and initialize().

◆ m_useBatchNumForFrameId

bool DsLowLevelTracker::m_useBatchNumForFrameId = false
protected

Selects frame-batch numbers instead of per-stream frame numbers.

Definition at line 512 of file sources/libs/nvmultiobjecttracker/include/modules/utility/DsLowLevelTracker.hpp.

Referenced by generateMotInputParams().

◆ mp_MotCtx

NvMOTContext * DsLowLevelTracker::mp_MotCtx
protected

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