1 | initial version |
i think you read from camera a RGBA image and need to convert it to RGB
something like below :
mRgba = inputFrame.rgba();
Mat rgb = new Mat();
Imgproc.cvtColor(mRgba, rgb, Imgproc.COLOR_RGBA2BGR);
2 | No.2 Revision |
i think you read from camera a RGBA image and need to convert it to RGB
something like below :see mobilenet-objdetect sample
mRgba = inputFrame.rgba();
Mat rgb = new Mat();
Imgproc.cvtColor(mRgba, rgb, Imgproc.COLOR_RGBA2BGR);