|
NVIDIA DeepStream SDK API Reference
|
6.4 Release
|
Go to the documentation of this file.
28 #ifndef _NVMOTRACKER_H_
29 #define _NVMOTRACKER_H_
42 #define NVMOT_MAX_TRANSFORMS 4
52 #define NVMOTCOMP_GPU 0x01
53 #define NVMOTCOMP_CPU 0x02
54 #define NVMOTCOMP_PVA 0x04
55 #define NVMOTCOMP_ANY 0xff
57 #define NVMOTCOMP_DEFAULT NVMOTCOMP_ANY
99 typedef void (*
logMsg) (
int logLevel,
const char * format, ...);
NvBufSurfaceParams ** bufferList
Holds a pointer to an array of pointers to buffer parameter structures.
void(* logMsg)(int logLevel, const char *format,...)
Holds a pointer to a callback for logging messages.
uint32_t reidFeatureSize
Reid feature size.
uint16_t classId
Holds the class of the object.
struct _NvMOTTrackedObj NvMOTTrackedObj
Holds information about each tracked object.
uint8_t reserved[128]
Reserved custom data field.
@ NvMOTStatus_Invalid_Path
bool outputConvexHull
Whether to output convex hull in user meta.
bool supportPastFrame
Holds a Boolean which is true if outputing past frame is supported.
uint32_t maxShadowTrackingAge
Holds maximum shadow tracking age per stream.
void * pPreservedData
Holds a pointer to client data associated with the object.
NvMOTStatus NvMOT_Init(NvMOTConfig *pConfigIn, NvMOTContextHandle *pContextHandle, NvMOTConfigResponse *pConfigResponse)
Initializes a tracking context for a batch of one or more image streams.
NvMOTBatchMode batchMode
Holds flags for whether batch or none batch mode is supported.
uint32_t maxTargetsPerStream
Holds maximum number of targets per stream.
@ NvMOTConfigStatus_Invalid
struct _NvMOTConfig NvMOTConfig
Holds a tracker configuration.
float confidence
Holds the detection confidence of the object.
struct _NvMOTTrackedObjBatch NvMOTTrackedObjBatch
Holds a batch of lists of tracked objects.
NvMOTConfigStatus customConfigStatus
Holds the status of the custom configurations.
uint32_t gpuId
Holds the ID of the GPU to be used.
struct _NvMOTMiscConfig NvMOTMiscConfig
Holds miscellaneous configurations.
uint8_t numTransforms
Holds the number of NvMOTPerTransformBatchConfig entries in perTransformBatchConfig.
@ NvMOTBatchMode_NonBatch
Non-batch processing mode.
NvMOTConfigStatus summaryStatus
Holds the summary status of the entire configuration request.
Holds a batch of lists of tracked objects.
uint32_t numFilled
Holds the number of populated blocks in the list.
uint32_t numAllocated
Holds the number of blocks allocated for the list.
NvMOTObjToTrack * associatedObjectIn
Holds a pointer to the associated input object, if there is one.
struct _NvMOTFrame NvMOTFrame
Holds a frame containing the image and objects to be tracked.
NvBufSurfaceColorFormat colorFormats[1]
Holds the color formats for input buffers; a required value.
uint32_t numFrames
Holds the number of frames in the batch.
uint16_t classId
Holds the class ID of the object to be tracked.
NvMOTTrackedObj * list
Holds a pointer to a list or array of object information blocks.
void NvMOT_DeInit(NvMOTContextHandle contextHandle)
Deinitializes a stream context.
Holds the definition of a rectangle.
Holds a frame containing the image and objects to be tracked.
uint32_t frameNum
Holds the sequential frame number that identifies the frame within the stream.
NvMOTRect bbox
Holds the bounding box.
NvMOTStatus NvMOT_RemoveStreams(NvMOTContextHandle contextHandle, NvMOTStreamId streamIdMask)
Removes streams from a batch.
struct _NvMOTPerTransformBatchConfig NvMOTPerTransformBatchConfig
Holds a configuration for batches for an input transform (a scaling/color conversion).
NvMOTTrackedObjList * list
Holds a pointer to an array of object lists.
bool reset
Holds a Boolean which is true to reset tracking for the stream.
struct _NvMOTRect NvMOTRect
Holds the definition of a rectangle.
Holds information about each tracked object.
@ NvMOTConfigStatus_Unsupported
NvMOTObjToTrack * list
Holds a pointer to a list or array of object information blocks.
uint32_t srcFrameWidth
Holds the width of the original source frame.
uint64_t trackingId
Holds a unique ID for the object, assigned by the tracker.
NvMOTObjToTrackList objectsIn
Holds a list of objects in this frame which are to be tracked.
bool outputShadowTracks
Whether to output Shadow Tracks info in user meta.
float visibility
Object visibility.
Hold the information of single buffer in the batch.
uint32_t maxObjPerStream
Holds the maximum number of objects to track per stream.
Holds a tracker's configuration status.
struct _NvMOTConfigResponse NvMOTConfigResponse
Holds a tracker's configuration status.
NvMOTStatus NvMOT_Query(uint16_t customConfigFilePathSize, char *pCustomConfigFilePath, NvMOTQuery *pQuery)
Query tracker lib capabilities and requirements.
uint32_t maxObjPerBatch
Holds the maximum number of objects to track per batch.
struct _NvMOTObjToTrack NvMOTObjToTrack
Holds information about an object to be tracked.
NvBufSurfaceMemType memType
Holds the preferred memory type for input buffers.
NvMOTStreamId streamID
Holds the stream ID of the stream source for this frame.
uint32_t frameNum
Holds the frame number for objects in the list.
bool outputReidTensor
Whether to output ReID tensor in user meta.
NvMOTMiscConfig miscConfig
Holds miscellaneous configurations.
uint16_t customConfigFilePathSize
Holds the length of customConfigFilePath.
bool outputVisibility
Whether to output visibility in user meta.
uint8_t numBuffers
Holds the number of entries in bufferList.
uint32_t age
Holds the track length in frames.
Holds convex hull information.
NvMOTCompute computeConfig
Holds flags for supported compute targets.
NvMOTRect bbox
Holds the bounding box of the object.
int32_t reidInd
Each target’s reid tensor index in batch.
NvDsTargetMiscDataBatch * pShadowTrackBatch
Holds the frame info of shadow tracks.
struct _NvMOTQuery NvMOTQuery
NvMOTStatus
Defines generic status codes for tracking operations.
float confidence
Holds the tracking confidence of the object.
uint32_t numFilled
Holds the number of filled blocks in the list.
@ NvMOTBatchMode_Error
Unsupported batch mode.
uint32_t numAllocated
Holds the number of blocks allocated for the list.
Holds information about an object to be tracked.
NvDsTargetMiscDataBatch * pPastFrameObjBatch
Holds past frame data of current batch.
uint32_t numAllocated
Holds the number of blocks allocated for the list.
NvBufSurfaceMemType
Specifies memory types for NvBufSurface.
float height
Holds the height of the bounding box, in pixels.
NvMOTCompute computeConfig
Holds the compute target.
bool doTracking
Holds a Boolean which is true if NvMOT is to track this object.
uint32_t maxStreams
Holds the maximum number of streams in a batch.
Holds parameters for processing a batch.
NvDsReidTensorBatch * pReidTensorBatch
The whole batch’s reid tensor to fill by low level tracker.
uint32_t maxBufSurfAddrSize
Holds the max number of surface buffer addresses from buffer pool.
Holds a list of tracked objects.
uint32_t maxTrajectoryBufferLength
maximum frame of history to save per terminated track.
char * customConfigFilePath
A pointer to the pathname of the tracker's custom configuration file.
NvMOTConfigStatus
Defines configuration request return codes.
struct _NvMOTTrackedObjList NvMOTTrackedObjList
Holds a list of tracked objects.
NvDsTargetMiscDataBatch * pTerminatedTrackBatch
Holds the history of terminated tracks.
NvMOTStatus NvMOT_Process(NvMOTContextHandle contextHandle, NvMOTProcessParams *pParams, NvMOTTrackedObjBatch *pTrackedObjectsBatch)
Processes a batch.
float width
Holds the width of the bounding box, in pixels.
struct _NvMOTProcessParams NvMOTProcessParams
Holds parameters for processing a batch.
bool detectionDone
Holds a Boolean which is true if detection was done on this frame even if the list of objects to trac...
float ptWorldFeet[2]
Foot location in 3D coordinates.
@ NvMOTConfigStatus_Error
uint32_t srcFrameHeight
Holds the height of the original source frame.
float x
Holds the left edge position of the object bounding box, in pixels.
uint32_t maxConvexHullSize
Holdes maximum number of points in a convex hull.
float y
Holds the top edge position of the object bounding box, in pixels.
NvDsObjConvexHull convexHull
Convex hull information projected on frame.
NvMOTConfigStatus transformBatchStatus
Holds the transform batch configuration request status: summary status for all transforms.
uint32_t numFilled
Holds the number of populated blocks in the list.
Batch of all streams of a given target misc output
struct NvMOTContext * NvMOTContextHandle
bool timeStampValid
Holds a Boolean which is true if the timestamp value is properly populated.
bool outputTerminatedTracks
Whether to output terminted Tacks info in user meta.
bool doTracking
Holds a Boolean which is true if objects in this frame are to be tracked.
NvMOTStatus NvMOT_RetrieveMiscData(NvMOTContextHandle contextHandle, NvMOTProcessParams *pParams, NvMOTTrackerMiscData *pTrackerMiscData)
Process the past-frame data in the low-level tracker lib and retrieve.
time_t timeStamp
Holds the timestamp of the frame at the time of capture.
@ NvMOTBatchMode_Batch
Batch processing mode.
@ NvMOTBatchMode_MaxValue
Max value of the enum.
struct _NvMOTObjToTrackList NvMOTObjToTrackList
Holds a list of objects.
NvMOTConfigStatus miscConfigStatus
Holds the status of the miscellaneous configurations.
NvMOTStreamId streamID
Holds the stream ID of the stream associated with objects in the list.
struct _NvMOTTrackerMiscData NvMOTTrackerMiscData
Tracker misc data.
Holds a tracker configuration.
bool outputFootLocation
Whether to output foot location in user meta.
float ptImgFeet[2]
Foot location in frame coordinates.
NvMOTFrame * frameList
Holds a pointer to an array of frame data.
NvMOTPerTransformBatchConfig * perTransformBatchConfig
Holds a pointer to a list of numTransform batch configurations, one per transform,...
NvMOTConfigStatus computeStatus
Holds the compute target request status.
uint32_t seq_index
Holds the index of the stream in the sequence of streams.
NvBufSurfaceColorFormat
Defines color formats for NvBufSurface.
ReID tensor of the batch.
bool valid
Holds a Boolean which is true if this entry in the batch is valid.
uint8_t numTransforms
Holds the number of NvMOTPerTransformBatchConfig entries in perTransformBatchConfig.
bool outputTrajectory
Whether to output target trajectories in user meta.
Holds miscellaneous configurations.