Face Detection Concept in C#

Language

This sample code provides you the concept on how image processing is done and manipulated using EmguCV. One good example of image processing is FACE and Object DETECTION and RECOGNITION etc. but in this sample code I only give Face detection and Eyes detection concept. I Hope you guys, you appreciate and love this work.. In order to work this program: 1.) I never use any SDK for this.. I just use EMGU CV for Image processing and Vision library. 2.) There is the so called COMPATIBILITY ISSUE when running and compiling this program... This program is compile in the Windows XP SP3 32-Bit OS. Therefore this program runs only on Windows XP. Note: when you compile and run this in the Windows 7 32 or 64-Bit OS, this program will commit an error on "cvextern.dll" why? because of the compatibility issue which is this program is compile under Windows XP. Solution: 1.) Download the latest EMGU CV, then run and compile it under your OS Compatibility. After compiling.. Copy the following DLL and paste it in the folder where you save this program. *cvextern.dll *Emgu.CV.dll *Emgu.CV.ML.dll *Emgu.CV.UI.dll *Emgu.Util.dll *opencv_calib3d220.dll *opencv_contrib220.dll *opencv_core220.dll *opencv_features2d220.dll *opencv_ffmpeg220.dll *opencv_flann220.dll *opencv_gpu220.dll *opencv_highgui220.dll *opencv_imgproc220.dll *opencv_legacy220.dll *opencv_ml220.dll *opencv_objdetect220.dll *opencv_video220.dll 2.) Download the latest SQLite connector for .Net IDE (System.Data.SQLite.dll) Thank you and Good Day... Philip Cesar B. Garay BSIT Mindanao State University at Naawan Naawan Misamis Oriental 9023 Philippines

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Submitted byAnonymous (not verified)on Sun, 06/05/2011 - 02:28

sir eto po yung need namin sa thesis, possible po ba na ma convert ito sa vb6? salamat ng marami sir!

ahmm... parang impossible na mangyari ung wish mo kasi sa gamit ko pa lang na Emgu CV para sa face detection and recognition is pure C# wrapper yan and also I use XML for face detection like the frontal face, eye detection and profile face... so therefore parang malabo na mangyari yun.... This time I already created a Payroll System with Face recognition as the basis for the time attendance using C#...
Submitted byAnonymous (not verified)on Fri, 06/10/2011 - 00:09

Hi im interested in ur work.. May i know how does it works po??this is my facebook acct. [email protected].. tnx ng madame! :))
Submitted byAnonymous (not verified)on Sat, 06/18/2011 - 03:57

sir i need finger print recongnition project in c sharp.if u will help me then i will be very thank full to u
Submitted byAnonymous (not verified)on Sun, 06/26/2011 - 19:46

I'm lester, can I have your number or add you in facebook or yahoo messenger to have conversation about C# and Visual Basic. I have lots of question in programming. I'm newbie in programming and I'm confused a little bit in programming and whats the best programming language to use. Mr. Itachi add me [email protected] Thx

Hello, I already add you in my facebook account, we can talk there or you can post here if you are in need. We have here our fellow programmers who kind to help you in your problem.
Submitted byAnonymous (not verified)on Mon, 06/27/2011 - 02:14

How it's works ? in addition to compile your sample code , is there any SDK for this recognition system ? I've compile it at Visual C# 2010 and it wasn't work ... any idea pal ? I'm really very very very appreciate what you do ... thank's before ... best regard Andika fro Indonesia ...

In order to work this program: 1.) I never use any SDK for this.. I just use EMGU CV for Image processing and Vision library. 2.) There is the so called COMPATIBILITY ISSUE when running and compiling this program... This program is compile in the Windows XP SP3 32-Bit OS. Therefore this program runs only on Windows XP. Note: when you compile and run this in the Windows 7 32 or 64-Bit OS, this program will commit an error on "cvextern.dll" why? because of the compatibility issue which is this program is compile under Windows XP. Solution: 1.) Download the latest EMGU CV, then run and compile it under your OS Compatibility. After compiling.. Copy the following DLL and paste it in the folder where you save this program. *cvextern.dll *Emgu.CV.dll *Emgu.CV.ML.dll *Emgu.CV.UI.dll *Emgu.Util.dll *opencv_calib3d220.dll *opencv_contrib220.dll *opencv_core220.dll *opencv_features2d220.dll *opencv_ffmpeg220.dll *opencv_flann220.dll *opencv_gpu220.dll *opencv_highgui220.dll *opencv_imgproc220.dll *opencv_legacy220.dll *opencv_ml220.dll *opencv_objdetect220.dll *opencv_video220.dll 2.) Download the latest SQLite connector for .Net IDE (System.Data.SQLite.dll)
Submitted byAnonymous (not verified)on Thu, 07/14/2011 - 17:00

hi philip can you give me some suggestions on how to improve n to take intrest in programming and which programming will be suitable for new programmers like me and how could I a good programmer like you please give me some tips.... regards, Zohaib Ud [email protected]
Submitted byAnonymous (not verified)on Sat, 07/16/2011 - 10:22

kuya pa add nmn po aq fb oh ppturo dn sana ako sau :( pls po heres my email po [email protected]
Submitted byAnonymous (not verified)on Thu, 08/25/2011 - 12:16

dear sis, I download (face_and_eye_detection_concept.zip) source code. But I can't extract Zip file. How can I do it? give me suggestion please. thank Thein Than Soe.
Submitted byAnonymous (not verified)on Thu, 08/25/2011 - 12:33

please send to me (face_and_eye_detection_concept.zip) source code in C# [email protected]
Submitted byAnonymous (not verified)on Thu, 08/25/2011 - 14:23

sir, I want (face_and_eye_detection_concept.zip) source code. Why download Zip file can not extract? How can I get it.?
Submitted byAnonymous (not verified)on Mon, 09/05/2011 - 13:59

hello sir, I need help regarding - 1. Key code file. 2. if we bypass the key code, face is not appearing at picture box.
Submitted byAnonymous (not verified)on Thu, 11/10/2011 - 09:56

hi..u have OCR project? i need to do OCR project for my final project
Submitted byparag (not verified)on Fri, 12/23/2011 - 21:17

hi,In your code i have this exception DllNotFountException in the given line haar = new HaarCascade("haarcascade_frontalface_alt_tree.xml"); what should i do? please help.

Solution: If you are using Visual Studio 2010.. then you must download the latest EMGU CV then compile it under the .NET FRAMEWORK 4... otherwise if you are using Visual Studio 2008 then compile my app.. under the .NET FRAMEWORK 3.5 or 2
Submitted byJakfar (not verified)on Wed, 01/18/2012 - 17:28

how can i create using vb.net???
Submitted byBlue (not verified)on Sat, 01/28/2012 - 16:10

var faces = grayframe.DetectHaarCascade( haar, 1.4, 4, HAAR_DETECTION_TYPE.DO_CANNY_PRUNING, new Size(nextFrame.Width / 8, nextFrame.Height / 8) )[0]; I'm having a problem with this code.. error says "Object reference not set to an instance of an object." what should I do? Thanks
Submitted byBlue (not verified)on Sat, 01/28/2012 - 16:26

"Unable to load DLL 'cvextern': The specified module could not be found. (Exception from HRESULT: 0x8007007E)" I have that error when I try to run the program. private void Form1_Load(object sender, EventArgs e) { cap = new Capture(0); // adjust path to find your xml //haar = new HaarCascade("haarcascade_frontalface_alt2.xml"); //haar = new HaarCascade("haarcascade_frontalface_alt_tree.xml"); //eye= new HaarCascade("haarcascade_eye.xml"); haar = new HaarCascade("haarcascade_frontalface_alt2.xml"); } at that line. What should I do? Thak you very much
Submitted bycharmaine joyce (not verified)on Sun, 03/11/2012 - 12:03

hello., am charmaine my problem is, i have already done the emguCV file..then already captured done everything and also the database record . i use VISUAL studio 2008 then mysql but the problem is . how can i connect to emgucv to sql so that every captured of the STUDent will see his/her record.. can you help ..it's my pressure.. this my facebook account: CHARMAINE JOYCE MENDOZA ISIDORO..
Submitted byRobert Sot (not verified)on Fri, 05/11/2012 - 00:40

Hi, i ve some problems, when I follow your steps, 1º I downloaded Emgu CV, and i installed 2º I Add the references...for example Emgu.CV.ML.dll, is not there...I can not add 3º when i try to run it, in the line: cap = new Capture(0); A new window opens: TypeInitilizationException was un handled Waht can I do?? Thank you so much for this post.
Submitted byAnonymous (not verified)on Sun, 09/23/2012 - 17:20

hey i want this project in vb.net 2008 please help [email protected] ...send me fast

Submitted byAnonymous (not verified)on Wed, 04/10/2013 - 02:05

sir,when i run the project only the form open and camera open . after that nothing was happen. so how can this project match or recognise the image
Submitted byRic Ryan (not verified)on Fri, 12/13/2013 - 05:46

hello im ric, im about to give proposal concerning also in image processing,, my project is about traffic system using image processing, is it posible to identify congested traffic?
Submitted bysteven jobs (not verified)on Mon, 02/10/2014 - 10:05

you dont know how this thing works.
Submitted bybensuhail (not verified)on Sun, 03/09/2014 - 03:05

What is the Microsft.CSharp?!
Submitted byShinshan (not verified)on Sun, 04/03/2016 - 22:30

Gud Pm sir bka sir po pde nyo kmi tulungan s thesis nmin about facial recognition d namin kz maextract ung face n ndedetect ng camera, tska gusto po nmin mlman kung pnu nya mrerecognize un once n masave nmin s database ung extracted faces,,tnx

Add new comment