def test_threshold_returns_valid_thresholded_img(self): thresh = MarkerDetectPar._threshold(self.gray, 3) self.assertIsNotNone(thresh) self.assertIsNotNone(thresh.size)
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))
def test_threshold_winSize_adjusted_correctly(self): np.testing.assert_equal(MarkerDetectPar._threshold(self.gray, 4), MarkerDetectPar._threshold(self.gray, 5))