add util & example
This commit is contained in:
+1
-9
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user