From 2931e29cdd6baea30b7fbe00f57ebc41ba02c1ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Lotr=C3=A1rio?= <45852660+rodesfl@users.noreply.github.com> Date: Fri, 30 Aug 2024 21:15:43 -0300 Subject: [PATCH] Fix np.int -> int --- chessboard_finder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chessboard_finder.py b/chessboard_finder.py index 7b62147..e8ec180 100755 --- a/chessboard_finder.py +++ b/chessboard_finder.py @@ -193,7 +193,7 @@ def findChessboardCorners(img_arr_gray, noise_threshold = 8000): sub_corners = np.array([ sub_seqs_y[j][0]-corners[0]-dy, sub_seqs_x[i][0]-corners[1]-dx, sub_seqs_y[j][-1]-corners[0]+dy, sub_seqs_x[i][-1]-corners[1]+dx], - dtype=np.int) + dtype=int) # Generate crop candidate, nearest pixel is fine for correlation check sub_img = gray_img_crop.crop(sub_corners).resize((64,64))