node-ocr-demo icon indicating copy to clipboard operation
node-ocr-demo copied to clipboard

阈值图片为白色图片

Open CocaCola183 opened this issue 8 years ago • 8 comments

node 6 安装好了依赖,执行node index.js 返回识别结果为空

查看发现test_1.jpg为白色图片

CocaCola183 avatar May 16 '16 07:05 CocaCola183

同问,node v4.1.0

rainbird avatar Jun 07 '16 01:06 rainbird

改成这样之后可以了:.threshold(55, '%')

phaibin avatar Jun 12 '16 08:06 phaibin

感谢 @phaibin ,然后这里阈值 55 转换为百分比差不多为 22%

cupools avatar Oct 12 '16 13:10 cupools

$ 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

我发现执行结果是这样的,怎么回事呀!

ethan-phu avatar Mar 02 '17 23:03 ethan-phu

@phunsuke brew install imagemagick brew install graphicsmagick 把这两个装上就好了

blackmatch avatar May 28 '17 10:05 blackmatch

brew install imagemagick brew install graphicsmagick windows下也是这样装吗?

ghost avatar Aug 19 '17 23:08 ghost

@tanyinping 我的是MacOS,Windows没有试过。

blackmatch avatar Aug 20 '17 14:08 blackmatch

brew install imagemagick brew install graphicsmagick windows下也是这样装吗?

请问 你弄好了吗 我也是遇到这个问题 我使用 require('gm').subClass({ imageMagick: true }) 还是运行不起来 有其他的报错 识别失败

xiaomaAAA avatar Dec 07 '21 00:12 xiaomaAAA