make sure work without cuda

This commit is contained in:
unknown
2025-12-29 17:20:48 +08:00
parent 55228413d4
commit b9573c5781
5 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ def main():
# verbose: 是否打印详细初始化日志
# 方式1: 从视频文件读取
sensor = orisys.Sensor("./s1.mp4", isstitch=True, cuda=True, verbose=True)
sensor = orisys.Sensor("./s1.mp4", isstitch=True, cuda=False, verbose=True)
# 方式2: 从摄像头读取(取消注释使用)
# sensor = orisys.Sensor(0, isstitch=True, cuda=True, verbose=True)