Search found 21905 matches

by fmw42
2017-10-23T12:39:07-07:00
Forum: Fred's Scripts
Topic: textdeskew regression_Arr: bad array subscript
Replies: 26
Views: 208

Re: textdeskew regression_Arr: bad array subscript

Most of your other images, should process reasonably with textcleaner. The other ones do not need much rotation, so you could just use -deskew. The second one has small fonts and thus you may not be able to do anything to preprocess to help the OCR since it does not work well with too small fonts. I...
by fmw42
2017-10-23T12:25:03-07:00
Forum: Bugs
Topic: composite fails on /dev/fd/nn
Replies: 9
Views: 158

Re: composite fails on /dev/fd/nn

composite is not just a symlink. You have to preface it with magick in IM 7, since magick is the only thing really new and composite is still the old one. So you have to call it from magick. The convert command can still be used if you have a symlink between convert to magick in IM 7. Or you can jus...
by fmw42
2017-10-23T11:38:14-07:00
Forum: Bugs
Topic: composite fails on /dev/fd/nn
Replies: 9
Views: 158

Re: composite fails on /dev/fd/nn

ImageMagick 7 is different from ImageMagick 6. There are things that will not be backward compatible. I think you can install the legacy components and still use the old code.

But I will leave this between you and the ImageMagick developers to discuss.
by fmw42
2017-10-23T10:57:01-07:00
Forum: Fred's Scripts
Topic: textdeskew regression_Arr: bad array subscript
Replies: 26
Views: 208

Re: textdeskew regression_Arr: bad array subscript

The gray background on this image makes it very hard to process and requires custom processing. http://www.fmwconcepts.com/misc_tests/text_clean/JKxDCP3.png My textcleaner does not work on this. Nor does my textdeskew or unrotated. However, you can clean it up by making gray into white and then usin...
by fmw42
2017-10-23T10:46:29-07:00
Forum: Fred's Scripts
Topic: textdeskew regression_Arr: bad array subscript
Replies: 26
Views: 208

Re: textdeskew regression_Arr: bad array subscript

Your Docker OS is missing the unix bc (basic calculator) command. The script uses bc. Install bc and try again. Perhaps Docker is missing many of the unix commands such as awk, also. That could explain why you are having such problem on Docker. Sorry I do not know Docker. Post your receipt image to ...
by fmw42
2017-10-23T10:37:46-07:00
Forum: Users
Topic: Re: Newbie seeking your helps
Replies: 1
Views: 27

Re: Re: Newbie seeking your helps

This seems to be a duplicate of you questions here viewtopic.php?f=1&t=32854#p150522.

I do not think there is much more that can be done apart from re-scanning at a higher density/resolution. OCR does not do well with text that has too small a point size.
by fmw42
2017-10-23T10:31:34-07:00
Forum: Users
Topic: input Linear RGB specifiy output RGB or sRGB
Replies: 16
Views: 332

Re: input Linear RGB specifiy output RGB or sRGB

OK, I see. I will see what I can do about it.
by fmw42
2017-10-23T10:26:28-07:00
Forum: Users
Topic: Create multiple images on a canvas at once?
Replies: 4
Views: 68

Re: Create multiple images on a canvas at once?

Please do not post multiple times with the same question.
by fmw42
2017-10-23T10:25:03-07:00
Forum: Users
Topic: Cloning + composite?
Replies: 3
Views: 59

Re: Cloning + composite?

Once imagemagick does as composite, the original images are freed from memory. So you have to keep them around so that you can clone one of them and do a second composite. Once you have set up the second composite with the cloned image, you have to free the first two otherwise composite has too many...
by fmw42
2017-10-22T20:20:36-07:00
Forum: Users
Topic: Filling the gaps made in pixels due to line removal
Replies: 4
Views: 73

Re: Filling the gaps made in pixels due to line removal

This is not perfect, but try Unix: convert dave-proc8.png \ \( -clone 0 -morphology convolve blur:0x5+90 -level 50x100% \) \ \( -clone 0 -threshold 99% -blur 0x1 \) \ -compose over -composite -level 30x100% \ result.png Windows: convert dave-proc8.png ^ ( -clone 0 -morphology convolve blur:0x5+90 -l...
by fmw42
2017-10-22T19:54:53-07:00
Forum: Users
Topic: Create white pixel above all single white pixels
Replies: 1
Views: 29

Re: Create white pixel above all single white pixels

Would it be sufficient to just remove single white pixels or whatever is the minimum area of white? If so, you can do that with -connected-components. Filling in would likely result in thickening your characters where you do not want them thicker or filling in closed parts of the characters.
by fmw42
2017-10-22T16:51:25-07:00
Forum: Bugs
Topic: Incorrect use of user-defined channels converting PSD files
Replies: 30
Views: 5861

Re: Incorrect use of user-defined channels converting PSD files

At this point, I will have to leave it to the IM developers for further action.
by fmw42
2017-10-22T16:39:31-07:00
Forum: Fred's Scripts
Topic: textdeskew regression_Arr: bad array subscript
Replies: 26
Views: 208

Re: textdeskew regression_Arr: bad array subscript

For some reason your environment is having trouble with AWK and giving you rnum=0 after finding all the points. Perhaps you do not have the Unix utility AWK installed on you Docker system. When I run it on my Mac OSX Sierra in IM 6.8.9.9, I get 136,136 gray=100% 236,134 gray=77.862% 258,139 gray=73....
by fmw42
2017-10-22T16:29:02-07:00
Forum: Users
Topic: Cloning + composite?
Replies: 3
Views: 59

Re: Cloning + composite?

First you should put the -geometry outside the parenthesis convert -size 4500x4500 xc:white ( -size 400x400 xc:red ) -geometry +500+900 -composite a_new.png Second, composite can only do two images at a time. So you need to specify geometry for both composites. If you need to clone the second image ...
by fmw42
2017-10-22T15:19:30-07:00
Forum: Fred's Scripts
Topic: textdeskew regression_Arr: bad array subscript
Replies: 26
Views: 208

Re: textdeskew regression_Arr: bad array subscript

I do not know about homebrew, but when I install, I install all my delegates first from MacPorts and then install IM from source. But I think in general one needs to install the needed delegates before installing IM and it needs to be installed in the same place so it can find the delegates.