great thanks again. i have merged the two lines now.
i missed a "-fill" before "black +opaque white -negate". i edited my original post.
Search found 6 matches
- 2018-10-15T13:05:32-07:00
- Forum: Users
- Topic: converting fuzzy outlined text for ocr
- Replies: 11
- Views: 7511
- 2018-10-15T11:55:34-07:00
- Forum: Users
- Topic: converting fuzzy outlined text for ocr
- Replies: 11
- Views: 7511
Re: converting fuzzy outlined text for ocr
thanks for the advice. here's what i ended up with that seems to be working for various backgrounds. convert in.tif -modulate 100,5000 -bordercolor white -border 1 -fuzz 17% -fill blue -draw "color 0,0 floodfill" -flatten -alpha OFF -format png temp.png convert temp.png -fuzz 5% -fill black +opaque ...
- 2018-10-14T13:01:12-07:00
- Forum: Users
- Topic: converting fuzzy outlined text for ocr
- Replies: 11
- Views: 7511
Re: converting fuzzy outlined text for ocr
i would either have the "y" disappear or i would have this triangle shown below because increasing the black to enclose the letters would also enclose the white space between the 9 and 7. https://www.dropbox.com/s/3eebmeibvt2uam5/tri.jpg?raw=1 i've abandoned the idea of fully enclosing the letters ...
- 2018-10-14T07:04:20-07:00
- Forum: Users
- Topic: converting fuzzy outlined text for ocr
- Replies: 11
- Views: 7511
Re: converting fuzzy outlined text for ocr
if i do the following, it fills in the lines enough so that if i play with the fuzz % i can get the "y" and "ft" to stay but then the triangle between the 9 and 7 doesn't get filled. any ideas?
convert test1.tif -morphology erode diamond:1 -morphology open octagon:2 result1.tif
convert test1.tif -morphology erode diamond:1 -morphology open octagon:2 result1.tif
- 2018-10-13T18:20:17-07:00
- Forum: Users
- Topic: converting fuzzy outlined text for ocr
- Replies: 11
- Views: 7511
Re: converting fuzzy outlined text for ocr
thanks for the advice. the results look much better than mine except why did the "y" and "ft" dissappear in the image with "497y 44ft"? is there any way to keep all of the numbers and letters?
- 2018-10-13T14:30:02-07:00
- Forum: Users
- Topic: converting fuzzy outlined text for ocr
- Replies: 11
- Views: 7511
converting fuzzy outlined text for ocr
i've been struggling with this for a few days on my own with getting tesseract ocr to recognize white text mostly outlined in black on various backgrounds. what i've come up works most of the time but sometimes mixes up numbers. in the case when the background has any white in it, it mostly fails ...