如何获得原始相机质量的图像?

时间:2019-06-02 07:32:48

标签: android android-fragments android-intent

我正在尝试为Android 9.0版制作相机,当我单击相机预览时,它会变成模糊图像,如何消除图像上的模糊图像? enter image description here

public void onPictureTaken(byte[] data, final Camera camera) {
             Bitmap bitmap;
              Matrix matrix = new Matrix();

if (currentCameraId == Camera.CameraInfo.CAMERA_FACING_BACK) {
         matrix.postRotate(90);

 } else {

  Matrix matrixMirrory = new Matrix();
  float[] mirrory = {-1, 0, 0, 0, 1, 0, 0, 0, 1};
  matrixMirrory.setValues(mirrory);
  matrix.postConcat(matrixMirrory);
  matrix.postRotate(90);
   }
}

0 个答案:

没有答案