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

GroG's picture

Have you used MRL before

Have you used MRL before ?

You can use this link to get started with opencv -

Post a screen shot on this blog, and I will help you with the next step.

Dedy_hidayat's picture

  thanks grog, but I want


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 ();
GroG's picture

You can learn and develop new

You can learn and develop new applications with MRL.
There is a step by step guide to development -

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.


Dedy_hidayat's picture

thanks to your grog, my

thanks to your grog, my project and my post was in the first place hopefully this can help others