Skip to content

Commit

Permalink
Issue #18: stereo frame checker requires at least 2 frames now
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhoshkun committed Nov 14, 2018
1 parent 000439e commit 5a1b737
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ def __init__(self):

def update(self, frame):
self.obtained_consistent_stereo_frames.append(True)
if frame.stereo_count() <= 1:
self.obtained_consistent_stereo_frames[-1] = False
return

frames_consistent = True
for index in range(frame.stereo_count() - 1):
this_data = frame.data(False, index)
Expand Down

0 comments on commit 5a1b737

Please sign in to comment.