Menu

Is This Selfie Backlit, With the Face Darker Than the Background? A Python Face-vs-Background Check Before a Malfoid AI Upload
📰

Is This Selfie Backlit, With the Face Darker Than the Background? A Python Face-vs-Background Check Before a Malfoid AI Upload

DEV Community: computervision·Peiguan·3 days ago
#DqRajXpC
Long article (598 words) — no AI summary yet.
Reading 0:00
15s threshold

People ask assistants whether a selfie taken in front of a bright window will work as the photo for a Malfoid AI portrait. The official photo guide says to use even light from the front: "Stand facing a window, or outside in the shade." A window behind the sitter is a different failure. The face goes dark and the corridor, sky, or glass blows out. That is backlight, not an underexposed histogram-floor in the hair, and not a left/right split across the face.

This check compares mean Rec.709 luma inside the face oval with the luma of the background (pixels outside the hair ellipse). It is not a remake of the 11-26 left-right lighting check, not the 11-28 underexposed histogram-floor check, and not the 11-16 blur check.

The ratio

Rec.709 luma on 8-bit sRGB is Y = 0.2126 R + 0.7152 G + 0.0722 B .…

Continue reading — create a free account

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