Face image segmentation for bicolor 3D printing

Hi,
I’m new on this forum. Thanks for your patience and your help.
I have owned a Jetson Nano for a while, and think to use it for a problem I tried to solve for a long time.
I tried to print images (like faces) on a 3D printer, using only two colors (for example black and white), starting from color pictures.
I succeed in some cases (like in the picture joined), but at a huge cost: the time I spent.
I started by converting the picture in black and white,
Then I convert it to have segments (SVG format for example)
Then I import this picture in my favorite 3D modeling software (fusion360)
Finally, I select manually the huge number of small zones that should be printed in black, leaving the other zones in white.
My idea is to use the Jetson Nano to do that automatically (or with the minimal human help).
I searched with Google, but failed to find any similar project.
I will be grateful for any pointer to valuable resources that can help me

Hi,

You can find some segmentation example in the below GitHub:

It demonstrates the multi-class use case.
For single class (face or non-face), the mask should be render in the black and white.

Thanks.

Hi,
Thanks for your answer. And for the references.
I also think that a solution can be found using image segmentation.
Actually, I have currently two coasters: one success (my dog), that I made as a first try, and a failure (the head of my son). I spent a lot of time trying multiple software and many settings of them to find a good black and white image of the dog. That’s why I stopped for the 2nd coaster, trying to find a reliable way for doing such things.
And since I have a Jetson nano that sleeps on a shelf, it can be a good candidate.
I was a lecturer in computer science for 30 years, and I have still good skills in programming in many languages.
Best regards

Hi,

In the above sample, the color is set in the below function:

So you can change it to black/white as output.
Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.