Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

VideoCapture issue with Camera IP

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)

click to hide/show revision 2
None

updated 2018-10-26 10:01:04 -0500

berak gravatar image

VideoCapture issue with Camera IP

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)

FaceDetect.main(FaceDetect.java:17)
click to hide/show revision 3
retagged

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

berak gravatar image

VideoCapture issue with Camera IP

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)