added export config and user define config support

This commit is contained in:
unknown
2025-12-30 10:53:25 +08:00
parent 93e2984e7f
commit 88b48f8fa8
5 changed files with 121 additions and 13 deletions
+2 -2
View File
@@ -7,10 +7,10 @@ import time
def main():
# 方式1: 从视频文件读取
# sensor = orisys.Sensor("./s1.mp4", isstitch=True, cuda=True, verbose=True)
sensor = orisys.Sensor("./s1.mp4", isstitch=True, cuda=True, verbose=True,config_name="./config/prototype.json")
# 方式2: 从摄像头读取(取消注释使用)
sensor = orisys.Sensor(0, isstitch=True, cuda=False, verbose=True)
# sensor = orisys.Sensor(0, isstitch=True, cuda=False, verbose=True,config_name="./config/prototype.json")
print("\n按 'q' 退出程序,按 'r' 重置光流追踪器")