You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please see this file for sample usage. If you are still seeing issues then, unfortunately, it is likely a device bug in the implementation of the YUV to RGB converter and there is not much we can do about it.
My mistake was expecting ImageAnalysis.Analyzer to return image with width and height I'm setting with ImageAnalysis.Builder's setTargetResolution. I was creating my bitmap with size not same as Analyzer image.
YuvToRgbConverter class generates wrong RGB image.
Creating converter and bitmap:
Converting ImageProxy image to RGB using example code (https://developer.android.com/training/camerax/analyze):
Gives result (upper is original TextureView, lower is RGB bitmap result):
The text was updated successfully, but these errors were encountered: