This source code use OpenCV tools package to realize face detection from pictures, and use a green frame to label the face. The attached codes were finished using VS2008 and OpenCV2....">
Home » Source Code » Face Detection in C++

Face Detection in C++

2013-11-28 04:03:00
The author
Download(s): 6
Point (s): 3 
Category Category:
Image ProcessingImage Processing CPlusPlus, C-C++C++


size: 12px;">This source code use OpenCV tools package to realize face detection from pictures, and use a green frame to label the face. 

The attached codes were finished using VS2008 and OpenCV2.4.6. You can input the parameters from the commend line. Argv[1] is the position of the picture.

The code of eye detection is the same as face detection. You just need perform the same detection on the result of the face detection. (please note that, the parameters of eye detection need to be adjusted, especially the upper and lower range)

Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
FaceDetection.exe76.50 kB23-10-13|12:26
FaceDetection.ilk529.31 kB23-10-13|12:26
FaceDetection.pdb1.66 MB23-10-13|12:26
17C1D8506FBF6D4702A4C659D3CA04BD.jpg84.07 kB26-07-13|10:07
2F3592491437BBF18990F7A50FCD6FE6.jpg145.73 kB26-07-13|10:07
34CD8CB8B48239527AE9B737F1E350D7.jpg132.46 kB26-07-13|10:07
35C0BC4DF5F3A661ABE50FCBB110042C.jpg7.31 kB26-07-13|10:07
9CF9804AA76AC9C4A4BCDD0741BF607E.jpg26.99 kB26-07-13|10:08
BuildLog.htm13.28 kB23-10-13|12:26
FaceDetection.exe.embed.manifest663.00 B23-10-13|12:26
FaceDetection.exe.embed.manifest.res728.00 B23-10-13|12:26
FaceDetection.exe.intermediate.manifest621.00 B23-10-13|12:26
FaceDetection.obj319.45 kB23-10-13|12:26
FaceDetection.pch3.06 MB23-10-13|12:26
mt.dep65.00 B23-10-13|12:26
stdafx.obj11.70 kB23-10-13|12:26
vc90.idb507.00 kB23-10-13|12:26
vc90.pdb1.14 MB23-10-13|12:26
FaceDetection.cpp2.80 kB23-10-13|12:35
FaceDetection.vcproj5.23 kB23-10-13|12:27
FaceDetection.vcproj.PC-20130906MFQS.Administrator.user1.39 kB23-10-13|12:39
lbpcascade_frontalface.xml50.64 kB28-07-12|06:59
ReadMe.txt1.19 kB23-10-13|11:17
BuildLog.htm8.93 kB23-10-13|12:35
FaceDetection.exe.intermediate.manifest616.00 B23-10-13|12:35
FaceDetection.obj1.69 MB23-10-13|12:35
FaceDetection.pch3.06 MB23-10-13|12:35
mt.dep65.00 B23-10-13|12:35
stdafx.obj36.08 kB23-10-13|12:35
vc90.idb195.00 kB23-10-13|12:35
vc90.pdb996.00 kB23-10-13|12:35
stdafx.cpp218.00 B23-10-13|11:17
stdafx.h233.00 B23-10-13|11:17
targetver.h498.00 B23-10-13|11:17
FaceDetection.ncb3.32 MB23-10-13|12:39
FaceDetection.sln905.00 B23-10-13|11:17
FaceDetection.suo12.50 kB23-10-13|12:39
34CD8CB8B48239527AE9B737F1E350D7.jpg132.46 kB26-07-13|10:07
FaceDetection.pdb1.17 MB23-10-13|12:35
FaceDetection_0801.exe20.00 kB23-10-13|12:35
lbpcascade_frontalface.xml50.64 kB28-07-12|06:59
Debug0.00 B23-10-13|12:26
Release0.00 B23-10-13|12:35
Debug0.00 B23-10-13|12:26
FaceDetection0.00 B23-10-13|12:35
Release0.00 B23-10-13|12:35
FaceDetection0.00 B23-10-13|12:27
Sponsored links


(Add your comment, get 0.1 Point)
Minimum:15 words, Maximum:160 words

This source code is very useful thanks for the author sharing the code,


Thank you! It very helpful!





  • 1
  • Page 1
  • Total 1

Face Detection in C++ (3.61 MB)

Need 3 Point(s)
Your Point (s)

Your Point isn't enough.

Get 22 Point immediately by PayPal

Point will be added to your account automatically after the transaction.

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more Points


Don't have an account? Register now
Need any help?
Mail to:


CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D