add config dictionary to get_depth.py

This commit is contained in:
unknown
2025-12-30 10:25:16 +08:00
parent b9573c5781
commit 93e2984e7f
6 changed files with 358 additions and 334 deletions
+3 -2
View File
@@ -10,7 +10,7 @@ def main():
# sensor = orisys.Sensor("./s1.mp4", isstitch=True, cuda=True, verbose=True)
# 方式2: 从摄像头读取(取消注释使用)
sensor = orisys.Sensor(0, isstitch=True, cuda=True, verbose=True)
sensor = orisys.Sensor(0, isstitch=True, cuda=False, verbose=True)
print("\n按 'q' 退出程序,按 'r' 重置光流追踪器")
@@ -37,7 +37,8 @@ def main():
cv2.imshow("形变场 Deformation", arrows)
# 计算触碰点
sensor.compute_contact(min_magnitude=0.1,expansion_threshold=0.01,denoise_sigma=15)
# sensor.compute_contact(min_magnitude=0.1,expansion_threshold=0.01,denoise_sigma=15)
sensor.compute_contact()
# 在图像上触碰点和区域
image_with_foe = orisys.util.draw_contact(sensor.img.copy(), sensor.contour, sensor.centroid)