NVIDIA DeepStream SDK API Reference

9.1 Release
9.1/sources/includes/nvdstracker.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2018-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 
34 #ifndef _NVMOTRACKER_H_
35 #define _NVMOTRACKER_H_
36 
37 #include <stdint.h>
38 #include <string>
39 #include <chrono>
40 #include <vector>
41 
42 #include "nvbufsurface.h"
43 #include "nvds_tracker_meta.h"
44 
45 #ifdef __cplusplus
46 extern "C"
47 {
48 #endif
49 
50 #define NVMOT_MAX_TRANSFORMS 4
51 
52 typedef uint64_t NvMOTTimeStamp;
53 typedef uint64_t NvMOTStreamId;
54 typedef uint32_t NvMOTFrameNum;
55 typedef uint16_t NvMOTClassId;
57 
59 static inline TimeStamp NvDsCurrentTimestampNs(void)
60 {
61  return static_cast<TimeStamp>(std::chrono::duration_cast<std::chrono::nanoseconds>(
62  std::chrono::system_clock::now().time_since_epoch()).count());
63 }
64 
66 typedef struct _NvMOTTimeMeta
67 {
71  bool frameTimeValid;
73 
80 #define NVMOTCOMP_GPU 0x01
81 #define NVMOTCOMP_CPU 0x02
82 #define NVMOTCOMP_PVA 0x04
83 #define NVMOTCOMP_ANY 0xff
85 #define NVMOTCOMP_DEFAULT NVMOTCOMP_ANY
86 
90 typedef uint8_t NvMOTCompute;
91 
96 typedef struct _NvMOTPerTransformBatchConfig
97 {
101  uint32_t maxWidth;
103  uint32_t maxHeight;
105  uint32_t maxPitch;
107  uint32_t maxSize;
109 
110 
114 typedef struct _NvMOTMiscConfig
115 {
117  uint32_t gpuId;
119  typedef void (*logMsg) (int logLevel, const char * format, ...);
121 
130 typedef struct _NvMOTConfig
131 {
135  uint32_t maxStreams;
137  uint32_t maxBufSurfAddrSize;
140  uint8_t numTransforms;
147  uint16_t customConfigFilePathSize;
150  char* customConfigFilePath;
151 } NvMOTConfig;
152 
156 typedef enum
157 {
163 
164 typedef enum
165 {
175 
182 typedef struct _NvMOTConfigResponse
183 {
196 
200 typedef enum
201 {
205 } NvMOTStatus;
206 
210 typedef struct _NvMOTRect
211 {
213  float x;
215  float y;
217  float width;
219  float height;
220 } NvMOTRect;
221 
225 typedef struct _NvMOTMask
226 {
228  float* data;
230  uint32_t width;
232  uint32_t height;
234  uint32_t allocatedSize;
235 } NvMOTMask;
236 
242 typedef struct _NvMOTObjToTrack
243 {
247  NvMOTRect bbox;
249  float confidence;
251  bool doTracking;
253  void *pPreservedData;
255 
259 typedef struct _NvMOTObjToTrackList
260 {
263  bool detectionDone;
267  uint32_t numAllocated;
269  uint32_t numFilled;
271 
281 typedef struct _NvMOTFrame
282 {
288  uint32_t seq_index;
295  uint32_t srcFrameWidth;
297  uint32_t srcFrameHeight;
299  bool doTracking;
301  bool reset;
303  uint8_t numBuffers;
312  const char* sensorName;
313 } NvMOTFrame;
314 
318 typedef struct _NvMOTTrackedObj
319 {
323  uint64_t trackingId;
325  NvMOTRect bbox;
327  float confidence;
329  uint32_t age;
335  float visibility;
337  float ptImgFeet[2];
339  float ptWorldFeet[2];
343  NvMOTMask mask;
348  float bbox3DImg[8][2];
350  uint8_t reserved[128];
352 
356 typedef struct _NvMOTTrackedObjList
357 {
363  bool valid;
367  uint32_t numAllocated;
369  uint32_t numFilled;
371 
375 typedef struct _NvMOTTrackedObjBatch
376 {
380  uint32_t numAllocated;
382  uint32_t numFilled;
386 
390 typedef struct _NvMOTTrackerMiscData
391 {
394 
397 
400 
402 
408 typedef struct _NvMOTProcessParams
409 {
410  uint32_t numFrames;
413 
417 struct NvMOTContext;
418 typedef struct NvMOTContext* NvMOTContextHandle;
419 
420 typedef struct _NvMOTQuery
421 {
426  uint8_t numTransforms;
432  uint32_t maxTargetsPerStream;
434  uint32_t maxShadowTrackingAge;
436  bool outputReidTensor;
438  uint32_t reidFeatureSize;
440  bool outputTrajectory;
442  bool outputVisibility;
444  bool outputFootLocation;
446  bool outputConvexHull;
448  uint32_t maxConvexHullSize;
450  bool supportPastFrame;
456  uint32_t maxTrajectoryBufferLength;
458  bool outputShadowTracks;
461 } NvMOTQuery;
462 
481  NvMOTContextHandle *pContextHandle,
482  NvMOTConfigResponse *pConfigResponse);
483 
491 void NvMOT_DeInit(NvMOTContextHandle contextHandle);
492 
512  NvMOTProcessParams *pParams,
513  NvMOTTrackedObjBatch *pTrackedObjectsBatch);
514 
528  NvMOTProcessParams *pParams,
529  NvMOTTrackerMiscData *pTrackerMiscData);
544 NvMOTStatus NvMOT_Query(uint16_t customConfigFilePathSize, char* pCustomConfigFilePath, NvMOTQuery *pQuery);
545 
546 
564 
565 
578 NvMOTStatus NvMOT_UpdateParams(NvMOTContextHandle contextHandle, const std::string &configStr );
579  // end of API group
581 
582 #ifdef __cplusplus
583 }
584 #endif
585 
586 #endif
_NvMOTPerTransformBatchConfig
Holds a configuration for batches for an input transform (a scaling/color conversion).
Definition: sources/includes/nvdstracker.h:96
NvMOTFrame
struct _NvMOTFrame NvMOTFrame
Holds a frame containing the image and objects to be tracked.
_NvMOTMiscConfig::logMsg
void(* logMsg)(int logLevel, const char *format,...)
Holds a pointer to a callback for logging messages.
Definition: sources/includes/nvdstracker.h:119
NvMOTContextHandle
struct NvMOTContext * NvMOTContextHandle
Definition: sources/includes/nvdstracker.h:418
_NvMOTQuery::reidFeatureSize
uint32_t reidFeatureSize
Reid feature size.
Definition: sources/includes/nvdstracker.h:438
NvMOTConfigStatus_Invalid
@ NvMOTConfigStatus_Invalid
Definition: 9.1/sources/includes/nvdstracker.h:160
NvMOTTrackedObj
struct _NvMOTTrackedObj NvMOTTrackedObj
Holds information about each tracked object.
_NvMOTPerTransformBatchConfig::maxPitch
uint32_t maxPitch
Holds the maximum pitch of each buffer.
Definition: sources/includes/nvdstracker.h:105
_NvMOTTimeMeta::frameNum
NvMOTFrameNum frameNum
Same logical frame as NvMOTFrame::frameNum.
Definition: sources/includes/nvdstracker.h:68
_NvMOTTrackedObj::reserved
uint8_t reserved[128]
Reserved custom data field.
Definition: sources/includes/nvdstracker.h:350
NvMOTStatus_Error
@ NvMOTStatus_Error
Definition: 9.1/sources/includes/nvdstracker.h:203
_NvMOTQuery::outputConvexHull
bool outputConvexHull
Whether to output convex hull in user meta.
Definition: sources/includes/nvdstracker.h:446
_NvMOTQuery::supportPastFrame
bool supportPastFrame
Holds a Boolean which is true if outputing past frame is supported.
Definition: sources/includes/nvdstracker.h:450
NvMOTTimeStamp
uint64_t NvMOTTimeStamp
Definition: 9.1/sources/includes/nvdstracker.h:52
_NvMOTQuery::maxShadowTrackingAge
uint32_t maxShadowTrackingAge
Holds maximum shadow tracking age per stream.
Definition: sources/includes/nvdstracker.h:434
NvMOTStatus_OK
@ NvMOTStatus_OK
Definition: 9.1/sources/includes/nvdstracker.h:202
NvMOTPerTransformBatchConfig
struct _NvMOTPerTransformBatchConfig NvMOTPerTransformBatchConfig
Holds a configuration for batches for an input transform (a scaling/color conversion).
_NvMOTQuery::batchMode
NvMOTBatchMode batchMode
Holds flags for whether batch or none batch mode is supported.
Definition: sources/includes/nvdstracker.h:452
_NvMOTMask::height
uint32_t height
Height of the segmentation mask.
Definition: sources/includes/nvdstracker.h:232
_NvMOTQuery::maxTargetsPerStream
uint32_t maxTargetsPerStream
Holds maximum number of targets per stream.
Definition: sources/includes/nvdstracker.h:432
_NvMOTTrackedObj::bbox3DWorld
NvDsObj3DBbox bbox3DWorld
3D bbox in world co-ordinates.
Definition: sources/includes/nvdstracker.h:345
_NvMOTObjToTrack::confidence
float confidence
Holds the detection confidence of the object.
Definition: sources/includes/nvdstracker.h:249
NvMOTClassId
uint16_t NvMOTClassId
Definition: 9.1/sources/includes/nvdstracker.h:55
NvMOTStatus
NvMOTStatus
Defines generic status codes for tracking operations.
Definition: sources/includes/nvdstracker.h:200
_NvMOTConfigResponse::customConfigStatus
NvMOTConfigStatus customConfigStatus
Holds the status of the custom configurations.
Definition: sources/includes/nvdstracker.h:194
_NvMOTMiscConfig::gpuId
uint32_t gpuId
Holds the ID of the GPU to be used.
Definition: sources/includes/nvdstracker.h:117
_NvMOTTimeMeta::frameTimeValid
bool frameTimeValid
True if frameTimeStamp is populated.
Definition: sources/includes/nvdstracker.h:71
NvMOTBatchMode
NvMOTBatchMode
Definition: sources/includes/nvdstracker.h:164
_NvMOTQuery::numTransforms
uint8_t numTransforms
Holds the number of NvMOTPerTransformBatchConfig entries in perTransformBatchConfig.
Definition: sources/includes/nvdstracker.h:426
_NvMOTMask::data
float * data
Holds the segmentation mask.
Definition: sources/includes/nvdstracker.h:228
_NvMOTConfigResponse::summaryStatus
NvMOTConfigStatus summaryStatus
Holds the summary status of the entire configuration request.
Definition: sources/includes/nvdstracker.h:185
nvbufsurface.h
NvMOTTrackedObjBatch
struct _NvMOTTrackedObjBatch NvMOTTrackedObjBatch
Holds a batch of lists of tracked objects.
NvMOT_DeInit
void NvMOT_DeInit(NvMOTContextHandle contextHandle)
Deinitializes a stream context.
_NvMOTTrackedObjBatch
Holds a batch of lists of tracked objects.
Definition: sources/includes/nvdstracker.h:375
NvMOT_RemoveStreams
NvMOTStatus NvMOT_RemoveStreams(NvMOTContextHandle contextHandle, NvMOTStreamId streamIdMask)
Removes streams from a batch.
_NvMOTTrackedObj::reid
NvDsObjReid reid
Each target’s reid vector information.
Definition: sources/includes/nvdstracker.h:333
_NvMOTObjToTrackList::numFilled
uint32_t numFilled
Holds the number of populated blocks in the list.
Definition: sources/includes/nvdstracker.h:269
_NvMOTPerTransformBatchConfig::maxHeight
uint32_t maxHeight
Holds the maximum height of each frame.
Definition: sources/includes/nvdstracker.h:103
_NvMOTTrackedObjList::numAllocated
uint32_t numAllocated
Holds the number of blocks allocated for the list.
Definition: sources/includes/nvdstracker.h:367
NvMOTTrackerMiscData
struct _NvMOTTrackerMiscData NvMOTTrackerMiscData
Tracker misc data.
NvMOTConfigStatus
NvMOTConfigStatus
Defines configuration request return codes.
Definition: 9.1/sources/includes/nvdstracker.h:156
_NvMOTTrackedObjList::list
NvMOTTrackedObj * list
Holds a pointer to a list or array of object information blocks.
Definition: sources/includes/nvdstracker.h:365
_NvMOTProcessParams::numFrames
uint32_t numFrames
Holds the number of frames in the batch.
Definition: sources/includes/nvdstracker.h:410
nvds_tracker_meta.h
_NvMOTTrackerMiscData::pPastFrameObjBatch
NvDsTargetMiscDataBatch * pPastFrameObjBatch
Holds past frame data of current batch.
Definition: sources/includes/nvdstracker.h:393
_NvMOTFrame::bufferList
NvBufSurfaceParams ** bufferList
Holds a pointer to an array of pointers to buffer parameter structures.
Definition: sources/includes/nvdstracker.h:306
_NvMOTRect
Holds the definition of a rectangle.
Definition: sources/includes/nvdstracker.h:210
_NvDsObjReid
Holds Reid Vector information for an object.
Definition: sources/includes/nvds_tracker_meta.h:164
_NvMOTFrame
Holds a frame containing the image and objects to be tracked.
Definition: sources/includes/nvdstracker.h:281
_NvMOTTrackedObj::bbox
NvMOTRect bbox
Holds the bounding box.
Definition: sources/includes/nvdstracker.h:325
_NvMOTObjToTrackList::list
NvMOTObjToTrack * list
Holds a pointer to a list or array of object information blocks.
Definition: sources/includes/nvdstracker.h:265
NvMOT_Query
NvMOTStatus NvMOT_Query(uint16_t customConfigFilePathSize, char *pCustomConfigFilePath, NvMOTQuery *pQuery)
Query tracker lib capabilities and requirements.
_NvMOTFrame::reset
bool reset
Holds a Boolean which is true to reset tracking for the stream.
Definition: sources/includes/nvdstracker.h:301
_NvMOTTrackedObj
Holds information about each tracked object.
Definition: sources/includes/nvdstracker.h:318
NvMOTCompute
uint8_t NvMOTCompute
Definition: sources/includes/nvdstracker.h:90
_NvMOTFrame::srcFrameWidth
uint32_t srcFrameWidth
Holds the width of the original source frame.
Definition: sources/includes/nvdstracker.h:295
NvMOTContextHandle
struct NvMOTContext * NvMOTContextHandle
Definition: 9.1/sources/includes/nvdstracker.h:418
_NvMOTTrackedObj::trackingId
uint64_t trackingId
Holds a unique ID for the object, assigned by the tracker.
Definition: sources/includes/nvdstracker.h:323
_NvMOTFrame::timeMeta
NvMOTTimeMeta timeMeta
Holds stream PTS / NTP time, host-local receive time, and frame index.
Definition: sources/includes/nvdstracker.h:293
_NvMOTFrame::objectsIn
NvMOTObjToTrackList objectsIn
Holds a list of objects in this frame which are to be tracked.
Definition: sources/includes/nvdstracker.h:309
_NvMOTQuery::outputShadowTracks
bool outputShadowTracks
Whether to output Shadow Tracks info in user meta.
Definition: sources/includes/nvdstracker.h:458
_NvMOTTrackedObj::visibility
float visibility
Object visibility.
Definition: sources/includes/nvdstracker.h:335
NvMOTQuery
struct _NvMOTQuery NvMOTQuery
_NvMOTTimeMeta::localTimestamp
TimeStamp localTimestamp
Host wall ns from NvDsCurrentTimestampNs when prepared.
Definition: sources/includes/nvdstracker.h:70
NvMOT_UpdateParams
NvMOTStatus NvMOT_UpdateParams(NvMOTContextHandle contextHandle, const std::string &configStr)
Updates Dynamic Parameters for the low level tracker.
_NvMOTTrackedObjList::frameNum
NvMOTFrameNum frameNum
Holds the frame number for objects in the list.
Definition: sources/includes/nvdstracker.h:361
NvMOTFrameNum
uint32_t NvMOTFrameNum
Definition: sources/includes/nvdsmotmetafusion.h:51
_NvMOTTrackedObj::ptImgFeet
float ptImgFeet[2]
Foot location in frame coordinates.
Definition: sources/includes/nvdstracker.h:337
_NvMOTObjToTrack::classId
NvMOTClassId classId
Holds the class of the object.
Definition: sources/includes/nvdstracker.h:245
NvMOTMask
struct _NvMOTMask NvMOTMask
Holds the segmentaiton mask of an object.
NvBufSurfaceParams
Hold the information of single buffer in the batch.
Definition: sources/includes/nvbufsurface.h:562
NvMOTBatchMode_MaxValue
@ NvMOTBatchMode_MaxValue
Max value of the enum.
Definition: 9.1/sources/includes/nvdstracker.h:173
_NvMOTConfigResponse
Holds a tracker's configuration status.
Definition: sources/includes/nvdstracker.h:182
NvMOT_RetrieveMiscData
NvMOTStatus NvMOT_RetrieveMiscData(NvMOTContextHandle contextHandle, NvMOTProcessParams *pParams, NvMOTTrackerMiscData *pTrackerMiscData)
Process the past-frame data in the low-level tracker lib and retrieve.
_NvMOTTrackerMiscData::pTerminatedTrackBatch
NvDsTargetMiscDataBatch * pTerminatedTrackBatch
Holds the history of terminated tracks.
Definition: sources/includes/nvdstracker.h:396
_NvMOTQuery::memType
NvBufSurfaceMemType memType
Holds the preferred memory type for input buffers.
Definition: sources/includes/nvdstracker.h:430
_NvMOTFrame::streamID
NvMOTStreamId streamID
Holds the stream ID of the stream source for this frame.
Definition: sources/includes/nvdstracker.h:284
_NvMOTObjToTrack::pPreservedData
void * pPreservedData
Holds a pointer to client data associated with the object.
Definition: sources/includes/nvdstracker.h:253
_NvMOTTrackedObj::ptWorldFeet
float ptWorldFeet[2]
Foot location in 3D coordinates.
Definition: sources/includes/nvdstracker.h:339
_NvMOTQuery::outputReidTensor
bool outputReidTensor
Whether to output ReID tensor in user meta.
Definition: sources/includes/nvdstracker.h:436
_NvMOTConfig::miscConfig
NvMOTMiscConfig miscConfig
Holds miscellaneous configurations.
Definition: sources/includes/nvdstracker.h:145
_NvMOTConfig::customConfigFilePathSize
uint16_t customConfigFilePathSize
Holds the length of customConfigFilePath.
Definition: sources/includes/nvdstracker.h:147
_NvMOTQuery::outputVisibility
bool outputVisibility
Whether to output visibility in user meta.
Definition: sources/includes/nvdstracker.h:442
_NvMOTFrame::numBuffers
uint8_t numBuffers
Holds the number of entries in bufferList.
Definition: sources/includes/nvdstracker.h:303
_NvMOTTrackedObj::age
uint32_t age
Holds the track length in frames.
Definition: sources/includes/nvdstracker.h:329
_NvMOTTrackerMiscData::pShadowTrackBatch
NvDsTargetMiscDataBatch * pShadowTrackBatch
Holds the frame info of shadow tracks.
Definition: sources/includes/nvdstracker.h:399
_NvDsObjConvexHull
Holds convex hull information.
Definition: sources/includes/nvds_tracker_meta.h:151
_NvMOTQuery::computeConfig
NvMOTCompute computeConfig
Holds flags for supported compute targets.
Definition: sources/includes/nvdstracker.h:423
_NvMOTObjToTrack::bbox
NvMOTRect bbox
Holds the bounding box of the object.
Definition: sources/includes/nvdstracker.h:247
_NvMOTPerTransformBatchConfig::maxSize
uint32_t maxSize
Holds the maximum size of the buffer in bytes.
Definition: sources/includes/nvdstracker.h:107
_NvMOTTrackedObj::confidence
float confidence
Holds the tracking confidence of the object.
Definition: sources/includes/nvdstracker.h:327
_NvMOTTrackedObjBatch::numFilled
uint32_t numFilled
Holds the number of filled blocks in the list.
Definition: sources/includes/nvdstracker.h:382
NvMOTConfigStatus_OK
@ NvMOTConfigStatus_OK
Definition: 9.1/sources/includes/nvdstracker.h:158
NvMOTConfigStatus_Unsupported
@ NvMOTConfigStatus_Unsupported
Definition: 9.1/sources/includes/nvdstracker.h:161
NvMOTStreamId
uint64_t NvMOTStreamId
Definition: 9.1/sources/includes/nvdstracker.h:53
_NvMOTMask::allocatedSize
uint32_t allocatedSize
Allocated size.
Definition: sources/includes/nvdstracker.h:234
_NvMOTTrackedObjBatch::numAllocated
uint32_t numAllocated
Holds the number of blocks allocated for the list.
Definition: sources/includes/nvdstracker.h:380
_NvMOTObjToTrack
Holds information about an object to be tracked.
Definition: sources/includes/nvdstracker.h:242
NvMOTBatchMode
NvMOTBatchMode
Definition: 9.1/sources/includes/nvdstracker.h:164
NvMOT_Process
NvMOTStatus NvMOT_Process(NvMOTContextHandle contextHandle, NvMOTProcessParams *pParams, NvMOTTrackedObjBatch *pTrackedObjectsBatch)
Processes a batch.
_NvMOTObjToTrackList::numAllocated
uint32_t numAllocated
Holds the number of blocks allocated for the list.
Definition: sources/includes/nvdstracker.h:267
NvBufSurfaceMemType
NvBufSurfaceMemType
Specifies memory types for NvBufSurface.
Definition: sources/includes/nvbufsurface.h:350
_NvMOTRect::height
float height
Holds the height of the bounding box, in pixels.
Definition: sources/includes/nvdstracker.h:219
_NvMOTConfig::computeConfig
NvMOTCompute computeConfig
Holds the compute target.
Definition: sources/includes/nvdstracker.h:133
NvMOTConfigResponse
struct _NvMOTConfigResponse NvMOTConfigResponse
Holds a tracker's configuration status.
NvMOTConfigStatus_Error
@ NvMOTConfigStatus_Error
Definition: 9.1/sources/includes/nvdstracker.h:159
_NvMOTObjToTrack::doTracking
bool doTracking
Holds a Boolean which is true if NvMOT is to track this object.
Definition: sources/includes/nvdstracker.h:251
_NvMOTConfig::maxStreams
uint32_t maxStreams
Holds the maximum number of streams in a batch.
Definition: sources/includes/nvdstracker.h:135
_NvMOTProcessParams
Holds parameters for processing a batch.
Definition: sources/includes/nvdstracker.h:408
NvMOT_Init
NvMOTStatus NvMOT_Init(NvMOTConfig *pConfigIn, NvMOTContextHandle *pContextHandle, NvMOTConfigResponse *pConfigResponse)
Initializes a tracking context for a batch of one or more image streams.
_NvMOTConfig::maxBufSurfAddrSize
uint32_t maxBufSurfAddrSize
Holds the max number of surface buffer addresses from buffer pool.
Definition: sources/includes/nvdstracker.h:137
_NvMOTTrackedObjList
Holds a list of tracked objects.
Definition: sources/includes/nvdstracker.h:356
_NvMOTQuery::maxTrajectoryBufferLength
uint32_t maxTrajectoryBufferLength
maximum frame of history to save per terminated track.
Definition: sources/includes/nvdstracker.h:456
NvMOTBatchMode_Error
@ NvMOTBatchMode_Error
Unsupported batch mode.
Definition: 9.1/sources/includes/nvdstracker.h:167
_NvMOTQuery
Definition: sources/includes/nvdstracker.h:420
NvMOTMiscConfig
struct _NvMOTMiscConfig NvMOTMiscConfig
Holds miscellaneous configurations.
_NvMOTFrame::frameNum
NvMOTFrameNum frameNum
Holds the sequential frame number that identifies the frame within the stream.
Definition: sources/includes/nvdstracker.h:291
_NvMOTPerTransformBatchConfig::maxWidth
uint32_t maxWidth
Holds the maximum width of each frame.
Definition: sources/includes/nvdstracker.h:101
_NvMOTTrackedObj::mask
NvMOTMask mask
Each object's segmentation mask.
Definition: sources/includes/nvdstracker.h:343
NvDsCurrentTimestampNs
static TimeStamp NvDsCurrentTimestampNs(void)
Wall-clock time in nanoseconds since the Unix epoch (std::chrono::system_clock).
Definition: 9.1/sources/includes/nvdstracker.h:59
NvMOTStatus
NvMOTStatus
Defines generic status codes for tracking operations.
Definition: 9.1/sources/includes/nvdstracker.h:200
NvMOTStatus_Invalid_Path
@ NvMOTStatus_Invalid_Path
Definition: 9.1/sources/includes/nvdstracker.h:204
_NvMOTRect::width
float width
Holds the width of the bounding box, in pixels.
Definition: sources/includes/nvdstracker.h:217
_NvMOTObjToTrackList::detectionDone
bool detectionDone
Holds a Boolean which is true if detection was done on this frame even if the list of objects to trac...
Definition: sources/includes/nvdstracker.h:263
NvMOTProcessParams
struct _NvMOTProcessParams NvMOTProcessParams
Holds parameters for processing a batch.
_NvMOTTrackedObj::bbox3DImg
float bbox3DImg[8][2]
3D bbox in frame co-ordinates.
Definition: sources/includes/nvdstracker.h:348
NvMOTFrameNum
uint32_t NvMOTFrameNum
Definition: 9.1/sources/includes/nvdstracker.h:54
_NvMOTProcessParams::frameList
NvMOTFrame * frameList
Holds a pointer to an array of frame data.
Definition: sources/includes/nvdstracker.h:411
_NvMOTTrackedObj::classId
NvMOTClassId classId
Holds the class ID of the object to be tracked.
Definition: sources/includes/nvdstracker.h:321
NvMOTCompute
uint8_t NvMOTCompute
Definition: 9.1/sources/includes/nvdstracker.h:90
_NvMOTFrame::srcFrameHeight
uint32_t srcFrameHeight
Holds the height of the original source frame.
Definition: sources/includes/nvdstracker.h:297
_NvMOTRect::x
float x
Holds the left edge position of the object bounding box, in pixels.
Definition: sources/includes/nvdstracker.h:213
NvMOTBatchMode_NonBatch
@ NvMOTBatchMode_NonBatch
Non-batch processing mode.
Definition: 9.1/sources/includes/nvdstracker.h:171
_NvMOTQuery::maxConvexHullSize
uint32_t maxConvexHullSize
Holdes maximum number of points in a convex hull.
Definition: sources/includes/nvdstracker.h:448
_NvMOTQuery::contextHandle
NvMOTContextHandle contextHandle
Hold the context handle.
Definition: sources/includes/nvdstracker.h:460
_NvMOTRect::y
float y
Holds the top edge position of the object bounding box, in pixels.
Definition: sources/includes/nvdstracker.h:215
_NvMOTTrackedObj::convexHull
NvDsObjConvexHull convexHull
Convex hull information projected on frame.
Definition: sources/includes/nvdstracker.h:341
NvMOTBatchMode_Batch
@ NvMOTBatchMode_Batch
Batch processing mode.
Definition: 9.1/sources/includes/nvdstracker.h:169
_NvMOTConfigResponse::transformBatchStatus
NvMOTConfigStatus transformBatchStatus
Holds the transform batch configuration request status: summary status for all transforms.
Definition: sources/includes/nvdstracker.h:190
_NvMOTPerTransformBatchConfig::bufferType
NvBufSurfaceMemType bufferType
Holds the type of buffer.
Definition: sources/includes/nvdstracker.h:99
NvMOTRect
struct _NvMOTRect NvMOTRect
Holds the definition of a rectangle.
_NvMOTTimeMeta
Per-frame timing: stream PTS (when valid), host-local ns for deltas, and frame index.
Definition: sources/includes/nvdstracker.h:66
_NvMOTFrame::sensorName
const char * sensorName
Holds the sensor name of the stream source (e.g.
Definition: sources/includes/nvdstracker.h:312
_NvMOTTrackedObjList::numFilled
uint32_t numFilled
Holds the number of populated blocks in the list.
Definition: sources/includes/nvdstracker.h:369
TimeStamp
NvMOTTimeStamp TimeStamp
Definition: 9.1/sources/includes/nvdstracker.h:56
NvMOTObjToTrackList
struct _NvMOTObjToTrackList NvMOTObjToTrackList
Holds a list of objects.
NvMOTTrackedObjList
struct _NvMOTTrackedObjList NvMOTTrackedObjList
Holds a list of tracked objects.
NvMOTConfigStatus
NvMOTConfigStatus
Defines configuration request return codes.
Definition: sources/includes/nvdstracker.h:156
_NvDsTargetMiscDataBatch
Batch of all streams of a given target misc output.
Definition: sources/includes/nvds_tracker_meta.h:113
_NvMOTObjToTrackList
Holds a list of objects.
Definition: sources/includes/nvdstracker.h:259
_NvDsObj3DBbox
Holds 3D bbox information for an object.
Definition: sources/includes/nvds_tracker_meta.h:177
_NvMOTQuery::outputTerminatedTracks
bool outputTerminatedTracks
Whether to output terminted Tacks info in user meta.
Definition: sources/includes/nvdstracker.h:454
_NvMOTFrame::doTracking
bool doTracking
Holds a Boolean which is true if objects in this frame are to be tracked.
Definition: sources/includes/nvdstracker.h:299
_NvMOTConfig::perTransformBatchConfig
NvMOTPerTransformBatchConfig * perTransformBatchConfig
Holds a pointer to a list of numTransform batch configurations, one per transform,...
Definition: sources/includes/nvdstracker.h:143
_NvMOTTrackerMiscData
Tracker misc data.
Definition: sources/includes/nvdstracker.h:390
NvMOTTimeMeta
struct _NvMOTTimeMeta NvMOTTimeMeta
Per-frame timing: stream PTS (when valid), host-local ns for deltas, and frame index.
_NvMOTTrackedObj::associatedObjectIn
NvMOTObjToTrack * associatedObjectIn
Holds a pointer to the associated input object, if there is one.
Definition: sources/includes/nvdstracker.h:331
_NvMOTConfigResponse::miscConfigStatus
NvMOTConfigStatus miscConfigStatus
Holds the status of the miscellaneous configurations.
Definition: sources/includes/nvdstracker.h:192
_NvMOTMask
Holds the segmentaiton mask of an object.
Definition: sources/includes/nvdstracker.h:225
_NvMOTQuery::colorFormats
NvBufSurfaceColorFormat colorFormats[1]
Holds the color formats for input buffers; a required value.
Definition: sources/includes/nvdstracker.h:428
_NvMOTTrackedObjList::streamID
NvMOTStreamId streamID
Holds the stream ID of the stream associated with objects in the list.
Definition: sources/includes/nvdstracker.h:359
_NvMOTTimeMeta::frameTimeStamp
NvMOTTimeStamp frameTimeStamp
Stream/media time (e.g.
Definition: sources/includes/nvdstracker.h:69
_NvMOTConfig
Holds a tracker configuration.
Definition: sources/includes/nvdstracker.h:130
_NvMOTConfig::customConfigFilePath
char * customConfigFilePath
A pointer to the pathname of the tracker's custom configuration file.
Definition: sources/includes/nvdstracker.h:150
_NvMOTQuery::outputFootLocation
bool outputFootLocation
Whether to output foot location in user meta.
Definition: sources/includes/nvdstracker.h:444
_NvMOTMask::width
uint32_t width
Width of the segmentation mask.
Definition: sources/includes/nvdstracker.h:230
NvMOTConfig
struct _NvMOTConfig NvMOTConfig
Holds a tracker configuration.
_NvMOTConfigResponse::computeStatus
NvMOTConfigStatus computeStatus
Holds the compute target request status.
Definition: sources/includes/nvdstracker.h:187
_NvMOTFrame::seq_index
uint32_t seq_index
Holds the index of the stream in the sequence of streams.
Definition: sources/includes/nvdstracker.h:288
NvBufSurfaceColorFormat
NvBufSurfaceColorFormat
Defines color formats for NvBufSurface.
Definition: sources/includes/nvbufsurface.h:105
_NvDsReidTensorBatch
ReID tensor of the batch.
Definition: sources/includes/nvds_tracker_meta.h:128
NvMOTObjToTrack
struct _NvMOTObjToTrack NvMOTObjToTrack
Holds information about an object to be tracked.
_NvMOTTrackedObjList::valid
bool valid
Holds a Boolean which is true if this entry in the batch is valid.
Definition: sources/includes/nvdstracker.h:363
ds3d::v2xinfer::format
static std::string format(const char *fmt,...)
Definition: sources/libs/ds3d/inference_custom_lib/ds3d_v2x_infer_custom_preprocess/tensor.hpp:31
_NvMOTConfig::numTransforms
uint8_t numTransforms
Holds the number of NvMOTPerTransformBatchConfig entries in perTransformBatchConfig.
Definition: sources/includes/nvdstracker.h:140
_NvMOTTrackedObjBatch::pReidTensorBatch
NvDsReidTensorBatch * pReidTensorBatch
The whole batch’s reid tensor to fill by low level tracker.
Definition: sources/includes/nvdstracker.h:384
_NvMOTQuery::outputTrajectory
bool outputTrajectory
Whether to output target trajectories in user meta.
Definition: sources/includes/nvdstracker.h:440
_NvMOTTrackedObjBatch::list
NvMOTTrackedObjList * list
Holds a pointer to an array of object lists.
Definition: sources/includes/nvdstracker.h:378
_NvMOTMiscConfig
Holds miscellaneous configurations.
Definition: sources/includes/nvdstracker.h:114