whether the OpenCV library, I can create a project in java face login with webcam. Give me an example program..?


10 years 7 months ago


thanks grog, but I want to be programmed with the example you gave about face detection, face recognition, face tracking with my webcam
this example capture image:
OpenCV package;
com.googlecode.javacv.OpenCVFrameGrabber import;
com.googlecode.javacv.cpp.opencv_core.IplImage import;
import static com.googlecode.javacv.cpp.opencv_highgui. *;
CaptureImage {public class
     private static void captureFrame () {
         / / 0-default camera, 1 - next ... so on
         OpenCVFrameGrabber final grabber = new OpenCVFrameGrabber (0);
         try {
             grabber.start ();
             IplImage img = grabber.grab ();
             if (img! = null) {
                 cvSaveImage ("capture.jpg", img);
         } Catch (Exception e) {
             e.printStackTrace ();
     public static void main (String [] args) {
         captureFrame ();


10 years 7 months ago

You can learn and develop new applications with MRL.
There is a step by step guide to development - http://myrobotlab.org/quick_start#developer

For example :
Loading the FaceDetect filter would load this class :


You could learn, and possibly contribute to MyRobotLab, so others can learn too !

If you develop in this context, I will help, but I do not have the time nor desire to help just you on your individual applications.