Skip to content

Commit 3876412

Browse files
committed
reduce error threshold
1 parent 0ffab9d commit 3876412

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

depth_test/depthtest.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,14 @@ def timer_event(self):
680680
self.ui.l_plane_fit_mse.setText(f'{self.plane_fit_mse}')
681681
self.ui.l_gt_plane_mse.setText(f'{self.gt_plane_mse}')
682682
self.ui.l_plane_fit_mse.setText(f'{self.plane_fit_mse}')
683-
if self.max_error < 0.02 and self.min_plane_error > 0.98:
683+
684+
if self.true_distance <= 1:
685+
error_threshold = 0.03
686+
elif self.true_distance >= 2:
687+
error_threshold = 0.06
688+
else:
689+
error_threshold = self.true_distance*0.03
690+
if self.max_error < error_threshold and self.min_plane_error > 0.98:
684691
self.set_result('PASS')
685692
else:
686693
self.set_result('FAIL')

0 commit comments

Comments
 (0)