I am upgrading my application from DeepStream 6.2 to DeepStream 7.0. I am using the official Docker container and a Tesla T4.
I had two errors when initializing the tracker:
TypeError: object of type `GstNvTracker' does not have property 'enable_past_frame'
TypeError: object of type `GstNvTracker' does not have property 'enable_batch_process'
Based on the error, I understand that the two properties have been removed.
What is their default value?
I want to enable batch process, but I don’t need the past frame information.
Code:
import gi
gi.require_version("Gst", "1.0")
gi.require_version("GstRtspServer", "1.0")
from gi.repository import Gst, GObject
GObject.threads_init()
Gst.init(None)
tracker = Gst.ElementFactory.make("nvtracker", "tracker")
tracker.set_property('enable_batch_process', 1)
tracker.set_property('enable_past_frame', 0)
Note that the code was working fine in DeepStream 6.2.