add override option
This commit is contained in:
+8
-1
@@ -8,10 +8,17 @@ import numpy as np
|
||||
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 = Sensor("./s1.mp4",isstitch=True,cuda = True,verbose = True)
|
||||
sensor1 = Sensor("./uv_2.mp4",isstitch=False,cuda = True,verbose = True, override=True, box=box)
|
||||
# 打开摄像头
|
||||
# sensor1 = Sensor(0,isstitch=True,cuda = True,verbose = True)
|
||||
|
||||
|
||||
while True:
|
||||
sensor1.get_img() # 提取并拼接复眼图像
|
||||
sensor1.compute_deformation() # 计算形变和分解
|
||||
|
||||
Reference in New Issue
Block a user