Page 1 of 1

remove this background for this invoice?

Posted: 2017-06-04T15:19:26-07:00
by diegomage
Im trying to remove this background using compare but not works


this is my image
Image

and this is the background
Image


How I could remove this background

Please help me

Re: remove this background for this invoice?

Posted: 2017-06-04T15:58:52-07:00
by fmw42
What is your IM version and platform? What have you tried -- what was your exact command line?

Re: remove this background for this invoice?

Posted: 2017-06-04T17:43:16-07:00
by diegomage
fmw42 wrote: 2017-06-04T15:58:52-07:00 What is your IM version and platform? What have you tried -- what was your exact command line?
my version is imagemagick 6.9.8.3


i try this

Code: Select all

compare   image    background  result
and this

Code: Select all

convert result       -fuzz 5% -fill white  +opaque "#c10018"  fuzzed

Re: remove this background for this invoice?

Posted: 2017-06-04T21:28:29-07:00
by fmw42
I do not understand. Your second image is what you want for the result? Or do you desire to use the second image to remove the lines in the first image keeping only the text?

Neither of your commands appear to work to achieve either of these options. So to give you better support, we need to understand what you are trying to do.

Re: remove this background for this invoice?

Posted: 2017-06-05T08:31:41-07:00
by diegomage
fmw42 wrote: 2017-06-04T21:28:29-07:00 I do not understand. Your second image is what you want for the result? Or do you desire to use the second image to remove the lines in the first image keeping only the text?

Neither of your commands appear to work to achieve either of these options. So to give you better support, we need to understand what you are trying to do.


I need remove the background and keep only text