|
|
||
|---|---|---|
| .. | ||
| README.md | ||
| SKILL.md | ||
README.md
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
- Converts HEIC to PNG if needed
- Checks and applies EXIF rotation
- Extracts text using available OCR method
- Translates to professional English
- Generates bilingual PDF
Perfect For
- 🇦🇺 Australia visa applications
- 🇺🇸 USA visa applications
- 🇨🇦 Canada visa applications
- 🇬🇧 UK visa applications
- 🇪🇺 EU visa applications
License
MIT