Sample project demonstrating simple background removal. Following command-line arguments can be provided (none of them is required):
--img image.jpg --out out.png --flood-fill-tolerance 0.01 --blur 5
or
-i image.jpg -o out.png -t 0.1 -b 5
There is habrahabr.ru post about this sample.