Questions tagged [tesseract-ocr]

Tesseract is an optical character recognition engine(OCR)

Filter by
Sorted by
Tagged with
1 vote
2 answers
266 views

ffprobe OCR of a subtitle stream

I have some video files containing HDMV PGS subtitles, and I need to convert them to subrip (or other text subtitles). I know that I can ffmpeg demux the video file to extract .sup and on the fly ...
user avatar
  • 93
0 votes
1 answer
228 views

Getting output only from 1st page TIFF to hocr extract

[Sample Image] I seek your guidance in the code given below. Iam running this code to extract text from multipage TIFF to hocr format. Iam getting an output from the 1st page of TIFF but rest of the ...
user avatar
1 vote
1 answer
59 views

ImageMagick display WxH+x+y window

In ImageMagick's display, if I press 'c' and start to drag a crop frame, a small box appears at top left showing WxH+x+y for the crop frame. Is there any way that data can be accessed programmatically ...
user avatar
0 votes
2 answers
415 views

How do you rip the text from multiple images to one text file?

I have installed everything, I have used an online tool to rip a PDF file to JPG, the problem is the tool put every page of the PDF into a separate image, now there are like 500 of them. Is there a ...
user avatar
0 votes
1 answer
76 views

tesseract - build and install (`configure`, `make`, `make install`...) tesseract version 3 (tesseract-ocr-3.XX.XX)

PROBLEM: I am trying build and install (configure, make, make install...) tesseract version 3 (tesseract-ocr-3.02.02) on Ubuntu Server 20.04 LTS and the following error is occurring... Build and ...
user avatar
0 votes
1 answer
532 views

perform ocr and rename on multiple files

I have a folder of hundreds of images which contain a header with text. I want to extract the first line of text from each image using OCR, and rename the file to that text. Or if it's easier, put the ...
user avatar
3 votes
2 answers
690 views

What exactly is "tesseract"?

Like so many software companies that provide a free/open source version and also sell a "commercial" version, they make it as cryptic and unfriendly as possible to actually download and use ...
user avatar
1 vote
0 answers
383 views

OCR a table to csv using a GUI for tesseract? [closed]

I want to OCR 20 pages of tables to CSV or similar format, using a GUI. For this purpose I installed tesseract (including tesseract-training and the applicable language package) using MacPorts. I also ...
user avatar
  • 562
1 vote
1 answer
6k views

How do I train Tesseract for a new ttf font?

I am trying to train Tesseract for some funny looking fonts, like Palace for example. I have tried a simple way - produced traindata with http://trainyourtesseract.com/ and then have made a call ...
user avatar
0 votes
1 answer
2k views

Tesseract.exe path on Ubuntu

I want to use pytesseract on Ubuntu computer with Python. On Windows computer I had to set path to tesseract.exe before I call image to string function. How can I set this path on ubuntu computer?I ...
user avatar
0 votes
1 answer
103 views

How to incrementally rename files after processing in bash?

I have a set of files that need processing, so I tend to do this programmatically in bash in mac and linux. Since I like to keep the originals in case something gets screwed, I want the files to come ...
user avatar
3 votes
0 answers
448 views

Tesseract: OCR hex and binary strings from old documents

I have some questions about Tesseract Context I am currently working on an old cryptographic algorithm from East Germany (GDR) which was developed in the 80s. I implemented the algorithm in C#. Now ...
user avatar
1 vote
1 answer
476 views

tesseract can not process *.bmp files

Tesseract can not process *.bmp files. It gives this error. Tesseract Open Source OCR Engine v4.00.00alpha with Leptonica Error in pixReadMemBmp: size incommensurate with image data Error in ...
user avatar
0 votes
1 answer
5k views

How to install latest version of tesseract-ocr in debian

I am running into the issue below: pytesseract.pytesseract.TSVNotSupported: TSV output not supported. Tesseract >= 3.05 required at image_to_data (/usr/local/lib/python3.5/dist packages/...
user avatar
  • 101
0 votes
0 answers
99 views

How do I install Clang 4.0 or above on Ubuntu 16.04 LTS?

I need to install Clang 3.4 and above on Ubuntu 16.04 LTS, as a prerequisite to this Package that I need to use. Not sure should if I go for the latest Clang version, and if yes, how can I do it for ...
user avatar
  • 103
5 votes
2 answers
756 views

How to leave pdf image unchanged while adding OCR to a pdf with pdfsandwich?

I am trying to add OCR to PDFs and am using pdfsandwich to do so. The problem is that pdfsandwich processes the image when doing OCR which changes what the document looks like. Is there any way to ...
user avatar
0 votes
1 answer
315 views

Tesseract performance differences

I have a few machines that run tesseract-ocr 4.0 for different applications. The machines have similar configuration(4 cores, 16 GB memory), and all of them run Ubuntu 16.04.5 LTS. However, in the ...
user avatar
  • 101
2 votes
1 answer
313 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 ...
user avatar
0 votes
1 answer
731 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 ...
user avatar
3 votes
1 answer
593 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 ...
user avatar
  • 181
1 vote
1 answer
521 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 ...
user avatar
  • 191
3 votes
3 answers
3k 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,...
user avatar
2 votes
0 answers
214 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 ...
user avatar
5 votes
0 answers
2k 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'...
user avatar
  • 305
3 votes
1 answer
2k 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 ...
user avatar
1 vote
1 answer
4k 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 ...
user avatar
1 vote
1 answer
1k 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,...
user avatar
1 vote
0 answers
123 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 ...
user avatar
1 vote
2 answers
910 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 ...
user avatar
  • 675
1 vote
0 answers
541 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 ...
user avatar
4 votes
1 answer
11k 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 ...
user avatar
1 vote
2 answers
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....
user avatar
1 vote
0 answers
4k 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 ...
user avatar
  • 205
5 votes
1 answer
7k 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 ...
user avatar
  • 205
4 votes
2 answers
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....
user avatar
  • 321
5 votes
2 answers
8k 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 ...
user avatar
  • 161
4 votes
1 answer
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 ...
user avatar
  • 1,342
0 votes
2 answers
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: ...
user avatar
  • 263
1 vote
1 answer
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 ...
user avatar
  • 31
7 votes
3 answers
21k 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 ...
user avatar
  • 71
2 votes
0 answers
273 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 ...
user avatar
  • 31
0 votes
1 answer
149 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 ...
user avatar
  • 19.9k
0 votes
3 answers
7k 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 ...
user avatar
3 votes
1 answer
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 ...
user avatar
  • 887
2 votes
1 answer
11k 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....
user avatar
  • 887