Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

it's probably far easier, to save your image from opencv:

 Mat takeAPic= new Mat();
 capture.read(takeAPic);
 Imagecodecs.imwrite("my.png", takeAPic);

(but the error is related to your server, it does not conform too the mjpg protocol)

it's probably far easier, to save your image from opencv:

 Mat takeAPic= new Mat();
 capture.read(takeAPic);
 Imagecodecs.imwrite("my.png", takeAPic);

(but the error is related to your server, ipcam/server, it does not conform too the mjpg mjpeg protocol)

it's probably far easier, to save your image from opencv:

 Mat takeAPic= new Mat();
 capture.read(takeAPic);
 if ( ! takeAPic.empty() ) // ipcam problem
     Imagecodecs.imwrite("my.png", takeAPic);

(but the error is related to your ipcam/server, it does not conform too the mjpeg protocol)