An ID photo looks like the simplest image task there is: one face, plain background, fixed size. In practice it is one of the least forgiving. A portrait for social media can be stylised freely. An ID photo has to be geometrically correct , visually clean and, above all, still the same person .
Our ID-photo tool at CoolMe AI turns a phone selfie into a 3Γ4, 4Γ6, 2Γ3 or 1Γ1 photo with a clean background and an outfit template (suit, office shirt, Γ‘o dΓ i and so on). Below is the general shape of an ID-photo pipeline like this one, with simplified Python to illustrate the deterministic parts, followed by the places where generative AI should be kept out.
The code and thresholds below are illustrative and simplified for the article.β¦