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()