mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-17 23:53:30 +08:00
feat(skills): add visa-doc-translate skill
Add automated visa document translation skill that: - Supports multiple OCR methods (macOS Vision, EasyOCR, Tesseract) - Translates documents to professional English - Generates bilingual PDFs (original + translation) - Handles various document types (bank statements, employment certificates, etc.) - Perfect for visa applications to Australia, USA, Canada, UK, EU Tested with retirement certificates and other official documents.
This commit is contained in:
86
skills/visa-doc-translate/README.md
Normal file
86
skills/visa-doc-translate/README.md
Normal file
@@ -0,0 +1,86 @@
|
||||
# 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
|
||||
|
||||
```bash
|
||||
/visa-doc-translate <image-file>
|
||||
```
|
||||
|
||||
### Examples
|
||||
|
||||
```bash
|
||||
/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
|
||||
```bash
|
||||
pip install pillow reportlab
|
||||
```
|
||||
|
||||
### OCR (one of the following)
|
||||
|
||||
**macOS (recommended)**:
|
||||
```bash
|
||||
pip install pyobjc-framework-Vision pyobjc-framework-Quartz
|
||||
```
|
||||
|
||||
**Cross-platform**:
|
||||
```bash
|
||||
pip install easyocr
|
||||
```
|
||||
|
||||
**Tesseract**:
|
||||
```bash
|
||||
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
|
||||
Reference in New Issue
Block a user