Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tesseract-ocr]

Tesseract is an optical character recognition engine(OCR)

1
vote
1answer
28 views

How to execute a third party utility on every file in a folder recursively?

I use a CLI utility called tesseract-ocr. The tesseract-ocr's usage in the cmd is this: tesseract.exe imagename outputbase [options...] [configfile...] In my case I type: tesseract photo0043.jpg ...
0
votes
0answers
4 views

Customize charset in Google Cloud Vision

I am working with text detection feature of Google Cloud Vision API and after taking a look to the documentation I am not able to find any way to customize the desired charset used to perform OCR. ...
0
votes
0answers
43 views

Tesseract for simple captchas

I try to recognise random text strings from simple captchas such as . The command tesseract -c page_separator="" gahap.png - will erroneously output 283surn other than on the demo page here ...
0
votes
0answers
48 views

Tesseract OCR: How to show all the possible answers for an image?

I'm working on using Tesseract to detect some old ancient scripts. Tesseract as a tool only show one answer (output) for any image and sometimes the output is wrong. I want to be able to see all the ...
0
votes
1answer
209 views

How to host Tesseract OCR for a Chrome Extension?

Currently, I'm working on designing a Google Chrome Extension that takes an image. This image supposes to be passed to Tesseract OCR using the command (cmd) and get the output as a text. A text area ...
0
votes
0answers
164 views

Tesseract 4.0 not reading images with just one Word of Text

I’m using Tesseract v4.0.0-beta.1-108-gf291 The image 5.jpg is not read (one word: nicely sized characters) tesseract 5.jpg out.txt I tried all kind of --psm options and still not read However the ...
2
votes
0answers
314 views

Can dvdsub subtitles be converted to srt via command line?

Is there a way to convert dvdsub (image based) subtitles to srt? for example with mencoder or ffmpeg combined with tesseract? I'm looking for something command-line based, and I'm ok with having to ...
1
vote
0answers
366 views

How to auto detect text language in a photograph and translate it [closed]

I managed to integrate an OCR app to detect text from a photograph https://obserbot.com/ but it only fetches exact text from the photograph and not converting it in multi-language. I want the app to ...
1
vote
1answer
271 views

How do I train tesseract to ignore the wavy lines added from spelling and grammar error detection?

I am using tesseract to detect text in a variety of image types, including screenshots, it's getting confused by the wavy red and blue underlines for spelling and grammar warnings, like the example ...
0
votes
1answer
1k views

Optimal font for Tesseract? (specifically the .NET wrapper)

I am using Tesseract as a means to convert printed text documents captured by my cell phone camera into text. The results are not great. The quality of the image is very good, far clearer than a fax,...
2
votes
0answers
176 views

Funny OCR-situation

I have a multipage scanned 300 dpi PDF-file on an Ubuntu 16.04 system. When I run the following command: pdfocr -t -l swe -i *.pdf -o newfile.pdf It results in a perfectly OCR-read file. Every ...
2
votes
0answers
978 views

How to compress Tesseract-encoded PDFs while maintaining embedded text from OCR?

I've been experimenting with using Tesseract to OCR my PDFs, and it has been mostly successful, particularly with German Fraktur texts (the old style gothic print), which tools like Adobe Acrobat can'...
3
votes
1answer
974 views

How to extract Unicode character from .png file?

I want to extract Unicode character from .jpg and .png files. I try to do it by using following command: tesseract 1.png output.txt That command works for English characters but when I try it for ...
1
vote
1answer
2k views

How to make OCR recognize this image

original image I think recognize the digits from this image would be really easy, but it just can't be recognized by tesseract and a lot of online OCR. Then I process it like this. process image ...
1
vote
1answer
861 views

In jTessBoxEditor for Tesseract how to combine multiple TIFF/boxfile into one traineddata file

I think this would be possible with command line, but how to do it with jTessBoxEditor as it would automatize a lot of workflow. Since jTessBox supports multi page TIFF I think that might be the way,...
1
vote
0answers
104 views

Tesseract on Windows: Outputs are always innacurate

So I'm trying to OCR this image: (This are actually usernames) using this command on the Windows command prompt: tesseract screenshot.png out However the out.txt always brings innacurate ...
0
votes
1answer
659 views

How to avoid skewed results with the OCR tool pdfsandwich?

Usually, scanned pages need to be deskewed before applying an OCR tool. Here, my input is a straight scanned page, and the OCR output is sometimes skewed, either clockwise or counter-clockwise. In my ...
1
vote
0answers
455 views

Turn Off Dictionary in Tess4J

The accuracy of character recognition in my tess4j OCR application is very low. I have heard that turning off the dictionary in tess4j will increase the accuracy by letting individual characters to be ...
1
vote
1answer
4k views

Use ffmpeg for JPEG to TIFF conversion

I would like to use Tesseract OCR with a video. With ffmpeg I can export some (.jpeg) images from a video. Can I convert a .jpeg into a valid .tiff or export directly .tiff images from the video with ...
1
vote
2answers
2k views

Tesseract on linux

How to solve the problem without having to install tesseract 3.03 when I get a warning: Warning: You are running an unsupported version of Tesseract. Expecting version 3.03, your version is: 3.02....
0
votes
0answers
3k views

Tesseract couldn't load any languages

Running tesseract makebox command produced me the following error Error opening data file /opt/local/share/tessdata/eng.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to ...
5
votes
1answer
4k views

Tesseract OCR : Unsupported image type

I converted the PDF to TIF file using the following commands on terminal convert -density 300 -depth 4 lang.font-name.exp0.pdf lang.font-name.exp0.tif convert lang.font-name.exp0.tif -colorspace rgb ...
4
votes
2answers
6k views

Tesseract 3.03 english language data

Tesseract 3.03 have been released recently and I have just installed it. Nevertheless, English language data is not provided with the download (from https://launchpad.net/ubuntu/+source/tesseract/3.03....
3
votes
1answer
5k views

OCR with non-language text

I am interested in using OCR to recognize text from a document that doesn't contain words. Rather, it is a document with a long string of "random" printed characters. I have been trying to use ...
2
votes
1answer
2k views

Tesseract hocr and txt at the same time, or converting from Tesseracts hocr to txt

I've been playing around with Linux OCR software, and I really like Tesseract, especially in conjunction with gsan2pdf. Tesseract v3 or greater supports outputting in the hocr format, and gscan2pdf is ...
0
votes
2answers
2k views

Unable to process GIFs with Tesseract in OSX

Getting the following error: Tesseract Open Source OCR Engine v3.02.02 with Leptonica Error in pixReadStreamGif: function not present Error in pixReadStream: gif: no pix returned Error in pixRead: ...
1
vote
1answer
1k views

TesseractOCR custom training

I don't get it how am I supposed to tell Tesseract that this is actually a b c letters? Appending makebox in cli, produced this file: C 78 127 104 166 0 l 96 127 118 166 0 . 116 127 126 140 0 - 124 ...
5
votes
3answers
15k views

OCR Tesseract, Empty page error?

I compiled it from sources with leptonica. This is a png image with transparent background, which I edited adding a blue color and still this error: Tesseract Open Source OCR Engine v3.02.02 with ...
2
votes
0answers
232 views

Tesseract can't scan `Error:Only 1,2,4,5,6,8 bpp are supported:32`

Even though I did convert canvas.png -depth 8 canvas.tif I am still seeing this error message: Tesseract Open Source OCR Engine check_legal_image_size:Error:Only 1,2,4,5,6,8 bpp are supported:32 ...
0
votes
1answer
137 views

gImageReader Clipboard doesn't work on Windows

I'm using gImageReader to do some OCR on Windows 7, and though I can copy from within the application itself, I can't copy to the external Windows 7 clipboard. I believe the program is gtk based, and ...
0
votes
3answers
6k views

Install tesseract ocr 3 on OSX

I am trying to install Tesseract OCR on OSX 10.6... I have got as far as installing leptonic (by downloading src and installing with ./configure; make; sudo make install) seemingly without any ...
3
votes
1answer
3k views

Training Tesseract-OCR for english language fonts

I have about 3000 small images of single words that I am trying to convert to text. I have installed tesseract on my windows 7 machine using the installer and successfully managed to OCR images ...
2
votes
1answer
7k views

Why does Tesseract CLI show 'cannot create output file' on Windows 7?

I have installed (Or at least I think I ran an installer) tessearct-ocr on my my machine running 64-bit Windows 7. I am trying to interact with the program through cmd. to convert a .png image to text....