From 17245ac161569fab54af2d4983a3a541e99c74d4 Mon Sep 17 00:00:00 2001 From: Timothy Sahan <118763154+tim-contact@users.noreply.github.com> Date: Tue, 18 Jun 2024 10:43:16 +0530 Subject: [PATCH] np.int0 is deprecated `np.int0` is a deprecated alias for `np.intp`. (Deprecated NumPy 1.24) corners = np.int0(corners) --- tutorial6.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorial6.py b/tutorial6.py index ad1dd2f..09883e2 100644 --- a/tutorial6.py +++ b/tutorial6.py @@ -6,7 +6,7 @@ gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) corners = cv2.goodFeaturesToTrack(gray, 100, 0.01, 10) -corners = np.int0(corners) +corners = np.intp(corners) for corner in corners: x, y = corner.ravel() @@ -21,4 +21,4 @@ cv2.imshow('Frame', img) cv2.waitKey(0) -cv2.destroyAllWindows() \ No newline at end of file +cv2.destroyAllWindows()