This is a 1st rate article which I have successfully translated into visual basic.net.
There is a slight bug in the new face recognition section which is easily overcome:
Button2_click adds a new face.
After recognising a new face as "TrainedFace", TrainedFace is ignored and the face stored in "result" , from the FrameGrabber callback, is used instead:
foreach (MCvAvgComp f in facesDetected[0])
{
TrainedFace = currentFrame.Copy(f.rect).Convert<Gray, byte>();
break;
}
//resize face detected image for force to compare the same size with the //test image with cubic interpolation type method// ***************************************************************************// Original method incorrect- uses image from last call back in FrameGrabber// TrainedFace = result.Resize(100, 100, Emgu.CV.CvEnum.INTER.CV_INTER_CUBIC);// ***************************************************************************
TrainedFace = TrainedFace.Resize(100, 100, Emgu.CV.CvEnum.INTER.CV_INTER_CUBIC);
trainingImages.Add(TrainedFace);
labels.Add(textBox1.Text);
Hi Rusty,
Extract what you need from my full application. There is a lot going on in the code and the libraries make the zip file very big: http://www.davepatterson.me.uk/public/face.zip
Do you know this could work with animal pictures instead of humans.
Eg: I'm mapping dog 1 with scar under left eye as name A; Dog 2 with scar above upper lip as name B. When I then upload a new picture it says A, B or no match?
I have been trying but currently it seems to be working only with human faces.
when define eigenobjectrecognizer object,Should I call the classin EMGU(eigenobjectrecognizer class) or i should call the class that exist in folder of this project(eigenobjectrecognizer class).
Recognition accuracy is very low for me, and if a person is defined, he or she will identify other people who are not defined as the person we have already defined (if he or she must be anonymous).
OK, so facial recognition is interesting and has potentially very benevolent applications, but it can also be used for great evil too! Just look what it has done in China! Look at what it is doing in the UK and USA! I would like to see all further research into this technology halted immediately, pending a full investigation into the ethics of its use and the implementation of necessary legislation to prevent law enforcement et al. from abusing this technology. (Sadly it seems that legislation is necessary for this technology: I wish there was a better way, but CEOs and shareholders are just too irresponsible). I think all coders should cease work on these projects immediately (though one may argue that it is already too late). Computer Tech companies needs to stop being reckless: facial recognition technology is absurdly dangerous. It is also rapidly destroying public perception of IT companies who are increasingly being viewed as sinister and evil, and rightly so.
So you want to put the genie back in the lamp? Even morons realize that you cant go backwards. Attempts to control development via law never work. There will always be people who will ignore the law if they see an advantage. And will the government comply? They are the biggest abusers. Do you trust your gov to do whats mandated if they see an advantage? You really are chicken little running around yelling that the sky is falling.
Thanks it works perfect but how can i make him remember the old faces which he recognized them before restart the program
i mean how can we make him know that this person is the same person who recognized him before?
thanks a lot
Hello,
I am trying to implement face detection and recognition system using Emgu CV.
1. I have downloaded and install Emgu CV library as mentioned in this tutorial
EmguCv / OpenCV Installation Tutorial ( windows ) | EmguCv Camera Application Part 1 - YouTube[^]
2. I have opened this project in visual studio 2017 and also follow all the steps mentioned in your article.
But when I am running my project, the camera of my laptop is indicating that it is on but I am unable to see anything on the image-grabber area.
I am using windows 10 64bit. and latest Emgu CV.
and my laptop camera is in working condition I have tested it in example projects of Emgu CV lib.
If you have any other solution or any suggestion please share with me
Here is my email: ssharma0834@gmail.com
Thank you