--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/02d11b83-cdbc-49a7-a570-491ca44c2c9en%40android.com.
Hi,I have checked the rotation degree in the image proxy but I am getting a 90 value for both portrait and landscape(without rotating activity and view), In this case how we can rotate the landscape image to portrait because we are getting the same value(90) in both the scenario.
mController = new LifecycleCameraController(this);
mController.bindToLifecycle(this);
mBinding.preview.setController(mController);
// Create a provider.
RotationProvider mRotationProvider = new RotationProvider(this);
// Add listener to receive updates.
mRotationProvider.addListener(executor, rotation -> {
if (mImageCapture != null) {
mImageCapture.setTargetRotation(rotation);
}
});
mImageCapture = builder
//images may capture faster but the image quality may be reduced.
.setCaptureMode(ImageCapture.CAPTURE_MODE_MINIMIZE_LATENCY)
.setTargetResolution(new Size(Constant.TARGET_HEIGHT,
Constant.TARGET_WIDTH))
.build();
cameraProvider.bindToLifecycle(this, cameraSelector, preview, imageAnalysis,
mImageCapture);
mController = new LifecycleCameraController(this);
mController.bindToLifecycle(this);
mBinding.preview.setController(mController);
HONOR X9a 5G
Galaxy A22 5G (a22x) (SM-A226BR)
moto g22 (hawaiip) (moto g22)
A93 (OP4C51L1) (CPH2123)
HONOR 20/Nova 5T (HWYAL) (YAL-L21)
realme GT NEO 3 (RED8BEL1) (RMX3561)
Redmi 10C (fog) (220333QAG)