mcpField
P
photo-colorization

photo-colorization

github.com/eachlabsクリエイティブ・メディア44227 回インストール今日更新
リポジトリ

photo-colorization について

photo-colorizationは、each::senseを使って白黒写真をカラー化するスキルです。時代背景に沿った配色や元のディテールの維持に対応し、写真修復やアーカイブ作業に利用できます。

主な機能

  1. 01AIによる写真のカラー化
  2. 02時代背景を踏まえた配色
  3. 03人物や風景への自然な着色
  4. 04元のディテールの保持
  5. 05複数写真の順次処理

活用シーン

  1. 01家族の肖像やスナップ写真の修復
  2. 02歴史資料写真のカラー化
  3. 03風景や建築写真への着色

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/eachlabs/skills --skill photo-colorization

インストール後、Claude Code で/photo-colorizationを入力して読み込まれたか確認します。

同梱ファイルreferences/SSE-EVENTS.md

詳細

写真のカラー化

each::sense を使用して、白黒写真を鮮やかでリアルなカラー画像に変換します。このスキルでは、AI が画像の内容をインテリジェントに分析し、時代に即した、状況にふさわしい色を適用します。

特長

  • 自動カラー化:AI が被写体を検出し、自然な色を適用します
  • 歴史的な正確さ:状況に応じた色付けにより、時代にふさわしい仕上がりを実現します
  • ポートレートの補正:顔やポートレートにリアルな肌の色を適用します
  • 風景の修復:屋外や自然のシーンに自然な色を適用します
  • ビンテージ写真の復元:古い家族写真をよみがえらせます
  • バッチ処理:複数の写真を順番にカラー化します
  • スタイルの維持:元の写真の品質と細部を保ちます

クイックスタート

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Colorize this black and white photo with natural, realistic colors"}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/bw-photo.jpg"],
    "mode": "max"
  }'

よくあるユースケース

ユースケース説明最適な用途
家族の写真資料古い家族のポートレートやスナップ写真をカラー化します個人の写真の修復
歴史資料の記録資料向けに時代を正確に反映してカラー化します博物館、歴史研究者
ポートレートの補正リアルな肌の色と顔の特徴を再現しますプロによる修復
風景の復元屋外や景色を自然な色でカラー化します自然写真
ビンテージファッション衣服や生地の色を正確に再現しますファッション資料
軍事・戦争写真軍事写真を歴史的に正確に修復します慰霊プロジェクト
建築物建物や室内の写真をカラー化します不動産、文化遺産

ユースケースの例

1. 自動カラー化

AI が検出した色で基本的なカラー化を行います。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Colorize this black and white photograph. Apply natural, realistic colors based on the image content. Maintain the original quality and details."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/old-photo.jpg"],
    "mode": "max"
  }'
2. 歴史写真のカラー化

時代にふさわしい歴史的な正確さでカラー化します。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Colorize this historical photograph from the 1940s. Use period-accurate colors typical of that era - muted tones, authentic clothing colors, and historically appropriate details. This appears to be a street scene."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/1940s-street.jpg"],
    "mode": "max"
  }'
3. 家族写真のカラー化

温かみのある自然な色合いで、古い家族写真をよみがえらせます。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Colorize this old family portrait photo. Apply natural skin tones, realistic hair colors, and period-appropriate clothing colors. The photo appears to be from the 1950s-1960s era. Make it look warm and inviting."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/family-portrait-bw.jpg"],
    "mode": "max"
  }'
4. 風景のカラー化

屋外や景色を自然な色でカラー化します。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Colorize this black and white landscape photograph. Apply natural colors - blue sky, green foliage, brown earth tones. Make it look like a vibrant summer day while preserving the original composition and atmosphere."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/landscape-bw.jpg"],
    "mode": "max"
  }'
5. 肌の色を指定したポートレート

肌の色のカラー化を調整し、正確な仕上がりを実現します。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Colorize this portrait photograph. The subject has a medium olive skin tone and dark brown hair. Apply natural, warm skin colors with subtle pink undertones. Eyes appear to be brown. Clothing looks like a dark formal suit."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/portrait-bw.jpg"],
    "mode": "max"
  }'
6. ビンテージ写真のカラー化

時代に合わせたスタイルで古い写真を修復します。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Colorize this vintage photograph from the 1920s. Apply colors that match the Art Deco era - rich jewel tones for clothing, sepia-influenced skin tones, and period-appropriate interior colors. Maintain the vintage aesthetic while adding realistic color."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/1920s-vintage.jpg"],
    "mode": "max"
  }'
7. 戦争・軍事写真のカラー化

歴史的な正確さを保ちながら、軍事写真を修復します。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Colorize this World War II military photograph. Apply historically accurate colors - olive drab for US Army uniforms, appropriate skin tones for the soldiers, realistic equipment colors. Maintain the somber, documentary feel of the original while adding authentic military colors."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/wwii-soldiers.jpg"],
    "mode": "max"
  }'
8. 建築物のカラー化

建物や室内の写真をカラー化します。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Colorize this black and white photograph of a Victorian-era building. Apply appropriate architectural colors - red or brown brick, white trim, dark roof tiles, green copper patina if visible. Include natural sky colors and surrounding landscape elements."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/victorian-building.jpg"],
    "mode": "max"
  }'
9. ファッション・衣服のカラー化

生地やファッションの色を正確に再現します。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Colorize this 1960s fashion photograph. Apply era-appropriate colors - bold mod colors like orange, turquoise, and pink were popular. The model appears to be wearing a structured dress. Apply realistic fabric textures and vibrant 60s palette."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/1960s-fashion.jpg"],
    "mode": "max"
  }'
10. 複数写真の一括カラー化

セッションの継続性を利用して、一貫したスタイルで複数の写真を処理します。

# First photo in batch
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Colorize this black and white family photo from the 1950s. Apply warm, natural colors with period-appropriate tones. This is photo 1 of a series from the same family album."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/family-album-001.jpg"],
    "session_id": "family-album-colorization",
    "mode": "max"
  }'

# Second photo (same session for consistency)
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Colorize this second photo from the same family album. Maintain consistent skin tones and color style as the previous colorization."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/family-album-002.jpg"],
    "session_id": "family-album-colorization",
    "mode": "max"
  }'

# Third photo (continuing series)
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Colorize the third photo. Same family, same era. Keep the color palette consistent with previous images."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/family-album-003.jpg"],
    "session_id": "family-album-colorization",
    "mode": "max"
  }'

ベストプラクティス

画像の品質
  • 解像度:解像度が高い写真ほど、カラー化の結果が良くなります
  • コントラスト:元画像のコントラストが良いと、AI が細部を識別しやすくなります
  • 鮮明さ:ぼやけた写真より、鮮明ではっきりした写真のほうがきれいにカラー化できます
  • 状態:カラー化の前にデジタル修復を行うと、結果が改善する場合があります
プロンプトのヒント
  • 背景情報を伝える:時代、場所、被写体について説明します
  • 肌の色を指定する:分かっている場合は、被写体の肌の色を説明します
  • 衣服の色を伝える:元の色が分かっている場合は、それを含めます
  • 場面を説明する:屋外か屋内か、季節、時間帯を伝えます
歴史的な正確さ
  • 本物らしい色使いにするため、対象となる時代を調べます
  • ファッションや建築における地域差を考慮します
  • 軍服や装備には、記録された特定の色があります
  • ビンテージカーや車両の色は、記録がよく残っていることが多いです

モードの選択

モード最適な用途速度品質
max最終的な修復、資料保存、贈り物遅い最高
eco簡易プレビュー、バッチテスト、下書き速い良好

推奨:最初のテストには eco モードを使用し、最終出力には max を使用してください。

複数ターンでの調整

session_id を使用して、カラー化を反復・調整します。

# Initial colorization
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Colorize this old portrait photograph with natural colors"}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/portrait.jpg"],
    "session_id": "portrait-restoration"
  }'

# Refine the result
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "The skin tones look a bit too warm. Can you redo the colorization with cooler, more natural skin tones?"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "portrait-restoration"
  }'

# Further adjustment
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "The dress should be blue, not green. Please adjust the clothing color."}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "portrait-restoration"
  }'

エラー処理

エラー原因解決方法
Failed to create prediction: HTTP 422残高不足eachlabs.ai で残高をチャージしてください
Invalid image URLURL にアクセスできません画像の URL が一般公開されていることを確認してください
タイムアウト画像が大きい、またはシーンが複雑クライアントのタイムアウトを最低 10 分に設定してください
色付けの品質が低い元画像の品質が低いより高解像度で鮮明な元画像を使用してください

関連スキル

  • each-sense - コア API ドキュメント
  • image-restoration - 一般的な画像修復
  • image-enhancement - 画像の補正とアップスケーリング
  • face-restoration - 顔に特化した補正

コメント