I am using the FirebaseVision
Object detection to detect things from the CameraX
camera preview. It is detecting things find but I am trying to draw the bounding box of the items detected over the camera preview. In doing so the bounding box that firebase gives back is not for the image itself not the preview view to they appear in the wrong place.
The image size that I get back from firebase is 1200x1600
and the preview size is 2425x1440
How do I translate the bounding boxes returned from firebase to the correct screen coordinates?