Face not detect when change orientation?
<p>I have problem with face detection. When I change the orientation of my device from landscape to portrait, face detection fails.</p>

<p>I am unable to find a solution. This is what I tried:</p>

<pre><code>if (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { 
    mCamera = Camera.open(camIdx);
    Camera.Parameters params = mCamera.getParameters();
    params.set("orientation", "portrait");
    //params.set("rotation", 90);           
    mCamera.setDisplayOrientation(90);
    //params.setRotation(90);
    //params.setPictureSize(640, 480);
    mCamera.setParameters(params);
    mCamera.startPreview();
}
</code></pre>

<p>Whenever I change the orientation of my device, I did'nt got face detect .
please anybody help me, i did try all thinks but not able detect face.</p>
