Fixed
Status Update
Comments
wu...@google.com <wu...@google.com>
xi...@google.com <xi...@google.com>
xi...@google.com <xi...@google.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
ch...@google.com <ch...@google.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
ne...@miracl.com <ne...@miracl.com> #4
Thanks for your swift response and for identifying the issue. Looking forward to the fix.
ap...@google.com <ap...@google.com> #5
Project: platform/frameworks/support
Branch: androidx-main
commit 1c3f4cb30dc07227c1d3d0dc1d3804b5c4447e15
Author: CharcoalChen <charcoalchen@google.com>
Date: Fri Mar 22 10:45:47 2024
Fix ImageAnalysis analyzer default target resolution merge issue
ImageAnalysis analyzer default target resolution was not correctly merged into ResolutionSelector.
Relnote: "Fixed ImageAnalysis' resolution selection issue related to the analyzer default target resolution setting: target resolution was incorrectly kept as 640x480 even if applications has set a different analyzer default resolution setting. If applications encounter this issue (1.3.0 ~ 1.3.2) and can't upgrade to use the newer version releases which contain the solution, directly setting a ResolutionSelector with the preferred resolution and a matching AspectRatioStrategy to the ImageAnalysis UseCase can workaround this issue."
Bug: 330091012
Test: ImageAnalysisTest
Change-Id: I81f72a850dcedb664e5b661247991ee4851bdfc6
M camera/camera-core/src/main/java/androidx/camera/core/ImageAnalysis.java
M camera/camera-core/src/main/java/androidx/camera/core/UseCase.java
M camera/camera-core/src/test/java/androidx/camera/core/ImageAnalysisTest.java
https://android-review.googlesource.com/3008297
Branch: androidx-main
commit 1c3f4cb30dc07227c1d3d0dc1d3804b5c4447e15
Author: CharcoalChen <charcoalchen@google.com>
Date: Fri Mar 22 10:45:47 2024
Fix ImageAnalysis analyzer default target resolution merge issue
ImageAnalysis analyzer default target resolution was not correctly merged into ResolutionSelector.
Relnote: "Fixed ImageAnalysis' resolution selection issue related to the analyzer default target resolution setting: target resolution was incorrectly kept as 640x480 even if applications has set a different analyzer default resolution setting. If applications encounter this issue (1.3.0 ~ 1.3.2) and can't upgrade to use the newer version releases which contain the solution, directly setting a ResolutionSelector with the preferred resolution and a matching AspectRatioStrategy to the ImageAnalysis UseCase can workaround this issue."
Bug: 330091012
Test: ImageAnalysisTest
Change-Id: I81f72a850dcedb664e5b661247991ee4851bdfc6
M camera/camera-core/src/main/java/androidx/camera/core/ImageAnalysis.java
M camera/camera-core/src/main/java/androidx/camera/core/UseCase.java
M camera/camera-core/src/test/java/androidx/camera/core/ImageAnalysisTest.java
ch...@google.com <ch...@google.com> #6
na...@google.com <na...@google.com> #7
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.camera:camera-core:1.3.3
androidx.camera:camera-core:1.4.0-alpha05
av...@gmail.com <av...@gmail.com> #9
Porque no me yega AMI villera
Description
CAMERAX VERSION: 1.3.0
DESCRIPTION:
We are using MLKitAnalyzer with CameraController to scan QR codes. When upgrading from version 1.2.3 to 1.3.0 and above, we've noticed that the camera must be positioned very close to the QR code in order to successfully scan it. Previously, QR codes were scannable from a greater distance away from the camera.
ADDITIONAL INFORMATION:
It appears that the issue may be related to the resolution and the new ResolutionSelector API. Manually setting the ResolutionStrategy via setImageAnalysisResolutionSelector added in version 1.4.0-alpha4 improves the accuracy.
EXAMPLE CONFIGURATION: