Alt text for an image with text: test results (Koldflux, November 28, 2026) Tool: https://koldflux.com/tools/image/to-text (live site, image koldflux:hubos-53cbc61a0-20261128), headless Chromium via Playwright, viewport 1280x1000. Engine as the tool page states it: Tesseract 5 LSTM (tesseract.js, tessdata_fast models). The picture is read in the browser. CER = edit distance / reference length after runs of whitespace become one space (score.py; same definition as the tool page). Test images: rendered by render.cjs from cases.json (fonts DejaVu Sans/Serif). The names in the quote card and the chat are invented. Photo behind the text-over-photo card: Mount Two Top, Henrys Lake Mountains, Idaho (Wikimedia Commons, CC0 1.0). Steps: bash test-run.sh . crop.py needs Pillow; our server had none, so the two crops were made on a second machine (Pillow 10.1.0) and copied up; md5 of both crops matched on both machines. Run 3 (below) made the crops on the server itself with Pillow 13.0.0 in a venv: same boxes, same md5. == run 1: seven cases (tool-runs.json) metric controls: cer(abcd,abcd)=0 cer(abcd,abed)=0.25 cer(whitespace only)=0 OK control [eng] ref_chars=54 edits=0 CER=0.0% | 10 words · engine confidence 95 of 100 · 0.4 s ocr: The quick brown fox jumps over the lazy dog 0123456789 quote-card [eng] ref_chars=83 edits=0 CER=0.0% | 14 words · engine confidence 95 of 100 · 0.6 s ocr: Make the first version small enough to finish this week. Mara Quinn, Quinn Ceramics carousel-slide [eng] ref_chars=126 edits=0 CER=0.0% | 29 words · engine confidence 95 of 100 · 0.8 s ocr: 3 checks before you post 1. Read the caption out loud 2. Open every link on a phone 3. Add alt text to each image Slide 2 of 5 chat-screenshot [eng] ref_chars=131 edits=30 CER=22.9% | 19 words · engine confidence 95 of 100 · 1.4 s ocr: Jonah Price Today 9:41 Are the proofs ready for Friday? Great. Use the blue cover, not the green one. delete: 'Yes, sending the PDF tonight. ' -> '' fine-print-10px [eng] ref_chars=80 edits=0 CER=0.0% | 15 words · engine confidence 89 of 100 · 0.3 s ocr: Offer ends December 31. One code per order. Not valid on gift cards or shipping. text-over-photo [eng] ref_chars=45 edits=18 CER=40.0% | 14 words · engine confidence 64 of 100 · 1.0 s ocr: = te | | Trailopens jJunel | _ Book your shuttle seat now ee insert: '' -> '= te | | ' delete: ' ' -> '' insert: '' -> 'j' insert: '' -> 'l' replace: '1' -> '| _' insert: '' -> ' ee' spanish-sign [eng] ref_chars=63 edits=1 CER=1.6% | 11 words · engine confidence 93 of 100 · 0.7 s ocr: Cerrado por inventario el sabado. Volvemos el lunes a las 9:00. replace: 'á' -> 'a' spanish-sign [spa] ref_chars=63 edits=0 CER=0.0% | 11 words · engine confidence 95 of 100 · 0.4 s ocr: Cerrado por inventario el sábado. Volvemos el lunes a las 9:00. == crop.py (second machine, Pillow 10.1.0) chat-bubble-crop box (258, 450, 1122, 567) text-over-photo-crop box (40, 760, 1040, 990) exit=0 cannot open the input images: [Errno 2] No such file or directory: '/tmp/b3nodir/chat-screenshot.png' exit=1 md5 chat-bubble-crop.png 4a8efed00c6fcc6a15a8f24854d857cf, text-over-photo-crop.png 9f50b25b8f62b2f50d7bac79bd3915bc (same on both machines) == run 1: the two crop retries (tool-runs-crop.json) metric controls: cer(abcd,abcd)=0 cer(abcd,abed)=0.25 cer(whitespace only)=0 OK chat-bubble-crop [eng] ref_chars=29 edits=12 CER=41.4% | 10 words · engine confidence 75 of 100 · 0.8 s ocr: a > Yes, sending the PDF tonight. KR 9 gu insert: '' -> 'a > ' insert: '' -> ' KR 9 gu' text-over-photo-crop [eng] ref_chars=45 edits=0 CER=0.0% | 9 words · engine confidence 89 of 100 · 0.4 s ocr: Trail opens June 1 Book your shuttle seat now == run 1: edge inputs given to the tool (empty file, renamed text file; the published tool-runs-edge.json is the run 3 file, which also has the blank picture) metric controls: cer(abcd,abcd)=0 cer(abcd,abed)=0.25 cer(whitespace only)=0 OK edge-empty [eng] ERROR The text could not be read. edge-not-image [eng] ERROR The text could not be read. == run 2: the whole test-run.sh again, end to end, on the server (no Pillow there yet, so the two crop retries were skipped: run 2 repeats the first-try numbers only) rendered rerun/in/control.png 1080x300 rendered rerun/in/quote-card.png 1080x1080 rendered rerun/in/carousel-slide.png 1080x1350 rendered rerun/in/chat-screenshot.png 1170x1800 rendered rerun/in/fine-print-10px.png 620x60 rendered rerun/in/text-over-photo.png 1080x1080 rendered rerun/in/spanish-sign.png 1080x700 Pillow is missing: pip install pillow crop.py failed (Pillow missing?); the two crop retries are skipped control [["eng","10 words · engine confidence 95 of 100 · 0.6 s",null]] quote-card [["eng","14 words · engine confidence 95 of 100 · 0.7 s",null]] carousel-slide [["eng","29 words · engine confidence 95 of 100 · 0.6 s",null]] chat-screenshot [["eng","19 words · engine confidence 95 of 100 · 0.5 s",null]] fine-print-10px [["eng","15 words · engine confidence 89 of 100 · 0.3 s",null]] text-over-photo [["eng","14 words · engine confidence 64 of 100 · 0.9 s",null]] spanish-sign [["eng","11 words · engine confidence 93 of 100 · 0.4 s",null],["spa","11 words · engine confidence 95 of 100 · 0.2 s",null]] edge-empty [["eng",null,"The text could not be read."]] edge-not-image [["eng",null,"The text could not be read."]] metric controls: cer(abcd,abcd)=0 cer(abcd,abed)=0.25 cer(whitespace only)=0 OK control [eng] ref_chars=54 edits=0 CER=0.0% | 10 words · engine confidence 95 of 100 · 0.6 s ocr: The quick brown fox jumps over the lazy dog 0123456789 quote-card [eng] ref_chars=83 edits=0 CER=0.0% | 14 words · engine confidence 95 of 100 · 0.7 s ocr: Make the first version small enough to finish this week. Mara Quinn, Quinn Ceramics carousel-slide [eng] ref_chars=126 edits=0 CER=0.0% | 29 words · engine confidence 95 of 100 · 0.6 s ocr: 3 checks before you post 1. Read the caption out loud 2. Open every link on a phone 3. Add alt text to each image Slide 2 of 5 chat-screenshot [eng] ref_chars=131 edits=30 CER=22.9% | 19 words · engine confidence 95 of 100 · 0.5 s ocr: Jonah Price Today 9:41 Are the proofs ready for Friday? Great. Use the blue cover, not the green one. delete: 'Yes, sending the PDF tonight. ' -> '' fine-print-10px [eng] ref_chars=80 edits=0 CER=0.0% | 15 words · engine confidence 89 of 100 · 0.3 s ocr: Offer ends December 31. One code per order. Not valid on gift cards or shipping. text-over-photo [eng] ref_chars=45 edits=18 CER=40.0% | 14 words · engine confidence 64 of 100 · 0.9 s ocr: = te | | Trailopens jJunel | _ Book your shuttle seat now ee insert: '' -> '= te | | ' delete: ' ' -> '' insert: '' -> 'j' insert: '' -> 'l' replace: '1' -> '| _' insert: '' -> ' ee' spanish-sign [eng] ref_chars=63 edits=1 CER=1.6% | 11 words · engine confidence 93 of 100 · 0.4 s ocr: Cerrado por inventario el sabado. Volvemos el lunes a las 9:00. replace: 'á' -> 'a' spanish-sign [spa] ref_chars=63 edits=0 CER=0.0% | 11 words · engine confidence 95 of 100 · 0.2 s ocr: Cerrado por inventario el sábado. Volvemos el lunes a las 9:00. metric controls: cer(abcd,abcd)=0 cer(abcd,abed)=0.25 cer(whitespace only)=0 OK edge-empty [eng] ERROR The text could not be read. edge-not-image [eng] ERROR The text could not be read. == low-confidence note: the tool adds "low confidence: check every line" below 60. No test image with text went below 60 (lowest 64, text-over-photo), so the note never showed on them; the chat screenshot lost a whole message at 95. The plain white picture (run 3 edge case, confidence 0) did show it. == run 3: the whole test-run.sh again, end to end, on the server, after fixing score.py and test-run.sh (Pillow 13.0.0 in a venv, so the crops ran too) rendered run3/in/control.png 1080x300 rendered run3/in/quote-card.png 1080x1080 rendered run3/in/carousel-slide.png 1080x1350 rendered run3/in/chat-screenshot.png 1170x1800 rendered run3/in/fine-print-10px.png 620x60 rendered run3/in/text-over-photo.png 1080x1080 rendered run3/in/spanish-sign.png 1080x700 chat-bubble-crop box (258, 450, 1122, 567) text-over-photo-crop box (40, 760, 1040, 990) control [["eng","10 words · engine confidence 95 of 100 · 0.4 s",null]] quote-card [["eng","14 words · engine confidence 95 of 100 · 0.7 s",null]] carousel-slide [["eng","29 words · engine confidence 95 of 100 · 0.6 s",null]] chat-screenshot [["eng","19 words · engine confidence 95 of 100 · 0.6 s",null]] fine-print-10px [["eng","15 words · engine confidence 89 of 100 · 0.3 s",null]] text-over-photo [["eng","14 words · engine confidence 64 of 100 · 0.7 s",null]] spanish-sign [["eng","11 words · engine confidence 93 of 100 · 0.6 s",null],["spa","11 words · engine confidence 95 of 100 · 0.2 s",null]] chat-bubble-crop [["eng","10 words · engine confidence 75 of 100 · 0.5 s",null]] text-over-photo-crop [["eng","9 words · engine confidence 89 of 100 · 0.4 s",null]] edge-empty [["eng",null,"The text could not be read."]] edge-not-image [["eng",null,"The text could not be read."]] edge-blank [["eng","0 words · engine confidence 0 of 100 · 0.1 s · low confidence: check every line",null]] metric controls: cer(abcd,abcd)=0 cer(abcd,abed)=0.25 cer(whitespace only)=0 OK control [eng] ref_chars=54 edits=0 CER=0.0% | 10 words · engine confidence 95 of 100 · 0.4 s ocr: The quick brown fox jumps over the lazy dog 0123456789 quote-card [eng] ref_chars=83 edits=0 CER=0.0% | 14 words · engine confidence 95 of 100 · 0.7 s ocr: Make the first version small enough to finish this week. Mara Quinn, Quinn Ceramics carousel-slide [eng] ref_chars=126 edits=0 CER=0.0% | 29 words · engine confidence 95 of 100 · 0.6 s ocr: 3 checks before you post 1. Read the caption out loud 2. Open every link on a phone 3. Add alt text to each image Slide 2 of 5 chat-screenshot [eng] ref_chars=131 edits=30 CER=22.9% | 19 words · engine confidence 95 of 100 · 0.6 s ocr: Jonah Price Today 9:41 Are the proofs ready for Friday? Great. Use the blue cover, not the green one. delete: 'Yes, sending the PDF tonight. ' -> '' fine-print-10px [eng] ref_chars=80 edits=0 CER=0.0% | 15 words · engine confidence 89 of 100 · 0.3 s ocr: Offer ends December 31. One code per order. Not valid on gift cards or shipping. text-over-photo [eng] ref_chars=45 edits=18 CER=40.0% | 14 words · engine confidence 64 of 100 · 0.7 s ocr: = te | | Trailopens jJunel | _ Book your shuttle seat now ee insert: '' -> '= te | | ' delete: ' ' -> '' insert: '' -> 'j' insert: '' -> 'l' replace: '1' -> '| _' insert: '' -> ' ee' spanish-sign [eng] ref_chars=63 edits=1 CER=1.6% | 11 words · engine confidence 93 of 100 · 0.6 s ocr: Cerrado por inventario el sabado. Volvemos el lunes a las 9:00. replace: 'á' -> 'a' spanish-sign [spa] ref_chars=63 edits=0 CER=0.0% | 11 words · engine confidence 95 of 100 · 0.2 s ocr: Cerrado por inventario el sábado. Volvemos el lunes a las 9:00. metric controls: cer(abcd,abcd)=0 cer(abcd,abed)=0.25 cer(whitespace only)=0 OK chat-bubble-crop [eng] ref_chars=29 edits=12 CER=41.4% | 10 words · engine confidence 75 of 100 · 0.5 s ocr: a > Yes, sending the PDF tonight. KR 9 gu insert: '' -> 'a > ' insert: '' -> ' KR 9 gu' text-over-photo-crop [eng] ref_chars=45 edits=0 CER=0.0% | 9 words · engine confidence 89 of 100 · 0.4 s ocr: Trail opens June 1 Book your shuttle seat now metric controls: cer(abcd,abcd)=0 cer(abcd,abed)=0.25 cer(whitespace only)=0 OK edge-empty [eng] ERROR The text could not be read. edge-not-image [eng] ERROR The text could not be read. edge-blank [eng] no reference text; the tool returned 0 characters | 0 words · engine confidence 0 of 100 · 0.1 s · low confidence: check every line exit=0 md5 chat-bubble-crop.png 4a8efed00c6fcc6a15a8f24854d857cf, text-over-photo-crop.png 9f50b25b8f62b2f50d7bac79bd3915bc (identical to run 1) == run 4: test-run.sh without Pillow into a copy of the run 3 work dir (checks that old crops are not reused) rendered run4/in/control.png 1080x300 rendered run4/in/quote-card.png 1080x1080 rendered run4/in/carousel-slide.png 1080x1350 rendered run4/in/chat-screenshot.png 1170x1800 rendered run4/in/fine-print-10px.png 620x60 rendered run4/in/text-over-photo.png 1080x1080 rendered run4/in/spanish-sign.png 1080x700 Pillow is missing: pip install pillow crop.py failed (Pillow missing?); the two crop retries are skipped control [["eng","10 words · engine confidence 95 of 100 · 0.6 s",null]] quote-card [["eng","14 words · engine confidence 95 of 100 · 0.6 s",null]] carousel-slide [["eng","29 words · engine confidence 95 of 100 · 1.0 s",null]] chat-screenshot [["eng","19 words · engine confidence 95 of 100 · 0.6 s",null]] fine-print-10px [["eng","15 words · engine confidence 89 of 100 · 0.2 s",null]] text-over-photo [["eng","14 words · engine confidence 64 of 100 · 0.8 s",null]] spanish-sign [["eng","11 words · engine confidence 93 of 100 · 0.5 s",null],["spa","11 words · engine confidence 95 of 100 · 0.2 s",null]] edge-empty [["eng",null,"The text could not be read."]] edge-not-image [["eng",null,"The text could not be read."]] edge-blank [["eng","0 words · engine confidence 0 of 100 · 0.2 s · low confidence: check every line",null]] metric controls: cer(abcd,abcd)=0 cer(abcd,abed)=0.25 cer(whitespace only)=0 OK control [eng] ref_chars=54 edits=0 CER=0.0% | 10 words · engine confidence 95 of 100 · 0.6 s ocr: The quick brown fox jumps over the lazy dog 0123456789 quote-card [eng] ref_chars=83 edits=0 CER=0.0% | 14 words · engine confidence 95 of 100 · 0.6 s ocr: Make the first version small enough to finish this week. Mara Quinn, Quinn Ceramics carousel-slide [eng] ref_chars=126 edits=0 CER=0.0% | 29 words · engine confidence 95 of 100 · 1.0 s ocr: 3 checks before you post 1. Read the caption out loud 2. Open every link on a phone 3. Add alt text to each image Slide 2 of 5 chat-screenshot [eng] ref_chars=131 edits=30 CER=22.9% | 19 words · engine confidence 95 of 100 · 0.6 s ocr: Jonah Price Today 9:41 Are the proofs ready for Friday? Great. Use the blue cover, not the green one. delete: 'Yes, sending the PDF tonight. ' -> '' fine-print-10px [eng] ref_chars=80 edits=0 CER=0.0% | 15 words · engine confidence 89 of 100 · 0.2 s ocr: Offer ends December 31. One code per order. Not valid on gift cards or shipping. text-over-photo [eng] ref_chars=45 edits=18 CER=40.0% | 14 words · engine confidence 64 of 100 · 0.8 s ocr: = te | | Trailopens jJunel | _ Book your shuttle seat now ee insert: '' -> '= te | | ' delete: ' ' -> '' insert: '' -> 'j' insert: '' -> 'l' replace: '1' -> '| _' insert: '' -> ' ee' spanish-sign [eng] ref_chars=63 edits=1 CER=1.6% | 11 words · engine confidence 93 of 100 · 0.5 s ocr: Cerrado por inventario el sabado. Volvemos el lunes a las 9:00. replace: 'á' -> 'a' spanish-sign [spa] ref_chars=63 edits=0 CER=0.0% | 11 words · engine confidence 95 of 100 · 0.2 s ocr: Cerrado por inventario el sábado. Volvemos el lunes a las 9:00. metric controls: cer(abcd,abcd)=0 cer(abcd,abed)=0.25 cer(whitespace only)=0 OK edge-empty [eng] ERROR The text could not be read. edge-not-image [eng] ERROR The text could not be read. edge-blank [eng] no reference text; the tool returned 0 characters | 0 words · engine confidence 0 of 100 · 0.2 s · low confidence: check every line exit=3 (run 4 removed the old crop files and tool-runs-crop.json before crop.py; no crop retry ran; exit 3 marks the skipped step) == independent checker run (verify round 1, same day, same script, not published as a file): every CER above repeated; times control 0.7 s, quote card 0.9 s, slide 1.1 s, chat 1.3 s, fine print 0.2 s, photo 1.0 s, Spanish 0.4 / 0.3 s; crops 0.4 / 0.5 s, same CER == reading times (the third number in the readout) for the quote card, slide and fine print across run 1, run 2, run 3, run 4 and the checker run: 0.2 to 1.1 s; the published tool screenshot shows the quote card at 1.0 s. Times vary run to run; the text did not. == edge inputs given to score.py after the fix (blank picture, orphan id, null text, UTF-8 BOM) $ python3 -B score.py cases.json edge3/orphan.json metric controls: cer(abcd,abcd)=0 cer(abcd,abed)=0.25 cer(whitespace only)=0 OK skipped: run 'nosuch' has no case in cases.json exit=0 $ python3 -B score.py cases.json edge3/nulltext.json metric controls: cer(abcd,abcd)=0 cer(abcd,abed)=0.25 cer(whitespace only)=0 OK control [eng] ref_chars=54 edits=54 CER=100.0% | x ocr: delete: 'The quick brown fox jumps over the lazy dog 0123456789' -> '' exit=0 $ python3 -B score.py cases-crop.json edge3/bom.json metric controls: cer(abcd,abcd)=0 cer(abcd,abed)=0.25 cer(whitespace only)=0 OK chat-bubble-crop [eng] ref_chars=29 edits=12 CER=41.4% | 10 words · engine confidence 75 of 100 · 0.5 s ocr: a > Yes, sending the PDF tonight. KR 9 gu insert: '' -> 'a > ' insert: '' -> ' KR 9 gu' text-over-photo-crop [eng] ref_chars=45 edits=0 CER=0.0% | 9 words · engine confidence 89 of 100 · 0.4 s ocr: Trail opens June 1 Book your shuttle seat now exit=0 $ python3 -B score.py cases-edge.json run3/out/tool-runs-edge.json metric controls: cer(abcd,abcd)=0 cer(abcd,abed)=0.25 cer(whitespace only)=0 OK edge-empty [eng] ERROR The text could not be read. edge-not-image [eng] ERROR The text could not be read. edge-blank [eng] no reference text; the tool returned 0 characters | 0 words · engine confidence 0 of 100 · 0.1 s · low confidence: check every line exit=0 == other edge inputs given to the published scripts $ bash test-run.sh usage: bash test-run.sh photo.jpg workdir exit=2 $ bash test-run.sh edge/nofile.jpg run5 missing or empty photo: edge/nofile.jpg exit=1 $ node render.cjs cases.json in/mount-two-top.jpg run5 (no Playwright installed) Playwright is missing: npm i playwright, or set PLAYWRIGHT_MODULE to its path exit=1 $ node run-tool.cjs cases.json in run5/x.json (no Playwright installed) Playwright is missing: npm i playwright, or set PLAYWRIGHT_MODULE to its path exit=1 $ node render.cjs edge/nofile.json in run5 cannot read edge/nofile.json (missing, empty or not JSON): ENOENT: no such file or directory, open 'edge/nofile.json' exit=1 $ node run-tool.cjs edge/empty.json in run5/x.json cannot read edge/empty.json (missing, empty or not JSON): Unexpected end of JSON input exit=1 == smoke check after adding the Playwright-missing message to render.cjs and run-tool.cjs: render.cjs rebuilt the images (quote-card.png identical md5 to run 3), run-tool.cjs on the two crops: chat-bubble-crop [eng] ref_chars=29 edits=12 CER=41.4% | 10 words · engine confidence 75 of 100 · 0.5 s text-over-photo-crop [eng] ref_chars=45 edits=0 CER=0.0% | 9 words · engine confidence 89 of 100 · 0.5 s == edge inputs given to score.py and crop.py after the fix (missing, empty, CRLF, Latin-1, non-ASCII file name, no arguments; output lines with two leading spaces trimmed) $ python3 -B score.py cases.json edge/nofile.json cannot read input (missing, empty, not UTF-8 JSON or wrong shape): [Errno 2] No such file or directory: 'edge/nofile.json' exit=1 $ python3 -B score.py cases.json edge/empty.json cannot read input (missing, empty, not UTF-8 JSON or wrong shape): Expecting value: line 1 column 1 (char 0) exit=1 $ python3 -B score.py cases.json edge/crlf.json metric controls: cer(abcd,abcd)=0 cer(abcd,abed)=0.25 cer(whitespace only)=0 OK exit=0 $ python3 -B score.py cases.json edge/latin.json cannot read input (missing, empty, not UTF-8 JSON or wrong shape): 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte exit=1 $ python3 -B score.py cases.json edge/résultats.json metric controls: cer(abcd,abcd)=0 cer(abcd,abed)=0.25 cer(whitespace only)=0 OK control [eng] ref_chars=54 edits=0 CER=0.0% | 10 words · engine confidence 95 of 100 · 0.4 s quote-card [eng] ref_chars=83 edits=0 CER=0.0% | 14 words · engine confidence 95 of 100 · 0.6 s exit=0 $ python3 -B crop.py (no args) usage: python3 crop.py imagedir exit=1 $ python3 -B crop.py /tmp/b3nodir cannot open the input images: [Errno 2] No such file or directory: '/tmp/b3nodir/chat-screenshot.png' exit=1 $ python3 -B score.py (no args) usage: python3 score.py cases.json tool-runs.json exit=1