Merge branch 'remote' of 192.168.192.162:D:\Users\ykcheungab.MEE1965\Documents\python\orisyssdk_git into remote

This commit is contained in:
bluepulsar
2026-01-04 21:17:37 +08:00
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -19,10 +19,10 @@ def main():
# 步骤1:创建传感器对象 (必要步骤),config_name为配置文件名(内置配置文件名)或路径(自定义配置文件路径) # 步骤1:创建传感器对象 (必要步骤),config_name为配置文件名(内置配置文件名)或路径(自定义配置文件路径)
# 方式1: 从视频文件读取 # 方式1: 从视频文件读取
# sensor = orisys.Sensor("./s1.mp4", isstitch=True, cuda=True, verbose=True,config_name="prototype") sensor = orisys.Sensor("./stereo2.mp4", isstitch=True, cuda=True, verbose=True,config_name="prototype")
# 方式2: 从摄像头读取(取消注释使用) # 方式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") # 导出配置文件供查看和修改 sensor.export_config(path="./config/exported_config.json") # 导出配置文件供查看和修改
print("\n按 'q' 退出程序,按 'r' 重置光流追踪器") print("\n按 'q' 退出程序,按 'r' 重置光流追踪器")
+2 -2
View File
@@ -168,8 +168,8 @@ class Sensor:
# Convert to grayscale # Convert to grayscale
if log_timing: t0 = time.perf_counter() if log_timing: t0 = time.perf_counter()
# gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
gray = frame # gray = frame
if log_timing: timings['cvt_color'] = (time.perf_counter() - t0) * 1000 if log_timing: timings['cvt_color'] = (time.perf_counter() - t0) * 1000
# Extract and stitch tiles # Extract and stitch tiles
+1 -1
View File
@@ -3,7 +3,7 @@ import cv2
from matplotlib import pyplot as plt from matplotlib import pyplot as plt
import orisys import orisys
sensor = orisys.Sensor(vid_src='stereo_1.mp4',config_name='./config/stereo.json',mirror=False) sensor = orisys.Sensor(vid_src='stereo2.mp4',config_name='./config/stereo.json',mirror=False)
print(sensor.boxes) print(sensor.boxes)
sensor.get_img() sensor.get_img()
tiles = sensor.stitcher.tile_list tiles = sensor.stitcher.tile_list