We're Firefly Team, a small app studio in Vietnam. This is how we built a backlight mode for our Android camera: two frames at different
exposures, aligning them, fusing them without halos β and what still doesn't work on a real phone. Everything runs on-device, on the CPU,
in Kotlin.
The problem
Someone stands in front of a window or a sunset. The phone sensor can't hold both: either the face is dark, or the window is a white blob.
The obvious answer is the manufacturer's HDR. But it isn't everywhere: on our test OPPO CPH2203 there's no CameraX Extensions library at all
(which is how you'd reach the vendor's HDR).β¦