Ask Your Question

Revision history [back]

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);

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);