dannypadilla / label-lens

Android image labeling app for computer vision and machine learning applications
0 stars 3 forks source link

Fix camera resolution #3

Open dannypadilla opened 4 years ago

dannypadilla commented 4 years ago

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.

?: 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