node-ocr-demo
node-ocr-demo copied to clipboard
阈值图片为白色图片
node 6
安装好了依赖,执行node index.js
返回识别结果为空
查看发现test_1.jpg为白色图片
同问,node v4.1.0
改成这样之后可以了:.threshold(55, '%')
感谢 @phaibin ,然后这里阈值 55 转换为百分比差不多为 22%
$ node index.js 识别失败:Error: Could not execute GraphicsMagick/ImageMagick: gm "convert" "1.jp g" "-threshold" "55%" "test_1.jpg" this most likely means the gm/convert binarie s can't be found
我发现执行结果是这样的,怎么回事呀!
@phunsuke brew install imagemagick brew install graphicsmagick 把这两个装上就好了
brew install imagemagick brew install graphicsmagick windows下也是这样装吗?
@tanyinping 我的是MacOS,Windows没有试过。
brew install imagemagick brew install graphicsmagick windows下也是这样装吗?
请问 你弄好了吗 我也是遇到这个问题 我使用 require('gm').subClass({ imageMagick: true }) 还是运行不起来 有其他的报错 识别失败