【发布时间】:2020-03-23 10:25:21
【问题描述】:
我从 png 图像生成了一个盒子文件,然后我按照本教程进行操作: https://pretius.com/how-to-prepare-training-files-for-tesseract-ocr-and-improve-characters-recognition/ 生成自定义训练数据文件。
当我尝试将生成的训练数据与 Pytesseract 一起使用时遇到错误。 我得到了这种错误:
raise TesseractError(proc.returncode, get_errors(error_string))
pytesseract.pytesseract.TesseractError: (-4, "read_params_file:
Can't open txt read_params_file: Can't open txt read_params_file: Can't open txt read_params_file: Can't open txt Error: LSTM requested, but not present!! Loading tesseract. mgr->GetComponent(TESSDATA_NORMPROTO, &fp)
:Error:Assert failed:in file adaptmatch.cpp, line 552")
我正在使用 Tesseract 5.0 版
这是我的配置选项
traineddata = f'+eng+lav+lav2'
config = f'-l {traineddata} --oem 1 --psm 3 {tessdata_dir}'
【问题讨论】:
标签: tesseract python-tesseract