Hi,
the JetsonNanos run ZED SDK 3.3.0 (streaming sender example, switched to H.265 10000baud) on JP4.4.
Code snippet:
init = sl.InitParameters()
init.camera_resolution = sl.RESOLUTION.HD720
init.camera_fps = 60
init.depth_mode = sl.DEPTH_MODE.NONE
index = 0
failure = False
for ip in self.ip_list:
init.set_from_stream(ip, 1234)
self.zed_list.append(sl.Camera())
self.timestamp_list.append(0)
self.framedrop_list.append(0)
self.frame_dump.append(0)
print("Opening ZED Camera {}...".format(ip))
status = self.zed_list[index].open(init)
if status != sl.ERROR_CODE.SUCCESS:
print("ZED {} {} {}".format(index, self.ip_list[index], repr(status)))
failure = True
index = index+1
for index in range(0, len(self.zed_list)):
self.thread_list.append(threading.Thread(target=self.grab_run, args=(index,)))
self.thread_list[index].start()
with
the thread function used for each camera
def grab_run(self, index):
runtime = sl.RuntimeParameters()
runtime.enable_depth = False
while not self.stop_signal:
err = self.zed_list[index].grab(runtime)
if err == sl.ERROR_CODE.SUCCESS:
self.timestamp_list[index] = self.zed_list[index].get_timestamp(sl.TIME_REFERENCE.IMAGE).get_microseconds()
self.framedrop_list[index] = self.zed_list[index].get_frame_dropped_count()
else:
print("ZED {} ERROR {}".format(index, repr(err)))
self.stop_signal = True
return -1
time.sleep(0.005) # 5ms
return 0