Setting target resolution for CameraX not working as in documentation
问题 I want to capture photos with fixed resolution (i.e. 1200x1600 ) using CameraX library. So according to documentation I can set target resolution for ImageCaptureConfig : val imageCaptureConfig = ImageCaptureConfig.Builder() .setLensFacing(CameraX.LensFacing.BACK) .setCaptureMode(ImageCapture.CaptureMode.MAX_QUALITY) .setTargetResolution(Size(1200, 1600)) .setTargetAspectRatio(Rational(3,4)) .build() Documentation describes setTargetResolution method as follows: Sets the intended output