本文介绍了人脸检测中的Haar级联与LBP级联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在OpenCV(开放源计算机视觉库)中进行人脸检测实验,发现人们可以使用Haar级联来检测人脸,因为OpenCV提供了其中的几个.但是,我注意到也有几个LBP级联.根据 OpenCV人脸检测文档.

I have been experimenting with face detection in OpenCV (Open Source Computer Vision Library), and found that one could use Haar cascades to detect faces as there are several of them provided with OpenCV. However, I have noticed that there are also several LBP cascades. After doing some research, I found that LBP stands for Local Binary Patterns, and it can also be used for face detection, according to the OpenCV Face Detection Documentation.

我想知道的是,哪个效果更好?哪一个执行速度更快,哪个更准确?看来LBP的执行速度更快,但我也不是100%都知道.谢谢.

What I would like to know is, which works better? Which one performs faster, and which one is more accurate? It seems that LBP performs faster, but I'm not 100% sure about that either. Thanks.

推荐答案

LBP更快(快了几倍),但准确性较低. (比Haar少10-20%).

LBP is faster (a few times faster) but less accurate. (10-20% less than Haar).

如果要在嵌入式系统上检测人脸,我认为LBP是首选,因为它以整数形式进行所有计算. Haar使用浮动,这是嵌入式/移动设备的杀手er.

If you want to detect faces on an embedded system, I think LBP is the choice, because it does all the calculations in integers. Haar uses floats, which is a killer for embedded/mobile.

这篇关于人脸检测中的Haar级联与LBP级联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-24 08:17