我在用PreviewView配合CameraX Analysis做影像辨識,setTargetResolution設定為(2560,800)可是Analysis的ImageProxy.getImage.getWidth跟getHeight為(1280,400),image轉為byte[]的長度為768000。當我改用SurfaceView配合Camera的onPreviewFrame回傳的data[]長度為3072000,可以請問一下要怎麼樣才能設定CameraX的辨識率為(2560,800)呢?
CameraX:
YUV2Byte:
Log:
Camera:
Log: