refractor HHD

This commit is contained in:
ykcheungab
2026-05-10 19:04:20 +08:00
parent 03882a4571
commit 9cd7f75c88
56 changed files with 1916 additions and 2101 deletions
+3 -3
View File
@@ -43,10 +43,10 @@ def main():
# 步骤 2.1:获取并拼接图像(必需)
sensor.get_img()
# 步骤 2.2:计算形变场(必需);返回值表示当前帧是否检测到接触/运动
is_contact_now = sensor.compute_deformation(check_motion=True, threshold=6)
is_contact_now = sensor.compute_deformation(check_motion=True, threshold=0)
# 步骤 2.3:仅在当前帧检测到接触/运动时计算接触区域
if is_contact_now:
sensor.compute_contact()
# if is_contact_now:
sensor.compute_contact()
# 步骤 2.4:读取结果