Ask Your Question

MustaZIR's profile - activity

2017-03-22 13:42:42 -0600 asked a question VideoWriter.IsOpened opencv java

i'm using OpenCV library to record a video from my webcam.. but the methode IsOpened(); doesn't work! i can't find where the problem is? Here is my code! any suggestions?

Size size = new Size(480, 640);
int fourcc = VideoWriter.fourcc('D','I','V','X'); 
VideoWriter recorded = new VideoWriter("Record.avi",fourcc,20,size,true);
recorded.IsOpened(); //it always return false !!!

By the way i'm using netbeans IDE 8.2 on windows 10 !