problems using Fred's scripts
Posted: 2015-12-07T10:02:14-07:00
Hi,
I need to binarize several images, I've been trying with Fred's scripts, but I can't make it work, please help!! Thanks community
$ sh ~/ImageMagick-scripts/otsuthresh p20.jpg p20_out.jpg
/Users/myname/ImageMagick-scripts/otsuthresh: line 94: type: /Users/myname/ImageMagick-scripts/otsuthresh: not found
usage: dirname path
usage: basename string [suffix]
basename [-a] [-s suffix] string [...]
/Users/myname/ImageMagick-scripts/otsuthresh: line 182: convert: command not found
/Users/myname/ImageMagick-scripts/otsuthresh: line 192: convert: command not found
/Users/myname/ImageMagick-scripts/otsuthresh: line 204: [: : integer expression expected
/Users/myname/ImageMagick-scripts/otsuthresh: line 210: [: : integer expression expected
/Users/myname/ImageMagick-scripts/otsuthresh: line 215: convert: command not found
--- FILE p20.jpg DOES NOT EXIST OR IS NOT AN ORDINARY FILE, NOT READABLE OR HAG ZERO SIZE ---
I need to binarize several images, I've been trying with Fred's scripts, but I can't make it work, please help!! Thanks community
$ sh ~/ImageMagick-scripts/otsuthresh p20.jpg p20_out.jpg
/Users/myname/ImageMagick-scripts/otsuthresh: line 94: type: /Users/myname/ImageMagick-scripts/otsuthresh: not found
usage: dirname path
usage: basename string [suffix]
basename [-a] [-s suffix] string [...]
/Users/myname/ImageMagick-scripts/otsuthresh: line 182: convert: command not found
/Users/myname/ImageMagick-scripts/otsuthresh: line 192: convert: command not found
/Users/myname/ImageMagick-scripts/otsuthresh: line 204: [: : integer expression expected
/Users/myname/ImageMagick-scripts/otsuthresh: line 210: [: : integer expression expected
/Users/myname/ImageMagick-scripts/otsuthresh: line 215: convert: command not found
--- FILE p20.jpg DOES NOT EXIST OR IS NOT AN ORDINARY FILE, NOT READABLE OR HAG ZERO SIZE ---