Today I saw something on the screen that was text. It was needed as text, but I couldn’t select it. OCR to the rescue! If you have OneNote, there’s an easy way to do OCR without any extra software. There are also free websites that can convert screen captures into text.
But wait, there’s more! You can make the text in the image searchable in OneNote.
Let’s begin with this sample screen capture. Once it is in your copy buffer, paste it into OneNote.
Figure 1. Screen capture of text.
After pasting the image into OneNote, right-click the image and select Copy Text from Picture.
Figure 2. Invoking OneNote’s OCR capability with a right-click. Notice the menu option to make the text searchable.
When you paste the text into Word, you’ll notice that it doesn’t have any formatting. Notice that although the text in the Word document below says “This is not text”, it really is. This is yet another example of what you observe empirically not matching the truth. What appears below really was text that was pasted into Word.
Figure 3. Screen capture converted to raw text pasted into Word.
If you select the OneNote option to Make Text in Image Searchable, you can add some really useful functionality to your document. Notice that OneNote’s search starts finding matches before you enter all of your search string. If you are going to rely on the search feature in OneNote and it doesn’t work quite like you expect, extract the text and see if OneNote accurately converted it to text. Sometimes the document being converted can’t be accurately converted to text, which can explain suboptimal search results.
Figure 4. Searching text embedded within an image in OneNote.
There are limitations to what OneNote OCR can do. Light text against a dark background may result in no OCR, no text. Look at the following example.
Figure 5. Light text and dark background causes difficulties for OCR in OneNote.
There is a workaround to enable OCR to work. Change the color scheme, which can be done easily with Paint. Paste the screen capture into Paint and right-click to bring up action menu that ends with Invert color. It will transform light to dark and dark to light. Copy the inverted image and paste it into OneNote to do the conversion.
Figure 6. Inverting colors to enable OneNote to perform OCR on light text with a dark background.
On the Insert tab, OneNote has a built-in screen clipping tool to make screen captures easy to do from within the tool.
Figure 7. Screen Clipping feature in OneNote.
If you don’t have OneNote, there are several websites that will convert image files into text. I like http://www.free-ocr.com/ for converting images when I don’t have access to OneNote. You should not upload any sensitive or confidential screen captures to any website offering OCR services.