Tell me how can I access the webcam? Which way to look? Perhaps there are ready libraries? If so, which one is the easiest? Such monsters as OPENCV Processing and Java Library are not suitable, due to their bulkiness. Found OpenCV. But here is how to use for ip cameras examples are not found. The examples for connecting to the camera are the same. Thank. Camera D-link DCS-930 Who will tell you why this code does not pass:

System.loadLibrary(Core.NATIVE_LIBRARY_NAME); VideoCapture ip_cam = new VideoCapture(); ip_cam.open("http://login:password@ip_adres/video/mjpg.cgi"); if (!ip_cam.isOpened()) { System.out.print("Error while trying to open the webcam\n"); return; } System.out.println("Success!"); ip_cam.release(); 

If you go through the browser, it lets you, but it gives a window where it asks if I really go under the login specified on the line. Maybe because of this, the code does not work?

  • As far as I remember, the camera communicates with devices using the tcp: 81 protocol, try dropping deeper in this direction - GenCloud
  • try to specify the port number when connecting, for example IpCam.open (" 192.168.1.30:8080/?dummy=param.mjpg" ); - Alex

0