Hi folks...Is it possible to make background color of an image transparent with only the foreground text left out. Then make the foreground text black and then flatten the image to get a white background.
https://www.dropbox.com/s/rv2e6lixnx6hxg6/2694.png?dl=0
Can safely assume that the ...
Search found 20 matches
- 2017-06-04T07:10:33-07:00
- Forum: Users
- Topic: How to change the background and foreground colors
- Replies: 10
- Views: 13566
- 2017-06-03T12:41:12-07:00
- Forum: Users
- Topic: How to change the background and foreground colors
- Replies: 10
- Views: 13566
Re: How to change the background and foreground colors
Actually, I will be processing these images with Java and Tesseract. I cannot stop the workflow to break the image into 2 image. I can resize the image and increase its dpi. Then I need a white background and black text. There can be no varying colors.
- 2017-06-03T12:01:46-07:00
- Forum: Users
- Topic: How to change the background and foreground colors
- Replies: 10
- Views: 13566
Re: How to change the background and foreground colors
Thanks for the reply Fred and snigbo. auto-level was the clincher snigbo. Fred's 2nd approach was close. I have an image of this nature too.
https://www.dropbox.com/s/rv2e6lixnx6hxg6/2694.png?dl=0
can you provide your inputs?
I am on Ubuntu 16.04 and Imagemagick 6.8.9-9 Q16 x86_64
https://www.dropbox.com/s/rv2e6lixnx6hxg6/2694.png?dl=0
can you provide your inputs?
I am on Ubuntu 16.04 and Imagemagick 6.8.9-9 Q16 x86_64
- 2017-06-02T23:00:05-07:00
- Forum: Users
- Topic: How to change the background and foreground colors
- Replies: 10
- Views: 13566
How to change the background and foreground colors
Hi I have this image
https://www.dropbox.com/s/k74wc6id98lzsgu/958.png?dl=0
I have changed the background color to white and foreground to black using:
convert 958.png -colorspace Gray -auto-level -threshold 80% -unsharp 0x5 958WB.png
However my OCR software has trouble digesting it. I have a ...
https://www.dropbox.com/s/k74wc6id98lzsgu/958.png?dl=0
I have changed the background color to white and foreground to black using:
convert 958.png -colorspace Gray -auto-level -threshold 80% -unsharp 0x5 958WB.png
However my OCR software has trouble digesting it. I have a ...
- 2016-05-12T01:05:54-07:00
- Forum: Users
- Topic: Recognizing letters in a Passport
- Replies: 2
- Views: 2548
Re: Recognizing letters in a Passport
Sorry ... I should not have uploaded these pics in the public domain...I have deleted them...I have no nefarious reasons except for OCR'ing them. Sorry again...
- 2016-05-11T02:40:18-07:00
- Forum: Users
- Topic: Recognizing letters in a Passport
- Replies: 2
- Views: 2548
Recognizing letters in a Passport
Hello,
I have a couple of scanned pics of a Passport. I need to remove the background and have the letters left as black to OCR them. How can I accomplish this?
https://www.dropbox.com/s/0tjp7ekuo62owdf/20160509_134927.jpg?dl=0
https://www.dropbox.com/s/5chs9z3obqqzdbv/20160509_135031.jpg?dl=0 ...
I have a couple of scanned pics of a Passport. I need to remove the background and have the letters left as black to OCR them. How can I accomplish this?
https://www.dropbox.com/s/0tjp7ekuo62owdf/20160509_134927.jpg?dl=0
https://www.dropbox.com/s/5chs9z3obqqzdbv/20160509_135031.jpg?dl=0 ...
- 2016-05-08T23:56:55-07:00
- Forum: Users
- Topic: Clean up license plates
- Replies: 2
- Views: 2705
Re: Clean up license plates
The first one with fuzz 30% and gray 40 seems to work the best. Thanks you for your time.
- 2016-05-08T22:49:56-07:00
- Forum: Users
- Topic: Clean up license plates
- Replies: 2
- Views: 2705
Clean up license plates
Hello,
I am trying to use Tesseract as OCR for license plates. Here are a few examples:
https://www.dropbox.com/s/1ek33a1vrfa8gbv/LP3.JPG?dl=0
https://www.dropbox.com/s/izkz71t61rs84sj/LP4.jpg?dl=0
https://www.dropbox.com/s/6nahcjnw4o4fo0a/LP5.jpg?dl=0
I need to clear up the background and ...
I am trying to use Tesseract as OCR for license plates. Here are a few examples:
https://www.dropbox.com/s/1ek33a1vrfa8gbv/LP3.JPG?dl=0
https://www.dropbox.com/s/izkz71t61rs84sj/LP4.jpg?dl=0
https://www.dropbox.com/s/6nahcjnw4o4fo0a/LP5.jpg?dl=0
I need to clear up the background and ...
- 2015-09-29T03:51:21-07:00
- Forum: Users
- Topic: fill black color for an outline
- Replies: 19
- Views: 11587
Re: fill black color for an outline
I upgraded to ImageMagick 6.8.9-9 Q16 x86_64 on my Linux box. It works...thanks a bunch!!
- 2015-09-27T20:49:42-07:00
- Forum: Users
- Topic: fill black color for an outline
- Replies: 19
- Views: 11587
Re: fill black color for an outline
Nope...doesn't work.
- 2015-09-26T23:35:15-07:00
- Forum: Users
- Topic: fill black color for an outline
- Replies: 19
- Views: 11587
Re: fill black color for an outline
My OCR accuracy is about 85% now. I can increase it to 95%-100%. The result of the commands in the previous post is the image below.
https://www.dropbox.com/s/0hmp1rc170l1jog/result.png?dl=0
The desirable result is the following image.
https://www.dropbox.com/s/g73qffwq7bm8357/desirable.jpg?dl=0 ...
https://www.dropbox.com/s/0hmp1rc170l1jog/result.png?dl=0
The desirable result is the following image.
https://www.dropbox.com/s/g73qffwq7bm8357/desirable.jpg?dl=0 ...
- 2015-09-25T22:54:49-07:00
- Forum: Users
- Topic: fill black color for an outline
- Replies: 19
- Views: 11587
- 2015-09-25T22:43:28-07:00
- Forum: Users
- Topic: fill black color for an outline
- Replies: 19
- Views: 11587
Re: fill black color for an outline
Thank you ...that worked like a charm!! I have a problem I don't understand. I first tried
convert -white-threshold 50% on https://www.dropbox.com/s/pvb5l1itdj73rhd/out.png?dl=0
and I got this result https://www.dropbox.com/s/as3elqdz77417zi/bw.png?dl=0 . The yellow / orange colour is removed ...
convert -white-threshold 50% on https://www.dropbox.com/s/pvb5l1itdj73rhd/out.png?dl=0
and I got this result https://www.dropbox.com/s/as3elqdz77417zi/bw.png?dl=0 . The yellow / orange colour is removed ...
- 2015-09-25T06:51:39-07:00
- Forum: Users
- Topic: fill black color for an outline
- Replies: 19
- Views: 11587
Re: fill black color for an outline
Hi..i am new to imagemagick...could you put that as commands? I would really appreciate it.
- 2015-09-25T03:52:44-07:00
- Forum: Users
- Topic: fill black color for an outline
- Replies: 19
- Views: 11587
Re: fill black color for an outline
If it is not possible to fill the numbers...is it possible to extract the numbers? I need this for Optical Character Recognition.