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
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 "
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
"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 ... :)
hai .. sorry for late reply ... but is the webcam drivers properly installed and in the code (in "cvCreateCameraCapture()") have you mentioned it properly .. ?
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.
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)
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?
Supperb,
ReplyDeleteCool dude..
ReplyDeleteThanks Guys : )
ReplyDeleteHi, I was trying to configure the tool, I have tryed several versions, the problem is the same, the functions aren't recognized by eclipse.
DeleteI'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
i cannot run any javacv program giving compile error. :((
ReplyDeleteerror pic => http://i.hizliresim.com/lYPbyk.png
I think its a problem due to improper versions of OpenCv and JavaCV, or the environment variables haven't been set properly..
ReplyDeleteWatch 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 "
Hi,
ReplyDeleteI 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
"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..
DeleteTry these things ur problem might get solved ... :)
Thanks for reply
DeleteThanks a lot all issues closed
ReplyDeleteawesome
ReplyDeleteI want to run live streaming in java client from rtmp server. Needed some sample code any one can help me
ReplyDeletehello sir,i refered your tutorial to take picture thro' webcam but webcam shows black background no video streaming
ReplyDeletehai .. sorry for late reply ... but is the webcam drivers properly installed and in the code (in "cvCreateCameraCapture()") have you mentioned it properly .. ?
DeletePlease 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.
ReplyDeleteWhich 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
DeleteThank you Manoj. Opencv 2.4.9 with JavaCV 0.9 works smoothly.
Deletecan u tell me how to create a virtual piano through gesture...plz suggest.....
ReplyDeletethank you very much for all your tutorial ,it really helping me alote ,please continue with your tutorials.
ReplyDeletecan you show how to compare two images using eigenface pca
ReplyDeleteHI, Can u tell me how to display dual camera and measure the distance? please help, thank a lot.
ReplyDeleteGREAT!!!!!!!!!!!!!!!!!!!!!!
ReplyDeletedo you have an example about eigenfaces??
ReplyDeleteCreate work. can u make more tutorials on javaCV.
ReplyDeleteGreat work.. how can we change the mirror movement of the cursor
ReplyDeletecan u do a tutorial contour hand detection and making virtual mouse on that
ReplyDeleteHi, I'm facing some error in testing your code .Please help me.
ReplyDeleteException 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
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