JavaCV Tutorials

JavaCV Tutorial 1 -Basics:                                                                        JavaCV Tutorial 2 -Video Processing:
                                                                                         
                                         

JavaCV Tutorial 3 -Video Recording:                                       JavaCV Tutorial 4 -Color Filtering:
                                                                                                      


JavaCV Tutorial 5 -Contour Filtering:                                       JavaCV Tutorial 6 -Moments:
                                                                                                            




JavaCV Tutorial 6 -Virtual Mouse:






28 comments:

  1. Replies
    1. Hi, I was trying to configure the tool, I have tryed several versions, the problem is the same, the functions aren't recognized by eclipse.
      I'm trying to configure OpenCV 2.4.5 JavaCV 0.5
      variables: PATH: E:\opencv\build\x64\vc10\bin
      CLASS_PATH: E:\opencv\build\x64\vc10\lib;E:\opencv\build\x64\vc10\staticlib;%CLASSPATH%
      Eclipse:
      Add external jar-> include:
      javacpp.jar, javacv.jar, javacv-windowsx-86_x64,jre1.8

      The problem for using every method is:
      The method IplImage image = cvLoadImage("img1.png"); is not defined for the type Circulo

      Main file:
      import com.googlecode.javacv.cpp.opencv_core.*;
      import com.googlecode.javacv.cpp.opencv_highgui.*;
      import com.googlecode.javacv.CanvasFrame;

      public class Circulo {
      public static void main(String[] args) {
      final IplImage image = cvLoadImage("img1.png");
      }
      }

      Can you help me solving this problem?
      Thank you in advance!
      Rudi

      Delete
  2. i cannot run any javacv program giving compile error. :((
    error pic => http://i.hizliresim.com/lYPbyk.png

    ReplyDelete
  3. I think its a problem due to improper versions of OpenCv and JavaCV, or the environment variables haven't been set properly..
    Watch this tutorial video and see the comments section, may be u will find the solution for ur problem.
    " https://www.youtube.com/watch?v=b3WUItRh6k8 "

    ReplyDelete
  4. Hi,

    I am working with Linux(Ubuntu) at the time of running program following msg displayed can you please help me.
    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    # SIGSEGV (0xb) at pc=0x00007f0fe9e6b8c0, pid=7982, tid=139706348668672
    #
    # JRE version: OpenJDK Runtime Environment (7.0_55-b14) (build 1.7.0_55-b14)
    # Java VM: OpenJDK 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)
    # Problematic frame:
    # V [libjvm.so+0x5c48c0]Error loading class com/googlecode/javacpp/Pointer. get_method_id(JNIEnv_*, _jclass*, char const*, char const*, bool, Thread*) [clone .isra.80]+0x70
    #
    # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
    #
    # An error report file with more information is saved as:
    # /home/fads/Desktop/Projects/MachineOne/hs_err_pid7982.log
    #
    # If you would like to submit a bug report, please include
    # instructions on how to reproduce the bug and visit:
    # http://icedtea.classpath.org/bugzilla

    ReplyDelete
    Replies
    1. "SIGSEGV" , this kind of an error is thrown by Java , so try reinstalling java jdk on your system and if u r using eclipse , thn try reinstalling that also. "SIGSEGV" is some kind of a segmentation error thrown due to insufficient memories or somethin like tat, try modifying ur code like - deallocating the allocated memories , freeing up some memories acquired by some arrays .... etc..
      Try these things ur problem might get solved ... :)

      Delete
    2. Thanks for reply

      Delete
  5. I want to run live streaming in java client from rtmp server. Needed some sample code any one can help me

    ReplyDelete
  6. hello sir,i refered your tutorial to take picture thro' webcam but webcam shows black background no video streaming

    ReplyDelete
    Replies
    1. hai .. sorry for late reply ... but is the webcam drivers properly installed and in the code (in "cvCreateCameraCapture()") have you mentioned it properly .. ?

      Delete
  7. Please tell me which version of Javacv should i use if I have Installed Opencv 2.4.10? I am getting dependency issues (java.lang.UnsatisfiedLinkError) while running the codes in Netbeans IDE.

    ReplyDelete
    Replies
    1. Which version of JavaCV are you using right now ... I think JavaCV 0.9 should work .... if its not try installing OpenCV 2.4.9 .... ok

      Delete
    2. Thank you Manoj. Opencv 2.4.9 with JavaCV 0.9 works smoothly.

      Delete
  8. can u tell me how to create a virtual piano through gesture...plz suggest.....

    ReplyDelete
  9. thank you very much for all your tutorial ,it really helping me alote ,please continue with your tutorials.

    ReplyDelete
  10. can you show how to compare two images using eigenface pca

    ReplyDelete
  11. HI, Can u tell me how to display dual camera and measure the distance? please help, thank a lot.

    ReplyDelete
  12. do you have an example about eigenfaces??

    ReplyDelete
  13. Create work. can u make more tutorials on javaCV.

    ReplyDelete
  14. Great work.. how can we change the mirror movement of the cursor

    ReplyDelete
  15. can u do a tutorial contour hand detection and making virtual mouse on that

    ReplyDelete
  16. Hi, I'm facing some error in testing your code .Please help me.


    Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/javacpp7393873514677/libjniopencv_core.so: libopencv_core.so.2.3: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
    at java.lang.Runtime.load0(Runtime.java:809)
    at java.lang.System.load(System.java:1086)
    at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:566)
    at com.googlecode.javacpp.Loader.load(Loader.java:489)
    at com.googlecode.javacpp.Loader.load(Loader.java:431)
    at com.googlecode.javacv.cpp.opencv_core.(opencv_core.java:127)
    at testing.Main.main(Main.java:34)


    mail>>>>tharhtet1234@gmail.com

    ReplyDelete
  17. hey i watched tutorial on youtube (JavaCV Tutorial 1- Basics(Image transformations)) in this tutorial a cvCvtColor function is used which gives me an error.How can i solve this?

    ReplyDelete