dd02 setting tune + change Class name from UVUnrollFrameProcessor to FrameUnwarper

This commit is contained in:
ykcheungab
2026-07-14 20:00:40 +08:00
parent c2fb0b12b5
commit 30f9deb5b2
14 changed files with 275 additions and 94 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ import cv2
import numpy as np
from ..configs import load_config
from ..frame_processors import UVUnrollFrameProcessor
from ..frame_processors import FrameUnwarper
from ..sensor import Sensor
from ..unroll import (
build_or_load_domain,
@@ -208,7 +208,7 @@ class FingerRuntime:
geometry: FingerGeometry,
domain,
tactile: TactileProcessor,
frame_processor: UVUnrollFrameProcessor,
frame_processor: FrameUnwarper,
capture,
):
self.geometry = geometry
@@ -268,7 +268,7 @@ class FingerRuntime:
raise RuntimeError("Cannot open camera/video source")
sensor = Sensor("external", config_name=config, verbose=verbose, mirror=mirror)
frame_processor = UVUnrollFrameProcessor(
frame_processor = FrameUnwarper(
domain.remap,
camera_matrix=geometry.source_K if geometry.dist_coeffs is not None else None,
dist_coeffs=geometry.dist_coeffs,