help with script bg_removal
Posted: 2010-02-16T14:32:16-07:00
I am trying to use the script bg_removal to remove a background that is a green screen, and I am unable to get the desired results.
I am using the following command to attempt to remove the background (I sampled the top left of the image for the RGB value):
Command: ./bg_removal.sh img_0092.jpg 'RGB(46,169,102)' 10 10 dest1010.jpg
My source image is http://fuathurio.dyndns.info/ssheppard/ ... g_0092.jpg
Here are some sample results: filename is used to specify the parameters to the script: ex dest1010.jpg is fuzz_out=10, fuzz_in=10
http://fuathurio.dyndns.info/ssheppard/ ... st1010.jpg
http://fuathurio.dyndns.info/ssheppard/ ... st1015.jpg
http://fuathurio.dyndns.info/ssheppard/ ... st1020.jpg
http://fuathurio.dyndns.info/ssheppard/ ... st1025.jpg
I tried modifying the fuzz_out parameter, but regardless of the setting it had no impact on the resulting image.
Also, I am unable to get the script to use the top left corner of the image as the background color. It returns the following error:
Command: ./bg_removal.sh img_0092.jpg 10 10 dest.jpg
Result : convert: invalid argument for option `sparse-color': Invalid number of Arguments @ error/mogrify.c/SparseColorOption/458.
ANY help is greatly appreciated!
Scott
I am using the following command to attempt to remove the background (I sampled the top left of the image for the RGB value):
Command: ./bg_removal.sh img_0092.jpg 'RGB(46,169,102)' 10 10 dest1010.jpg
My source image is http://fuathurio.dyndns.info/ssheppard/ ... g_0092.jpg
Here are some sample results: filename is used to specify the parameters to the script: ex dest1010.jpg is fuzz_out=10, fuzz_in=10
http://fuathurio.dyndns.info/ssheppard/ ... st1010.jpg
http://fuathurio.dyndns.info/ssheppard/ ... st1015.jpg
http://fuathurio.dyndns.info/ssheppard/ ... st1020.jpg
http://fuathurio.dyndns.info/ssheppard/ ... st1025.jpg
I tried modifying the fuzz_out parameter, but regardless of the setting it had no impact on the resulting image.
Also, I am unable to get the script to use the top left corner of the image as the background color. It returns the following error:
Command: ./bg_removal.sh img_0092.jpg 10 10 dest.jpg
Result : convert: invalid argument for option `sparse-color': Invalid number of Arguments @ error/mogrify.c/SparseColorOption/458.
ANY help is greatly appreciated!
Scott