I took a picture using the camera app and when I stored it using a Bitmap this is what it looks like:
Why is the image so blurry? Is there another way to capture the image without distorting the quality?
Edit: Code for how the image is being captured and previewed
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
if (requestCode == CAMERA_REQUEST_CODE) {
val foodBitmap = Objects.requireNonNull(Objects.requireNonNull(data)!!.extras)!!["data"] as Bitmap
food_image.setImageBitmap(foodBitmap)
}
}