Not able to use Axis IP Camera with OpenCV
Hi,
I am using OpenCV 3.2 jar file. Below is my code snippet. I camera IP link wks fine in browser. but VideoCapture does not with IP Camera link. if (capture.isOpened()) always returns false;. Can you guide what i need to do here.
import org.opencv.videoio.VideoCapture;
public class Sample {
public static void main(String args[])
{
VideoCapture capture = new VideoCapture();
capture.open("http://root:[email protected]/axis-cgi/mjpg/video.cgi?x.mjpeg");
if (capture.isOpened())
System.out.println("Video link open.");
else
System.out.println("Video link not open.");
}
}
if you're on windows, make sure, opencv_ffmpeg.dll can be found.
also, that's some sort of "local" ip address, make sure you can reach it :
ping 10.78.170.247
Check if the camera is protected with password :