Is there any way you can get RAW data from the front facing camera (RGB camera)? The default is jpeg which loses a lot of information.
Accessing RAW image data from the front facing camera
RAW photo output is not supported on the front facing camera (back camera only). Supported output formats on the front facing camera are 420f (biplanar yuv, full range), 420v (biplanar yuv, video range), BGRA, JPEG, and HEIC (HEVC).