How to Extract Text From a Photo of a Screen (and Get a Clean Copy You Can Use)
To extract text from a photo of a screen, photograph it straight on, crop to the screen edges, and run it through an image to text converter.
The TV in the hotel room shows an error code and a support number, and there is no way to copy it. A colleague's monitor shows a paragraph you need, and you are standing a metre away with only your phone. The departure board lists a platform change, and the train leaves in six minutes.
A screenshot would be better: pixel-perfect, with no glare, no angle, and no blur. But a screenshot is only possible on your own device. When the screen belongs to someone else — a television, a kiosk, a monitor across the room, a departure board — a photograph is the only option.
Why a Photo of a Screen Is Harder Than a Screenshot
A screenshot is a file the computer wrote: clean edges, exact colours, perfect alignment. A photograph is a picture of light coming off glass, taken by a lens, through air, in a real room.
The first problem is moiré. A screen is a grid of tiny coloured dots, and your camera sensor is a grid of tiny light sensors. When the two grids do not line up, they interfere and draw wavy rainbow bands across the photo that are not on the screen at all. The bands sit exactly where the letters are, and the OCR engine reads them as part of the text.
The second problem is glare. A screen is a sheet of glass, and glass reflects the room: the ceiling light above you, the window behind you, your own silhouette. A bright reflection can wash out a whole line of text, and a soft one can lower the contrast just enough that thin letters break apart.
The third problem is the way screens refresh. Many LED and LCD screens flicker faster than your eye can see, and a phone camera with a fast shutter can catch the screen mid-refresh. The result is a dark horizontal band across part of the photo.
The fourth problem is angle. Photograph a screen from the side and the text on the far edge is smaller than the text on the near edge. Letters lean, lines converge, and word spacing changes across the image. OCR engines expect text on straight, level lines, so a strong tilt can scramble the reading order.
Finally, screens are often too bright or too dim for the camera. A bright screen in a dark room makes the camera expose for the glow, and the letters bloom into white blobs. A dim screen in a bright room makes the letters sink into grey.
When to Photograph a Screen — and When to Screenshot Instead
The rule is simple: if you can take a screenshot, take a screenshot. A screenshot is always the better input, and it costs nothing. Photographing a screen is the fallback for screens you cannot control.
| Situation | Best option | Why |
|---|---|---|
| Your own computer or phone | Screenshot | Pixel-perfect text, no glare, no moiré |
| Someone else's monitor | Photo of the screen | You cannot run a screenshot on their device |
| A TV in a hotel or waiting room | Photo of the screen | You have no access to the source |
| A kiosk, ATM, or ticket machine | Photo of the screen | No keyboard and no screenshot function |
| A departure board or digital sign | Photo of the screen | A public display you cannot control |
| A slide projected in a lecture | Photo of the screen | See our guide to extracting text from a presentation slide photo |
| A video paused on a screen | Screenshot if it is yours, photo if it is not | A paused frame is still a screen photo when the screen is not yours |
One mistake is worth avoiding: photographing your own screen out of habit. If the text is on your laptop, press Windows, Shift, and S, or Command, Shift, and 4 — our guide to screenshot to text walks through both.
A photograph of a screen is not the same job as a photograph of a printed page: a page is lit by the room, while a screen lights itself. For the framing basics, see our guide to extracting text from a book page.
How to Photograph a Screen for OCR in 7 Steps
Good screen photos follow the same seven steps, whether the screen is a television, a monitor, or a departure board. The routine takes about a minute.
- Get close enough to fill the frame. Walk up until the text you need fills most of the viewfinder.
- Stand straight on, lens level with the middle of the screen. Put your phone at the height of the centre of the text, not above it looking down or below it looking up. A straight-on photo keeps lines level and letters the same size across the image. The same geometry applies to converting a whiteboard photo to text.
- Kill the light behind you. Turn off the room light directly behind you, close the blind if a window is behind you, and move so your shadow falls on the screen instead of your reflection.
- Set the screen brightness to suit the room. In a dark room, turn the screen brightness down a notch so the letters stop blooming into white blobs. In a bright room, turn it up so the letters stand out from the reflected room light.
- Tap the text to focus, then hold still. Tap on the text itself so the camera focuses on the letters and exposes for them, not for the wall around the screen.
- Take two or three shots. Photograph the screen twice: once straight on, and once from a slightly different distance. Moiré changes completely with a small move, so if the first shot has wavy bands, the second often does not.
- Crop to the screen edges before you convert. Cut away the wall, the frame, the bezel, and anything else that is not text. A tight crop makes the letters bigger relative to the image, which helps the engine, and it removes the bezel and the wall, which the engine can mistake for text. A tight crop is the highest-value edit — see improving OCR accuracy.
If the text is in another language, set it before you convert — see multi-language OCR.
How to Extract Text From a Photo of a Screen
Once the photo is good, the conversion itself is the easy part. Upload the cropped photo to the converter on the image to text converter home page. Guests can convert without an account; a free account gives you 10 pages a month and keeps a history of your conversions. Pick the language the screen is printed in — English by default — and choose the export format. For a screen photo you usually want TXT, because you are going to paste the text into a search box, a message, or a document.
When the result comes back, check the confidence report before you trust it. A good screen photo usually scores above 90 percent mean confidence, and the flagged words are few. Check them against the photo, and check every number digit by digit — error codes, phone numbers, prices, times, and platform numbers are the places where a single wrong character changes the meaning.
If you photographed several sections of one screen — a departure board in two shots, or a long error message in three — convert them as a batch and keep them in order. SnapText's Starter plan takes 50 images per batch, so a handful of screen photos is one job. Name the files in order before you upload, so the text files come back in the right sequence. See converting multiple images to text at once for batch ordering.
Save the result in the format you will actually use: TXT for pasting into a search or a message, and searchable PDF when you want to keep the photo and the text together.
The most common surprise is a word the engine reads confidently and wrongly. Screens use condensed fonts, and a capital I, a lowercase l, and the digit 1 can be identical at the size the camera captured them. The confidence report cannot catch this, because the engine is sure — wrongly — about what it saw. The only defence is to read the result against the photo, slowly, once.
Fixing the Problems That Ruin Screen Photos
Most failed screen photos fail for one of three reasons, and each has a fix that takes seconds. Diagnose the photo before you re-convert it: look at the image, name the problem, and apply the matching fix.
| Problem | What it looks like | Fix |
|---|---|---|
| Glare | A bright patch or your reflection over the text | Move the light behind you, shade the screen, photograph again |
| Moiré | Wavy rainbow bands across the letters | Step closer or further back, change the angle slightly, zoom in |
| Angle and perspective | Lines leaning, far-side text smaller | Stand straight on, lens level with the screen centre, crop to the edges |
| Refresh banding | A dark horizontal bar across the photo | Slow the shutter: use night mode, or photograph again and hope the band moves |
| Blooming | White blobs where letters should be | Turn the screen brightness down one notch |
| Blurry text | Letters readable on the phone, unreadable zoomed in | Get closer, brace the phone, tap to focus on the text |
Glare is the most common failure, and the most avoidable. A bright patch on a screen is usually a ceiling light reflected in the glass, and it moves when you move. Step half a metre to the side and the patch slides off the text.
Moiré is the strangest failure, because the bands are not on the screen and they move when you move the camera. If your first photo has wavy bands, take a step closer or a step back before you shoot again: changing the distance changes the way the two grids interfere, and a small move is often enough to make the bands disappear.
Angle is the easiest problem to prevent and the hardest to fix afterwards. The fix is at the taking stage: stand straight on.
Refresh banding looks like a hardware fault, but it is a timing accident: the camera's shutter caught the screen between refreshes. The fix is to slow the shutter down so the exposure covers a full refresh cycle. On a phone, night mode does this automatically.
What to Do With the Text Once You Have It
A screen photo is usually a means to an end: you wanted the words, not the picture. The most common use is searching. Paste an error code from a television or a monitor into a search engine, and you get the manufacturer's fix instead of a description you typed from memory. Paste a support number into your phone, and you call the right line the first time.
A second use is record-keeping. A departure board's platform change, a kiosk's confirmation number, a ticket machine's reference code — these are details you need later, and a photo is a poor archive because you cannot search inside it.
A third use is accessibility. Small text on a distant screen is hard to read for anyone, and impossible for some. Extracted text can be enlarged, read aloud by a screen reader, or translated.
A fourth use is asking for help. When something on a screen goes wrong, the fastest way to get help is to send someone the exact words. Paste the extracted text into your message to support, or into a chat with a colleague, instead of describing the screen from memory. The person helping you can search the error code themselves, copy the reference number into their own system, and reply with a fix — all without asking you to retype anything or photograph the screen again.
What OCR Cannot Do With a Screen Photo
OCR gives you text; it does not give you understanding, and it does not make a bad photograph good.
- It cannot read what the camera could not see. A line hidden under a glare hotspot, a corner cut off by the frame, or a word blurred by a shaky hand will defeat any OCR engine.
- It cannot tell you what a diagram means. The engine copies the labels on a chart or a map; it does not know that the arrow means "causes" or that the red bar is the warning. If you do not understand the diagram when you look at the screen, the extracted text will not explain it to you later.
- It cannot fix a misread number by itself. The engine has no way of knowing that a price should have been 25.00 rather than 2500, or that a year should have been 2019 rather than 2018.
- It cannot recover text that scrolled off the screen. A departure board that cycles through pages, a kiosk that shows one screen at a time, a television that flashes a message for three seconds — each shows only part of the story. Photograph every screen of the sequence and convert the batch together — see the image to text converter home page.
- It does not turn a photograph into the original document. Extracted text is a working copy of what was on the screen. A line of text without its source is hard to trust and harder to check.
A Two-Minute Checklist
Run through this list for every screen photo.
- The photo shows the whole text you need, straight on, filling the frame, with no glare hotspot.
- The screen brightness suits the room: letters have clean edges, no blooming, no grey wash.
- The smallest letters are readable when you zoom into the photo on the phone.
- The photo is cropped to the screen edges, with the wall, the bezel, and the frame cut away.
- The language setting matches the language the screen is printed in.
- The flagged low-confidence words were checked against the photo and fixed.
- Every number — error code, phone number, price, time, platform — was read digit by digit.
- Multiple photos of one screen are in order, and the text pastes together in the right sequence.
- The photo is filed with the notes, under the same date and place, so you can check the text later.
References
- Tesseract OCR, official documentation: https://tesseract-ocr.github.io/
- W3C, PNG specification and guidance: https://www.w3.org/TR/png/
- National Institute of Standards and Technology (NIST), document recognition research: https://www.nist.gov/