https://github.com/OPHoperHPO/image-background-remove-tool
Open source implementation of this
Open source implementation of this
That said, I am not negative, only pointing out that at least for me (as a admittedly non-native speaker,) trivial is not a word I would use to describe it.