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:
LaurentBerger
2021-02-01 22:22:10 +01:00
committed by GitHub
parent 2b787eb4b8
commit 94e1126678
3 changed files with 40 additions and 0 deletions
+3
View File
@@ -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()