Lukasz Kalnik
12/19/2023, 5:40 PMChrimaeon
12/19/2023, 7:20 PMRobert Maged
12/20/2023, 5:51 AMLukasz Kalnik
12/20/2023, 8:28 AMLukasz Kalnik
12/21/2023, 1:46 PMLifecycleCameraController
and MlKitAnalyzer
with CameraController.COORDINATE_SYSTEM_VIEW_REFERENCED
fixed the problem!
Then (I'm using Compose) I just had to translate the pixel coordinates from the camera to dp
units using LocalDensity.current
.
Thanks again for your valuable suggestion.
Also this article explains very well the separation of responsibilities in CameraX between PreviewView
and `CameraController`:
https://medium.com/androiddevelopers/camerax-learn-how-to-use-cameracontroller-e3ed10fffecfLukasz Kalnik
12/21/2023, 3:06 PMRobert Maged
12/22/2023, 2:54 PM