HPPrintingSegmentation: extract and printing from your imagination
Automatic segmentation of images for printing, allowing to select specific categories and with optional replacement of layers using in-painting techniques.
Semantic segmentation is a computer vision task that allows separating different areas of an image into categories, depending on what each part of the image is. A common application of this technique is autonomous driving, identifying what is road, what is sidewalk, what are other vehicles, what are road signs, etc. Normally segmentation models are tightly coupled to a specific task and have a set of fixed categories, as in the example above. However, recently models such as OneFormer [1][2] have appeared that allow segmentation to a very large number of different categories (or classes): people, sky, trees, grass, cars, etc.
In this project we propose to apply a model like OneFormer to images that will be printed. The user, after segmentation, will be able to select which classes to print, eliminating those categories that are not of interest. For the discarded areas, a transparent mask will be applied that will make them take the color of the paper (usually white), optionally also being able to choose a uniform fill color.
The idea is to be able to integrate this module into HP printing applications. For this, reusable code must be developed that can be used in a generic way, although for the development itself a separate application can be generated.
On the other hand, there are image generative models such as Stable Difussion [3] that, in addition to allowing the generation of images from a user’s free text, can also perform what are called “in-painting” tasks [4], i.e., eliminate an area of an image and be able to generate in it whatever is desired, also from text. It would be desirable also in this project to incorporate such a model, so that if the user deletes a specific category (e.g., a cloudy sky), he can replace the empty area with something else (e.g., a cloudless sky).
Finally, it should be noted that the idea is to run the models locally, but if due to computational constraints this is not possible, a client/server model can be chosen where the AI models are run on more powerful machines (with GPUs).
[1] https://praeclarumjj3.github.io/oneformer/ [2] https://huggingface.co/spaces/shi-labs/OneFormer [3] https://stability.ai/blog/stable-diffusion-public-release [4] https://huggingface.co/runwayml/stable-diffusion-inpainting- Complexity:8/10
- Technical specifications:AI, semantic segmentation
- CATEGORY 2023-2024 , Oviedo Univ.
- TAGS C# , C++ , Python , Pytorch





