Foreground Mask
Masks frames against one clean plate:
the difference of each pixel from the plate in OKLab, its lightness part weighted down;
Hysteresis between the low and high thresholds;
Morphology opening, then closing;
only the largest region, the figure;
its holes filled, so a shirt the colour of the wall stays solid.
The plate's OKLab coordinates are computed once, here, and shared by every frame.