I tried a few cartoon images. Realistic styles (most of Avatar: The Last Airbender, most of Ghost in the Shell) work well. Semi-deformed styles (Avatar gag faces, Samurai Jack, The Simpsons) usually didn't work or resulted in artifacting. Non-human cartoons (Spongebob, Adventure Time) never worked.
Some photographs which had low contrast between subject and background were not as cleanly cut out. It was good enough that I wouldbe able to import the mask as a starting point and clean up the edges manually.
Photographs in which faces were obscured where handled surprisingly well!
Would love to see this as a native feature of an image editor.