This chapter uses Python, OpenCV, and NumPy. Some parts of the chapter use a depth camera, such as Asus Xtion PRO, along with OpenCV's optional support for OpenNI 2 in order to capture images from such a camera. Please refer back to Chapter 1, Setting Up OpenCV, for installation instructions. The chapter also uses Matplotlib to make charts. To install matplotlib, run $ pip install matplotlib (or $ pip3 install matplotlib, depending on your environment).
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 chapter04 folder. Sample images are in the repository in the images folder.