Technical requirements
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-5-Computer-Vision-with-Python-Fourth-Edition, in the chapter03 folder. The sample images are also in this book's GitHub repository, in the images folder.
A subset of the chapter’s sample code can be edited and run interactively in Google Colab at https://colab.research.google.com/github/PacktPublishing/Learning-OpenCV-5-Computer-Vision-with-Python-Fourth-Edition/blob/main/chapter03/chapter03.ipynb.