Tuesday, March 25, 2014

JavaCV Tutorial 6 -Virtual Mouse



In this tutorial I have explained about controlling a mouse with some simple hand gestures. You can use this technique to either control a mouse or input the coordinate values to a microcontroller- servos to move a webcam in the direction of the object and so on.

Source Code:" https://drive.google.com/file/d/0Bxr1St4kFOnQTnc5NGh4clBvdnc/edit?usp=sharing "

19 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. thanks for this tutorials i hope you complete it with hand detection and face recognition thanks :)

    ReplyDelete
  3. # http://bugreport.sun.com/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.

    ReplyDelete
  4. This tutorial is awesome. Now I am not getting any error, the only problem is that my mouse pointer moves my fast provided that i have set it to slowest level. Please tell me what to do to control it.

    ReplyDelete
  5. In JavaCv6b program you have used two colors blue and green, I want to use red as well for right click. And one more thing, How to program if I want to use my finger number instead of color. Like middle finger for right click and thumb as left click etc Thank you.

    ReplyDelete
    Replies
    1. If u want use ur fingers directly then u should go for hand detection which can be done using convex-hull, convexity defects, ... methods, which is a little bit difficult. So I used the color detection method which was easy.

      Delete
  6. Hi... First, thanks for the tutorials. But im having a lot of problems since im using imports from org.bytedeco... Any Tip???

    ReplyDelete
  7. hi can you please upload tutorials on face recognition or provide any link related to it ?specially in javacv

    ReplyDelete
    Replies
    1. Right now I can provide u the links related to face recognition, cause I don't have time to upload any new videos, but I'll be soon.
      "https://github.com/bytedeco/javacv/blob/master/samples/OpenCVFaceRecognizer.java ", " https://code.google.com/p/javacv/source/browse/samples/FaceRecognition.java?r=02385ce192fb82f1668386e55ff71ed8d6f88ae3".

      Delete
  8. Can't open this link, pls help. Thaks!

    ReplyDelete
    Replies
    1. will u have depth map with dual cam tutorial? thanks

      Delete
  9. i want to extract all frame from video file using opencv or javacv
    please can you explain to me or ex sourcode program java. thanks

    ReplyDelete
  10. can you please elaborate how to add right click event. is it simple or we have to use third z cordinate to add the right click event.

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. hey i run the program and both canvas were opened but I cannot see any image, the webcam is on still there is nothing. Is it bcause of my webcam as I'm running it on my inbuild laptop webcam.... plzzz help

    ReplyDelete