This chapter uses Python, OpenCV, NumPy, and SciPy. Please refer to Chapter 1, Setting Up OpenCV, for installation instructions.
The completed code for this chapter can be found in this book's GitHub repository, https://github.com/PacktPublishing/Learning-OpenCV-4-Computer-Vision-with-Python-Third-Edition, in the chapter03 folder. The sample images are also in this book's GitHub repository, in the images folder.