In this recipe, you will learn how to detect chessboard and circle grid patterns. These patterns are very useful in computer vision, and are often used for estimating camera parameters.
Detecting chessboard and circle grid patterns
Getting ready
Before you proceed with this recipe, you need to install the OpenCV 3.x Python API package and the matplotlib package.
How to do it...
- Import the modules:
import cv2
import matplotlib.pyplot as plt
- Load the test image with a chessboard:
image_chess = cv2.imread('../data/chessboard.png')
- Detect the chessboard pattern...