# Best way to convert photo to text

**URL:** <https://boards.straightdope.com/t/best-way-to-convert-photo-to-text/437086>\
**Category:** In My Humble Opinion\
**Created:** [February 10, 2008, 10:38pm UTC](https://boards.straightdope.com/t/best-way-to-convert-photo-to-text/437086 "2008-02-10T22:38:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dqa](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@dqa](https://boards.straightdope.com/u/dqa)\
**Post date:** [February 10, 2008, 10:38pm UTC](https://boards.straightdope.com/t/best-way-to-convert-photo-to-text/437086/1 "2008-02-10T22:38:28Z")

</div>

Reading an [article](http://www.nytimes.com/2008/02/10/business/10metrics.html) today about going paperless, it occurred to me that I periodically photograph pages or documents to keep a record, but never convert those photos to text using an OCR program.

What is the best program for converting say JPEGs to text files? Are multiple-column pages a problem?

---

<div class="post-metadata">

**Author:** ![Sunspace](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/sunspace/32/1250_2.png) [@Sunspace](https://boards.straightdope.com/u/Sunspace)\
**Post date:** [February 10, 2008, 10:41pm UTC](https://boards.straightdope.com/t/best-way-to-convert-photo-to-text/437086/2 "2008-02-10T22:41:57Z")

</div>

Last week I was talking to a blind guy I know, and apparently OCR has improved a LOT in the last few years. It handles tables and columns and everything; you just have to give it a high-enough-quality image. I’d like to find out more, but he was describing the equipment he got through CNIB. I have no idea what regular civilian OCR is like these days.

---

<div class="post-metadata">

**Author:** ![mhendo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mhendo/32/3159_2.png) [@mhendo](https://boards.straightdope.com/u/mhendo)\
**Post date:** [February 10, 2008, 10:52pm UTC](https://boards.straightdope.com/t/best-way-to-convert-photo-to-text/437086/3 "2008-02-10T22:52:59Z")

</div>

The OCR incorporated in Adobe Acrobat Pro does a pretty good job, especially if your scanned or photographed image is of high enough resolution.

If you have MS Office, the Document Imaging software will also OCR TIFF scans.

---

<div class="post-metadata">

**Author:** ![mhendo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mhendo/32/3159_2.png) [@mhendo](https://boards.straightdope.com/u/mhendo)\
**Post date:** [February 10, 2008, 11:15pm UTC](https://boards.straightdope.com/t/best-way-to-convert-photo-to-text/437086/4 "2008-02-10T23:15:15Z")

</div>

Acrobat, by the way, requires a minimum resolution of 144 dpi for OCR to work. If i’m scanning something for OCR, i usually scan at 300 dpi on my garden variety CanoScan 4400F.

Here’s a [page from a pdf](https://jshare.johnshopkins.edu/mhender4/public_html/gen_images/ocr_test.pdf) that i scanned for my class the other day, and here’s what the first paragraph looks like after selecting, copying, and pasting. I’ve done no cleanup, and made no corrections:

> [@](#):
>
> Although the early New England Puritans could boast some of the greatest ministers in  
> the Anglo-American world, John Cotton (1584-1652) was arguably their greatest. Erudite,  
> I eloquent, and immensely influential, he was a master of the precisely logical Puritan “plain  
> style” with which he infused his forty volumes of sermons and treatises on virtually every  
> controverted Puritan subject, from theology and social ethics to political theory and ecclesiastical  
> government. But if there was one intellectually defining moment in Cotton’s career,  
> it was when he preached a series of sermons on the subject of grace and salvation three  
> years after arriving in the Massachusetts Bay Colony in 1633.

The line breaks are “hard” breaks, so if you paste it into Notepad or Word or something, the line breaks will come with the text. There may be a way to avoid this line break issue and get continuous text, but i’m not sure how.

Anyway, as you can see, the OCR did a great job of turning the scanned page into text and punctuation. Just one error, at the beginning of the second sentence, where the OCR added a superfluous “l”.

---

<div class="post-metadata">

**Author:** ![Sunspace](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/sunspace/32/1250_2.png) [@Sunspace](https://boards.straightdope.com/u/Sunspace)\
**Post date:** [February 10, 2008, 11:52pm UTC](https://boards.straightdope.com/t/best-way-to-convert-photo-to-text/437086/5 "2008-02-10T23:52:34Z")

</div>

That’s impressive.

Embarassingly, I’ve been using Acrobat Pro for years, and I had no idea it could OCR stuff. It’s part of the output machinery for my work.

---

<div class="post-metadata">

**Author:** ![dqa](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@dqa](https://boards.straightdope.com/u/dqa)\
**Post date:** [February 11, 2008, 1:26am UTC](https://boards.straightdope.com/t/best-way-to-convert-photo-to-text/437086/6 "2008-02-11T01:26:00Z")

</div>

[QUOTE=mhendo]  
The OCR incorporated in Adobe Acrobat Pro does a pretty good job, especially if your scanned or photographed image is of high enough resolution.  
[/quote]  
I’ll have to play with that at work tomorrow.

> [@mhendo](#):
>
> If you have MS Office, the Document Imaging software will also OCR TIFF scans.

Hmmm… what about JPEGs? My camera doesn’t have the option to save in other formats.

---

<div class="post-metadata">

**Author:** ![mhendo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mhendo/32/3159_2.png) [@mhendo](https://boards.straightdope.com/u/mhendo)\
**Post date:** [February 11, 2008, 1:34am UTC](https://boards.straightdope.com/t/best-way-to-convert-photo-to-text/437086/7 "2008-02-11T01:34:50Z")

</div>

[QUOTE=dqa]  
what about JPEGs? My camera doesn’t have the option to save in other formats.  
[/QUOTE]  
No, it seems from the instructions that MS Document Imaging works with TIFFs only.

---

<div class="post-metadata">

**Author:** ![Musicat](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/musicat/32/20189_2.png) [@Musicat](https://boards.straightdope.com/u/Musicat)\
**Post date:** [February 11, 2008, 3:09am UTC](https://boards.straightdope.com/t/best-way-to-convert-photo-to-text/437086/8 "2008-02-11T03:09:53Z")

</div>

[QUOTE=mhendo]  
No, it seems from the instructions that MS Document Imaging works with TIFFs only.  
[/QUOTE]  
Of course, JPG can be converted to TIF, but if the compression was high in the JPG, you will get a lot of unwanted artifacts that will decrease the OCR accuracy.

---

<div class="post-metadata">

**Author:** ![beowulff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/beowulff/32/542_2.png) [@beowulff](https://boards.straightdope.com/u/beowulff)\
**Post date:** [February 11, 2008, 3:42am UTC](https://boards.straightdope.com/t/best-way-to-convert-photo-to-text/437086/9 "2008-02-11T03:42:19Z")

</div>

If I feed in a photo of a sunset, will it describe it for me?

---

<div class="post-metadata">

**Author:** ![mhendo](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mhendo/32/3159_2.png) [@mhendo](https://boards.straightdope.com/u/mhendo)\
**Post date:** [February 11, 2008, 4:41am UTC](https://boards.straightdope.com/t/best-way-to-convert-photo-to-text/437086/10 "2008-02-11T04:41:27Z")

</div>

[QUOTE=beowulff]  
If I feed in a photo of a sunset, will it describe it for me?  
[/QUOTE]

Yes, but it will take 1,000 words.

---

<div class="post-metadata">

**Author:** ![dqa](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@dqa](https://boards.straightdope.com/u/dqa)\
**Post date:** [February 13, 2008, 4:26am UTC](https://boards.straightdope.com/t/best-way-to-convert-photo-to-text/437086/11 "2008-02-13T04:26:49Z")

</div>

After a bit of digging, I found [this site](http://www.raymond.cc/blog/archives/2007/12/04/scan-and-convert-images-to-text-with-free-ocr-optical-character-recognition/) which reviews several programs. The one that seemed most appropriate for my use (in particular, converting JPGs) was [TopOCR](http://www.topocr.com/). After playing around briefly with the program, I’m not as enthusiastic as the author of the review, but it seems adequate.

I tested it out on three photos;  
[This one](http://www.engrish.com/detail.php?imagename=coffee-bland.jpg&category=Drinks&date=2008-02-11) converted perfectly.

[This one](http://www.engrish.com/detail.php?imagename=araha-park.jpg&category=Instructions&date=2007-11-15) is more similar to most of my photos, and was not converted very well.

And a photo on my hard drive of a highway historical marker plaque converted quite well, especially after I changed it to grayscale, jacked up the contrast, and inverted the color so that it was black text on white background. It was nice to be able to fiddle with the image within the program, rather than having to save the doctored image in Photoshop every time.

Also, I tried Adobe Acrobat Pro 6.0 on the first two photos. On one of them, the resolution was outside the acceptable range. On the other, for whatever reason the photo was converted when it was imported into a picture that resembled the original as viewed through glass blocks - naturally OCR was useless on that.
