I am looking for this for a long time. Any suggestion will be appreciated.
I am detecting the face of a person in the camera preview with google MLKit.
It means I have for each frame of the camera the boundaries and scale of the face.
face_found = [x,y,w,h];
I now want to only display the face of the user, since I have every argument I need to crop the face out of the frame and only show this region of interest (ROI).
How can I achieve this goal? And if its not possible with CameraX, is there something else I can use for this? How is snapchat doing such tasks?