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