我们已经创建了2个定制的.gzip文件,其中包含经过训练的独特语言/字体的数据。需要知道我们如何在Javascript中使用Tesseract.recognize函数调用相同的函数。
发布于 2019-10-17 15:15:51
从Tesseract导入createWorker函数,并将langPath作为训练数据传递。
const { createWorker } = Tesseract;
const worker = createWorker({
workerPath:
langPath: 'traineddata path here'
corePath:
});https://stackoverflow.com/questions/47938094
复制相似问题