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 ...

Get Learn OpenCV 4 by Building Projects - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.