1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Typing fix in tests for modern Numpy

This commit is contained in:
Alexander Smorkalov
2026-01-02 16:30:28 +03:00
parent 4db66beb60
commit f8c04bafa8
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ class fitline_test(NewOpenCVTests):
for name in dist_func_names:
func = getattr(cv, name)
vx, vy, cx, cy = cv.fitLine(np.float32(points), func, 0, 0.01, 0.01)
line = [float(vx), float(vy), float(cx), float(cy)]
line = [vx[0], vy[0], cx[0], cy[0]]
lines.append(line)
eps = 0.05