Skip to main content

Realtime OCR & Multilingual Screen Magnifier (OCR_Magnifier_Realtime)

OCR_Magnifier_Realtime is a lightweight, asynchronous Python application and middleware designed for real-time desktop screen extraction, optical character recognition (OCR), and multilingual machine translation.

The framework operates in two distinct execution modes:

  1. Interactive Desktop GUI Application (ocr-desktop): A transparent, resizable floating screen magnifier with real-time text extraction and translation feedback windows.
  2. Headless API Middleware (ocr-api): A background service featuring zero-UI overhead, flat-file configuration parsing (Translation_Settings.txt), and automated log-based data output (Translation_Log.txt) for local inter-process communication (IPC) and automation pipelines.

Key Features

  • Asynchronous Execution Architecture: Non-blocking QThread pipeline prevents GUI freezing during screen capture, OCR processing, and API calls.
  • Dynamic Transparent Magnifier Overlay: Floating frame with customizable dimensions, visual dashed border indicators, and intuitive corner drag handles.
  • Multilingual Support: Real-time extraction and translation across multiple languages including English, German, French, Spanish, and Chinese Simplified.
  • Decoupled Local Middleware / API: Headless mode acts as a lightweight local server alternative using simple flat-file serialization for resource-constrained desktop environments.

Prerequisites

1. System Dependency: Tesseract OCR

This project requires the Tesseract OCR Engine installed on your operating system:

  • Windows: Download installer from UB-Mannheim/tesseract and ensure Tesseract is added to your system PATH. Download language packs (.traineddata files, e.g., deu.traineddata, fra.traineddata) into your tessdata directory for non-English OCR.
  • Linux (Ubuntu/Debian):
    sudo apt-get update
    sudo apt-get install tesseract-ocr tesseract-ocr-deu tesseract-ocr-fra tesseract-ocr-spa tesseract-ocr-chi-sim
    
  • macOS:
    brew install tesseract tesseract-lang
    

Installation

Install the package via pip:

pip install ocr-magnifier-realtime

Or install from source in editable mode:

git clone https://github.com/teody882011/OCR_Magnifier_Realtime.git
cd OCR_Magnifier_Realtime
pip install -e .

Usage Guide

1. Interactive Desktop GUI Application

Run the interactive desktop tool directly from your CLI:

ocr-desktop
  • Controls: Position the transparent frame over any text on your screen. Adjust the width and height inputs or drag using the red corner dots. Select target languages dynamically using the dropdown menu.

2. Headless API Middleware

Run the headless API background service from your CLI:

ocr-api

Configuration (Translation_Settings.txt)

The headless middleware automatically reads configuration properties from Translation_Settings.txt located in your current execution directory:

Source_Image=English;
Image_To_Text_OCR=German;
Translation=English;
Magnifier_Frame_Size=(700, 450);
Magnifier_Frame_TopPosition=(100, 100);

Data Output Log / Local API (Translation_Log.txt)

Every execution loop (default: 1.5s), the headless service updates and overwrites Translation_Log.txt with the latest extracted payload data:

Timestamp: 2026-10-19 00:30:12
OCR_Language: German
Translation_Language: English
----------------------------------------
[Original_Text]
Maschinelles Lernen ermöglicht Systemen, aus Daten zu lernen.

[Translated_Text]
Machine learning allows systems to learn from data.

External consumer applications or scripts can read Translation_Log.txt in real time to consume extracted and translated text streams.


Project Structure

OCR_Magnifier_Realtime/
├── pyproject.toml
├── README.md
├── LICENSE
├── src/
│   └── ocr_magnifier_realtime/
│       ├── __init__.py
│       ├── api_app.py
│       ├── desktop_app.py
│       └── worker.py
└── tests/
    └── __init__.py

License

Distributed under the MIT License. See LICENSE for details.

  • Copyright Notice: Copyright (c) 2026 Teody Arboneda Banagan. All rights reserved.
  • Open Source License: Distributed globally under the highly permissive MIT License.

🔬 About the Author & Project Maintainer

Teody Arboneda Banagan, PhD (Candidate) Solution Architect, AI Engineer and Researcher

Professional Stature & Domain Expertise

The structural maintenance, systems design, and algorithmic orchestration of this framework are driven by 20 years of progressive IT experience and top-tier credentials spanning international enterprise teams:

  • Doctor of Philosophy (PhD) in IT Candidate — University of San Carlos, specializing in Advanced IT Frameworks, Robotics Process Automation, Computer Vision, and Enterprise AI Architectures.
  • Master in Information Technology (MIT) — Cebu Institute of Technology - University.
  • Peer-Reviewed Reviewer & Author — Invited Peer Reviewer for Scopus-indexed and Web of Science international journals.

Metadata

Release files for ocr-magnifier-realtime 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ocr-magnifier-realtime 0.1.0
File Size Uploaded Provenance Actions
ocr_magnifier_realtime-0.1.0.tar.gz 10.3 kB Without provenance Details for ocr_magnifier_realtime-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ocr-magnifier-realtime 0.1.0
File Interpreter ABI Platform Actions
ocr_magnifier_realtime-0.1.0-py3-none-any.whl Python 3 none any Details for ocr_magnifier_realtime-0.1.0-py3-none-any.whl

Total release size: 20.2 kB

Release files / ocr_magnifier_realtime-0.1.0.tar.gz

Download URL ocr_magnifier_realtime-0.1.0.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2f9983e6e16d1aa39076ce993971c63fe6966f0eecb56c7bd00b6250f9044573
BLAKE2b-256 checksum
How to use checksums
77cd4a9bb97a695a3bfb5afe9b4a87ff6a50215ad736c10ea15407ffbd94f681
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / ocr_magnifier_realtime-0.1.0-py3-none-any.whl

Download URL ocr_magnifier_realtime-0.1.0-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e55bea914e4f279f0465c3993f8007e04295fc993df83a595ef3f0fa65c5655
BLAKE2b-256 checksum
How to use checksums
cf65fb4d44abf28b1384fbd406e21465f27bbb7891a4222b7823721a0183089e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Security for ocr-magnifier-realtime 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page