androidcommonsware-cwac

CWAC-CAM2 confirm image is coarse


Confirm screen show image as coarse.

I tested it with Pantech IM model -version is kitkat.

How can I display confirmation image as more smoothly?

coarse image at confirm screen

Intent i=new CameraActivity.IntentBuilder(getActivity())
        .facing(CameraActivity.Facing.BACK)
        .to(new File(tmpCameraPic))
        .debug()
        .updateMediaStore()
        .build();

startActivityForResult(i, CAPTURE_IMAGE);

Solution

  • Try giving some heap to the preview so cam2 can load the image with a better quality.

    From this documentation page, add the confirmationQuality(0.1f) to the intent. 0.1f -> Better quality.

    Intent i=new CameraActivity.IntentBuilder(getActivity())
            .facing(CameraActivity.Facing.BACK)
            .to(new File(tmpCameraPic))
            .debug()
            .updateMediaStore()
            .confirmationQuality(0.1f)
            .build();