为采集帧绑定主机时间与来源信息
采集时间随图像穿过处理队列,并修正未读帧的丢帧计数。通过采集与流水线针对性测试。
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user