This chapter uses OpenCV 4.1.0, as well as the additional packages NumPy (http://www.numpy.org), wxPython 2.8 (http://www.wxpython.org/download.php), and matplotlib (http://www.matplotlib.org/downloads.html). Although parts of the algorithms presented in this chapter have been added to an optional Saliency module of the OpenCV 3.0.0 release, there is currently no Python API for it, so we will write our own code.
The code for this chapter can be found in the book's GitHub repository, available at https://github.com/PacktPublishing/OpenCV-4-with-Python-Blueprints-Second-Edition/tree/master/chapter6.