Convert hair, eyes, nose, mouth, face outline to SVG

Is there any Rust crate (or chain of crates) that can take as input a image of a face (photograph or anime) and extracts:

  • hair
  • eyes
  • nose
  • mouth
  • face outline
    as SVG ?

I.e. basically "outline / cartoonify" a face.

I'm looking for a non-GPU[1] solution where I can run it in wasm/browser.

Thanks!

[1] Yes, I realize WebGPU can be used to run compute shaders; but I'd prefer to use the GPU for WebGL2, and do this on the CPU.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.