Search found 7 matches

by mstone
2016-07-10T12:46:54-07:00
Forum: Fred's Scripts
Topic: Textcleaner and multi-page docs
Replies: 2
Views: 15551

Re: Textcleaner and multi-page docs

OK, understood. Thanks for the quick reply. At least I can stop trying different permutations of inputs looking for the magic incantation to make it handle multi-page docs! :-) Splitting the doc into pages and re-assembling will work, just not something I wanted to do if it was easily handled in the...
by mstone
2016-07-10T08:58:20-07:00
Forum: Fred's Scripts
Topic: Textcleaner and multi-page docs
Replies: 2
Views: 15551

Textcleaner and multi-page docs

I can't seem to get textcleaner to run against multi-page docs like PDFs and TIFF. Every time I do the result document is truncated to one page, even if I use a convert-friendly wildcard like out_%d.tif for my outfile argument. Is it a known issue that textcleaner should only be used on single-page ...
by mstone
2016-05-04T17:01:52-07:00
Forum: Fred's Scripts
Topic: Textcleaner sensitive to IM Version?
Replies: 10
Views: 15104

Re: Textcleaner sensitive to IM Version?

Yes, I did. That's what I was referring to that made the difference. JPG / TIFF didn't do much different but -grayscale rec601luminance brought the results much more back in line with what 6.7 had been producing. I'm also going to try IM 7 when I can afford to scrub my VM and reinstall everything, b...
by mstone
2016-05-04T15:07:07-07:00
Forum: Fred's Scripts
Topic: Textcleaner sensitive to IM Version?
Replies: 10
Views: 15104

Re: Textcleaner sensitive to IM Version?

The missing spaces near the parens are just me reformatting the command line for the post. I'm fairly sure they are there in the real world, as the pieces of the command are assembled from an array, ala: childOutput = child_process.spawnSync('convert', [ '(', operationObj.docpath, '-colorspace', 'gr...
by mstone
2016-05-04T11:25:00-07:00
Forum: Fred's Scripts
Topic: Textcleaner sensitive to IM Version?
Replies: 10
Views: 15104

Re: Textcleaner sensitive to IM Version?

(Edit for future readers--had the IM versions swapped; corrected that. -Matt) The version that gives better OCR results is below: http://s32.postimg.org/kzd4v7dyd/gooder.png This is off IM 6.7.7-10, with libpng ver 1.2.49 The version that yields poorer OCR results is: http://s32.postimg.org/wueqs5x...
by mstone
2016-05-04T10:32:10-07:00
Forum: Fred's Scripts
Topic: Textcleaner sensitive to IM Version?
Replies: 10
Views: 15104

Re: Textcleaner sensitive to IM Version?

Thanks for the reply. Yes, I did modify the code somewhat, but I *was* trying to preserve the original intent. The "alpha off" is to replace the +matte, which the docs say is obsolete but equivalent to "alpha off" (assuming I got that right). I put the alpha off in the same position that +matte was ...
by mstone
2016-05-04T06:39:34-07:00
Forum: Fred's Scripts
Topic: Textcleaner sensitive to IM Version?
Replies: 10
Views: 15104

Textcleaner sensitive to IM Version?

This is not *strictly* a textcleaner question, but textcleaner-adjacent, IMO. I had the following command line (inspired by the TextCleaner script) that used to do a great job cleaning up text prior to running OCR (under IM version 6.7.7-10): convert (infile.png -colorspace gray -type grayscale -con...