reset fix

This commit is contained in:
unknown
2026-01-02 13:26:39 +08:00
parent 7ec96d5ed4
commit 7d2eed8261
3 changed files with 37 additions and 2 deletions
+2 -2
View File
@@ -19,10 +19,10 @@ def main():
# 步骤1:创建传感器对象 (必要步骤),config_name为配置文件名(内置配置文件名)或路径(自定义配置文件路径)
# 方式1: 从视频文件读取
sensor = orisys.Sensor("./s1.mp4", isstitch=True, cuda=True, verbose=True,config_name="prototype")
# sensor = orisys.Sensor("./s1.mp4", isstitch=True, cuda=True, verbose=True,config_name="prototype")
# 方式2: 从摄像头读取(取消注释使用)
# sensor = orisys.Sensor(0, cuda=True, verbose=True, config_name="prototype")
sensor = orisys.Sensor(0, cuda=True, verbose=True, config_name="prototype")
sensor.export_config(path="./config/exported_config.json") # 导出配置文件供查看和修改
print("\n按 'q' 退出程序,按 'r' 重置光流追踪器")