visa-doc-translate

Skill

把存款、在职、收入、退休证明等签证材料照片 OCR 识别后译成英文,生成原件与译文对照的双语 PDF。需要本地 Python(pillow、reportlab)和 OCR 工具(macOS Vision、EasyOCR 或 Tesseract)。译文页自带「认证翻译」字样但并非正式认证:姓名、金额、日期须人工核对,正式递交可能仍需有资质的翻译机构出具。

affaan-m/ECC · skills/visa-doc-translate312k
README

Visa Document Translator

Automatically translate visa application documents from images to professional English PDFs.

Features

  • Automatic OCR: Tries multiple OCR methods (macOS Vision, EasyOCR, Tesseract)
  • Bilingual PDF: Original image + professional English translation
  • Multi-language: Supports Chinese, and other languages
  • Professional Format: Suitable for official visa applications
  • Fully Automated: No manual intervention required

Supported Documents

  • Bank deposit certificates (存款证明)
  • Employment certificates (在职证明)
  • Retirement certificates (退休证明)
  • Income certificates (收入证明)
  • Property certificates (房产证明)
  • Business licenses (营业执照)
  • ID cards and passports

Usage

/visa-doc-translate <image-file>

Examples

/visa-doc-translate RetirementCertificate.PNG
/visa-doc-translate BankStatement.HEIC
/visa-doc-translate EmploymentLetter.jpg

Output

Creates <filename>_Translated.pdf with:

  • Page 1: Original document image (centered, A4 size)
  • Page 2: Professional English translation

Requirements

Python Libraries

pip install pillow reportlab

OCR (one of the following)

macOS (recommended):

pip install pyobjc-framework-Vision pyobjc-framework-Quartz

Cross-platform:

pip install easyocr

Tesseract:

brew install tesseract tesseract-lang
pip install pytesseract

How It Works

  1. Converts HEIC to PNG if needed
  2. Checks and applies EXIF rotation
  3. Extracts text using available OCR method
  4. Translates to professional English
  5. Generates bilingual PDF

Perfect For

  • Australia visa applications
  • USA visa applications
  • Canada visa applications
  • UK visa applications
  • EU visa applications

License

MIT