# NGauge OCR Migration Plan

Date: 2026-03-25

Source of truth: [../../../devDocs/NGauge_ocr_plans.md](../../../devDocs/NGauge_ocr_plans.md)

This module-local copy mirrors the OCR migration track so planning is visible from within the module repository context.

## Goal
Extract OCR template management and OCR processing workflows from NGauge_Base into a dedicated OCR module.

## Current Footprint
- Controller: NGauge_Base/backend/controllers/OcrController.php
- Models: NGauge_Base/backend/models/data/Ocr.php, NGauge_Base/backend/models/data/Ocrtemplate.php
- Views: NGauge_Base/backend/views/ocr/

## Target State
- OCR module owns template CRUD, file scan processing, and OCR mapping logic.
- NGauge_Base keeps only module mounting and compatibility routing.

## Migration Phases
1. Domain isolation
2. Controller and view extraction
3. Hardening and rollout
