Repository navigation
READING
Status: Implemented
Last Updated: 2026-11-13
Audience: Developers and coding agents
Last verified: 2026-11-13 against 5f40af2d9 (source flow and limits; measurements not rerun)
Code: src/Martlet.Core/Reading/, src/Martlet.Desktop/ScreenReading.cs, src/Martlet.Desktop/LiveConversationWindow.Vision.cs, src/Martlet.Desktop/ReadingList.cs, src/Martlet.Desktop/MainWindow.Reading.cs, src/Martlet.Desktop/Pages/Reading/, src/Martlet.Gateway.Ocr/OcrRelayWorker.cs, workers/ocr/host/
The Reading pool uses optical character recognition (OCR) to extract text from the visible screen. This PC can use Windows OCR or its Reading role; paired computers can run their own Reading role. The pool tries enabled places in order and does not keep extracted text in the conversation.
Martlet can read the text on your screen while it watches your screen with you. This is OCR (optical character recognition). Martlet uses it together with the vision model. The vision model sees the whole picture. OCR reads small text exactly: a health value, a score, a kill feed, "VICTORY", a chat line.
Set it up in Companion › Reading, an optional extra. The page lists the
places that read your screen, in order: this PC's Reading list.
The list stays on this PC (pools-local.json in Martlet's data folder).
The page has the standard order: Now (what Martlet reads with, Read the screen: how often it reads, the newest read and Read my screen now), then Where it reads (the list), then Compare them. Compare them shows Windows OCR and the Reading role side by side: where it runs, the download, the read time, the processor threads, the languages, how it reads game fonts, the cost and where screenshots go.
Each member of the list reads in one of these ways:
| Member | What it uses | Where it runs | Data |
|---|---|---|---|
| This PC with Windows OCR (default, recommended) | Windows' own text recognition (Windows.Media.Ocr) in your Windows languages |
This PC's processor, about 140 ms for a full-size 1920 x 1080 screenshot | Nothing leaves this PC |
| This PC with Martlet's Reading role, or another of your computers (or one of its graphics cards) | PaddleOCR's PP-OCRv5 models with RapidOCR 3.10.0, or RapidOCR 1.4.4 with its PP-OCRv4 models, in Docker | That computer's processor, or an NVIDIA graphics card for PP-OCRv5 server | Screenshots go to that computer. It reads them in memory and does not keep them |
With nothing in the list, or nothing on, Martlet doesn't read your screen (off). There is no separate on/off switch.
Windows OCR is fast and free. It needs a Windows language that has text recognition. Most languages include it. If Windows has none, This PC's settings tell you what to add in Windows Settings › Time & language › Language & region, and the next member of the list reads instead.
The Reading role is often better with game fonts. It has these models:
| Model | Where it runs | Download | Read time (24-thread processor) | Accuracy on a drawn 4K desktop |
|---|---|---|---|---|
| PP-OCRv5 mobile (recommended) | The processor | About 700 MB | About 2 s for 1920 x 1080, 4 s for 4K | All 192 lines |
| PP-OCRv5 mobile on the graphics card | An NVIDIA graphics card (driver 580 or newer) | About 3.1 GB | Not measured on a card; much less than on a processor | All 192 lines (the same model) |
| PP-OCRv5 server | An NVIDIA graphics card (driver 580 or newer) | About 3.1 GB | Not measured on a card; about a minute on a processor | The most accurate |
| RapidOCR (PP-OCRv4) | The processor | About 200 MB | About 1 to 3 s | 112 of 192 lines |
Windows OCR read 145 of the same 192 lines. PP-OCRv5 reads Chinese, English and Japanese. RapidOCR reads Chinese and English. These times and line counts are measurements from drawn test images, not guarantees for other machines. This audit did not rerun them. The models that use a graphics card are for an NVIDIA graphics card only. The page disables them on a computer without one. On a processor, the server model is too slow for the gateway's 15 s limit. A graphics card is always optional: the processor models and Windows OCR stay available. To keep a processor fallback, put the computer with the graphics card first in the list and This PC with Windows OCR after it. When the first is busy or doesn't answer, the next one reads at once.
To set up the Reading role on a computer:
- Add the computer to the list (Add to the list), or use This PC.
- Press the member's Settings. For This PC, choose Martlet's Reading role.
- Choose the model, then press Set up. When the role already runs another model there, Switch to changes it.
That uses the same martlet-host add ocr flow as every other role. The member
then keeps the model in its settings. The role is described in
Reading host role.
Companion › Reading's list is the Reading pool (PoolAreas.Reading, see
Pools). Each read goes
through Martlet's work queue (WorkQueue, lane reading, see
Sharing work between your computers)
at background priority:
- The read goes to the first member that is on. While it is free, nothing changes: no extra request.
- When it is busy (it reads for another computer), does not answer, does not run the Reading role, or is Windows OCR without an OCR language, the read goes at once to the next member that is on.
- When every one is busy, the read waits up to 3 seconds and goes to the first that frees. After that it gives up quietly, and the next screenshot tries again.
- A computer that is in the list twice (as a computer and as one of its cards, or as This PC with the Reading role and as this PC's host service) is tried once. A card member uses its computer's Reading role: the computer picks the card.
- A member that is off, kept for another companion PC or not paired with this PC is left out.
- A host that a friend shares with you reads only when it is in your list (Devices › Use for reading puts it first). When its owner needs it, the read goes to the next member, or waits for a later screenshot.
Each member keeps its own settings: This PC's engine (windows-ocr or ocr
for the Reading role on its own host service) and a computer's model (the
model set up there). A member that is off keeps its place and settings.
The list is this PC's own and is never shared, as the screen it reads is this
PC's. The first time the page opens, Martlet makes the list from the older
choice (reading.json): Windows OCR becomes This PC; the Reading role on a
computer becomes that computer, then your other computers that the shared plan
says run the role; off becomes an empty list. Until then, reads use that same
list without saving it.
Martlet keeps the connection to each computer open between reads, and drops it
when that computer fails. The JPEG of a screenshot is made only when a computer
reads it; when the first member is a computer, it is made before the 3-second
wait starts, so a busy PC does not spend the wait on it. The desktop log (Sharing work: Reading went to m3-host (1 busy).)
and the Devices card's status line say when a read went past the first member.
Qualification: the list, its order and the queue are checked locally
(ReadingPoolTests in Martlet.Core.Tests and Martlet.Desktop.Tests, MCP
reading_check pool and poolCheck, and Companion › Reading through
-Desktop); reads between real hosts are NOT RUN.
- Martlet reads the screen at its own pace while it watches
(Watch my screen), apart from the looks'
screenshots (one every 3 seconds). Read the screen on Companion ›
Reading sets the pace: twice a second, every second, every 2, 3 (the
default), 5 or 10 seconds. The choice is part of how you talk, so it is the
same on all your computers (
talk-preferences.json'sReadEveryMs). - At that pace, Martlet takes a full-size picture of the screen. It reads the picture when it changed since the last read, or when 9 seconds passed. It does one read at a time, off the UI thread and away from any reply, so a read that takes longer than the pace sets the pace. Nothing waits for a read. Reading more often finds new text sooner. It also uses more of the processor or graphics card that reads, so a graphics card in your Reading list keeps up best at twice a second.
- Martlet reads the screen at full size (at most 8192 pixels on the long edge). The vision model's look is downscaled to at most 1024 pixels for each monitor, and that makes normal 12-pixel text about 6 pixels high. OCR cannot read text that small. So for each read, Martlet copies the screen at full size, reads that copy and then clears it. In a test on a drawn 1920 x 1080 desktop with 108 lines of 12-pixel text, Windows OCR read 102 lines at full size in 138 ms, and no lines at 1024 x 576.
- Martlet takes out OCR's flicker (
ScreenText.Settle). OCR can misread a character for one read, for example "App1e" for "Apple". A line counts only when two reads in a row have it. So after a read with new lines, Martlet reads the next picture too, even when it looks the same (once). A line that counted stays for one more read when its place shows almost the same text (a misread) or nothing. A line whose place shows a different text in each of three reads, such as a timer, counts as it is. When another window comes to the front, the old text goes at once. A misread that comes only once never counts, never makes a look more likely and never goes to the model. - Martlet compares the words that count with the text it saw at the look before. New text makes a look more likely, even when the picture barely changed. The same words add nothing. Reading more often does not make looks more likely.
- When Martlet takes a look on its own, the newest text that counts (at most 10 seconds old) goes at the end of that look's message, after the glance prompt. The prompt is Text on screen on Companion › Prompts. Empty it to send no text. At most 60 lines and 1,500 characters go, in reading order.
- The conversation keeps only the look's short
[Screen]line, never the text that was read.
Companion › Reading's Now card shows the newest read: the lines, the engine, the read time, how long after the read before it started and how many lines wait for the next read to count.
Rules that keep conversations fast:
- What you type or say never carries the read text. Your replies do not get longer requests or wait for a read.
- The text goes only at the end of a look's request. The start of the request stays the same, so prompt caches still work.
- Lorebook keywords are matched against the glance prompt only, not the read text, so a look does not pull in different lore each time.
Only the screen is read, never a camera. Martlet's own windows are painted over before a read, as for every look, and a private window in front stops the read.
Companion › Reading › Read my screen now takes one full-size picture of the whole screen and reads it with the list. It shows the number of lines, the engine (with the Reading role's model), the time, the size of the screenshot and the text. With the Reading role, the picture goes to that computer as a JPEG. A large screenshot is sent at a lower JPEG quality when it would be more than the role's 4 MiB limit. The talk window's vision tooltip also shows the newest read while you watch.
The MCP tool reading_check reads this PC's Reading list (pool) and reads a drawn test picture
with known text through Windows OCR. It also reads a drawn 1920 x 1080 desktop
of small text at full size and at 1024 x 576, to show why Martlet reads at full
size, and a drawn 4K desktop. With dataDirectory, pace gives the saved
Read the screen choice. paceCheck runs the production read pace for each
choice over a simulated minute. With endpoint it also sends the same pictures to
a Reading worker on loopback. See MCP.
Martlet: download · repository · changelog · issues
These pages come from docs/wiki in the repository. To suggest a change, open an issue or a pull request there.
- Home
- Accounts and households
- Accounts and Household
- Android phones and tablets: what it takes, and the plan
- Martlet's API for other apps and scripts
- App Guides
- App Settings and Updates
- App guides: game and app knowledge from the web
- Architecture
- Bounded PCM playback
- Audio dependency inventory and notices
- Avatar guide: Live2D, VRM and speech animation
- V01a explicit microphone capture
- Chatterbox voice engines
- Cleaning up disk space
- One Martlet on all your computers
- Companion controls and behavior requirements
- Components, jobs and placement (design)
- Live conversation
- Creations
- Decision map: which file owns each decision
- Deep research: web search and long research jobs
- The desktop app: updates, notification area, exiting and appearance
- Linux and macOS desktop companion: research, decision and plan
- Developer Guide
- Dia voice engine
- Diagnostics
- Discord
- Architecture and provider contracts
- Discord
- Memory (P03a/P03b/P03c)
- Singing
- Desktop troubleshooting and local support
- Recognizing people by voice, and Parakeet
- Echo cancellation
- ElevenLabs voice: your cloned voice with tones
- F5 worker and reference-voice foundation
- FAQ
- First Steps
- Game state plan: implementation history
- Glossary: one name for each concept
- GPT-SoVITS voice
- Hosted Thinking: cloud models when Thinking can't run on this PC
- Installation and support
- Installing Martlet
- iOS and iPadOS: what it takes, and the plan
- Repository instructions for coding agents
- Repository knowledge base
- Knowledge base maintenance
- GitHub Wiki mirror
- Linux and Mac
- Listening and Voice ID
- Local model apps
- Lorebooks
- macOS: what it takes, and the plan
- Martlet MCP Server
- MCP in Martlet
- MCP: The app's window
- MCP: Apps, home and memory
- MCP: Characters
- MCP: Diagnostics and logs
- MCP: Computers, network and accounts
- MCP: Other
- MCP: Tool permissions
- MCP pages
- MCP: Server and protocol internals
- MCP: Settings
- MCP: Start here
- MCP: Thinking and models
- MCP: Voice and listening
- Memory
- Messaging apps
- Model catalog: sources, conflicts and design
- Motion host role
- Multiple Computers
- Your Martlet network
- OCR host role
- Share your language models: the OpenAI-compatible endpoint
- Packaging
- Perception worker contracts
- Personality and Characters
- Picture making
- Pictures and Creations
- Picture making host role
- Platforms: what each device can do
- Prerequisites: what Martlet bundles, installs for you, or needs from you
- Privacy and Safety
- Reading the text on your screen
- Wiki source
- Recommendation design: ask three questions, plan for three situations
- Recommended setups: one machine to unlimited budget
- Releasing
- Repository Layout
- Research and provenance ledger
- Resource footprints
- Roadmap
- Watch my screen: screen-aware commentary
- Search engine
- Image and audio models: who sees, who hears, who answers
- Setting Up a Host
- Setup, Windows credentials and local audio
- Sharing with Friends
- Singing
- Smart Home
- Smart home and cameras
- Source Projects
- Talking to Martlet
- Telegram and WhatsApp
- The Character
- Thinking
- Tools and MCP
- Troubleshooting
- Martlet desktop UI design
- User stories and target flows
- Voice activity detection
- Validating changes
- Validation and Testing
- Vision
- Voice latency: from you stopping talking to Martlet's voice
- Voice recognition host role
- Multi-engine voice setup and comparison
- Voices
- The welcome wizard
- XTTS-v2 voice engine