Technical requirements
This chapter uses Python, OpenCV, and NumPy. In regards to OpenCV, we use the optional opencv_contrib
modules, which include additional algorithms for keypoint detection and matching. To enable theSURF algorithm (whichis patented and not free for commercial use), we must configure the opencv_contrib
modules with the OPENCV_ENABLE_NONFREE
flag in CMake. Please refer to Chapter 1, Setting Up OpenCV, for installation instructions. Additionally, if you have not already installed Matplotlib, install it by running $ pip install matplotlib
(or $ pip3 install matplotlib
, depending on your environment).
The complete code for this chapter can be found in this book's GitHub repository, https://github.com/PacktPublishing/Learning-OpenCV-5-Computer-Vision-with-Python-Fourth-Edition, in the chapter06
folder. The sample images can be found in the images
folder.
A subset of the chapter’s sample code can be edited and run interactively in Google Colab at https://colab...