Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
!java.lang.Error:在 net.sourceforge.tess4j.Tesseract1.doOCR 的 net.sourceforge.tess4j.Tesseract1.getOCRText(未知来源)的 net.sourceforge.tess4j.TessAPI1.TessBaseAPIGetUTF8Text(本机方法)的内存访问无效(未知来源) ) 在 net.sourceforge.tess4j.Tesseract1.doOCR(Unknown Source) at net.sourceforge.tess4j.Tesseract1.doOCR(Unknown Source) at net.sourceforge.tess4j.Tesseract1.doOCR(Unknown Source)
该错误通常归因于 Tesseract 未找到其tessdata文件夹。尝试使用方法指向它setDatapath。
tessdata
setDatapath