Training Methods for tesseract 3 language data (to) classification: open-source 92 people read comments (0) report collection
Note: I have downloaded the source code from Google code. I have converted it into lib_debug and then generated dll_debug. So I copied it directly from E: \ buildfolder \ Tesseract-OCR \ vs2008 \ lib_debug.
Upload to E: \ buildfolder \ Tesseract
Optical character recognition (ocr,optical Character recognition) refers to the process of scanning text data, and then analyzing and processing the image files to obtain the text and layout information. OCR technology is very professional, generally many printing, printing industry practitioners use, can quickly convert paper data into electronic data. About Chinese OCR, the current domestic level of Tsinghua Wen Tong, Han Wang, Shang Shu, its products are not the same, the price is not cheap.
Tesseract installation, tesseract
[1] direct Installation1) In Ubuntu 14.04, you can directly install the release package tesseract-ocrSudo apt-get install tesseract-ocrIn this way, the data files of the system are in/usr/share/tesseract-ocr/tessdata under/usr/bin (The eng p
To use the Tesseract library in VS, you must use a DLL that has been compiled with the corresponding VS version and Lib. For example, in VS 2013, you must use the Tesseract library that was compiled in VS 2013.Here I give a tesseract library that passes the VS 2013 compilation,:Http://pan.baidu.com/s/1o7JqXmUAfter extracting content such as,With the
tool Jtessboxeditor to train the sample, to improve our accuracy rate.
2, tesseract training:
The general process is: Install jtessboxeditor-> Get sample file-> Merge sample file –> Generate Box file-> define character Profile-> character correction-> Execute batch file-> will generate Traine Ddata put in Tessdata to install Jtessboxeditor
Download Jtessboxeditor, address https://sourceforge.net/projects/v
.jpg ') #加载一片防止报错, here you can omit the image.load () #调用show来展示图片, Debugging can be omitted here image.show () Text = pytesseract.image_to_string (Image.open (' 07.jpg '), lang = ' Chi_sim ') print (text)
3, the result of using Chinese font training is as follows:
From the results, the effect is not ideal, so we want to get better results, then we need to train their own font, the following small series began to train their own font.Five, Train your own library 1, convert the image to TIF f
indicates the txt name of the output result file, and eng indicates that the language file used for recognition is in English.
3. Open the result.txt file in the tesseract-ocr directory and check that the recognition result is 7542315857. There are 3 character recognition errors and the recognition rate is not very high. Is there any way to provide the recognition rate? Tesseract provides a set of training
ddt-l eng digits batch.nochop MakeboxExplainDdt.tif for the file to be recognized, support Jpg,gif,tiff and other formats, we recommend using TIFDDT is the name of the file to be saved (auto-add extension. box)The library used by-L ENG, this parameter allows us to choose which font to use to mark the borderThe following are the configuration files, that is, the other parameters of Tesseract are loaded as f
ReleasenotesRelease Notes.Updatedby [email protected] IntroductionThis page keeps the most up-to-date release notes.Tesseract Release Notes Feb 4 = V3.03 (RC1). "The latest version has to be compiled from the code, which is where the competition is."
Added New training tool text2image to generate Box/tif file pairs from text and TrueType fonts.
Added support for PDF output with searchable text.
removed entire image class and all
: \ AA.
4. Download and install tesseract-ocr-setup-3.01-1.exe (I have a problem with 3.02. I don't know if it is my problem or I won't use it. In short, we recommend that you use Version 3.01 first ), this setup version automatically adds the installation directory to the path environment variable. We recommend that you use this version. To download the portable version, you must edit the environment and add the
Successful training tesseract identification of thin gold body (24 words:))
--Interrupted--Very good training files from the Early modern OCR Project (EMOP). It should be primalabs 's job.TesseracttrainingTesting with Tesseract
A lot of resources online. A few steps are clearly expressed clearly:The Jtessboxeditor tool is used to train the Tesseract3.02.02 sample, and the identification rate of the verifica
about the Orc verification code recognition can read another article of this blog
two common types of Orc verification code recognition method and Practice Testimonials
This article is a further technical upgrade note for TESSERACT-OCR, and what to do if the default recognition rate is relatively low.
don't worry, TESSERACT-OCR's own tools provide a way to use the footage you provide to make manual corr
Reprint Address: Http://www.jianshu.com/p/a53c732d8da3Tesseract-OCR Learning Series (c) Simple example tesseract API Basic Example using CMake ConfigurationReference Document: Https://github.com/tesseract-ocr/tesseract/wiki/APIExampleThe API provided by Tesseract can be found in the baseapi.h file. However, if there ar
times the trust is higher, the recognition result is wrong.After these steps, you can complete the OCR in Japanese. But for the above code to run successfully, you must also install VC + + Run time 2012, otherwise it will error.I used the above method to test the scanned image, found that the recognition accuracy is relatively high, especially after the specified area and the pagesegmode parameter. But the Japanese font also has some low-level errors, such as the number "1" identified as the Ch
Directory to the directory where tesseract3 is located.
Copy. \ training \ *. exe .\
1. Mark the border
Tesseract ddt. tif ddt-l eng digits batch. nochop makebox
Explain
Ddt. tif is the file to be recognized. jpg, gif, tiff, and other formats are supported. We recommend that you use tif.
Ddt is the name of the file to be saved (the extension. box is automatically added)
-L eng library. This parameter allow
Tesseract font training materials
1. Create a. Box file.
tesseract [lang].[fontname].exp[num].tif [lang].[fontname].exp[num] -l yournewlanguage batch.nochop makebox
2. Start Training
tesseract [lang].[fontname].exp[num].tif [lang].[fontname].exp[num] box.train
Or
tesseract
Installing TESSERACT-OCRPreparatory work:Compilation environment: GCC gcc-c++ make (this environment is common machine, can be ignored) ?
1
yum install gcc gcc-c++ make
Dependent packages: autoconf automake libtool libjpeg-devel libpng-devel libtiff-devel zlib-devel Leptonica (1.67 or more)1. autoconf automake libtool libjpeg-devel libpng-devel libtiff-devel Zlib-devel can be installed via Yum:?
12
yum install
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.