Exemple #1
0
 def test_threshold_returns_valid_thresholded_img(self):
     thresh = MarkerDetectPar._threshold(self.gray, 3)
     self.assertIsNotNone(thresh)
     self.assertIsNotNone(thresh.size)
Exemple #2
0
 def test_threshold_equals_aruco_method(self):
     thresh_const = MarkerDetectPar.params[
         MarkerDetectPar.adaptiveThreshConstant]
     np.testing.assert_equal(MarkerDetectPar._threshold(self.gray, 3),
                             aruco._threshold(self.gray, 3, thresh_const))
Exemple #3
0
 def test_threshold_winSize_adjusted_correctly(self):
     np.testing.assert_equal(MarkerDetectPar._threshold(self.gray, 4),
                             MarkerDetectPar._threshold(self.gray, 5))