As we mentioned in Chapter 1, Setting Up OpenCV, there are other packages that can be used for scientific computing, data science, machine learning, deep learning, and computer vision. In connection with computer vision, scikit-image is a collection of algorithms for image processing (https://scikit-image.org/). Images manipulated by scikit-image are NumPy arrays.
In this section, we will make use of scikit-image capabilities in connection with thresholding techniques. So, if you want to replicate the results obtained here, the first step is to install it. See https://scikit-image.org/download.html in order to install scikit-image properly on your operating system. Here, we are going to install it with conda, which is an open source package management system (and also an environment management system). See Chapter 1, Setting Up OpenCV...