ScanWisp ← Back to ScanWisp

Scanning textbook pages without wrecking the binding

A loose page is a flat rectangle in front of a camera. A book page is a curved surface held at an angle, with a shadow in the gutter. Three of those problems are fixable.

· Guide · 6 min read

Disclosure: I build ScanWisp, the scanner used in the steps below. Everything about light, angle and pressure applies to any camera, app or no app. The part about what can't be fixed is a property of the geometry, not of this tool.

People photograph textbook pages for a handful of reasons: a chapter to read on a train, a page to annotate without writing in the book, a reference to keep after the library loan ends. All of them fail in the same three places, and people usually blame the app for the third one.

What the binding does to your photo

Three effects, and they're independent of each other.

  1. A shadow in the gutter. Light coming from directly above the book is blocked by the raised half, so the inner margin goes dark. This one is about lighting.
  2. A curved page. The part of the page near the spine bends away from the lens. Text there is compressed and slightly rotated. This one is about physics.
  3. An angled camera. You can't hold the phone parallel to a page you can't fully open, so the whole page is projected as a trapezoid. This one is easy to fix.

Fixing three problems is why a book page is noticeably harder than a letter, and why the result of a rushed attempt looks worse than the result of a rushed attempt on loose paper.

Light: move it to the side

The single biggest improvement costs nothing. Stop lighting the book from directly overhead. A lamp or window to one side, at roughly 30–45 degrees, puts the gutter in even light instead of in its own shadow. On a phone, this usually means turning your body so the window is beside you rather than in front of you.

Two things to avoid: the camera's flash, which produces a hard specular highlight in the middle of the page and a much darker margin, and a light source behind the book, which makes the camera expose for the background and turn the page grey.

Angle: use the main camera, and get square

Use the 1x main lens. Ultra-wide modules are tempting because they fit more page in frame, but they have stronger edge distortion and lower effective resolution where the text is densest. A main camera held slightly further back gives better text than an ultra-wide held close.

Then get the lens plane parallel to the page. A quick way to check: the page should fill the frame as a rectangle, with equal margins on all four sides. If one side is longer than the other, you're tilted, and you're asking the software to stretch half the page more than the rest.

Pressure: flatten what you can

Press the page down from the outer edge toward the spine, not down on the middle of the page. Aim to bend the paper at the gutter rather than the middle, so the flat area your camera sees is as large as possible. A sheet of clear glass or acrylic over the page works well if you have one, with the obvious caveat that it reflects light, so the side-lighting advice above matters more.

Don't force the book open flat if it doesn't want to. You'll damage the binding, and a marginally more open page doesn't compensate for a broken spine.

Correcting: the four corners still matter

Automatic edge detection looks for a page-shaped quadrilateral. On a curved page with a shadowed gutter, one of those corners is often guessed too far in, so the scan keeps a strip of the neighbouring page. Move the corners yourself. It takes two seconds per page and it's the difference between a usable scan and one you have to redo.

After correction, run the enhancement pass. Background levelling does a good job on the gutter shadow: it estimates the paper colour locally and flattens the gradient. What it won't do is pull text back to the correct shape, because the text isn't distorted by brightness, it's distorted by position.

The problem nobody can fix

Perspective correction is a planar transformation. It maps a quadrilateral to a rectangle by assuming the page is flat and tilted. That assumption is false near the spine, where the page is bent, and no combination of four corners can express a bend.

Specialised book scanners solve this with dewarping: a model that estimates the curvature and remaps each column of pixels. It's genuinely difficult, it's rare in consumer tools, and even the good implementations leave artifacts on tight bindings. So for a phone, the practical answer is to reduce how much page is curved before you shoot, and accept a slightly squeezed inner margin on the pages you can't flatten.

Copying a whole book is a different question from scanning a page. Scanning pages of a book you own, for your own study or reference, is ordinary use in most places. Reproducing or distributing substantial parts of a copyrighted work generally is not, and the rules differ by country and by purpose. This article is about the photography, not about permissions, and it isn't legal advice. If you're scanning for anything beyond personal use, check the rules that apply to you.

Single page or spread?

One page per shot is better and roughly twice as much work. A two-page spread fills the frame with lower resolution per page and puts the gutter through the middle of the image, where the curvature is worst. If you're reading rather than archiving, a spread is fine. If you're keeping the page, shoot it alone.

Whatever you choose, finish one chapter before moving on. Page order is the most common regret: forty photos of a book, taken in three sessions, sorted by filename into an order that doesn't match the book.

Do you need OCR on a book page?

Not if you're just reading. Yes if you plan to search, quote or copy text from it later. Running OCR embeds a text layer, so a later search for a phrase across a hundred pages returns the right page instead of scrolling. Dense body text at a normal resolution is the easy case for recognition; the hard cases are the same ones as anywhere else, which are handwritten margin notes and formulas.

If you'll be reading on a phone, export as PDF and keep the text layer. If you'll be pasting quotations into notes, export the recognised text as well and keep both. The mechanics are in the explainer on searchable PDFs.

When a phone isn't the right tool

If you're digitising a 400-page reference book, use a flatbed scanner with a book cradle, or the overhead scanner at a library. The per-page time is similar, the curvature problem mostly disappears, and the result doesn't need a second pass. Photographing a whole book with a phone is a job that looks cheap and turns out to be expensive in hours.

For a chapter, a page or a dozen pages, the phone in your hand is good enough, and the prerequisites are a window on your left and two minutes of attention.

Try it on one page. Photograph a chapter page with side light, drag the corners to the paper edge, then enhance. ScanWisp does the correction and OCR in the browser, so the book never leaves the room.

Scan a document

Related