OpenCV has AdaBoost algorithm function.
And gpu version also is provided.
For using detection, we prepare the trained xml file.
Although we can train some target using adaboost algorithm in opencv functions, there are several trained xml files in the opencv folder. (mostly in opencv/sources/data/haarcascades )
I will use "haarcascade_frontalface_alt.xml" file for face detection example.
gpu and cpu both versions use xml file.
more detail refer to this source code.
The source code is included 2 version of cpu and gpu.
result is ..
gpu is faster than cpu version (but exactly they may not be same condition..)
blue boxes are result of cpu.
red boxes are results of gpu.
The results are not important because it can be different by parameters values.
<code start>
<code end>
Github
https://github.com/MareArts/AdaBoost-Face-Detection-test-using-OpenCV
#Tags
cvtColor, CascadeClassifier, CascadeClassifier_GPU, detectMultiScale,
Showing posts with label detectMultiScale. Show all posts
Showing posts with label detectMultiScale. Show all posts
9/24/2014
OpenCV face detection using adaboost example source code and cpu vs gpu detection speed compare (CascadeClassifier, CascadeClassifier_GPU, detectMultiScale)
Labels:
AdaBoost,
CascadeClassifier,
CascadeClassifier_GPU,
cvtColor,
detectMultiScale,
face detection,
OpenCV
Subscribe to:
Posts (Atom)
-
This is data acquisition source code of LMS511(SICK co.) Source code is made by MFC(vs 2008). The sensor is communicated by TCP/IP. ...
-
Background subtractor example souce code. OpenCV support about 3 types subtraction algorithm. Those are MOG, MOG2, GMG algorithms. Det...
-
Created Date : 2011.2 Language : C/C++ Tool : Microsoft Visual C++ 2010 Library & Utilized : OpenCV 2.2 Reference : Interent Refer...
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
Logistic Classifier The logistic classifier is similar to equation of the plane. W is weight vector, X is input vector and y is output...
-
This example source code is to extract HOG feature from images. And save descriptors to XML file. The source code explain how to use HOGD...
-
I use MOG2 algorithm to background subtraction. The process is resize to small for more fast processing to blur for avoid noise affectio...
-
This post is about how to copy Mat data to vector and copy vector data to Mat. Reference this example source code. printf ( "/////...
-
EMD(earth mover distance) method is very good method to compare image similarity. But processing time is slow. For using the EMD compare, ...
-
* Introduction - The solution shows panorama image from multi images. The panorama images is processing by real-time stitching algorithm...