tessdoc | Tesseract documentation | Computer Vision library

 by   tesseract-ocr HTML Version: Current License: No License

kandi X-RAY | tessdoc Summary

kandi X-RAY | tessdoc Summary

tessdoc is a HTML library typically used in Artificial Intelligence, Computer Vision applications. tessdoc has no bugs, it has no vulnerabilities and it has medium support. You can download it from GitHub.

Tesseract documentation

            kandi-support Support

              tessdoc has a medium active ecosystem.
              It has 1166 star(s) with 318 fork(s). There are 32 watchers for this library.
              It had no major release in the last 6 months.
              There are 21 open issues and 37 have been closed. On average issues are closed in 7 days. There are 6 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of tessdoc is current.

            kandi-Quality Quality

              tessdoc has 0 bugs and 0 code smells.

            kandi-Security Security

              tessdoc has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              tessdoc code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              tessdoc does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              tessdoc releases are not available. You will need to build from source code and install.
              Installation instructions are available. Examples and code snippets are not available.
              It has 4 lines of code, 0 functions and 1 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of tessdoc
            Get all kandi verified functions for this library.

            tessdoc Key Features

            No Key Features are available at this moment for tessdoc.

            tessdoc Examples and Code Snippets

            No Code Snippets are available at this moment for tessdoc.

            Community Discussions


            Packaging Tesseract 5 with VCPKG
            Asked 2022-Feb-15 at 06:39

            I'm following the instructions at https://tesseract-ocr.github.io/tessdoc/Compiling.html#windows and when I run: vcpkg install tesseract:x86-windows-static It is pulling down tesseract 4. I tried using -head and it still pulls down 4. Any idea how I can build a self-contained executable for tesseract 5.x?



            Answered 2022-Feb-15 at 06:39

            At the moment vcpkg support version 4.1.1: https://vcpkg.info/port/tesseract

            There is request for update: https://github.com/microsoft/vcpkg/issues/16019 from Feb 3, 2021 which Microsoft ignores ;-)

            You can (manually) upgrade tesseract version in vcpkg. See tesseract forum discussion: https://groups.google.com/g/tesseract-ocr/c/2xAJaGRqymw?pli=1

            Source https://stackoverflow.com/questions/71105979


            Tesseract problem on installation during make
            Asked 2021-Sep-13 at 09:13

            I am trying to install tesseract-ocr on Debian 9 with gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516.

            I run with the below order, according to this https://github.com/tesseract-ocr/tessdoc/blob/master/Compiling-%E2%80%93-GitInstallation.md

            ./autogen.sh ./configure make

            Now when I run make I get the following error:



            Answered 2021-Sep-13 at 09:13

            Upgrade your compiler - current tesseract needs a modern compiler supporting c++17.

            Source https://stackoverflow.com/questions/69148894


            Is there a way to get possible characters for a image (containing single character) in tesseract?
            Asked 2021-Jul-08 at 12:53

            I tried searching around in the internet, github issues and such, but was unable to find if it's possible to get the result with different possible character alternatives while using tesseract.

            for example while running tesseract -l jpn --psm 10 input.png - on this image I get the output , but if possible I'd like to also see the other possibilities, and if possible with their confidence coefficients.

            I found that it's specially useful while trying to recognize a single character as the tesseract --psm 10 will give wrong but close results for complex kanji.

            Like was being recognized as 側. So, I was thinking if I could like get the 5 most probable or sth like that from the command line, then it could be great. And if it's not possible through the command line I'm also willing to see a direct programming approach using the API.

            EDIT: tesseract -l jpn --psm 10 iu.png - command on results in result. On doing this on the code given in the answer I can see that the confidence is 93.68% and shows only one result. If I run the same in this image instead , I'll get 言 (99.46%) which means it is giving a sensible result, but it's only giving me a single result ignoring others. I hypothesized that it does so because the confidence is high because if I run the same command on , I get but when I run the code, I get



            Answered 2021-Jul-07 at 06:13


            Detecting white text on a bright background with tesseract
            Asked 2021-May-05 at 01:11

            I'm having issues reading white text on a bright background, it finds the text itself but it cannot really translate it correctly.

            The image:

            The result I keep getting is LanEerus which is not that far off, to be honest.

            What I'm wondering is what image pre-processing could fix this? I'm using photoshop to manually pre-process it before I try to do it with code, to find what should work first.

            I've tried making it a bitmap, but that makes the borders of the text pretty bad, resulting in tesseract just translating it to random characters.

            Inverting colors and/or grayscaling doesn't seem to do the trick, either.

            Anyone have any ideas? I know it's a pretty bad background for the text for this case. Trust me, I wish that the background was different!

            My code for the tests:



            Answered 2021-May-05 at 01:11

            Here's one possible solution. This is in Python, but it should be clear enough for a Java port. We will apply a method called gained division. The idea is that you try to build a model of the background and then weight each input pixel by that model. The output gain should be relatively constant during most of the image. This will get rid of most of the background color variation. We can use a morphological chain to clean the result a little bit, let's see the code:

            Source https://stackoverflow.com/questions/67386714


            Using Tesseract to read dates from a small images
            Asked 2021-Mar-29 at 15:53

            I have a rather small set of images which contains dates. The size might be a problem, but I'd say that the quality is OK. I have followed the guidelines to provide the clearest image I can to the engine. After resizing, apply filters, lots of trial and error, etc. I came up with an image that is almost properly read. I put an example below:

            Now, this is read as “9 MAR 2021\n\x0c. Not bad, but the first 2 is read as ". At this point I think I'm misusing part of the power of Tesseract. After all, I know what it should expect, i.e. something as "%d %b %Y".

            Is there a way to tell Tesseract that it should try to find the best match given this strong constraint? Providing this metadata to the engine should heavily facilitate the task. I have been reading the documentation, but I can't find the way to do this.

            I'm using pytesseract on Tesseract 4.1. with Pytyon 3.9.



            Answered 2021-Mar-29 at 15:53

            You need to know the followings:

            Now if we center the image (by adding borders):

            • We up-sample the image without losing any pixel.

            Second, we need to make the characters in the image bold to make the OCR result accurate.

            Now OCR:

            Source https://stackoverflow.com/questions/66856172


            How do I install a new language pack for Tesseract on Windows
            Asked 2020-Jul-23 at 07:51

            I have installed the pytesseract module in my venv and want to extract text from a german file

            with executingthis script from pytesseract and setting the lenguage to german



            Answered 2020-Jul-23 at 07:51


            How to generate lstmf from .box and .tif files in tesseract 5 alpha lstm training
            Asked 2020-Mar-08 at 10:32

            I am using the current alpha version 5 of tesseract. Currently, I am trying to train using images without font files. I managed to generate box files from the image using the following command.



            Answered 2020-Mar-08 at 10:32


            how to convert C++ tesseract-ocr code to Python?
            Asked 2020-Feb-12 at 07:06

            I want to convert the C++ version Result iterator example in tesseract-ocr doc to Python.



            Answered 2020-Feb-11 at 15:21

            I think the problem is that api->Recognize() expects a pointer as first argument. They mistakenly put a 0 in their example but it should be nullptr. 0 and nullptr both have the same value but on 64bits systems they don't have the same size (usually ; I assume on some weird non-x86 systems this may not be true either).

            Their example still works with a C++ compiler because the compiler is aware that the function expects a pointer (64bits) and fix it silently.

            In your example, it seems you haven't specified the exact prototype of TessBaseAPIRecognize() to ctypes. So ctypes can't know a pointer (64 bits) is expected by this function. Instead it assumes that this function expects an integer (32 bits) --> it crashes.

            My suggestions:

            1. Use ctypes.c_void_p(None) instead of 0
            2. If you intend to use that in production, specify to ctypes all the function prototypes
            3. Be careful with the examples you look at: Those examples use Tesseract base API (C++ API) whereas if you want to use libtesseract with Python + ctypes, you have to use Tesseract C API. Those 2 APIs are very similar but may not be identical.

            If you need further help, you can have a look at how things are done in PyOCR. If you decide to use PyOCR in your project, just beware that the license of PyOCR is GPLv3+, which implies some restrictions.

            Source https://stackoverflow.com/questions/60166781

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network


            No vulnerabilities reported

            Install tessdoc

            Binaries are available from:.
            Ubuntu - tesseract-ocr-devel PPA
            Debian - notesalexp.org
            Windows - Tesseract at UB Mannheim
            Compiling and GitInstallation - Linux
            Compiling - Other O/S
            Docker Containers


            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
          • HTTPS


          • CLI

            gh repo clone tesseract-ocr/tessdoc

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Computer Vision Libraries


            by opencv


            by tesseract-ocr


            by ageitgey


            by naptha


            by facebookresearch

            Try Top Libraries by tesseract-ocr


            by tesseract-ocrC++


            by tesseract-ocrPython


            by tesseract-ocrRuby


            by tesseract-ocrShell


            by tesseract-ocrHTML