CNN v4  vs  Nano Banana — handwriting eraser

One real phone photo of a Japanese math worksheet (sample002, 3133×2229). Same input, same scorer. Goal: remove pencil + red-pen, keep the printed problems.

Scores (identical score.py, ink-restricted vs GT masks)

eraserprint recall
safety — keep print
handwriting-erase
utility — remove pencil
cost / page
CNN v4 (U-Net, local) 0.9860.83~free
Nano Banana (premium, tiled Pro) 0.9880.39¥200

Safety: tie (~0.98 both — neither meaningfully harms print). Utility: CNN wins on the metric — but read the nuance below before concluding.

Flip viewer — toggle in place to spot differences

Keys 1 / 2 / 3 / 4 / 5 switch · hover the image to magnify (scroll to change zoom)

Input (marked)

Flipping CNN↔NB in the same spot makes the difference obvious: CNN = clean white but a few bold dark leftovers; NB = uniform faint haze, nothing bold.

Zoom — dense pencil working (where they differ most)

dense pencil zoom

Left input → middle CNN (erased to paper, leaves a bold "96" + a division) → right NB (everything faintly lightened, no bold marks).

Zoom — printed figures (print-integrity check)

figures zoom

Both keep the printed geometry figures intact — the safety metric tie, visually.

Pricing — ¥200 (Pro) vs ¥100 (NB2), same quality

configprint recallHW-erasecost/pageverdict
Pro, tile 1536 (6 tiles)0.9880.39¥200approved baseline
★ NB2, tile 2048 (4 tiles)0.9950.39¥100★ ship — = quality, ½ price, safer print
Pro, tile 2048 (4 tiles)0.8330.39¥200rejected — erases print

Composite mode keeps the original print, so the model only needs to find handwriting + fill paper — Pro's costly faithful-print-recreation is wasted. NB2 does the needed job at half price. (Flip NB Pro ¥200★ Ship NB2 ¥100 above — visually identical.)

Pro 1536 vs NB2 2048 zoom

Dense-pencil zoom: input · Pro ¥200 · NB2 ¥100 — same faint-haze erase, print intact.

The smudge: it's our mask, not Nano Banana

The per-tile NB-cleaned output is fully clean — NB erases the pencil completely. The faint smudge appears only after our composite, which keeps the original pixels wherever the conservative diff-mask doesn't fire (faint pencil → too small a difference → mask skips it). So the smudge is the price of the safe mask (print recall 0.995). Flip ★ Ship NB2 ¥100Fill (trust NB) above to see it vanish.

composite vs fill

Left input · middle SHIP composite (smudge from kept-original) · right FILL (fully trust NB → smudge gone). Trade-off: Fill reframes the page and AI-recreates every printed character (print recall 0.962 vs 0.995, and not pixel-preserved) — cleaner, but loses the guarantee that printed problems are untouched. The ship config keeps that guarantee; the smudge is the cost. A future tuned mask can split the difference.

The call: safety is a tie and cost favors the free CNN. The real question is which failure reads cleaner to you — CNN’s mostly-white-with-a-few-dark-leftovers vs NB’s hazy-clean-but-nothing-bold. The strict metric rewards CNN (full erase to paper); your eye may rate them closer. n=1 — one page.