tesseract

Tesseract 3.05 Build errors in Visual Studio 2017

你。 提交于 2019-12-24 11:44:54
问题 I used the solution provided here in order to make Tesseract 3.05 work on my windows10 x64 project, visual studio 2017. I got these errors when building it: 11>c:\users\mestiri\documents\vs2015_tesseract-master\vs2015_tesseract-master\tesseract_3.05\ccutil\unichar.h(164): error C3646: 'UTF32ToUTF8': unknown override specifier 11>c:\users\mestiri\documents\vs2015_tesseract-master\vs2015_tesseract-master\tesseract_3.05\ccutil\unichar.h(164): error C2059: syntax error: 'const' 11>c:\users\jihed

Import tesseract error

我是研究僧i 提交于 2019-12-24 07:31:30
问题 I'm trying to import tesseract in Python with a Mac Maverick, but I'm getting the following error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "tesseract.py", line 26, in <module> _tesseract = swig_import_helper() File "tesseract.py", line 18, in swig_import_helper import _tesseract ImportError: No module named _tesseract I followed these steps to install tesseract: https://code.google.com/p/python-tesseract/wiki/HowToCompilePythonTesseractForMacMountainLion

tesseract-ocr 学习笔记(比网上的中文说明都详细)

耗尽温柔 提交于 2019-12-24 03:04:24
由于OCR技术本身属于一个比较复杂比较新颖的技术,比较多软件公司都把它作为 知识产权的一部分,网络上比较难找到开发教材。因此,采用一些现有的OCR识别模块将 有助于减少开发时间,增加研发效率。 对比了一些商业模块与开源模块,觉得其中tesseract-ocr开源模块比较贴合这 次项目的要求(当前项目对文字数量少,只需要找出两机种不同,相对来说精确度要求低)。 tesseract-ocr是一款开源的OCR识别引擎,初期引擎由HP实验室研发,后来贡献给了 开源软件业,后经由Google进行改进,消除bug,优化,重新发布。当前版本为3.02。 其通过不同的语言训练库可以支持多种语言(包括中文、日文)。 从项目地址http://code.google.com/p/tesseract-ocr下载了相应版本的tesseract 项目,发现其源代码为C++,要结合到C#中编程比较麻烦。后来经过编译发现其可以生成 一系列用命令行运行的程序(如:tesseract.exe,mftraining.exe,cntraining.exe等), 命令行运行"tesseract 图片名 输出文件名 -l 字库文件 -psm pagesegmode 配置文件" 可以得到一个txt文件,其中包含文字识别的结果了。初步尝试识别一些标准字体, 结果还算理想,但经过设计的艺术字体就识别率不高了.

Tesseract training: only few words

有些话、适合烂在心里 提交于 2019-12-24 02:25:36
问题 I need to train tesseract to recognize just ten words. Words are pharma name, thing like: Atrasil, Spectful Since fonts used are pretty common, I tried to unpack eng.traineddata, substitute freq-dawg and word-dawg with just those words. Then I've repack them into a new traineddata, unfortunatly it doesn't seem to work very well. Matching results are still unacceptable and I can't use them, even when I use images obtained from a simple word file. Is there a way to achieve a good matching? do I

tesseract training new fonts fail

我的未来我决定 提交于 2019-12-24 02:13:56
问题 I was able install tesseract and train new fonts I had followed all the steps exactly mentioned in http://michaeljaylissner.com/blog/adding-new-fonts-to-tesseract-3-ocr-engine And now i m testing the traineddata but i get the following error when i run the command tesseract eng.digital.exp0.tif ./output.txt -l eng gives me the error Tesseract Open Source OCR Engine v3.03 with Leptonica tessdata_manager.SeekToStart(TESSDATA_INTTEMP):Error:Assert failed:in file adaptmatch.cpp, line 522 Abort

Train Tesseract for specific words - possible?

隐身守侯 提交于 2019-12-24 01:27:50
问题 I want to use Tesseract to extract about 10-20 keywords from a document. The document will contain all English characters/words. What I am interested in is something like "Age: 23". Here Age is the keyword I am interested in and want to extract the 23 (the value for that) as well. The first approach that comes in my mind is to extract the whole page into text and then look for keywords in the recognized text. But in terms of training the tesseract, is there a better approach if I know the

How to setup and running Tesseract OCR for PHP (opensource)?

强颜欢笑 提交于 2019-12-24 01:19:51
问题 I have installed the Tesseract OCR via MacPorts based on the documentation provided on the GitHUb, and they were installed successfully, and However, I am trying to use Tesseract OCR for PHP (https://github.com/thiagoalessio/tesseract-ocr-for-php), so I download the zip and include the library to my php file, and use the echo (new TesseractOCR('text.png')) ->run(); but nothing is showing up. Below is the full code in the php <?php REQUIRE_ONCE __DIR__.'/src/TesseractOCR.php'; echo (new

Tess-Two (Tesseract OCR in Android) shows very inaccurate results

匆匆过客 提交于 2019-12-24 01:13:31
问题 I use the following function to perform offline OCR using Tesseract OCR's Android fork Tess-Two : private String startOCR(Uri imgUri) { try { ExifInterface exif = new ExifInterface(imgUri.getPath()); int exifOrientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL); int rotate = 0; switch(exifOrientation) { case ExifInterface.ORIENTATION_ROTATE_90: rotate = 90; break; case ExifInterface.ORIENTATION_ROTATE_180: rotate = 180; break; case ExifInterface

Pytesseract is too slow. How can I make it process images faster?

佐手、 提交于 2019-12-24 00:22:26
问题 I am using pytesseract in the below code: def fnd(): for fname in list: x = None x = np.array([np.array(PIL.Image.open(fname))]) print x.size for im in x: txt = pytesseract.image_to_string(image=im).encode('utf-8').strip() open("Output.txt","a+").write(txt) with open("Output.txt") as openfile: for line in openfile: for part in line.split(): if "cyber" in part.lower(): print(line) return The list contains names of images from a folder (2408*3506 & 300 res Gray-scaled). Unfortunately for around

Training Tesseract on Android [closed]

假如想象 提交于 2019-12-23 21:03:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 months ago . I am using the tess-two library for OCR recognition on Android . I want to create the training data on Android . I have followed this link and successfully created training data on linux system . How to do the same on Android using tess-two or any other library ? 回答1: The tess-two library for Android uses the