so there is OpenCV for Java now...! Can anyone tell me how to open Videofiles with it ?
I tryed and look all over the internet, but found nothing. The documentation
Here is how it worked for me.
VideoCapture capture=new VideoCapture(); capture.open("Vid.mp4"); Mat frame=new Mat(); for(;;){ capture.read(frame); //reads captured frame into the Mat image imshow("Display",frame); if(cvWaitKey(30) >= 0) break; }