I'm trying to implement a camera-based barcode scanner on Android (using CameraX and MLKit). I want to limit the recognized barcodes to a viewfinder frame in the center of the screen, but the returned bounding box has quite weird coordinates, and I don't know how to convert them to match the viewfinder coordinates.
The viewfinder view (and the whole camera screen) is in Compose.