Image to Manuscript (Native Vision Transcription)
Core Principles
- Transcribe directly from images. Use the model's native vision to read the page; do not call any OCR engine, OCR API, OCR command-line tool, or document conversion pipeline with OCR.
- Faithfulness over fluency. Uncertain characters must not be silently completed based on context; leave traceable markers.
- Page-by-page closed loop. Each page must go through: recognition → record first/last → review → mark complete.
- No exaggeration. Do not claim "fully accurate," "extremely low error rate," or give unverified accuracy scores until each page has been independently double-checked.
- Privacy protection. Default to processing only local/in-session images; do not upload to external websites or third-party services.
Explicit Prohibitions
Unless the user explicitly changes the requirements, do NOT:
- Run
tesseract,paddleocr,easyocr,ocrmypdf, Apple Vision OCR, Google/Azure/AWS OCR, or similar services; - Use hidden text layers from PDFs, pre-existing OCR layers, or auto-caption layers to pretend to have "read from the image";
- Replace original text on the page with vague semantic completions;
- Claim the full text is complete after skipping pages;
- First generate a draft with OCR, then make only minor manual edits, but describe the result as pure visual transcription.
Allowed auxiliary operations: rotate images, crop edges, zoom, brighten, enhance contrast, create an image inventory, count characters, generate manuscript files. These operations must not include text recognition.
Before Starting
1. Confirm Input
- Verify that all target images are accessible in the current session or local file system.
- Count the number of images, file names, dimensions, orientation, and any obvious missing or duplicate pages.
- When images are missing, only ask about the missing ones; do not pretend the images are available.
You can run:
python scripts/inventory_images.py <image_directory>
This script only reads file names and image dimensions; it does not recognize text.
2. Determine Page Order
First, establish an initial order based on file names and upload order. Then correct it using the following clues:
- Titles, problem numbers, page numbers;
- Whether the last sentence of the previous page connects with the first sentence of the next page;
- Structural cues like "Problem 1 / Problem 2," "Reference Answers (I) / (II)";
- Adjacent page content visible at the edges of the same page should only be used as clues, not included in the current page's main text.
If the order is uncertain, mark it as "[page order to be confirmed]" and do not forcibly concatenate.
3. Select Output Mode
When the user does not specify, generate by default:
- Faithful Manuscript: Preserve titles, paragraphs, problem numbers, punctuation, and page boundaries as much as possible;
- Cleaned-up Manuscript: Fix line breaks caused by paper layout, unify spaces and paragraphs, but do not rewrite the original meaning;
- List of Uncertainties: List all positions where text cannot be confirmed, is cropped, or is suspected to be a typo.
If the user wants only one format, output accordingly.
Page-by-Page Transcription Process
1. Batch Processing
- Process 1–4 pages at a time; for dense small-font pages, prefer 1–2 pages per batch.
- Write the intermediate manuscript immediately after completing each batch; do not keep dozens of pages entirely in the temporary context.
- Add an internal page marker for each page, e.g.,
<!-- PAGE: Image_001.jpg -->. These can be removed in the final cleaned-up manuscript but are recommended for the faithful manuscript.
2. Visual Reading
For each page, read in the following order:
- Page title and problem number;
- Read paragraph by paragraph from top to bottom, left to right;
- Check indentation, numbering, parentheses, numbers, proper nouns;
- Record the first 12–20 characters and the last 12–20 characters of the page's main text;
- Check page edges, spine, curvature, glare, and cropped areas.
Do not mistake adjacent visible content from another page, desk patterns, or handwritten annotations as main text. Handwritten annotations should only be transcribed separately when the user requests it, and marked as "[handwriting]".
3. Doubt Markers
Use uniformly:
〔unintelligible〕: Cannot be read clearly with no reliable candidate;〔suspected: A │ alternative: B〕: Two or more plausible readings exist;〔cropped missing character〕: The original image did not capture the full content;〔page order to be confirmed〕: Page connection cannot be determined;〔suspected original error〕: The page itself may contain a typo, but still transcribed as-is.
Do not use square brackets to fill in words that "should be" there without stating the basis.
4. Page Ledger
Maintain a ledger that at least includes:
| Page/File | Opening Text | Closing Text | Doubt Count | Status |
|---|---|---|---|---|
| Image_001.jpg | ... | ... | 0 | Reviewed |
You can copy assets/transcription-ledger.md as a template.
Secondary Review
Each page must be re-read from the image for a second check, focusing on:
- Whether titles, problem numbers, and paragraphs are missing;
- Homophone/similar-looking characters: 的/地/得, 村委/村两委, 群众/群体, etc.;
- Person names, place names, policy names, institution names;
- Numbers, dates, amounts, percentages, phone numbers, character counts;
- Negation words like "不, 未, 無" and degree words like "僅, 均, 全部" that have high impact;
- Whether the beginning and end of the page repeat or break with adjacent pages;
- Whether text visible from the adjacent page was mistakenly recorded;
- Whether line beginnings or endings were missed due to page curvature.
After completion, update the ledger status to "Reviewed". Do not mark pages with remaining doubts as error-free.
Long Document Integrity Check
After transcription is complete:
- Verify the total number of images against the ledger page count;
- Search for all doubt markers;
- Check for duplicate paragraphs, missing page markers, and abnormal sentence breaks;
- Calculate the actual character count; do not estimate by feel;
- Confirm that there are no large differences in content between the faithful manuscript and the cleaned-up manuscript.
You can run:
python scripts/check_manuscript.py <manuscript_file>
This script only counts characters, page markers, and doubt markers; it does not recognize images.
Output Rules
Faithful Manuscript
- Retain problem numbers, titles, and original paragraphs;
- Retain phrasing and grammar that are clearly present in the original;
- Natural line breaks from paper can be merged, but sentences must not be altered;
- Recommended format: Markdown or TXT.
Cleaned-up Manuscript
- Fix line breaks caused by layout;
- Unify Chinese punctuation, spaces, and paragraph spacing;
- Do not freely polish, trim, or rewrite;
- If obvious layout errors are fixed, note them in the doubt list.
Word Document
When the user requests DOCX:
- Use heading levels, body paragraphs, and reasonable margins;
- Do not force each original image page into a separate Word page unless the user requests layout replication;
- After generation, check for garbled characters, missing characters, misalignment, and abnormal page breaks;
- Also retain a plain text or Markdown version as a checkable draft.
Quality Report
On delivery, you must state:
- Total number of images processed and total pages;
- Whether OCR was used: explicitly write "No OCR used" or "OCR used with user consent";
- Number of pages reviewed;
- Remaining number of doubts, cropping, or page order issues;
- Output file names;
- Accuracy can only be estimated if there is a sampling or word-by-word comparison basis, and the method must be explained. Without independent comparison, write "No independent accuracy measurement conducted."
Recommended delivery statement:
Processed 18 images; all 18 pages underwent two rounds of visual review; no OCR was used. The manuscript still retains 7 doubt markers, mainly located in curved spine and edge-cropped areas. No independent accuracy measurement was conducted.
Failure and Degradation Strategy
- If a page is too blurry: complete other pages first, then list the pages that need re-photographing separately;
- If a page is severely skewed: rotate/crop first, then read from the image; do not automatically OCR;
- If cross-page text is cropped: retain
〔cropped missing character〕and request a supplement of adjacent images; - If the document is too long causing context pressure: save to file in batches, use the ledger to recover progress;
- If the model cannot reliably see: be honest; do not fill in with semantic guesses.
Completion Criteria
Only consider the task complete when all the following conditions are met:
- All available images have been registered;
- Each page has a record of first/last text and status;
- Each page has undergone at least one transcription and one visual review;
- All unresolved issues are captured in the doubt list;
- Output files can be opened and the main text is not empty;
- The final response does not fabricate accuracy rates or conceal OCR usage.