Status Update
Comments
ba...@gmail.com <ba...@gmail.com> #2
ka...@google.com <ka...@google.com> #3
This
Wonder if you have checked the YUV format on Xiaomi Redmi Note 3 & 7? IIUC, the tool is only supporting limited YUV format (NV21).
wu...@google.com <wu...@google.com>
ka...@google.com <ka...@google.com> #4
balas.nest@,I cannot reproduce the issue on Redmi Note 7. Could you give more information (e.g. code samples you are using)?
To mention, I found Redmi Note 7 has different rowStride than other devices (e.g. Samsung Galaxy S10+ or Pixel 3a). For a 640x480 YUV image, Redmi Note 7's Y Plane rowStride is 512 (not equal to imageWidth) and other devices' value is 480 (equal to imageWidth).
ba...@gmail.com <ba...@gmail.com> #5
--------------------
// Preview case
previewView.setImplementationMode(PreviewView.ImplementationMode.COMPATIBLE);
// imageAnalysis case:
Image mediaImage = imageProxy.getImage();
Bitmap bitmap = Bitmap.createBitmap(imageProxy.getWidth(), imageProxy.getHeight(), Bitmap.Config.ARGB_8888);
converter.yuvToRgb(mediaImage, bitmap);
Bitmap scaledBitmap = Bitmap.createScaledBitmap(bitmap, BIT_W, BIT_H, false);
Bitmap rotatedBitmap = rotateBitmap(scaledBitmap, rotationDegrees, false, false);
--------------------
// Config for resolution:
Image resolution: 176 * 144, 640 * 480
BIT_W AND H : 120 * 120, 120 * 120
----------------------
// Issues based on device:
OnePlus Nord : not working (Image preview fine, but blue flatline issue)
OnePlus 7 : not working (Image preview fine, but blue flatline issue)
Vivo : working [ vivo v2030]
Xiaomi : working
pixel 3. : working
Samsung : not checked
Oppo : not checked
realme : working
er...@google.com <er...@google.com>
ka...@google.com <ka...@google.com>
ka...@google.com <ka...@google.com> #6
balas.nest@, I cannot reproduce the isssue on OnePlus 7 Pro.
Could you provide the whole code sample code? This issue is happening on Preview or ImageAnalysis or both?
er...@google.com <er...@google.com> #7
cc'ing commenter
balas.nest@, I cannot reproduce the isssue on OnePlus 7 Pro. Could you provide the whole code sample code? This issue is happening on Preview or ImageAnalysis or both?
er...@google.com <er...@google.com> #8
Hi balas.nest@,
Can you please provide the whole sample code? Is this happening on Preview or ImageAnalysis or both? Thanks!
er...@google.com <er...@google.com> #9
Hi There,
Just a reminder if you could please help us answer the question in
er...@google.com <er...@google.com> #10
Hi there,
If we don't hear anything by EOW we'll need to proceed without your feedback. Thanks!
er...@google.com <er...@google.com>
ka...@google.com <ka...@google.com> #11
Close it for now since we cannot reproduce with current information. Feel free to reopen if any issues.
Description
The Xiaomi Redmi Note 3 has been found to not correctly covert YUV to RGB correctly using the sample code provided athttps://github.com/owahltinez/camerax-tflite/blob/master/app/src/main/java/com/android/example/camerax/tflite/YuvToRgbConverter.kt
The device should be able to covert to RGB correctly however there is some issue with the device. This is marked as a CameraX known issue.