Skip to content

About

Offline AI OCR studio, vector PDF/manga restorer & universal exporter: PDF, Fixed-Layout & Reflowable EPUB 3, Yomitan HTML/EPUB library hub, DOCX, Markdown, JSON, Aozora & clean text.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🖋️ Scan2Vector

Offline AI OCR Studio, Vector PDF & Manga Restorer, and Universal E-Book Exporter

Transform scanned PDFs, books, comics, manga archives, and images into razor-sharp vector PDFs, Fixed-Layout & Reflowable EPUB 3 ebooks, Yomitan-ready interactive HTML readers, Word (.docx), Markdown, JSON, Aozora Bunko, and clean text — 100% offline on Windows.

Release UI: PySide6 Studio Offline AI OCR License: PolyForm Noncommercial Platform: Windows x64

⬇️ Download Portable Windows (.zip) • Supported Inputs • All Export Formats • 3 Processing Modes • Yomitan Library Hub • OCR & Languages • Quickstart • License


Scan2Vector Studio UI

📥 Supported Inputs

Scan2Vector automatically detects the input type, sorts pages in natural numerical order (ignoring OS junk like __MACOSX), and selects the optimal pipeline:

Input Type Supported Formats / Extensions Notes
PDF Documents .pdf Scanned books, light novels, textbooks, forms, tables, and illustrated PDFs
EPUB E-Books .epub Fixed-Layout manga EPUBs (exact OPF spine page order) and Reflowable EPUB books via Drag & Drop
Manga & Comic Archives .zip, .cbz, .rar, .cbr, .7z, .cb7 Direct streaming without manual extraction; auto-activates Manga Mode
Image Folders Any directory of page images Natural page sorting (page_1, page_2, …, page_10)
Single Images .png, .jpg, .jpeg, .webp, .bmp, .tif, .tiff Direct OCR, restoration, or vector export from individual scans/screenshots

📤 Export to Any Format

Export any processed document, novel, textbook, or manga into every major visual, e-book, web, office, and structured text format — individually or all at once in a single run:

Visual & E-Book Formats

Format Extension Description
Searchable / Pure-Vector PDF .pdf Mode 1 Sandwich PDF (restored ink + invisible OCR), Mode 2 Pure-Vector Multilingual PDF (resolution-independent TrueType + ruby), or Mode 3 Pure-Vector Manga PDF (purified snow-white speech bubbles + bold Comic Antic typography + R2L/L2R viewer direction)
Fixed-Layout EPUB 3 .epub Spec-compliant pre-paginated manga/comic EPUB 3 with high-resolution artwork, selectable positioned OCR overlays, RTL/LTR page progression, TOC (nav.xhtml + toc.ncx), and uncompressed mimetype
Reflowable EPUB 3 .epub Clean text e-book ready for Kindle, Kobo, Apple Books, ReadEra, and Yomitan — supports vertical Japanese (vertical-rl), <ruby> furigana, Cyrillic, Latin, and RTL scripts
Interactive Manga HTML Reader .html Self-contained offline Mokuro-style reader with real-pixel Zoom (30%–350%, Fit H, Fit W, 100%, Ctrl+Wheel), Single / 2-Page spread, RTL / LTR toggle, MangaAntic typography, and native Yomitan / Yomichan hover scanning

Document, Web & Structured Text Formats (Universal 8-Format Text Extractor)

Format Extension Description
Microsoft Word .docx Clean formatted Word document with headings, merged paragraphs, and native BiDi RTL support for Arabic/Hebrew
Markdown .md Clean page-structured Markdown ready for Obsidian, Notion, GitHub, and study notes
Page-Marked Plain Text .txt Clean UTF-8 text separated by --- [Page N] --- headers with zero control-character artifacts
Continuous Reading Text _plain.txt De-hyphenated, paragraph-joined continuous prose with page headers/footers stripped
Interactive Reading HTML .html Clean offline browser reading view with Light/Sepia/Dark themes, live text search, font-size controls (A+/A−), page jump selector, one-click Copy Plain Text, Vertical/Horizontal toggle, and Show/Hide Furigana toggle
Structured JSON .json Machine-readable per-page metadata, detected language, writing mode, paragraphs, and lines for automation, search indexing, and data pipelines
Aozora Bunko Ruby Text _aozora.txt Classic Japanese Aozora ruby notation (漢字《かんじ》) automatically generated for Japanese documents
Reflowable E-Book .epub Generated alongside text exports so any extracted book can immediately be loaded onto an e-reader

One-Click Output Format Choices in the App

Pick any individual format or a combined preset directly from the Output Format dropdown:

  • PDF (Selectable Text)
  • EPUB 3 (E-Book / Manga)
  • Interactive HTML Reader (.html)
  • Microsoft Word (.docx)
  • Plain Text (.txt)
  • Markdown (.md)
  • Structured JSON (.json)
  • PDF + EPUB 3 (Both)
  • PDF + EPUB 3 + HTML (All Visual)
  • All Text Formats (TXT, Plain, MD, DOCX, JSON, HTML, EPUB)

✨ Three Processing Modes

1. Calligraphic Restoration & Sandwich PDF (Mode 1)

  • Subpixel Edge-Preserving Denoising: Eliminates paper yellowing, scan shadows, bleed-through, and halftone noise while keeping original ink strokes razor-sharp on a pure white background.
  • Intelligent Speckle Removal: Removes scanner dust without eroding delicate furigana, diacritics, commas, or dots.
  • Dual-Layer Sandwich PDF: Embeds an invisible, precisely aligned OCR text layer beneath the restored page for full search, copy-paste, and dictionary lookup.

2. Pure-Vector Multilingual Re-Typesetter (Mode 2)

  • 100% Vector Output (Zero Raster Blur): Reconstructs scanned pages as resolution-independent embedded TrueType vector fonts across all languages (Japanese, Bulgarian, Cyrillic, Latin, CJK, Arabic/Hebrew RTL).
  • Japanese Vertical Novels (tategaki) & Textbooks (yokogaki):
    • Authentic <ruby> furigana placement, proper vertical ellipses (……), thin vertical dashes, rotated brackets (「」『』), and tate-chu-yoko pairs (!!, !?).
    • Preserves complex horizontal layouts, table gridlines/dividers, bordered callout boxes, checkboxes (☑), bold headings, and publisher emblems.
  • Configurable Font Scale: Choose from 85%, 90%, 95%, 100% (Original Match), 110%, 120%, or 130%.

3. Pure-Vector Manga & Illustrated Book Engine (Mode 3)

  • Spotless Snow-White Speech Bubble Purification: Cleans original raster text and stray furigana specks inside enclosed speech bubbles to pure #FFFFFF with zero smudging, while leaving speech-bubble outlines, artwork, screentones, and full-color covers 100% untouched.
  • Authentic Bold Comic Antic (アンチック) Typography: Pairs bold Gothic kanji/punctuation with boldened Mincho kana, adapting stroke weight automatically to match emphasis/shouting lines.
  • Special Panel Handling:
    • White-Halo Monologues floating directly over gray/detailed artwork.
    • White-on-Black Boxes (e.g., author's afterwords & dramatic captions) typeset in crisp white vector ink on solid black.
  • Smart Manga Reading Order: Automatic RTL (right-to-left) or LTR (left-to-right) speech-bubble ordering and furigana pairing so text copies and reads in natural sequence.

📚 Yomitan / Yomichan Manga & EPUB 3 Library Hub

Every manga export automatically creates Open_Yomitan_Reader.bat in the output directory, and a ready-to-use copy is bundled directly next to PDF_Enhancer.exe:

  • Works Immediately with Yomitan / Yomichan: Launches a zero-dependency local HTTP server (http://127.0.0.1:<port>/) using built-in Windows PowerShell — no Python installation and no browser file:/// permission tweaks needed.
  • Local Library Browser:
    • Automatically scans and lists all .html and .epub manga/books in the current folder and subfolders, with instant search and All / HTML / EPUB 3 filter pills.
    • Open File (📄) and Add Folder (📁) buttons trigger native Windows file/folder pickers directly from the browser so you can open manga stored anywhere on your PC.
    • Supports drag-and-drop: drop any .html file, .epub file, or manga folder onto Open_Yomitan_Reader.bat.
  • Full HTML & EPUB 3 Reader:
    • Streams standalone Mokuro-style .html manga readers at full speed with a floating 📚 Библиотека return button.
    • Built-in EPUB 3 Yomitan Reader supporting both Fixed-Layout Manga EPUB 3 (real un-transformed pixel zoom 30%–350%, Single/2-Page, RTL/LTR, Hover/Highlight/Solid Yomitan overlays) and Reflowable EPUB 3 books (font size, vertical/horizontal writing, <ruby> furigana, light/dark theme).

🧠 Offline AI & Multilingual OCR Engines

All OCR runs 100% locally and offline — no cloud APIs, no rate limits, no data leaves your machine:

  • 🇯🇵 Japanese Neural AI (NDLOCR-Lite ONNX): Specialized layout & text recognition for vertical novels, horizontal textbooks, forms, and manga speech bubbles.
  • 🇧🇬 Bulgarian Neural AI (SLEEP ONNX): Dedicated offline ONNX Runtime OCR supporting both modern Bulgarian and pre-1945 historical orthography (ѣ, ѫ, ъ).
  • 🌐 Multilingual Tesseract + Auto Language Detection: Automatic script & language detection plus auto-downloading portable language packs across 17 presets:
    • Auto-detect, Japanese (Vertical + Horizontal, Vertical, Horizontal), Bulgarian, Bulgarian + English, English, German, French, Spanish, Italian, Russian, Chinese (Simplified & Traditional), Korean (Vertical + Horizontal, Horizontal), and Arabic.
  • ⚡ Smart Hardware Detection: Automatically detects CPU, AMD ROCm, NVIDIA CUDA, and DirectML environments with safe automatic fallback to CPU.

🖥️ Modern Studio UI & Fast Text Extraction

  • Bilingual Dark Studio Interface: Instant English / Bulgarian (EN / BG) UI switching.
  • Smart Drag-and-Drop Card: Live page thumbnail preview, page count, file type badge, and automatic mode suggestion (dropping .cbz / .rar / image folders automatically activates Manga Mode).
  • One-Click Fast Text Extraction: Extract full text from any PDF, manga archive, or image folder into an interactive preview dialog with instant clipboard copy, live text search, and one-click export to all 8 text formats.
  • Multi-Threaded & Cancelable: Background worker threads with real-time progress bar, elapsed timer, graceful cancellation, and quick-open completion banner.

🛠️ Quickstart (Windows 10 / 11 x64)

No Python installation or external dependencies required:

  1. Download Scan2Vector_v5.0.0_Windows_x64.zip from GitHub Releases.
  2. Extract the archive to any folder on your PC.
  3. Run PDF_Enhancer.exe to open the Studio app, or double-click Open_Yomitan_Reader.bat to browse and read your .html and .epub manga with Yomitan / Yomichan.

Bug reports & feature requests: Feel free to open an issue in the Issues tab!


📄 License & Commercial Use

Scan2Vector is distributed under the PolyForm Noncommercial License 1.0.0 (see LICENSE.md).

  • Free for Personal & Noncommercial Use: Individuals, students, researchers, hobbyists, and noncommercial personal projects may download and use Scan2Vector completely free of charge.
  • Commercial Licensing (Businesses, Publishers, Agencies, OEM / SaaS): Any commercial use — including internal business workflows, publishing houses, commercial digitization, or integration into commercial software/services — requires a separate commercial license from the author. Open an issue or contact the author via GitHub (@veselinve) for business, team, or OEM licensing inquiries.
  • Third-Party Notices: See THIRD_PARTY_LICENSES.txt for full license attributions of all bundled open-source libraries and models.

About

Offline AI OCR studio, vector PDF/manga restorer & universal exporter: PDF, Fixed-Layout & Reflowable EPUB 3, Yomitan HTML/EPUB library hub, DOCX, Markdown, JSON, Aozora & clean text.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors