update demo.py

This commit is contained in:
unknown
2026-01-02 14:27:31 +08:00
parent 7d2eed8261
commit 0d7ba7cd0b
5 changed files with 193 additions and 148 deletions
+3 -2
View File
@@ -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"]