Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.");
} }