Skip to content
cccskills
FreePublished on GitHub

visa-doc-translate

ビザ申請書類(画像)を英語に翻訳し、原本と翻訳を含むバイリンガルPDFを作成

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md4.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

ビザ申請のための書類翻訳をサポートします。

手順

ユーザーが画像ファイルパスを提供した場合、確認を求めずに以下のステップを自動的に実行してください:

  1. 画像変換: ファイルがHEICの場合、sips -s format png <input> --out <output>を使用してPNGに変換

  2. 画像回転:

    • EXIFオリエンテーションデータを確認
    • EXIFデータに基づいて画像を自動回転
    • EXIFオリエンテーションが6の場合、反時計回りに90度回転
    • 必要に応じて追加の回転を適用(書類が逆さまの場合は180度をテスト)
  3. OCRテキスト抽出:

    • 複数のOCR方法を自動的に試行:
      • macOS Visionフレームワーク(macOSで推奨)
      • EasyOCR(クロスプラットフォーム、tesseract不要)
      • Tesseract OCR(利用可能な場合)
    • 書類からすべてのテキスト情報を抽出
    • 書類の種類を特定(預金証明書、在職証明書、退職証明書など)
  4. 翻訳:

    • すべてのテキスト内容をプロフェッショナルに英語に翻訳
    • 元の書類の構造とフォーマットを維持
    • ビザ申請に適切なプロフェッショナルな用語を使用
    • 固有名詞は原語で保持し、英語を括弧内に記載
    • 中国語の名前はピンイン形式を使用(例: WU Zhengye)
    • すべての数字、日付、金額を正確に保持
  5. PDF生成:

    • PILとreportlabライブラリを使用してPythonスクリプトを作成
    • ページ1: 回転した原本画像をA4ページに合わせて中央配置・スケーリングして表示
    • ページ2: 適切なフォーマットで英語翻訳を表示:
      • タイトルは中央揃えで太字
      • コンテンツは左揃えで適切な間隔
      • 公式文書に適したプロフェッショナルなレイアウト
    • 下部にノートを追加: 「This is a certified English translation of the original document」
    • スクリプトを実行してPDFを生成
  6. 出力: 同じディレクトリに<original_filename>_Translated.pdfという名前のPDFファイルを作成

対応書類

  • 銀行預金証明書(存款证明)
  • 収入証明書(收入证明)
  • 在職証明書(在职证明)
  • 退職証明書(退休证明)
  • 不動産証明書(房产证明)
  • 営業許可証(营业执照)
  • 身分証明書とパスポート
  • その他の公的書類

技術実装

OCR方法(試行順)

  1. macOS Visionフレームワーク(macOSのみ):

    import Vision
    from Foundation import NSURL
    
  2. EasyOCR(クロスプラットフォーム):

    pip install easyocr
    
  3. Tesseract OCR(利用可能な場合):

    brew install tesseract tesseract-lang
    pip install pytesseract
    

必要なPythonライブラリ

pip install pillow reportlab

macOS Visionフレームワーク用:

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

重要なガイドライン

  • 各ステップでユーザーの確認を求めないこと
  • 最適な回転角度を自動的に判断する
  • 1つのOCR方法が失敗した場合、複数の方法を試行する
  • すべての数字、日付、金額が正確に翻訳されていることを確認する
  • クリーンでプロフェッショナルなフォーマットを使用する
  • プロセス全体を完了し、最終的なPDFの場所を報告する

使用例

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

出力例

このスキルは以下を行います:

  1. 利用可能なOCR方法を使用してテキストを抽出
  2. プロフェッショナルな英語に翻訳
  3. 以下を含む<filename>_Translated.pdfを生成:
    • ページ1: 元の書類画像
    • ページ2: プロフェッショナルな英語翻訳

オーストラリア、アメリカ、カナダ、イギリスなど、翻訳書類が必要な国へのビザ申請に最適です。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

コーディングエージェント(Claude Code、Aider、Codexなど)のカスタムタスクによる直接比較。合格率、コスト、時間、一貫性メトリクスを測定

The English summary is being prepared. Showing the original description.

hage-oyaji/everything-claude-code-jp-local3Updated Mar 29, 2026

AIエージェントのアクションスペース、ツール定義、オブザベーションフォーマットを設計・最適化し、タスク完了率を向上させる

The English summary is being prepared. Showing the original description.

hage-oyaji/everything-claude-code-jp-local3Updated Mar 29, 2026

評価ファーストの実行、分解、コスト考慮型モデルルーティングによるエージェンティックエンジニアとしての運用

The English summary is being prepared. Showing the original description.

hage-oyaji/everything-claude-code-jp-local3Updated Mar 29, 2026

AIエージェントが実装出力の大部分を生成するチームのためのエンジニアリング運用モデル

The English summary is being prepared. Showing the original description.

hage-oyaji/everything-claude-code-jp-local3Updated Mar 29, 2026

AI支援開発のためのリグレッションテスト戦略。データベース依存なしのサンドボックスモードAPIテスト、自動バグチェックワークフロー、同一モデルがコードの作成とレビューを行う際のAIの盲点を検出するパターン。

The English summary is being prepared. Showing the original description.

hage-oyaji/everything-claude-code-jp-local3Updated Mar 29, 2026

AndroidおよびKotlin Multiplatformプロジェクトのためのクリーンアーキテクチャパターン — モジュール構成、依存関係ルール、UseCase、Repository、データレイヤーパターン

The English summary is being prepared. Showing the original description.

hage-oyaji/everything-claude-code-jp-local3Updated Mar 29, 2026

See all skills by hage-oyaji

Report a problem with this skill