Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

what's the scalar doing in the constructor. I am not using the java api, but try something like

Mat src = new Mat(previewSize.height, previewSize.width, CvType.CV_8UC1, data);

notice the C1 at the end.

afaik the yuv frame starts with a black and white image