Open Source OCR That Makes Searchable PDFs 133
An anonymous reader writes "In my job all of our multifunction copiers scan to PDF but many of our users want and expect those PDFs to be text searchable. I looked around for software that would create text searchable pdfs but most are very expensive and I couldn't find any that were open source (free). I did find some open source packages like CuneiForm and Exactimage that could in theory do the job, but they were hard to install and difficult to set up and use over a network. Then I stumbled upon WatchOCR. This is a Live CD distro that can easily create a server on your network that provides an OCR service using watched folders. Now all my scanners scan to a watched folder, WatchOCR picks up those files and OCRs them, and then spits them out into another folder. It uses CuneiForm and ExactImage but it is all configured and ready to deploy. It can even be remotely managed via the Web interface. Hope this proves helpful to someone else who has this same situation."
Thanks! (Score:5, Insightful)
Re: (Score:3, Informative)
Same here. Thank you too!
(I know this post is very redundant and useless. But thanks are always welcome, aren't they ?)
Re: (Score:1)
Heh.. 6 months of looking for something and about to settle on a very expensive proprietary deployment.
I'll have to see if it works as easy as he says, but it's right there for my needs too.
Re:Thanks! (Score:4, Insightful)
Re: (Score:1)
Re: (Score:1)
Re:Thanks! (Score:4, Interesting)
I only wish I could find a source download on their site. Even a "what we're doing" guide. Downloading the ISO and reverse-engineering what they're doing with cuneiform and exactimage doesn't seem nearly as productive, especially when I'd rather implement this on an existing server than boot a special piece of hardware with it.
Re: (Score:3, Insightful)
Virtual machine?
Re: (Score:2)
Virtual machine?
Only a solution to "How do I get this running" and not "What is this thing doing?" The lack of source is a bit offputting to me. I will look at it, but I may wait to roll it out.
Re: (Score:2)
"Only a solution to "How do I get this running" and not "What is this thing doing?" The lack of source is a bit offputting to me. I will look at it, but I may wait to roll it out.
I would tend to agree, only because I'm extremely paranoid when it comes to security; I'd do some site analysis and make sure unexpected connections to foreign hosts aren't going out over the wire. If they were I'd want to do some code analysis to see what exactly is going on. Or if I wanted to add some customization: extremely important. But; in a pinch it sounds like a really worthwhile solution.
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
If I have a working server that already hosts PDF content, why would I want to virtualize this one when I could integrate its features into the existing one?
That said, the one server per service concept is a mentality I do not subscribe to.
Re: (Score:2)
This is where Microsoft came apart. Due to their pricing model, there was always pressure to stick as much on one box as possible. This in turn led to interesting side effects.
Linux always made it easier to have many boxes, which tended to simplify problems. VMs meant you no longer had to worry about physical machines and you can still limit resources - useful if the OCR turns out to be a CPU pig.
Re: (Score:2)
It's all GPL so there has to be source somewhere. Their site says
so it's probably on the disk.
Re: (Score:2)
Their reply is inept and as bad as I'd expected.
They want me to wade through a fully functional CD to find their various customized configuration files and figure out which bits they changed.
Load Knoppix disc, load OCR disc, do full diff on mounted contents? Not my idea of fun.
They can post an actual "here's what we did" or I'll just ignore it.
Re: (Score:1)
Let me fix that for you: (Score:2)
>> Oh yeah, and nobody knows what exactly it does.
Oh yeah, and nobody knows what exactly it does with access to all your sensitive documents.
Wait a sec (Score:5, Funny)
There's something wrong with this Slashvertisement--it's for a free product!
Re: (Score:1)
I guess that's where
step 3: ????
Comes into play.
Re:Wait a sec (Score:4, Insightful)
Seriously, I'm conflicted. I'm not any sort of web search guru, but it looks like that site just got put up. Is submitter an early adopter (v0.2) or a social engineer?
Re: (Score:2)
Version 0.2 has been out for at least a month by the looks of their forum, and version numbers are a very imprecise way of telling how useful the software is for your needs, or even how stable it is. What's wrong with being an "early adopter" if it's the only working and free solution to your problem?
Thanks for the info... (Score:3)
While we are on the topic, anyone seen a good solution to scan, OCR, and reconvert existing crappy pdfs to improve them?
Re: (Score:2, Informative)
While we are on the topic, anyone seen a good solution to scan, OCR, and reconvert existing crappy pdfs to improve them?
I've tried quite a few free and proprietary OCR's and the best available right now, imho, is ABBYY Finereader [abbyy.com]. Other than fonts, it also easily recognizes tables, diagrams and illustrations. But most of all, it can read and render 189 languages (including Chinese and Cyrillic) accurately. A free trial version is available.
Re: (Score:1)
Re: (Score:2)
While we are on the topic, anyone seen a good solution to scan, OCR, and reconvert existing crappy pdfs to improve them?
I think they are called interns. Photoshoop's Content-Aware Fill isn't very good with charts or handwriting.
added. (Score:1)
Re:added. (Score:4, Funny)
That isn't a good sign, my friend.
Re: (Score:2)
Please close the door and wash your hands afterwards when partaking in these activities. Thanks.
Run on a VM (Score:3, Insightful)
Re: (Score:1)
Haha, I thought exactly the same. It would be really great if someone could create a VirtualBox, vmware or Qemu "virtual appliance" for this!
Re: (Score:3, Interesting)
Re: (Score:1)
It would be cool if you really do it, do you expect to publish it somewhere?
cheers.
Cool program (Score:2)
Re: (Score:1)
ocr (Score:1)
Re: (Score:2)
Who gives a shit? My cheapass "free" workflow for OCR-ing PDF documents on Windows was basically what's described here [imagemagick.org]. With this, all I need is to run a virtual server on my computer! That's significantly better.
Re: (Score:2)
MODI just leaves you with the text pulled out of context. ExactImage's hocr2pdf can merge the OCR'd text back into the original scanned pages to produce a PDF with searchable text and all the original formatting and images.
Re:ocr (Score:4, Funny)
Now it just needs to incorporate a Recaptcha Lite to improve accuracy.
Maybe something on the web interface when it doesn't recognize a word you can correct it.
[Given the success of the Cow Clicker on Facebook, maybe turn it into a facebook game. Tell people they're only allowed to correct words every 6 hours. If they want to correct more words, they'll have to pay for it. Add friends and correct more words to level up!]
Anyone got error rates? (Score:4, Insightful)
I was looking for something like this last year - it looks like this just got released last month, so I don't feel too bad about not finding it.
It looks really interesting, but how accurate is it? I've got some old books that are falling apart I'd like to scan in and textify, but I'd like to know how much time I'm going to have to budget ahead of time fixing problems and proofing.
Re: (Score:2)
Re: (Score:2, Funny)
> tesseract-based
you need 4d software to scan 2d text? trippy....
commercial? (Score:2)
Re: (Score:2, Informative)
After doing a similar search recently, your two major choices are ABBY FineReader (they have Enterprise/Server level editions) or OmniReader (again at the Server/Enterprise level). They're priced pretty closely and have pretty well matched features, plus high accuracy. We're in the process of moving from a solution originally based on Adobe Acrobat's built-in OCR, which is okay but not great. Initial testing with ABBY showed a demonstrably lower error rate on documents from scanned in legal files.
Re:commercial? (Score:4, Informative)
Re: (Score:1, Offtopic)
You work for the company and you couldn't be bothered making it a proper link? Don't you know that making people have to copy and paste a URL will actually halve the number of referrals? No joke!
Re: (Score:3, Funny)
Re: (Score:2)
Re: (Score:2)
Why?
You like giving away money?
I suggest you install this on your own machine, find a quote for a "commercial 24x7" support solution, then tell your boss your company does the same thing for 1/2 the price.
Re: (Score:2)
Re: (Score:1)
Wow. (Score:2)
Ask your vendors (Score:1)
Your copier providers probably already include this in the package you have. It just hasn't been enabled.
Our direct-to-pdf document scanners include copies of Acrobat Pro (both Windows and OSX), automatically do OCR, and were less than $400 each.
Re: (Score:2)
Quick search result [newegg.com] although I think we have slightly older black and white versions.
Middle ground? (Score:2)
Funny, I was just looking for something to do this the other day.
But isn't there some middle grown betweeen (a) making users do complicated setup work, vs. (b) making an entire OS out of it?
How about just making a tarball or Ubuntu/Debian/RPM package that installs and sensibly configures those two tools?
VirtualBox as the middle ground (Score:1)
Re: (Score:2)
Error rate. (Score:2)
I did searches online(a dozen hours) and they all funneled back to "FOSS less good, proprietry for best results)
I am afraid to look at this one, because I did make final decision with pressure from the General Manager.
I dunno what google uses actually, but their in-
Re: (Score:2)
Re: (Score:2)
Stupid (Score:2, Insightful)
Most, if not ALL of the documents being scanned into PDF format, are generated on computers already, so why go through the whole OCR process, and not get the actual document from the original source in a PDF version that is already text searchable?
THIS is exactly the problem with document management and processing today! Doing things the hard way because we can't be bothered changing processes that will save tons of money, be more effective, and accurate.
I know people who type a document in WORD and then pr
Re: (Score:2)
Just about anyone can read a PDF. If you send a MS Word doc, you have to wonder what version of Word the other person has. And these days, Macs are popular enough that they might not have Word at all! PDF works, and works for everyone. It would be far simpler to print to PDF, but not everyone has a print driver that can do that. ODF is supposed to fix that, but it probably won't.
Re: (Score:2)
-CF
Re: (Score:1)
Print to PDF, ever heard of that?
OpenOffice Export to PDF, ever heard of that?
Acrobat Professional, ever heard of that?
How about copy/paste into email?
There are plenty of alternatives to take your WORD (or whatever) doc and get it into a searchable PDF without scanning the damn thing into a TIFF and then OCRing it back to text later.
Re: (Score:2)
The "print to pdf" function often creates very poor pdf files, a proper pdf export function in the program is a lot better...
Get a relatively complex document and compare the output from the native pdf export of openoffice and printing to a pdf file.
Re: (Score:2)
What is true for OpenOffice may not, and probably is not true for all applications. CorelDraw, yes, I'm looking at you. That purple is supposed to be blue.
Re: (Score:2)
Re:Stupid ... maybe (Score:1, Insightful)
Not everyone wanting to do this does in fact have access to the electronic source. I know I would like to try it for some my old crumbling books, as someone else mentioned above, no longer in print (or otherwise only available in DRM-encumbered ebook formats that I cannot read on Linux or Windows Mobile).
RO
Re: (Score:2)
You obviously live in a utopia somewhere. Most of the documents I've seen scanned in to document management may have had their origins on a computer, but they've had signatures, comments, and other stuff penned in by hand, and you can't always get the originals sent to you.
The poster is addressing a real need, as evidenced by the number of comments proclaiming the usefulness of the post.
Re: (Score:1)
All of the "exceptions" you listed (signatures, comments penned by hand) are NOT OCRed, making it text searchable as needed by the ORIGINAL concept.
Changing processes would solve the need to OCR documents that already exist as searchable text elsewhere. EVEN if you have need to document signatures and other hand written notes.
It is a real need (searchable text), I never said that it wasn't. I'm just quibbling over the process to attain the goal.
Re: (Score:2)
Re: (Score:2)
That is 100% correct, in theory.
In the real world, however, process changes in any large organization tend to be slow, expensive, and messy.
It's often a NECESSITY to look for incremental optimizations and workarounds.
I saw a situation very similar to the one you are describing. A large organization with 1000+ points of sale, having to snailmail paper documents (i.e. contracts) to the headquarters - everyday.
Such contracts were produced/printed with a proprietary software solution, in which Cobol (!) code w
Unsuccessful download? (Score:1)
I have tried twice to download it, and it 'finishes' at about 150mb both times, while the file size on their web page shows over 600mb. As a double-check, (suspecting a file size reporting error on their page), it fails MD5 sum as well. Has anyone successfully downloaded it?
Re: (Score:1)
Re: (Score:1)
Tesseract OCR (Score:3, Informative)
I found tesseract [google.com] to work very well to do OCR tasks. Doesn't generate PDF though.
Re: (Score:1)
Anyone have a mirror or torrent? (Score:2)
Microsoft Files (Score:1)
Can you go one step further with this and get it read the text (only) out of Microsoft formatted files? Maybe it could even read words out of Word files, Powerpoint, etc.
PDF/OCR software (Score:1)
Qoppa Software [ http://www.qoppa.com/index.html [qoppa.com] ]
exactimage + cuneiform (Score:2)
I wrote a bash script a few months back which, in a little over 130 lines (it has a few command line options), can convert any old PDF to a text searcheable PDF. I really wonder whether a distro is a bit overkill for this? But it is such an important tool to have that I commend the authors for making it available... I just wish they'd put up the actual script that they used so I could compare it to my own!
Re: (Score:3, Insightful)
I'd love to see your script, if you want to make it available.
Re: (Score:2)
Where shall I send it?
Re: (Score:2)
You could attach it to an email and send to kilf@graffiti.net - cheers!
Re: (Score:1)
Re: (Score:2)
That's where I first read about exactimage and how it could be used for OCR. But his script has strange dependencies and produces large PDFs as output. Mine produces smaller PDFs and has dependencies suitable for my personal setup. YMMV!
Re: (Score:1)
Re: (Score:2)
can you put it on pastebin maybe?
Re: (Score:2)
Feel free to make suggestions: pdfocr [pastebin.com].
Re: (Score:2)
Note: don't use cuneiform 0.9 or 1.0.
Why on server? (Score:2)
Re: (Score:1)
Because you want an internal infrastructure that allows you to replace the scanner easily. Those thing brake down, or more importantly gets replaced with faster new scanners.
One of my clients has a scanner farm that scans documents, then the images are sent to a OCR server farm. It's way easier to replace any part if it that way (we're actually trying out a new OCR suite right now so I'll test this one).
Even if you just have one scanner and does OCR on the same machine, braking it up this way makes it e
Re: (Score:1, Insightful)
If you are running a high speed scanner that scans 100ppm/200ipm, the computer would not be able to OCR the pages fast enough to keep up with the scanner throughput. Since you are paying good money for that scanner (and the operator running it), you want to get every possible image through that scanner per day. The OCR can be done after the fact on a server that only needs to be periodically monitored by IT.
Re: (Score:2)
Because not all scanners are directly plugged into user computers with a software interface.
I have a large office MFP that scans into network shares and with this little server running I can have it watch that share and fix up my PDF's real nice for the users, rather than installing something on everyones computers.
Ocropus with gscan2pdf (Score:1)
It just does *everything* I need. It takes scans from scanner, it processes it with OCR, it allows me to delete or insert pages.....it's just very simple and does the job well.
For OCR, gscan2pdf works with 4 OCR programs currently:
Ocropus is developed with funding/support from Google. It uses tesseract as a backend to do a lot of the work. In simple terms, Ocropus is awesome. I
Re: (Score:1)
Re: (Score:3, Informative)
Afaict the original structure was already gone when the pdf was made, you can only try to reverese engineer it from the drawing objects.
You might want to try converting to postscript using ghostscript and then converting to svg using pstoedit. You still won't have the original structure but at least you should have the table shape as a vector drawing rather than a bitmap.