I need to remove image background in flutter for all the three platform Android, IOS and web.
Ex : I have a image from gallery or camera and need to make background transparent.
how to do this without sdk or any third party api?
i am now using https://www.remove.bg/ but its too expansive
I have a solution but only for 'white' pixels. If for some reasons you don't want to remove white pixels, look at the second part.
Firstly install
imagepackage onpubspec.yaml:And this following functions work:
I thinks this is the best choice, you can take a look to the remove.bg's documentation right here: https://www.remove.bg/fr/api