Check out the following resource if you'd like to dive deeper into machine learning: Machine Learning for OpenCV (2017) by Michael Beyeler (https://www.packtpub.com/big-data-and-business-intelligence/machine-learning-opencv)