Ask Your Question

Al_guran's profile - activity

2018-10-26 09:50:02 -0500 received badge  Notable Question (source)
2017-06-04 05:13:11 -0500 received badge  Popular Question (source)
2014-09-03 23:04:16 -0500 received badge  Scholar (source)
2014-08-20 19:31:16 -0500 received badge  Editor (source)
2014-08-20 19:30:36 -0500 asked a question UnsatisfiedLinkError in Java with VideoCapture

I have been able to connect to and open an rstp h264 IP camera stream, and grab the first frame. But this code:

import org.opencv.highgui.VideoCapture;

public class Connector {

    public static void main(final String[] args) throws Exception
    {
        VideoCapture capture = new VideoCapture("rtsp://109.110.33.67:1935/live/CAM-Shamora.stream");
        if (capture.isOpened()) {
            System.out.println("Video is captured");}
    }
}

give me exception

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.highgui.VideoCapture.VideoCapture_1(Ljava/lang/String;)J
    at org.opencv.highgui.VideoCapture.VideoCapture_1(Native Method)
    at org.opencv.highgui.VideoCapture.<init>(VideoCapture.java:128)
    at Connector.main(Connector.java:7)

I use Opencv 2.4.9 and IntelliJIdea13