node 实现OCR识别的的方法

https://github.com/tesseract-ocr/tesseract/blob/main/doc/tesseract.1.asc#options 使用node 实现OCR识别的的方法,其中psm是模式,用于调整识别正确率。 mport * as Tesseract from 'node-tesseract-ocr'; const config = { lang: 'eng', oem: 1, psm: 13, }; const text = await Te
分类至 JS
0条评论