-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
27 lines (23 loc) · 971 Bytes
/
main.py
File metadata and controls
27 lines (23 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from src.CameraBuffer import CameraBuffer
from src.OutputController import OutputController
import os
# filename_sub_left = 'berlinale/cam0/events.txt'
# filename_sub_right = 'berlinale/cam1/events.txt'
filename_sub_left = 'sim_flying_room_stereo/cam0/events.txt'
filename_sub_right = 'sim_flying_room_stereo/cam1/events.txt'
max_y = 180
max_x = 240
max_disparity = 30
time_resolution = 0.0001
maximum_timeslot = 1000
save_path = "result_drone_2/"
if not os.path.exists(save_path):
os.makedirs(save_path)
a = CameraBuffer(max_x,max_y,filename_sub_left,filename_sub_right,max_disparity, time_resolution)
a.prepareData()
if False:
print("Right Buffer y-value = 0: {} ....".format(a.rightBuffer[0][:5]))
print("Right Buffer y-value = 1: {} ...".format(a.rightBuffer[1][:5]))
print("Right Buffer y-value = 2: {} ...".format(a.rightBuffer[2][:5]))
b = OutputController(max_x, max_y, max_disparity, time_resolution, maximum_timeslot, a)
b.evaluateAll()