Hello,
I'm trying to lear openCV (java). I have started with simple project (capture video with webcam). Here is a code (I'm using eclipse).
import org.opencv.core.Core;
import org.opencv.core.Mat;
import org.opencv.highgui.VideoCapture;
public class Main {
public static void main(String[] args) {
//System.loadLibrary("opencv-246.jar");
VideoCapture cap = new VideoCapture(0);
Mat frame = new Mat();
cap.retrieve(frame);
}
}
When I run my code I'm get this error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.highgui.VideoCapture.n_VideoCapture(I)J
at org.opencv.highgui.VideoCapture.n_VideoCapture(Native Method)
at org.opencv.highgui.VideoCapture.<init>(VideoCapture.java:113)
at Main.main(Main.java:10)
Can please someone help me.
Thank you very much.
Best