VideoCapture issue with Camera IP

asked 2018-10-26 09:49:06 -0500

jayaise gravatar image

updated 2018-10-26 10:02:53 -0500

berak gravatar image

I am using code as below:

public static void main (String[] args) {
    System.load("C:/Jayashree/Facess/opencv341/opencv_java341.dll");
    System.load("C:/Jayashree/Facess/opencv341/opencv_ffmpeg341_64.dll");
    Mat mat = Mat.eye(3, 3, CvType.CV_8UC1);
    System.out.println("mat = " + mat.dump());
    VideoCapture cap = new VideoCapture();//"http://root:root@192.168.1.81/axis-cgi/mjpg/video.cgi?x.mjpeg");
    CascadeClassifier faceCascade = null;
    cap.open("http://root:root@192.168.1.81/axis-cgi/mjpg/video.cgi?x.mjpeg");
    //cap.open();
    System.out.println("Welcome to OpenCV cap ============== " + cap.isOpened());
  }

I am facing Exception as below:

mat = [  1,   0,   0;
   0,   1,   0;
   0,   0,   1]
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.videoio.VideoCapture.VideoCapture_3()J
    at org.opencv.videoio.VideoCapture.VideoCapture_3(Native Method)
    at org.opencv.videoio.VideoCapture.<init>(VideoCapture.java:72)
    at FaceDetect.main(FaceDetect.java:17)
edit retag flag offensive close merge delete