Skip to Content
Learning OpenCV 4 Computer Vision with Python 3 - Third Edition
book

Learning OpenCV 4 Computer Vision with Python 3 - Third Edition

by Joseph Howse, Joe Minichino
February 2020
Intermediate to advanced
372 pages
9h 26m
English
Packt Publishing
Content preview from Learning OpenCV 4 Computer Vision with Python 3 - Third Edition

Performing face recognition with LBPH

Finally, let's take a quick look at the LBPH algorithm. Again, the process is similar. However, the algorithm factory takes the following optional parameters (in order):

  • radius: The pixel distance between the neighbors that are used to calculate a cell's histogram (by default, 1)
  • neighbors: The number of neighbors used to calculate a cell's histogram (by default, 8)
  • grid_x: The number of cells into which the face is divided horizontally (by default, 8)
  • grid_y: The number of cells into which the face is divided vertically (by default, 8)
  • confidence: The confidence threshold (by default, the highest possible floating-point value so that no results are discarded)

With default arguments, the model declaration ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Computer Vision Projects with OpenCV 4 and C++

Building Computer Vision Projects with OpenCV 4 and C++

David Millan Escriva, Prateek Joshi, Vinicius G. Mendonca, Roy Shilkrot

Publisher Resources

ISBN: 9781789531619Supplemental Content