去除FFMPEG后端
This commit is contained in:
@@ -8,14 +8,15 @@ import surround_view.param_settings as settings
|
||||
|
||||
yamls_dir = os.path.join(os.getcwd(), "yaml")
|
||||
camera_ids = [0, 1, 2, 3]
|
||||
flip_methods = [0, 2, 0, 2]
|
||||
flip_methods = [0, 0, 0,0]
|
||||
|
||||
names = settings.camera_names
|
||||
cameras_files = [os.path.join(yamls_dir, name + ".yaml") for name in names]
|
||||
camera_models = [FisheyeCameraModel(camera_file, name) for camera_file, name in zip(cameras_files, names)]
|
||||
|
||||
|
||||
def main():
|
||||
capture_tds = [CaptureThread(camera_id, flip_method)
|
||||
capture_tds = [CaptureThread(camera_id, flip_method,resolution=(1920, 1080))
|
||||
for camera_id, flip_method in zip(camera_ids, flip_methods)]
|
||||
capture_buffer_manager = MultiBufferManager()
|
||||
for td in capture_tds:
|
||||
@@ -38,17 +39,18 @@ def main():
|
||||
while True:
|
||||
img = cv2.resize(birdview.get(), (300, 400))
|
||||
cv2.imshow("birdview", img)
|
||||
|
||||
key = cv2.waitKey(1) & 0xFF
|
||||
if key == ord("q"):
|
||||
break
|
||||
|
||||
for td in capture_tds:
|
||||
print("camera {} fps: {}\n".format(td.device_id, td.stat_data.average_fps), end="\r")
|
||||
# for td in capture_tds:
|
||||
# print("camera {} fps: {}\n".format(td.device_id, td.stat_data.average_fps), end="\r")
|
||||
|
||||
for td in process_tds:
|
||||
print("process {} fps: {}\n".format(td.device_id, td.stat_data.average_fps), end="\r")
|
||||
# for td in process_tds:
|
||||
# print("process {} fps: {}\n".format(td.device_id, td.stat_data.average_fps), end="\r")
|
||||
|
||||
print("birdview fps: {}".format(birdview.stat_data.average_fps))
|
||||
# print("birdview fps: {}".format(birdview.stat_data.average_fps))
|
||||
|
||||
|
||||
for td in process_tds:
|
||||
|
||||
Reference in New Issue
Block a user