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