add config dictionary to get_depth.py
This commit is contained in:
+3
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user