O'Reilly logo

Learn OpenCV 4 by Building Projects - Second Edition by Prateek Joshi, Vinicius G. Mendonca, David Millan Escriva

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

OpenCV machine learning algorithms

OpenCV implements eight of these machine learning algorithms. All of them are inherited from the StatModel class:

  • Artificial neural networks
  • Random trees
  • Expectation maximization
  • k-nearest neighbors
  • Logistic regression
  • Normal Bayes classifiers
  • support vector machine
  • Stochastic gradient descent SVMs

Version 3 supports deep learning at a basic level, but version 4 is stable and more supported. We will delve into deep learning in detail in further chapters.

To get more information about each algorithm, read the OpenCV document page for machine learning at http://docs.opencv.org/trunk/dc/dd6/ml_intro.html.

The following diagram shows the machine learning class hierarchy:

The StatModel class is the base ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required