I'm a new user to the opencv java library and I'm having success using the library... its helping me a lot with my software requirements, but now I got a small problem using it. Let me explain the context:
I got a Java web application that displays the server webcam on the web. To display this webcam I'm using a small class that capture each frame from the webcam and publish it in a webservlet and so the flash appication gets each frame (something like streaming).
The main problem is that I also use a SDK to send commands to the cam like, zoom in, zoom out, flash on, flash off, take picture and when I send these commands I need to stop the opencv webcam preview, send the command and afterward start the preview again. It is working ok, but after about 15 or 20 opencv.capture calls it stops working and I get the message "Error while starting capture : device 0" but If I try to start an opencv applet from another application it works well and display the camera image normally.