Ask Your Question

Revision history [back]

Try this solution, it works for me Mat mRGBat = mRGBA.t(); Core.flip(mRGBat,mRGBat,-1); Imgproc.resize(mRGBat,mRGBat,mRGBA.size());

// Detect faces using mRGBat Imgproc.rectangle(mRGBat, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height), new Scalar(255, 0, 0)); return mRGBat ;

Then try to detect faces in mRGBat