我正在尝试为Android 9.0版制作相机,当我单击相机预览时,它会变成模糊图像,如何消除图像上的模糊图像?
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);
}
}