mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-24 18:18:12 -06:00
A sibling of spot.findDust for portraits: with the YuNet detector installed, small round spots on each face's skin that are darker or redder than the surrounding skin become heal spots (one undo step). The detector's box and landmarks define the skin (ellipse, skin-colour gate, eye band / brows / nostrils / mouth cut out); a candidate must stand out from a blurred copy beyond the sensitivity threshold and 2.5x the local texture, then grow into a small roundish blob. Conservative: faces under 160 px get nothing, faces with more than 12 candidates (stubble, freckles, pores) get nothing, at most 6 per face (maxPerFace). Classical, no model beyond the detector. Tests (synthetic, no model): cheek spots found at their positions, clean face empty, spots on features ignored, small face ignored, speckled face treated as texture, hostile boxes and an empty image do not panic. New LR-REM-BLEMISH parity row, Find Blemishes section in docs/faces.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>