Tesseract.js无法正确识别数字吗?

时间:2019-09-11 12:17:48

标签: tesseract

enter image description here

Tesseract将此数字识别为“ /”。

此号码为 “ 7 [2) 问 。 nr] / J“

enter image description here

这是我的代码,

const getTextFromImage = async path => {
  const { text } = await worker.recognize(path, "eng", {
    tessedit_char_whitelist: "0123456789"
  });
  console.log(text);
  return text;
};

0 个答案:

没有答案