I'm working on an application that through the camera, it detects people's faces in real time and swaps the image of the face through any mask. (Basically SquareCam)
However, it only works with the device portrait.
When I put landscape, the mask does not form on the face.
So I would like to mirror the image in the position that works (portrait) to whatever position the device has. How can I lock / lock the camera position?