I am using cameraX in my android app for imageCapturing.
Imagecapture giving full resolution i.e 3000 x 4000 but ImageAnalysis is only giving 1080 x 1440.
Here is my code:
private ResolutionSelector resolutionSelector;
resolutionSelector = new ResolutionSelector.Builder()
.setAllowedResolutionMode(ResolutionSelector.PREFER_HIGHER_RESOLUTION_OVER_CAPTURE_RATE)
.setResolutionStrategy(ResolutionStrategy.HIGHEST_AVAILABLE_STRATEGY)
.build();
imageCapture = new ImageCapture.Builder()
.setCaptureMode(ImageCapture.CAPTURE_MODE_MAXIMIZE_QUALITY)
.setResolutionSelector(resolutionSelector)
.build();
ImageAnalysis imageAnalysis = new ImageAnalysis.Builder()
.setResolutionSelector(resolutionSelector)
.build();
I want full resolution image after Image analysis because the app requires full resolution image. With lesser resolution the app gives degraded image quality.
- Is there any way to match the resolution in cameraX.
2.What else can we use to achieve the same if totally not possible from CameraX.
Thanks in advance .
New contributor
Bikash Gupta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.