Extracting text from images
Optical Character Recognition (OCR) can be used to convert shapes of text into text. It can be useful when you want to convert text from a physical source into notes, recover text from a screenshot or create a draft of a transcript from a handout. It is important to note that it is a draft. To use this tool, open it up and follow the simple steps.
Our test image was a synthetic JPG image of size 900 x 1200 pixels. The image contained a clear heading for our study notes and three short practice lines of text. We selected English and clicked the extract text button. The lines of text were extracted and we received a message informing us that 14 words had been extracted.
This guide has been created by the publisher and shows a simple success. However, this does not mean that all handwriting samples, textbook photos and complex tables will be recognised with the same accuracy. We have chosen a clear sample with printed text to demonstrate how to extract text from an image.
Preparation for OCR
Open up your source image. Ensure that the text you want to extract is readable. If you cannot read a character yourself then the OCR is unlikely to give you an accurate result. Try to use a better source.
If you are extracting text from a page, ensure that the page is upright and as flat as possible. Avoid heavy shadows over text. Try to capture the full amount of text you want. If there are lots of irrelevant background details, consider creating a new copy of the image with just the text. Keep the original image in case you need to go back to it if you have cropped the image too tightly and lost a heading, footnote or end of line.
Just because your image is large doesn’t mean the text is clear. If your image is very large and blurry, it will be hard to read. If your image is small, it may be clear if the screenshot was taken at an appropriate scale.
Screenshot showing the OCR screen. Contains an area to select image, language selection (English) and extract text button.
Select image and language
Click on the image selection area. Choose your JPG or other image. The area will update to show that your image has been selected (sample-1.jpg). This ensures that you are using the correct source. The extract text button will now be available.
Ensure that the language is set to English. If you have a document in a different language, select the correct language for your text. This is to ensure that the OCR recognises the text correctly. OCR is different to translation. They solve different issues.
Screenshot showing selected image (sample-1.jpg) and language (English).
Click the extract text button. The first time we ran this we received the text “Loading OCR engine (first run only)…”. The button will change to Cancel OCR whilst processing. We didn’t click the button again or select another image. Whilst processing we received a new output box and a message saying that we had completed.
The OCR tool uses an engine called Tesseract and runs locally. We saw that the text was processing and had completed. We did not test the network activity or use it offline. This is important to note when considering privacy issues. Our test was using harmless synthetic text.



