Chroma keying an image model to make stickers for my kids

(sandkassa.app)

2 points | by Espenhh 12 hours ago ago

1 comments

  • Espenhh 12 hours ago ago

    Author here. I made a sticker book app for my daughters, and I needed a lot of clothes and other stuff cut out of pictures an image model drew for me. The different image models from google,chatgpt etc. never gave me exactly the same drawing dimensions back, so subtracting the undressed doll didn't work. What did was painting the doll green and keying it out, like a film green screen.

    The model does one thing in the pipeline: it draws the clothes. The rest is plain Python (Pillow, NumPy, SciPy) that runs on my Mac in about a second per picture, and gives the same result every time. My favourite bug: the model sometimes paints a grey and white chequerboard instead of a transparent background. You get what the model train on I guess

    I wrote up the process and my learnings as a blog post, maybe someone else is interested :) The post contains a lot of demos that run in the browser on the real pictures.

    Happy to answer questions.