I need capture a video stream from my USB webcam, for this i use Opencv 2.4.6 for developing in Java. I follow the steps listed in here
I add the \"C:\\opencv\\build
Try the below code
import org.opencv.core.CvType; import org.opencv.core.Mat;
import nu.pattern.OpenCV;
public class OpencvMain {
public static void main( String[] args ) { OpenCV.loadLocally(); Mat mat = Mat.eye( 3, 3, CvType.CV_8UC1 ); System.out.println( "mat = " + mat.dump() ); }
}