You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 21, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 21, 2021. It is now read-only.
InvocationTargetException thrown in defining the VideoCapture Object #13
Thanks, @amarlearning. I just tried the program with the same OpenCV version and IDE on macOS and Windows and it works without any problem.
Are you using the OpenJDK? Does this program work: https://github.com/opencv-java/fourier-transform?
It doesn't use VideoCapture but it's made with JavaFX: I would like to exclude any problem with your environment (JDK, JavaFX, ...) before trying this program in Ubuntu.
Activity
luigidr commentedon Mar 11, 2018
It seems that the problem is in the linking between the Java method and the underlying C++ function.
Which IDE are you using? Do you properly set up the location of the native library for the OpenCV jar?
e.g., http://opencv-java-tutorials.readthedocs.io/en/latest/01-installing-opencv-for-java.html#set-up-opencv-for-java-in-eclipse?
amarlearning commentedon Mar 11, 2018
@luigidr I downloaded the
3.4.1 source folderof OpenCV from here and then installed it using CMake and Apache Ant.I am using Eclipse Oxygen.2 Release (4.7.2).
Native library for the OpenCV jar path :
/opencv-3.4.1/builds/lib. I think its correct because this (http://opencv-java-tutorials.readthedocs.io/en/latest/02-first-java-application-with-opencv.html#create-a-simple-application) is running fine. I think the native library path for OpenCV jar is correct.luigidr commentedon Mar 11, 2018
Thanks, @amarlearning. I just tried the program with the same OpenCV version and IDE on macOS and Windows and it works without any problem.
Are you using the OpenJDK? Does this program work: https://github.com/opencv-java/fourier-transform?
It doesn't use
VideoCapturebut it's made with JavaFX: I would like to exclude any problem with your environment (JDK, JavaFX, ...) before trying this program in Ubuntu.amarlearning commentedon Mar 11, 2018
I am using the Oracle version.
I will try to run this program and will respond back to you.