I am using CameraX Preview with MLKit Face recogni...
# compose-android
e
I am using CameraX Preview with MLKit Face recognition inside compose AndroidView. In my case the MlKitAnalyzer receives wrong transformation matrix and can’t calculate face coordinates correctly. I thought it is initialized before the Preview view is finally positioned. I have to call this part of initialization only once and now use a LaunchedEffect. But it turned out not to be the case. I checked and the PreviewView has the correct size in the moment on submitting the matrix to the Analyzer. But for some reason Analyzer doesn’t have the correct matrix. Did anyone face something similar?
m
Can you share some code snippet of how you're setting up the MLKitAnalyzer with CameraX?