From 5170fe827954becfd5081e68efbfb83afb951d9d Mon Sep 17 00:00:00 2001 From: Martin Valgur Date: Fri, 23 Nov 2018 15:22:28 +0000 Subject: [PATCH] DeviceManager: Fix incorrect IR image returned from poll_frames() poll_frames() was always returning the first first IR camera for image both IR cameras --- .../box_dimensioner_multicam/realsense_device_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wrappers/python/examples/box_dimensioner_multicam/realsense_device_manager.py b/wrappers/python/examples/box_dimensioner_multicam/realsense_device_manager.py index 9c48dd78eb..054437a41b 100644 --- a/wrappers/python/examples/box_dimensioner_multicam/realsense_device_manager.py +++ b/wrappers/python/examples/box_dimensioner_multicam/realsense_device_manager.py @@ -213,10 +213,11 @@ def poll_frames(self): frames[serial] = {} for stream in streams: if (rs.stream.infrared == stream.stream_type()): + frame = frameset.get_infrared_frame(stream.stream_index()) key_ = (stream.stream_type(), stream.stream_index()) else: + frame = frameset.first_or_default(stream.stream_type()) key_ = stream.stream_type() - frame = frameset.first_or_default(stream.stream_type()) frames[serial][key_] = frame return frames