Best Photo Settings for Text Recognition

Best Photo Settings for Text Recognition - Best Photo Settings for OCR

When a translation comes out wrong, most people blame the software. In practice, the picture is usually the problem. A text reader can only work with the pixels you give it, and a few small choices at the moment you take the photo decide most of the quality of the result. The good news is that you do not need a professional camera or any editing skill. You need to know which settings and habits matter and which do not.

This guide covers the practical settings for photographing text, on any phone, so that your pictures translate cleanly. It is also a handy companion to our translator.

Woman holding phone taking a photo of sunset
Photo by Mantas Hesthaven on Unsplash

What a text reader needs from a picture

Whatever the engine, there are four basics.

  1. Enough pixels per letter. As a rule of thumb, each letter should be at least about 20 to 30 pixels tall. Below that, details such as accents, dots and fine strokes disappear.
  2. Sharp edges. Letters must have clear boundaries, without blur.
  3. Good contrast. The text needs to stand out from the background.
  4. A clean layout. Lines should be straight, level and free of distracting objects.

Every setting below serves one of these four needs.

Settings that matter most

Setting or habitWhat to doWhy it matters
FocusTap on the text and wait for the camera to sharpenBlur is the top cause of errors
FlashTurn it off for glossy surfacesFlash creates bright glare patches
ZoomMove closer instead of using digital zoomDigital zoom enlarges blur
ResolutionUse the highest standard photo settingMore pixels per letter
HDRTurn on for scenes with bright and dark areasBalances exposure across the page
Grid linesEnable them in the camera settingsHelps you keep lines level
ExposureSlide it down slightly on bright pagesPrevents washed out letters
Night modeUse it in low light, and hold stillReduces noise in dim scenes
Live or motion photosTurn them off for documentsAvoids frame blur and large files

Focus: the most important setting

Modern phones focus automatically, but they often focus on the wrong thing, such as the background or a bright object. Always tap on the text itself. Wait a moment until the image sharpens, and then take the photo. If the phone allows it, lock the focus. If your hands shake, rest your elbows on a table, or lean the phone against a stack of books. A steady phone beats a good camera in the hands of a shaky photographer.

Light: the cheapest improvement

Good light improves every photo. Soft, even light from a window is ideal. Avoid light from only one side, which creates shadows across the page. Avoid mixing light sources, since uneven color and brightness make the background messy. Keep your own shadow off the page by shifting your position. If you must use a lamp, place it to the side and above, and keep it away from glossy surfaces to avoid reflections.

Glare: how to see it and avoid it

On your screen, bright reflections look like pale patches. Tilt the object, or move your own position until they disappear. For laminated menus and glossy packaging, a slight angle from the light source often solves it. Polarizing filters exist for cameras, but you can solve most cases with movement alone.

Angle and distance

Hold the camera directly above or in front of the text, parallel to the surface. A tilted camera makes letters at the far edge smaller, and it makes straight lines look curved. Fill the frame with the text, but leave a small margin. Keeping a bit of margin avoids cutting off the first or last letters of a line.

Resolution and file type

Use your phone’s default photo mode at its highest standard resolution. Extremely high resolution modes create very large files that are slow to upload and process, without much benefit. Standard JPG files are fine for most text. If you have the option, PNG avoids compression artifacts, which can matter for small text. Screenshots are already saved in a format that suits text well. Avoid pictures that have been sent through messaging apps many times, since each round of compression strips detail.

Screenshots: a different set of rules

  • Zoom in before you capture. Larger text gives more pixels per letter.
  • Close pop ups, banners and keyboards.
  • Raise the screen brightness to improve contrast.
  • Avoid taking a photo of a screen with another phone. Use a screenshot instead.
  • If you must photograph a screen, shoot straight on, and watch for moire patterns, which are wavy lines that appear when a camera records a screen.

See our guides to translating screenshots on iPhone and Android for step by step instructions.

Documents and scanning apps

Many phones include a document scanning mode in their notes or files apps. It detects the edges of a page, corrects perspective and increases contrast, which can make a big difference. If your phone offers it, try scanning a page, and then exporting the result as an image to translate. The same approach helps with receipts, letters and forms. For more on documents, see our document translator page.

Small things that add up

  • Clean your lens. Fingerprints and dust create haze and soft focus. Wipe the lens with a soft cloth.
  • Remove the case or cover if it blocks part of the lens or the flash.
  • Flatten the page. Creases and curls cast shadows and distort lines. Use a book or your hand to flatten the page, keeping your fingers out of the text.
  • Shoot a backup. Take two or three photos, and choose the sharpest.
  • Crop. Remove edges, desk surfaces and background clutter.

A quick pre shot checklist

  1. Is the lens clean?
  2. Is the light even, with no glare?
  3. Is the camera straight, and are the lines level?
  4. Did you tap to focus on the text?
  5. Does the text fill most of the frame?
  6. Do you need a second photo as a backup?

How to check a photo before you upload it

Zoom in on your own picture to 100 percent. If you can read the smallest text comfortably and see accents and dots clearly, the reader probably can too. If you have to squint, or if edges look soft, retake it. This ten second check saves far more time than rerunning a failed translation.

Common mistakes and quick fixes

MistakeResultFix
Using the flash on glossy paperWhite patches over wordsTurn it off and change the angle
Zooming with fingersSoft, blocky lettersStep closer
Not tapping to focusThe background is sharp but the text is notTap the text
Taking a photo at a slantDistorted linesHold the camera parallel
Shooting a whole page from far awayTiny lettersTake several close photos
Dim lightNoisy, grainy textAdd light or use night mode

Languages that need extra care

Scripts with fine details need an extra measure of sharpness. For Chinese, Japanese, Korean and Arabic, small strokes and dots matter. For accents in European languages, small marks matter. See our guides to Japanese, German and French images for language specific tips.

Privacy when photographing documents

Documents often contain personal details. Take photos in a private place, crop out names and numbers you do not need and delete pictures you no longer need. Our tool reads the image in your browser, and only the extracted text is sent for translation, as explained in our privacy policy.

Curved and reflective surfaces

Bottles, cans, tubes and round packaging bend the text away from the camera, so the letters at the edges are squeezed. Rotate the item and photograph one flat section at a time, so the part you are shooting faces the lens directly. For shiny foil or metal, place the item in the shade of a window instead of under direct light, and tilt it until the reflection slides away. Photographing in several small pieces takes a minute longer, but it avoids the garbled lines you get from a single photo of a curved label.

Photographing text on a screen or a whiteboard

Whiteboards reflect room lights, so stand slightly to one side and check for bright patches before you shoot. Take two or three pictures from different positions, then keep the one with the least glare. If someone is still writing, wait until they finish, because moving hands and fresh marker strokes blur easily. A screen shown by a projector is harder still, since brightness varies across the image. In that case, ask if the slides can be shared as a file, which will always beat a photograph.

Frequently asked questions

What is the single most important setting for text photos?

Focus. Tap on the text and wait for the camera to sharpen before you take the photo.

Should I use the flash?

Usually not. It causes glare on glossy surfaces. Use even natural light instead.

Does a higher megapixel camera help?

It can, but only if the text is in focus and large in the frame. A sharp ordinary photo beats a blurry high resolution one.

Is a screenshot better than a photo of a screen?

Yes. A screenshot is sharper and has no glare or moire patterns.

Why does my photo look fine but translate badly?

Look at it zoomed in at 100 percent. Small blur, glare or tilt that you do not notice at a glance can still hurt recognition.

Next steps

Take a few test photos with these habits, and run them through the translator. If you still see errors, our guide on why OCR misreads text helps you find the cause, and our post on translating handwritten notes covers the hardest case.