Missing NvDsPastFrameObjBatch in DeepStream 7.1

We have met compiling error with NvDsPastFrameObjBatch , which is OK with DS 6.3.

Also I google the forum: NvDsPastFrameObjBatch not defined in nvds_tracker_meta.h in Deepstream 6.4

But I can’t get any of definition in /opt/nvidia/deepstream/deepstream-7.1/

How to solve the issue?

[ 62%] Building CXX object CMakeFiles/ByteTracker.dir/src/NvMOTContext.cpp.o
In file included from /home/daniel/Work/jetson-fpv/module/ByteTrack/deploy/DeepStream/src/NvMOTContext.cpp:1:
/home/daniel/Work/jetson-fpv/module/ByteTrack/deploy/DeepStream/includes/Tracker.h:45:34: error: ‘NvDsPastFrameObjBatch’ has not been declared
   45 |                                  NvDsPastFrameObjBatch *pPastFrameObjectsBatch);
      |                                  ^~~~~~~~~~~~~~~~~~~~~
/home/daniel/Work/jetson-fpv/module/ByteTrack/deploy/DeepStream/src/NvMOTContext.cpp: In constructor ‘NvMOTContext::NvMOTContext(const NvMOTConfig&, NvMOTConfigResponse&)’:
/home/daniel/Work/jetson-fpv/module/ByteTrack/deploy/DeepStream/src/NvMOTContext.cpp:5:47: warning: unused parameter ‘configIn’ [-Wunused-parameter]
    5 | NvMOTContext::NvMOTContext(const NvMOTConfig &configIn, NvMOTConfigResponse &configResponse) {
      |                            ~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/daniel/Work/jetson-fpv/module/ByteTrack/deploy/DeepStream/src/NvMOTContext.cpp: In member function ‘NvMOTStatus NvMOTContext::processFrame(const NvMOTProcessParams*, NvMOTTrackedObjBatch*)’:
/home/daniel/Work/jetson-fpv/module/ByteTrack/deploy/DeepStream/src/NvMOTContext.cpp:56:1: warning: no return statement in function returning non-void [-Wreturn-type]
   56 | }
      | ^
/home/daniel/Work/jetson-fpv/module/ByteTrack/deploy/DeepStream/src/NvMOTContext.cpp: At global scope:
/home/daniel/Work/jetson-fpv/module/ByteTrack/deploy/DeepStream/src/NvMOTContext.cpp:59:44: error: ‘NvDsPastFrameObjBatch’ has not been declared
   59 |                                            NvDsPastFrameObjBatch *pPastFrameObjectsBatch) {
      |                                            ^~~~~~~~~~~~~~~~~~~~~
Software part of jetson-stats 4.3.1 - (c) 2024, Raffaello Bonghi
Model: NVIDIA Jetson Orin Nano Developer Kit - Jetpack 6.2 [L4T 36.4.3]
NV Power Mode[0]: 15W
Serial Number: [XXX Show with: jetson_release -s XXX]
Hardware:
 - P-Number: p3767-0005
 - Module: NVIDIA Jetson Orin Nano (Developer kit)
Platform:
 - Distribution: Ubuntu 22.04 Jammy Jellyfish
 - Release: 5.15.148-tegra
jtop:
 - Version: 4.3.1
 - Service: Active
Libraries:
 - CUDA: 12.6.68
 - cuDNN: 9.3.0.75
 - TensorRT: 10.3.0.30
 - VPI: 3.2.4
 - Vulkan: 1.3.204
 - OpenCV: 4.11.0 - with CUDA: YES
DeepStream C/C++ SDK version: 7.1

Python Environment:
Python 3.10.12
    GStreamer:                   YES (1.20.3)
  NVIDIA CUDA:                   YES (ver 12.6, CUFFT CUBLAS FAST_MATH)
         OpenCV version: 4.11.0  CUDA True
           YOLO version: 8.3.65
         PYCUDA version: 2024.1.2
          Torch version: 2.5.1+l4t36.4
    Torchvision version: 0.20.0a0+afc54f7
 DeepStream SDK version: 1.2.0
onnxruntime-gpu version: 1.19.2

BTW, is there any macros that can be used when compiling for DS6.3/DS7.1?

This structure has been removed in DS-7.1 and upgraded to NvDsTargetMiscDataBatch.

Bytetrack is not an officially supported project. Please raise an issue on github or try to port the code.

@junshengy Thanks for the info. I will look into this.

But right now, this API doesn’t needed for ByteTrack, we have a fix

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.