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

【文档错误】nodejs关于自定义模板文字识别的文档有误 #31

Open
hongmaoxiao opened this issue Mar 15, 2021 · 0 comments

Comments

@hongmaoxiao
Copy link

var fs = require('fs');

var image = fs.readFileSync("assets/example.jpg").toString("base64");
var templateSign = "Nsdax2424asaAS791823112";

// 调用自定义模板文字识别
client.custom(image, templateSign).then(function(result) {
    console.log(JSON.stringify(result));
}).catch(function(err) {
    // 如果发生网络错误
    console.log(err);
});

其中这里边的

client.custom(image, templateSign)

应该改为

client.custom(image, {templateSign})

天坑
浪费我好几个小时

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

1 participant