How to detect and capture an image automatically when person is in front of the camera?

asked 2018-02-24 04:08:28 -0600

anushkawellawaya@gmail.com gravatar image

I am learning about face recognition.I do this using open cv, c++ language,visual studio 2015. I want to do when a person come in front of the camera,it capture the face automatically and save in database.how I done it. How it done. Please help me.

I can open the camera using opencv, c++ language,and visual studio 2015.

edit retag flag offensive close merge delete

Comments

next step: face detection. have a look here

after you manage to do this, you can proceed to build a database, and check new persons, but -- one step after the other !

berak gravatar imageberak ( 2018-02-24 04:58:14 -0600 )edit

Thank for helping me..

anushkawellawaya@gmail.com gravatar image[email protected] ( 2018-02-26 22:18:59 -0600 )edit

this is the code that I use to open the camera.how I connect this to your code.I tried to do this but unable..

int main(int, char**){ Mat img; VideoCapture cam(0); namedWindow("camera"); while (1) { cam >> img; imshow("camera", img); if (waitKey(1) == 27){ break;}} cam.release(); return 0; }

anushkawellawaya@gmail.com gravatar image[email protected] ( 2018-02-26 22:22:47 -0600 )edit