add util & example

This commit is contained in:
unknown
2025-12-26 13:02:02 +08:00
parent e5dc82627f
commit 473e383385
5 changed files with 70 additions and 29 deletions
+1 -9
View File
@@ -4,16 +4,9 @@ import cv2
import orisys
def main():
global start_time
box = []
dx = 90
dy = -95
for i in range(15):
box.append((410+dx, 900+dy, 620+dx, 1110+dy))
# 打开视频
sensor1 = orisys.Sensor("./s1.mp4",isstitch=True,cuda = True,verbose = True)
# 打开摄像头
# sensor1 = Sensor(0,isstitch=True,cuda = True,verbose = True)
@@ -33,7 +26,6 @@ def main():
cv2.imshow("Deformation", arrows)
depth_img = cv2.applyColorMap((depth*1* 255.0).astype('uint8'), cv2.COLORMAP_HOT)
cv2.imshow('depth', depth_img)
key = cv2.waitKey(1)