为采集帧绑定主机时间与来源信息

采集时间随图像穿过处理队列,并修正未读帧的丢帧计数。通过采集与流水线针对性测试。
This commit is contained in:
ykcheungab
2026-10-11 12:48:34 +08:00
parent 0784eacf51
commit 120b8c2cf6
7 changed files with 256 additions and 40 deletions
+8
View File
@@ -358,6 +358,14 @@ class FingerRuntime:
return self.capture_source.read_raw()
return self.capture.read()
def read_source_stamped(self):
"""Read the source image with its capture-thread identity and host clocks."""
if self.capture_source is None:
return None
if self.capture_source.running:
return self.capture_source.read_latest_stamped(copy=True, wait_s=1.0)
return self.capture_source.read_raw_stamped()
def process_frame(self, frame, *, color=False):
"""Prepare, unroll, and feed one source frame into the tactile processor."""
if color: