Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

阈值图片为白色图片 #2

Open
CocaCola183 opened this issue May 16, 2016 · 8 comments
Open

阈值图片为白色图片 #2

CocaCola183 opened this issue May 16, 2016 · 8 comments

Comments

@CocaCola183
Copy link

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

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

@rainbird
Copy link

rainbird commented Jun 7, 2016

同问,node v4.1.0

@phaibin
Copy link

phaibin commented Jun 12, 2016

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

@cupools
Copy link

cupools commented Oct 12, 2016

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

@ethan-phu
Copy link

$ 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

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

@blackmatch
Copy link

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

@ghost
Copy link

ghost commented Aug 19, 2017

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

@blackmatch
Copy link

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

@xiaomaAAA
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants