add motion detect & fix linux build

This commit is contained in:
wsl
2026-01-13 10:01:37 +08:00
parent cd7ab65e84
commit da239b2bed
4 changed files with 28 additions and 10 deletions
+3
View File
@@ -33,6 +33,9 @@ def main():
# 步骤 2.1: 获取并拼接图像 (必要步骤)
sensor.get_img()
print("img_size_raw:", sensor.img_size_raw)
if sensor.detect_motion():
print("motion detected")
break
# 步骤 2.2: 计算形变场 (必要步骤)
sensor.compute_deformation()
# 步骤 2.3: 计算触碰点