Remove blue irregular background using chroma key
Posted: 2016-01-26T17:05:19-07:00
Hi, i'm trying to remove the blue background of this image... https://drive.google.com/file/d/0B9hWe ... p=sharing
I tried different options...
With acceptable, but no perfect results.
I think I can increase the success using choma_key... http://www.imagemagick.org/Usage/photos/#chroma_key but i can't make it work correctly.
Someone can help me?
Thank's in advance.
I tried different options...
Code: Select all
convert foto.jpg -modulate 100,150 foto2.jpg
convert foto2.jpg foto.png
convert foto.png -channel rgba -alpha set -fuzz 10% -fill none -opaque "#054db3" final.png
convert final.png -channel rgba -alpha set -fuzz 10% -fill none -opaque "#02317f" final1.png
convert final1.png -channel rgba -alpha set -fuzz 5% -fill none -opaque "#03308d" final.png
Code: Select all
convert foto2.jpg foto.png
convert foto.png -fuzz 10% -transparent "#054db3" prova.png
convert prova.png -fuzz 10% -transparent "#132c65" prova.png
convert prova.png -fuzz 10% -transparent "#03308d" prova.png
convert prova.png -fuzz 10% -transparent "#03308d" prova.png
Code: Select all
convert foto2.jpg foto.png
convert foto.png -channel rgba -alpha set -fuzz 15% -fill none -opaque "#054db3" final.png
convert final.png -channel rgba -alpha set -fuzz 8% -fill none -opaque "#132c65" final1.png
convert final1.png -channel rgba -alpha set -fuzz 10% -fill none -opaque "#03308d" final.png
convert final.png -channel rgba -alpha set -fuzz 10% -fill none -opaque "#1c3e7d" final1.png
convert final1.png -channel rgba -alpha set -fuzz 5% -fill none -opaque "#49618d" final.png
I think I can increase the success using choma_key... http://www.imagemagick.org/Usage/photos/#chroma_key but i can't make it work correctly.
Someone can help me?
Thank's in advance.