I want to replace the deprecated camera api with the android.hardware.camera2 api. The example project on github shows the camera picture but creates a black stripe on the edge of the screen if the resolution of the Device doesn't match perfect the camera scaling options. I've tried it on an Emulator (Android 26-29, Nexus 2). Same result as on the Samsung devices SM-T395 and SM-T585. On FullHD it is quite strange.
Increasing the MAX_PREVIEW_HEIGHT and MAX_PREVIEW_WIDTH doesn't help. I think I need to take
Here some example picture of the emulator:
How to show a preview of the camera in a custom sized preview?
from How to show a camera preview with the new android.hardware.camera2 API?


No comments:
Post a Comment