基于tesseract的二次训练 - jTessBoxEditorFX如何使用?
2020-07-26 21:55:06 JST |
Unclassified |
3k+ Reads
Copyright Notice: This article is an original work licensed under the CC 4.0 BY-NC-ND license.
If you wish to repost this article, please include the original source link and this copyright notice.
Source link: https://v2know.com/article/383
jTessBoxEditor下载地址:
https://sourceforge.net/projects/vietocr/files/jTessBoxEditor/
直接打开里面的train.bat文件
选择TIFF/Box Generator,点击Input导入你需要识别的字符,这里只能导入txt文件,
这里我是新建了txt,里面打上了0 1 2 3 4 5 6 7 8 9 : ,并且按空格分开了,
我导入了该txt之后,然后我们选择output的位置,点击Generator,(注意这里我们还可以点击System Regular选择字体,选择字体是为了生成更好的识别)
好,生成完成之后,记住路径,
我们点击Box Editor,点击Open,导入刚才生成的tif文件
然后点击Trainer,浏览Tesseract Executables路径,选择jTessBoxEditorFX\tesseract-ocr\libbz2-1.dll
浏览Training Data路径,选择刚才生成的tif文件所在的文件夹
填写语言en或其他,选择Train with Existing Box,点击Run
Run完之后会生成一个tessdata文件夹,里面有en.traineddata是你训练好的文件,en.traineddata是你不重命名会显示的文件名
更详细的流程:
我的建议是,为了更加直观地看,
在jTessBoxEditorFX建立两个文件夹,一个叫my、一个叫output,
然后你或许还需要VietOCR这样的文件来检查效果,
参考来源:
https://www.youtube.com/watch?v=HgeksbqH0ng
另外一个文件是
https://digi.bib.uni-mannheim.de/tesseract/
不下载这个你没办法用指令
进入下载页面,可以看到有各种.exe文件的下载列表,这里可以选择下载3.0版本。
千万别下3.0的版本,有BUG,
pixReadMemTiff: tiff page 1 not found
建议直接最新版。
我是用的是5.0,注意环境变量 :
Path: C:\Program Files\Tesseract-OCR
TESSDATA_PREFIX: C:\Program Files\Tesseract-OCR\tessdata\
具体参考:
Tesseract-OCR-04-使用 jTessBoxEditor 进行训练
This article was last edited at 2020-07-26 21:58:28 JST
Related Articles
About me
This website has been in existence for a considerable period of time. And this blog is used to introduce some of the most basic information about this website and me
2020-01-12 07:25:42 JST
|
Unclassified
|
8k reads 404 NOT FOUND
404 NOT FOUND
2020-08-15 21:18:34 JST
|
Unclassified
|
4k reads Privacy Policy for v2know.com
At v2know, accessible from v2know.com, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that is collected and recorded by v2know and how we use it. If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us. This Privacy Policy applies only to our online activities and is valid for visitors to our website with regards to the information that they shared and/or collect in v2know. This policy is not applicable to any information collected offline or via channels other than this website
2021-04-18 06:28:58 JST
|
Unclassified
|
2k reads My server has been hacked
Today, I was cleaning up comments on my website using SQL statements and found this comment: We have hacked your website v2know.com and extracted your databases. This was due to the security holes you had in your your site/server which have gained us remote control of pretty much everything that was on the server. Our team is mostly interested in customer, administrative, and employee information
2021-02-24 05:50:41 JST
|
Unclassified
|
1k reads What can computers in the 80s do? My in-depth experience of using Apple Macintosh
The computer is the most important tool in our lives. We can use it to work, surf the Internet, watch videos, and do whatever we want. But have you ever thought about it? If you go back to the 1980s, when personal computers first began to become popular, how could a computer
2020-11-06 06:07:40 JST
|
Unclassified
|
1k reads Don't trust someone easily, and don't trust programmers who don't use Github, Stack Overflow, Blog, and claim to have 5 years of work experience.
Why write this blog today is mainly because of someone. On October 18, 2020, I followed a fan's opinion and went to make a website, but afterwards I thought I was stupid. Now I feel that I shouldn't listen to that person's opinion at the time, because he was wrong
2020-11-04 03:49:02 JST
|
Unclassified
|
1k reads