Menu

Shooting against the light on Android: Camera2 bracketing and exposure fusion on the CPU
πŸ“°

Shooting against the light on Android: Camera2 bracketing and exposure fusion on the CPU

DEV Community: mobileΒ·Firefly TeamΒ·about 13 hours ago
#78J23TaH
#devtomobile#devto#dev#frame#camera
Reading 0:00
15s threshold

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).…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.