Skip to content

Commit

Permalink
PR #12480 from AviaAv: depth test - removing comparison to no laser
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az authored Dec 5, 2023
2 parents 7558a25 + f046224 commit ea13e47
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions unit-tests/live/frames/test-depth.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,4 @@ def is_depth_meaningful(config, laser_enabled=True, save_image=False, show_image
test.check(is_there_depth is True)
test.finish()

# if there is no depth, we might get different results running this test, so we only run it if we actually find depth
if is_there_depth is True:
test.start("Testing less black pixels present with the laser on")
is_there_depth, no_laser_black_pixels = is_depth_meaningful(cfg, laser_enabled=False, save_image=DEBUG_MODE, show_image=DEBUG_MODE)
test.check(no_laser_black_pixels > max_black_pixels)
test.finish()
else:
log.i("Frame has no depth!")
test.print_results_and_exit()

0 comments on commit ea13e47

Please sign in to comment.