Questions tagged [tesseract-ocr]

Tesseract is an optical character recognition engine(OCR)

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

Windows cmd won't recognize changed PATH

Few days ago I installed Tesseract OCR by installing Capture2Text via Chocolatey. This proved not to work, and instead of uninstalling Capture2Text I went ahead and deleted the Capture2Text folder ...
Elizabeth V.'s user avatar
1 vote
0 answers
44 views

Digit recognition with ocrmypdf

I would like to get a "5" out of this image using ocrmypdf: I tried: ocrmypdf digit.png --output-type none --image-dpi 300 --sidecar side.txt - > /dev/null But nothing, the sidecar is ...
robertspierre's user avatar
0 votes
1 answer
91 views

Can't install cairo-devel and pango-devel on Centos 8.1 (for Tesseract)

In order to compile the Tesseract Training programs from source code, the development packages for pango and cairo must be installed. However, I'm having trouble installing them on Centos 8.1. # cat /...
Danny's user avatar
  • 181
0 votes
1 answer
118 views

tesseract OCR giving no output and no diagnostics

I've used tesseract for OCR a few times in the past successfully.  On macOS; it was installed by "home-brew" Today, I did WGroleau@MBP ~ % brew upgrade # to make sure everything is the ...
WGroleau's user avatar
  • 724
0 votes
0 answers
67 views

Can I annotate a PDF with gImageReader to make it searchable?

I am using the latest version of gImageMaker (3-2023, Windows 10). OCR works fine. I use a PDF as source, which is not searchable and just want to add the OCR text to the PDF so it becomes searchable. ...
Horst Walter's user avatar
  • 1,941
2 votes
2 answers
2k 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 ...
Minty's user avatar
  • 149
0 votes
1 answer
608 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 ...
Travelz Online's user avatar
1 vote
1 answer
107 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 ...
user985675's user avatar
0 votes
2 answers
964 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 ...
Neil Meyer's user avatar
0 votes
1 answer
264 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 ...
Eduardo Lucio's user avatar
0 votes
1 answer
1k 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 ...
timelessbeing's user avatar
5 votes
2 answers
1k 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 ...
Yashveer Hulsey's user avatar
1 vote
1 answer
8k 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 ...
Yuliana Zigangirova's user avatar
0 votes
1 answer
3k 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 ...
Marek Marekovic's user avatar
0 votes
1 answer
128 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 ...
grad student's user avatar
3 votes
0 answers
579 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 ...
tassadarius's user avatar
1 vote
1 answer
720 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 ...
inuryyev's user avatar
0 votes
1 answer
7k 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/...
AntsaR's user avatar
  • 101
0 votes
0 answers
135 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 ...
innuendo's user avatar
  • 103
7 votes
2 answers
883 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 ...
user3750888's user avatar
0 votes
1 answer
381 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 ...
Kalpit's user avatar
  • 101
2 votes
3 answers
493 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 ...
computationalprince's user avatar
0 votes
1 answer
991 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 ...
user6512156's user avatar
3 votes
1 answer
1k 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 ...
simone's user avatar
  • 181
1 vote
1 answer
578 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 ...
GdD's user avatar
  • 191
3 votes
3 answers
5k 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,...
user613051's user avatar
2 votes
0 answers
217 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 ...
Paul Bergström's 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'...
Jason's user avatar
  • 315
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 ...
Madhav Nikam's 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 ...
too lazy to log in's user avatar
1 vote
1 answer
2k 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,...
coldbreeze16's user avatar
1 vote
0 answers
132 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
2 votes
2 answers
973 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 ...
lalebarde's user avatar
  • 725
1 vote
0 answers
556 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 ...
Chalaka Ellawala's user avatar
5 votes
1 answer
13k 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 ...
Tenaciousd93's user avatar
1 vote
2 answers
3k 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....
Rogerrubens's user avatar
1 vote
0 answers
5k 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 ...
Nina's user avatar
  • 205
5 votes
1 answer
8k 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 ...
Nina's 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....
MarAja's user avatar
  • 321
5 votes
2 answers
9k 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 ...
Daniel's 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 ...
Petr Skocik's user avatar
  • 1,402
1 vote
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: ...
Sherzod's user avatar
  • 273
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 ...
Jim's user avatar
  • 31
7 votes
3 answers
22k 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 ...
Jim's user avatar
  • 71
2 votes
0 answers
287 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 ...
Jim's user avatar
  • 31
0 votes
1 answer
159 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 ...
leeand00's user avatar
  • 21.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 ...
Billy Moon's 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 ...
andrew's user avatar
  • 897
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....
andrew's user avatar
  • 897