raft working

This commit is contained in:
bluepulsar
2026-01-31 12:24:15 +08:00
parent def7dd6916
commit e2100204aa
3 changed files with 51 additions and 38 deletions
+4 -3
View File
@@ -166,8 +166,8 @@ class Sensor:
return None
self.frame = frame
# Convert to grayscale
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
# gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
gray = frame
# Extract and stitch tiles
self.stitcher.get_stitch_unit(gray)
self._extract_tiles(gray)
@@ -215,7 +215,8 @@ class Sensor:
if self.img is None:
raise Exception("Warning: Get image first")
flow = self.__tracker.track(self.img)
# flow = self.__tracker.track(self.img)
flow = self.__tracker.track_raft(self.img)
if hasattr(flow, 'download'):
flow = flow.download()
self.flow = flow