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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…