Merge pull request #19423 from LaurentBerger:houg_acc
Return accumulator value in HoughLines algorithm * try to solve #17050 use cv_wrap_as add python test parameters * review * move wrapper to imgproc/bindings.hpp
This commit is contained in:
@@ -64,6 +64,9 @@ class houghlines_test(NewOpenCVTests):
|
||||
|
||||
self.assertGreater(float(matches_counter) / len(testLines), .7)
|
||||
|
||||
lines_acc = cv.HoughLinesWithAccumulator(dst, rho=1, theta=np.pi / 180, threshold=150, srn=0, stn=0)
|
||||
self.assertEqual(lines_acc[0,0,2], 192.0)
|
||||
self.assertEqual(lines_acc[1,0,2], 187.0)
|
||||
|
||||
if __name__ == '__main__':
|
||||
NewOpenCVTests.bootstrap()
|
||||
|
||||
Reference in New Issue
Block a user