Ask Your Question

Revision history [back]

VideoCapture(String filename) missing constructor in OpenCV Java

Hi guys. I am trying to use OpenCV for an object detection project. I need to be able to read video from a file as well as being able to use a live video stream from a camera. Unfortunately, the VideoCapture class does not support the constructor VideoCapture(String filename) - only VideoCapture(int device). I saw this post: http://answers.opencv.org/question/10274/desktop-java-how-to-load-video-file/, which answered the question...but I don't know how to recompile the files I have edited? I have downloaded OpenCV 2.4.7.

click to hide/show revision 2
retagged

updated 2013-11-23 02:44:15 -0600

berak gravatar image

VideoCapture(String filename) missing constructor in OpenCV Java

Hi guys. I am trying to use OpenCV for an object detection project. I need to be able to read video from a file as well as being able to use a live video stream from a camera. Unfortunately, the VideoCapture class does not support the constructor VideoCapture(String filename) - only VideoCapture(int device). I saw this post: http://answers.opencv.org/question/10274/desktop-java-how-to-load-video-file/, which answered the question...but I don't know how to recompile the files I have edited? I have downloaded OpenCV 2.4.7.