Search found 7 matches

by gddolph
2017-01-12T09:44:47-07:00
Forum: Users
Topic: How to remove MS Word Spellcheck wavy lines
Replies: 14
Views: 13893

Re: How to remove MS Word Spellcheck wavy lines

That parses without error for me, v6.9.5-3 and v7.0.3-5. Embarrassingly the problem was my version. The system had 6.7.8-9 installed, once I upgraded to 7.0.4-3 the command worked. I say worked, as in it didn't fail, but it didn't remove anything. The reason is that it wasn't matching anything, bec...
by gddolph
2017-01-12T07:40:30-07:00
Forum: Users
Topic: How to remove MS Word Spellcheck wavy lines
Replies: 14
Views: 13893

Re: How to remove MS Word Spellcheck wavy lines

The error is "Failed to parse kernel number #0". That would be the first kernel in ms_wavy_kernel.dat. Which you might show us. Hi snibgo, can do. It's pretty long. I did a grayscale kernel, so it's one file: 24x8: 0.59375 0.59375 0.5 0.5 0.99609375 0.99609375 0.99609375 0.99609375 0.5 0....
by gddolph
2017-01-12T07:13:05-07:00
Forum: Users
Topic: How to remove MS Word Spellcheck wavy lines
Replies: 14
Views: 13893

Re: How to remove MS Word Spellcheck wavy lines

Nice use of morphology... Exactly what it is meant for ;-) Use Erode to locate image parts that match the given kernel set a conditional dilation mask, and dilate the result back to the matching lines remove the found lines. It might be improved by replacing the kernel with a DIY kernel of the 'wav...
by gddolph
2017-01-11T09:17:47-07:00
Forum: Users
Topic: How to remove MS Word Spellcheck wavy lines
Replies: 14
Views: 13893

Re: How to remove MS Word Spellcheck wavy lines

The following removes the worst of the lines, where they are darker in any channel than 77% of maximum, and 20 or more pixels wide. (Letters are about 10 pixels wide.) Textcleaner may take care of the remaining bits. Windows BAT syntax. For Bash, change ^ to \, and %% to %, and the syntax of the en...
by gddolph
2017-01-11T04:08:31-07:00
Forum: Users
Topic: How to remove MS Word Spellcheck wavy lines
Replies: 14
Views: 13893

Re: How to remove MS Word Spellcheck wavy lines

Clicking on the image, then the download button, improves the size, but not by much. The capital letter height (eg of "T") is 10 pixels, which in my experience is unlikely to get good results from Tesseract. It says your first image is: ms I5 some rzndum text with 2 ymsssgen ward m n and ...
by gddolph
2017-01-11T03:10:51-07:00
Forum: Users
Topic: How to remove MS Word Spellcheck wavy lines
Replies: 14
Views: 13893

Re: How to remove MS Word Spellcheck wavy lines

fmw42 wrote: 2017-01-10T11:31:12-07:00 Your image are either too small or the font size is too small. So we cannot even read them. I doubt that you could OCR such images. Can you provide and image that has better resolution?
Sorry about that, I've used a different image upload site and now the images are scaled properly on the page.
by gddolph
2017-01-10T09:38:40-07:00
Forum: Users
Topic: How to remove MS Word Spellcheck wavy lines
Replies: 14
Views: 13893

How to remove MS Word Spellcheck wavy lines

Hello all, I am using imagemagick and the textcleaner script to preprocess image files for tesseract OCR, and while I'm having good success so far I've run into one problem that I need some help to solve. One of the use cases I have is to process text from screenshots, and I'm finding that tesseract...