From 58d50ab67764b570053fbd4d4b428943ef66a640 Mon Sep 17 00:00:00 2001 From: riya kumari <139640191+Riya79hp@users.noreply.github.com> Date: Sat, 6 Jul 2024 19:16:05 +0530 Subject: [PATCH] Update tutorial6.py Numpy does not have int0 now it supports int32 and int64 --- tutorial6.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorial6.py b/tutorial6.py index ad1dd2f..2d00453 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.int32(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()