First time here? Check out the FAQ!
answered 2015-09-11 00:45:51 -0600
Replace Highgui.imencode(".png", frame, buffer);
With Imgcodecs.imencode(".png", frame, buffer);