Ask Your Question

zapdroid's profile - activity

2015-02-16 07:33:33 -0600 commented question face-detect with portrait mode

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?

2015-02-16 06:57:39 -0600 asked a question Android OpenCV 2.4.10 Portrait Issue

Hi I have View which extends (JavaCameraView extends CameraBridgeViewBase) like this sample. I cannot change orientation to portrait. Can you help about this?