# TRANSVERSE OCR — Image Interpretation Turn scanned PDFs into searchable text, a review report and JSON with coordinates, scores, alternative readings and processing provenance. Compare important names, dates and numbers with the scan: OCR can miss or misread text. A score is not a calibrated probability of correctness, and repeated agreement does not prove a reading is correct. Processing happens on your own computer, or on an explicitly configured company-controlled server. Prepared OCR works without Internet. There is no cloud OCR, translation service, telemetry or CDN. **GPU inference is mandatory**; PDF rendering, image preparation, storage and the interface also use CPU resources. Whenever possible, keep and update the original editable document (such as DOCX) and use a parser to extract its stored text directly. OCR estimates text from pixels and can substitute, omit or insert characters. Direct parsing avoids visual-recognition errors, but still needs validation for tables, annotations and other document structures. A scan embedded in Word remains an image. This application currently processes PDFs; it does not include a DOCX parser. ## Choose your setup | Your computer | Recommended path | What you install | | --- | --- | --- | | Any computer with access to an authorized company deployment | Open the HTTPS address supplied by IT | A current browser only; no local GPU, Python or Docker | | Linux x86_64 with compatible NVIDIA GPU | Docker Engine + Compose + NVIDIA Container Toolkit | Python 3.12 to run the commands below; Docker prerequisites | | Windows 11 x86_64 with compatible NVIDIA GPU | Docker Desktop using WSL2 and Linux containers | Python 3.12, WSL2, Docker Desktop; Windows NVIDIA driver | | Apple Silicon Mac | Native ARM64 Python with MPS | macOS 14+, native Python 3.12, Xcode command-line tools | | No supported local GPU | Use an authorized company deployment if one exists | Ask IT for its address; a server is not yet provided by this project | Company access, hosting and authentication are **TO BE DEFINED WITH THE IT TEAM**. Native Windows installation is an experimental technical path; it is not the recommended colleague installation. A CUDA Docker image cannot use an Apple GPU. See the [compatibility and verification record](docs/COMPATIBILITY.md) for tested and untested combinations. ## Get the application Download the source ZIP from the private [AirQ repository](https://github.com/AirQ-AD/TRANSVERSE-OCR_images_interpretation) using **Code → Download ZIP**, then extract it to a writable folder. Your GitHub account needs repository access. Open a terminal in that folder. Git users can instead run `git clone https://github.com/AirQ-AD/TRANSVERSE-OCR_images_interpretation.git` and enter the cloned folder. You do not need Make. Installation and model preparation need Internet access or [an IT-prepared offline bundle](docs/OFFLINE.md). Budget at least 20 GiB free disk for a Docker build, 12 GiB for native installation, additional space for documents/results and backups, and sufficient GPU memory for your workload. No fixed GPU-memory size guarantees every PDF will fit. ## Linux with NVIDIA Ask an administrator to install Docker Engine, the Compose v2 plugin, a suitable NVIDIA driver (conservative CUDA 12.8 target: Linux driver 570.26 or newer), and NVIDIA Container Toolkit configured for Docker. Confirm `docker info` and `nvidia-smi` work. See [prerequisites](docs/COMPATIBILITY.md); installing these system components may require administrator access. Run application commands as your normal account; administrator access is for the system prerequisites. In Bash, with Python 3.12 installed: ```bash python3.12 manage.py setup --runtime docker --backend cuda python3.12 manage.py models --profile en python3.12 manage.py start ``` ## Windows with NVIDIA Use a currently supported Windows 11 x86_64 release, Python 3.12 (with the `py` launcher), current Windows NVIDIA driver (conservative target: 570.65 or newer), WSL2 2.1.5+ and Docker Desktop configured for **WSL2 / Linux containers**. Enable hardware virtualization. IT may need to install or approve these prerequisites. Docker Desktop is not supported on Windows Server. Open PowerShell in the extracted folder: ```powershell py -3.12 manage.py setup --runtime docker --backend cuda py -3.12 manage.py models --profile en py -3.12 manage.py start ``` ## Apple Silicon Mac Use macOS 14 or later and native ARM64 Python 3.12 with its standard venv/ensurepip components; Rosetta/x86 Python is unsuitable. Install Apple's command-line tools with `xcode-select --install` if needed. This native MPS path is implemented but requires hardware validation before it is described as tested. In Terminal: ```bash python3.12 manage.py setup --runtime native --backend mps python3.12 manage.py models --profile en python3.12 manage.py start ``` ## Daily use Open **http://127.0.0.1:8765** after starting. The application prints the configured URL if you change its port. Personal mode listens on localhost and needs no enterprise login. Read the concise **[English user guide](ocr_local/web_assets/guide.html)**, also available from the application in another browser tab. 1. Choose your **interface language** in the visible language selector. English is the default. French, Hindi, Arabic, Urdu, Croatian, Serbian Latin/Cyrillic, Spanish, Turkish and Italian are available. This preference never translates the document or changes its OCR profile. 2. Independently choose the document's **OCR profile**, then **General document** or an appropriate configured template. Only prepared, compatible OCR profiles can be used. AQ109 is retained for authorized use; its company template needs permission before redistribution. 3. Upload a PDF, wait for processing, and compare text with the scan. Search and filter review warnings. Download TXT, JSON or the HTML report. Keep the original PDF and evidence for review. Prepare an additional OCR profile explicitly while stopped, for example `python3.12 manage.py models --profile hi`. Use `ar` for Arabic, `ur` for Urdu, `sr-Latn` or `sr-Cyrl` for Serbian. See [all OCR profiles and limits](docs/OCR_PROFILES.md). Prepared profiles coexist. New settings apply to new jobs; completed evidence is preserved. Use the same Python prefix as your setup (`py -3.12` in PowerShell, `python3.12` on Linux and Mac): ```bash python3.12 manage.py status python3.12 manage.py doctor python3.12 manage.py logs python3.12 manage.py stop python3.12 manage.py start ``` Stop and restart preserve history. Default private storage is `data/web`; models are in `models`, beside `manage.py`. Back them up before upgrades. To change settings, copy `.env.example` to `.env` and edit that configuration file; on Apple Silicon set `OCR_DEVICE=mps`. See [configuration](docs/CONFIGURATION.md). Do not put documents or secrets in GitHub. For a safe sample, run `python3.12 manage.py demo --output data/demo.pdf` and upload that PDF. ## If something goes wrong | Problem | Next action | | --- | --- | | Python or Docker command missing | Install the prerequisites, reopen the terminal, check Python 3.12 and `docker compose version` | | GPU unavailable | Run `doctor`; check driver and container GPU exposure. Use the company browser alternative if available | | Models missing or damaged | Stop, run `models --profile ` explicitly, then start | | Port busy | Stop its owner or set `OCR_PORT=8766` in `.env`, then start and use the printed URL | | Upload or processing fails | Check `logs`, disk space, PDF/page limits and GPU memory; consult troubleshooting | | Proxy or certificate error during setup | Ask IT to configure approved proxies, certificate authorities and mirrors; keep TLS verification enabled | [Administrator worksheet](docs/COMPANY.md) · [Troubleshooting](docs/TROUBLESHOOTING.md) · [Backup, restore and upgrade](docs/OPERATIONS.md) · [Development and tests](docs/DEVELOPMENT.md) · [Third-party notices](docs/THIRD_PARTY.md) · [Publication and release checklist](docs/PUBLICATION.md)