Skip to content

Commit

Permalink
More Numpy type fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
asmorkalov committed Dec 21, 2022
1 parent 0a7a9ee commit 1090eab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/gapi/misc/python/test/test_gapi_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def test_kmeans(self):


def generate_random_points(self, sz):
arr = np.random.random(sz).astype(np.float32).T
arr = np.random.random(sz).astype(float).T
return list(zip(*[arr[i] for i in range(sz[1])]))


Expand Down
2 changes: 1 addition & 1 deletion modules/objdetect/misc/python/test/test_objdetect_aruco.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_aruco_detector(self):
img_marker = np.pad(img_marker, pad_width=offset, mode='constant', constant_values=255)
gold_corners = np.array([[offset, offset],[marker_size+offset-1.0,offset],
[marker_size+offset-1.0,marker_size+offset-1.0],
[offset, marker_size+offset-1.0]], dtype=np.float32)
[offset, marker_size+offset-1.0]], dtype=float)
corners, ids, rejected = aruco_detector.detectMarkers(img_marker)

self.assertEqual(1, len(ids))
Expand Down

0 comments on commit 1090eab

Please sign in to comment.