LION is an add-on that performs automatic Optical Character Recognition (OCR) on specific screen areas at predefined intervals.
Why is it called "smart"? Not because I developed it, nor because the "i" makes a clever acronym.
Since it performs repeated OCR scans on the same screen area, it would normally read identical text multiple times - which isn't ideal. To solve this, I implemented a mechanism that prevents speech output when newly recognized text closely matches previous results.
My primary purpose for developing this add-on was subtitle reading. Its working principle enables it to read various types of screen-based subtitles, including those on YouTube, Netflix, Bilibili, embedded subtitles in AVI files, and even live TV captions!
When using, always set videos to full-screen mode as it mimics human visual perception. Larger text yields better recognition results, though accuracy isn't perfect. For optimal performance:
- Enlarge subtitle fonts when possible
- Use high-resolution displays
The OCR engine isn't flawless and may struggle with certain graphics.
Beyond subtitles, it can monitor screen text that isn't directly accessible, like video game menus. However, it cannot recognize highlighted text selections.
To start with default settings: Press NVDA+ALT+N. LION will perform full-screen OCR every 1 second and only speak when text changes.
For customization:
1. Navigate to
2. Example use case: Video files might display logos in the top-left corner that get read alongside subtitles. The next section explains solutions.
Available settings:
1. OCR Interval: Frequency of OCR operations (0.1-10 seconds)
2. OCR Target: Screen area to scan (Options: Current Control/Current Window/Navigation Object/Full Screen)
3. Crop Pixels (Top/Bottom/Right/Left): Trims unwanted areas in Full Screen/Current Window modes. Useful for ignoring persistent logos - e.g., cropping 10% from top removes top-left logos. For efficiency, you might crop 70% from top as subtitles typically occupy the lower third.
Fixed a major YouTube full-screen mode bug
Initial release