Extracting text from a flattened image

A
Posted By
Anomenator
May 18, 2007
Views
3436
Replies
9
Status
Closed
Is it possible to extract text from a flattened jpg image. I have many and would like to recover the caption that was saved as part of the jpg. I’ve included an example image here:
Example < http://picasaweb.google.com/anonemator97/Album1/photo#506569 6772457743986>

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

MV
Mathias_Vejerslev
May 18, 2007
Yes, it is possible with OCR (Optical Character Recognition) software, though not with Photoshop.
DB
David_Biddlecombe
May 18, 2007
Depends what you mean by ‘recover’ the caption. In the example you gave of course it is only a few words and so would probably be easier to re-type it than use OCR.

However, I guess you want to re-create the appearance as well as the text itself, ie. the font information. It is not possible to get the font information from a jpeg. You can do one of two things:

You could trace the text (Illustrator would be the better tool) to create a scalable vector file. This would be quite troublesome to do well and the text would still not be editable, just scalable.

You could find out what font was used to create the text, install the font if you don’t have it, and re-create it from scratch. You can try this link to try to find out which font was used:

<http://www.identifont.com/>
A
Anomenator
May 18, 2007
I didn’t mean to imply I need to recover the font style and most captions are longer. I was thinking of OCR, but is there a way to automate the process (script, maybe?) to select the text area (which is always a plain white box at the bottom of the image with black text) and process the text? I would like to then take the text and place it into the EXIF caption field for each image and save as a psd. There’s about 10,000 images, so I’d like to automate as much as possible.
P
Phosphor
May 18, 2007
What version of Photoshop are you using?

You could process them using a variable data script, but this would still require you to look at them individually, and to transcribe the captions into an Excel file (I think).

You may be better off researching and/or asking about this in the scripting forum, if your version of Photoshop supports it:
<http://www.adobeforums.com/cgi-bin/webx?13@@.ef7f2cb>

It might be worth it to invest your time up front, learning how to do this, rather than spending it on the back end, doing them all individually.
A
Anomenator
May 18, 2007
I’ll upgrade if a newer version would save significant time.
P
Phosphor
May 18, 2007
“ “ “ “ “
P
Phosphor
May 18, 2007
Answer the question I asked you.

(That’s kind of the whole point here, n’est pas?)
A
Anomenator
May 21, 2007
Currently, version 7.
P
Phosphor
May 21, 2007
Version 7 has no support for variable data integration. Sooo, that suggests that you’ll need to update your version of Photoshop if you want to go that route. Version 7 does have support for scripting, but I’m not sure if that’s a robust enough toolset for what you need to do.

But first, I again suggest you head over to the scripting forum (linked above) and ask there. No matter how you look at it, you have an unusual and difficult task ahead of you. I wish I could offer a more complete solution, but it’s beyond anything I’ve ever needed to do.

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

Related Discussion Topics

Nice and short text about related topics in discussion sections