I can identify two steps:
- Identifying an approximate shape of background vs foreground to get something more precise than just a rectangle. What is it called? Just background detection?
- Actually filling-in the holes. I think this is called a diffusion task? Is that correct? ddg-ing around looks like diffusion is the name of the method rather than the actual task, but I can't find the name of the task.
I'm curious at whether some existing open models would be usable on smartphones to make an opensource app (or maybe there are already such apps I'm unaware of)