It's currently square right now (nxn) which makes it look weird. It seems the camera is squeezing the image. Maybe there's a better way? It's currently hardcoded to 640x640px.
Look at fragment_camera_display.xml's TextureView
Maybe give some predefined resolutions (and choiced) that are proportioned to the cameras capabilities.
It's currently square right now (nxn) which makes it look weird. It seems the camera is squeezing the image. Maybe there's a better way? It's currently hardcoded to 640x640px.
Look at
fragment_camera_display.xml
'sTextureView
Maybe give some predefined resolutions (and choiced) that are proportioned to the cameras capabilities.
?: https://developer.android.com/reference/androidx/camera/core/ImageCaptureConfig.html
see how the example handles it..
https://github.com/android/camera-samples/blob/master/CameraXBasic/app/src/main/java/com/android/example/cameraxbasic/fragments/CameraFragment.kt