feat(ocr): unify config, add manga translation pipeline and context lookahead
- Consolidate module configs into root config.example.json with ocr, vision, and epub sections - Split LLM OCR workflows into novel_ocr.py (prose) and manga_ocr_llm.py (manga) - Remove gemini_direct_ocr.py in favor of OpenAI-compatible API endpoints - Support direct manga translation via --translate, --target-lang, and glossary.md - Add bidirectional context support: past translations (--context-pages) and lookahead Japanese text (--context-pages-ahead) - Add per-page JSON audit logging under logs/ and expose OpenAI sampling parameters
This commit is contained in:
+5
-6
@@ -5,16 +5,15 @@ tqdm
|
||||
|
||||
# --- OCR backends: install only the one(s) you actually use ---
|
||||
|
||||
# ocr/openrouter_ocr.py (recommended) — any OpenAI-compatible API
|
||||
# ocr/novel_ocr.py (recommended for light novels) — any OpenAI-compatible API
|
||||
# ocr/manga_ocr_llm.py (recommended for manga) — same API, plus translation
|
||||
openai
|
||||
|
||||
# ocr/gemini_direct_ocr.py — direct Gemini API access
|
||||
# google-genai
|
||||
|
||||
# ocr/google_vision_ocr.py — Google Cloud Vision
|
||||
# ocr/google_vision_ocr.py — Google Cloud Vision (pure OCR, no translation)
|
||||
# google-cloud-vision
|
||||
|
||||
# ocr/local_mangaocr_ocr.py — fully offline, no cloud account
|
||||
# ocr/local_mangaocr_ocr.py — fully offline, no cloud account, pure OCR
|
||||
# also needed for ocr/manga_ocr_llm.py's --ahead-ocr-backend local
|
||||
# manga-ocr
|
||||
# opencv-python
|
||||
# numpy
|
||||
|
||||
Reference in New Issue
Block a user