Learn practical skills, build real-world projects, and advance your career

Grid Detection

import cv2
import matplotlib.pyplot as plt
%matplotlib inline
flat_chess = cv2.imread('../DATA/flat_chessboard.png')
plt.imshow(flat_chess,cmap='gray')
<matplotlib.image.AxesImage at 0x2a73ad1fa58>
Notebook Image
found, corners = cv2.findChessboardCorners(flat_chess,(7,7))