Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
417 views
in Technique[技术] by (71.8m points)

javascript - 如何提高tesseract.js的准确性?(How to improve tesseract.js accuracy?)

Im using this piece of code from the website but its not accurate enough

(我正在使用网站上的这段代码,但不够准确)

 const worker1 = createWorker();
  const worker2 = createWorker();

  await worker1.load();
  await worker2.load();
  await worker1.loadLanguage("eng");
  await worker2.loadLanguage("eng");
  await worker1.initialize("eng");
  await worker2.initialize("eng");

  scheduler.addWorker(worker1);
  scheduler.addWorker(worker2);

  /** Add 10 recognition jobs */
  const {
    data: { text }
  } = await scheduler.addJob("recognize", image);

this is the type of image i'm trying to read its text:

(这是我尝试读取其文字的图像类型:)

在此处输入图片说明

thou it seems simple and easy ,sometimes tesseract fails to read it .

(您似乎很简单容易,有时tesseract无法阅读它。)

is there any better alternatives to tesseract.js or any way to improve the accuracy?

(是否有tesseract.js的更好替代品或任何提高准确性的方法?)

  ask by MirzaPayam translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...