Ask Your Question

Revision history [back]

When i change the orientation with these codes (deliverAndDrawFrame method on CameraBridgeViewBase)

            Matrix matrix = new Matrix();
            matrix.preTranslate(
                    (canvas.getWidth() - mCacheBitmap.getWidth()) / 2,
                    (canvas.getHeight() - mCacheBitmap.getHeight()) / 2);

            matrix.postRotate(270f, (canvas.getWidth()) / 2,
                    (canvas.getHeight()) / 2);
            canvas.drawBitmap(mCacheBitmap, matrix, null);

the face detector has disappeared. How can i arrange this issue?