update demo.py
This commit is contained in:
@@ -132,7 +132,7 @@ class Sensor:
|
||||
|
||||
# Initialize components
|
||||
self.__stitcher = Stitcher(isstitch=isstitch, config_stitcher=self.__config_stitcher, verbose=self.verbose)
|
||||
self.__tracker = Tracker(adaptive=True, cuda=cuda, verbose=self.verbose)
|
||||
self.__tracker = Tracker(adaptive=True, cuda=cuda, verbose=self.verbose, dis_preset=self._config_dis_preset)
|
||||
self.__contact3d = Contact3D(config_contact=self.__config_contact, verbose=self.verbose)
|
||||
self.__hhd = None
|
||||
|
||||
@@ -342,7 +342,7 @@ class Sensor:
|
||||
|
||||
def reset(self):
|
||||
"""Reset optical flow tracker."""
|
||||
self.tracker.reset()
|
||||
self.__tracker.reset()
|
||||
|
||||
def disconnect(self):
|
||||
"""Release resources and stop async threads."""
|
||||
@@ -403,6 +403,7 @@ class Sensor:
|
||||
self._config_fps = cam["fps"]
|
||||
self._config_units = cam["units"]
|
||||
self._config_resolution_stitch = cam["resolution_stitch"]
|
||||
self._config_dis_preset = self._config["tracker"]["dis_preset"]
|
||||
|
||||
self.__config_stitcher = self._config["stitcher"]
|
||||
self.__config_contact = self._config["contact"]
|
||||
|
||||
Reference in New Issue
Block a user