![Sad :(](./images/smilies/icon_sad.gif)
Code: Select all
compList := objIM.convert(fname
, "-colorspace", "gray"
, "-negate"
, "-threshold", "5%"
, "-define", "connected-components:verbose=true"
, "-define", "connected-components:area-threshold=300"
, "-connected-components", "8"
, "info:")
Code: Select all
convert.exe somefile.jpg -colorspace gray -negate -threshold 5% -define connected-components:verbose=true -define connected-components:area-threshold=300 -connected-components 8 info:- > tempfile.tmp