Menu

How we generate ID-style photos with AI (and where AI must not be used)
πŸ“°

How we generate ID-style photos with AI (and where AI must not be used)

DEV Community: computervisionΒ·Duc Anh PhungΒ·6 days ago
#3Fi9OIfa
#devtocomputervision#technology#devto#dev#face
Reading 0:00
15s threshold

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

Continue reading β€” create a free account

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