We have an application that uses the rear βcameraβ to capture an image of an element. So far, all the devices that we tested are working correctly in terms of image capture, as it should be, to the Samsung Galaxy SIII (S3).
Only in the Samsung Galaxy SIII do we observe that Camera.onPictureTaken () returns a raw image that is an interlaced image instead of the correct capture image. Debugging each of the parameters of the camera parameters determines that the reason for this is the next parameter installer. If we do not explicitly specify the parameterSize () parameter for the parameter, then it works as expected:
parameters.setPictureSize(targetPictureSize);
By default, parameters.getPictureSize () returns as [w, h] = [3264, 2448]
"targetPictureSize" is determined by the base on the closest match "Return size from bottom", in this case we used the size [w, h] = [1600, 1200] as "targetPictureSize"
camera.getParameters().getSupportedPictureSizes();
Does anyone know the reason and workaround?
android android-camera galaxy
Gary S.
source share