photo-restoration

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Photo Restoration

照片修复

Restore and enhance old, damaged, or degraded photos using each::sense. This skill leverages AI-powered restoration models to repair scratches, colorize black and white images, fix fading, remove film grain, and bring damaged photos back to life.
使用each::sense修复并增强老旧、受损或画质下降的照片。该技能借助AI驱动的修复模型来修复划痕、为黑白图像上色、修复褪色、去除胶片颗粒,让受损照片重焕生机。

Features

功能特性

  • Damage Repair: Fix scratches, tears, creases, and physical damage
  • Colorization: Add natural colors to black and white photos
  • Fading Recovery: Restore vibrancy to faded and washed-out images
  • Water Damage Repair: Recover photos affected by water or moisture damage
  • Face Restoration: Enhance and restore faces in old or low-quality photos
  • Film Grain Removal: Clean up grain and noise from old film photographs
  • Historical Photo Enhancement: Improve quality of archival and vintage images
  • Torn Photo Reconstruction: Digitally repair torn and ripped photographs
  • 损伤修复:修复划痕、撕裂、折痕及物理损伤
  • 照片上色:为黑白照片添加自然色彩
  • 褪色恢复:为褪色、画质暗淡的图像恢复鲜艳度
  • 水渍修复:修复受水或湿气损坏的照片
  • 人脸修复:增强并修复老旧或低画质照片中的人脸
  • 胶片颗粒去除:清理老胶片照片中的颗粒与噪点
  • 历史照片增强:提升档案及复古照片的画质
  • 撕裂照片重建:以数字方式修复撕裂的照片

Quick Start

快速开始

bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Restore this old damaged family photo - fix the scratches and improve the overall quality",
    "mode": "max",
    "image_urls": ["https://example.com/old-family-photo.jpg"]
  }'
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Restore this old damaged family photo - fix the scratches and improve the overall quality",
    "mode": "max",
    "image_urls": ["https://example.com/old-family-photo.jpg"]
  }'

Use Case Examples

使用案例

1. Old Damaged Photo Restoration

1. 老旧受损照片修复

Restore a photo with multiple types of damage including scratches, stains, and degradation.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Restore this old damaged photo from the 1950s. It has scratches, some staining, and general degradation. Please repair the damage while preserving the authentic vintage feel.",
    "mode": "max",
    "image_urls": ["https://example.com/damaged-1950s-photo.jpg"]
  }'
修复存在多种损伤的照片,包括划痕、污渍和画质下降问题。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Restore this old damaged photo from the 1950s. It has scratches, some staining, and general degradation. Please repair the damage while preserving the authentic vintage feel.",
    "mode": "max",
    "image_urls": ["https://example.com/damaged-1950s-photo.jpg"]
  }'

2. Black and White Photo Colorization

2. 黑白照片上色

Add realistic colors to a black and white photograph.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Colorize this black and white photo from the 1940s. It shows a family portrait - add natural, realistic colors to skin tones, clothing, and the background.",
    "mode": "max",
    "image_urls": ["https://example.com/bw-family-portrait.jpg"]
  }'
为黑白照片添加逼真色彩。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Colorize this black and white photo from the 1940s. It shows a family portrait - add natural, realistic colors to skin tones, clothing, and the background.",
    "mode": "max",
    "image_urls": ["https://example.com/bw-family-portrait.jpg"]
  }'

3. Scratched Photo Repair

3. 划痕照片修复

Remove scratches and surface damage from a photograph.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Remove the scratches from this photo. There are multiple deep scratches across the surface and some light surface marks. Keep the image sharp and clear after repair.",
    "mode": "max",
    "image_urls": ["https://example.com/scratched-photo.jpg"]
  }'
去除照片上的划痕和表面损伤。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Remove the scratches from this photo. There are multiple deep scratches across the surface and some light surface marks. Keep the image sharp and clear after repair.",
    "mode": "max",
    "image_urls": ["https://example.com/scratched-photo.jpg"]
  }'

4. Faded Photo Enhancement

4. 褪色照片增强

Restore color and contrast to faded photographs.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Enhance this faded photo - the colors have washed out over time and the image looks dull. Restore the vibrancy and contrast while keeping it looking natural, not over-processed.",
    "mode": "max",
    "image_urls": ["https://example.com/faded-vintage-photo.jpg"]
  }'
恢复褪色照片的色彩和对比度。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Enhance this faded photo - the colors have washed out over time and the image looks dull. Restore the vibrancy and contrast while keeping it looking natural, not over-processed.",
    "mode": "max",
    "image_urls": ["https://example.com/faded-vintage-photo.jpg"]
  }'

5. Water Damaged Photo Recovery

5. 水渍照片修复

Repair photos that have suffered water or moisture damage.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Restore this water damaged photo. It has staining, warping effects, and some areas where the image has deteriorated due to moisture. Recover as much detail as possible.",
    "mode": "max",
    "image_urls": ["https://example.com/water-damaged-photo.jpg"]
  }'
修复受水或湿气损坏的照片。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Restore this water damaged photo. It has staining, warping effects, and some areas where the image has deteriorated due to moisture. Recover as much detail as possible.",
    "mode": "max",
    "image_urls": ["https://example.com/water-damaged-photo.jpg"]
  }'

6. Face Restoration in Old Photos

6. 老旧照片人脸修复

Enhance and restore faces that are blurry or degraded in old photographs.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Restore the faces in this old family photo. The faces are blurry and lack detail. Enhance facial features to make them clear and recognizable while maintaining the authentic look of the era.",
    "mode": "max",
    "image_urls": ["https://example.com/old-blurry-faces.jpg"]
  }'
增强并修复老旧照片中模糊或画质下降的人脸。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Restore the faces in this old family photo. The faces are blurry and lack detail. Enhance facial features to make them clear and recognizable while maintaining the authentic look of the era.",
    "mode": "max",
    "image_urls": ["https://example.com/old-blurry-faces.jpg"]
  }'

7. Historical Photo Restoration

7. 历史照片修复

Restore archival photographs with professional-grade enhancement.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Restore this historical photograph from the early 1900s. It is a street scene that has significant age-related degradation. Improve clarity, fix damage, and optionally colorize it while preserving historical accuracy.",
    "mode": "max",
    "image_urls": ["https://example.com/historical-1900s-street.jpg"]
  }'
通过专业级增强修复档案照片。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Restore this historical photograph from the early 1900s. It is a street scene that has significant age-related degradation. Improve clarity, fix damage, and optionally colorize it while preserving historical accuracy.",
    "mode": "max",
    "image_urls": ["https://example.com/historical-1900s-street.jpg"]
  }'

8. Family Photo Restoration

8. 家庭照片修复

Restore precious family memories with comprehensive repair.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Restore this precious family photo from my grandparents wedding in 1960. It has yellowing, some creases, and the edges are damaged. Make it look fresh while preserving the nostalgic quality.",
    "mode": "max",
    "image_urls": ["https://example.com/grandparents-wedding.jpg"]
  }'
通过全面修复珍贵的家庭回忆照片。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Restore this precious family photo from my grandparents wedding in 1960. It has yellowing, some creases, and the edges are damaged. Make it look fresh while preserving the nostalgic quality.",
    "mode": "max",
    "image_urls": ["https://example.com/grandparents-wedding.jpg"]
  }'

9. Torn Photo Repair

9. 撕裂照片修复

Digitally reconstruct photos that have been physically torn.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Repair this torn photo - there is a visible tear line running through the middle of the image. Reconstruct the damaged areas seamlessly and restore the photo to its original state.",
    "mode": "max",
    "image_urls": ["https://example.com/torn-photo.jpg"]
  }'
以数字方式重建物理撕裂的照片。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Repair this torn photo - there is a visible tear line running through the middle of the image. Reconstruct the damaged areas seamlessly and restore the photo to its original state.",
    "mode": "max",
    "image_urls": ["https://example.com/torn-photo.jpg"]
  }'

10. Film Grain Removal

10. 胶片颗粒去除

Clean up excessive grain and noise from old film photographs.
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Remove the heavy film grain from this old photograph. The grain is very visible and distracting. Clean it up while preserving the sharpness and detail of the image. Keep some subtle texture so it does not look overly processed.",
    "mode": "max",
    "image_urls": ["https://example.com/grainy-film-photo.jpg"]
  }'
清理老胶片照片中的过多颗粒与噪点。
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Remove the heavy film grain from this old photograph. The grain is very visible and distracting. Clean it up while preserving the sharpness and detail of the image. Keep some subtle texture so it does not look overly processed.",
    "mode": "max",
    "image_urls": ["https://example.com/grainy-film-photo.jpg"]
  }'

Multi-Turn Restoration Sessions

多轮修复会话

Use
session_id
for iterative restoration and refinement:
bash
undefined
使用
session_id
进行迭代式修复和优化:
bash
undefined

Initial restoration

Initial restoration

curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Restore this old damaged black and white photo - fix the scratches and damage first", "session_id": "family-photo-restoration", "image_urls": ["https://example.com/old-bw-damaged.jpg"] }'
curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Restore this old damaged black and white photo - fix the scratches and damage first", "session_id": "family-photo-restoration", "image_urls": ["https://example.com/old-bw-damaged.jpg"] }'

Follow up with colorization

Follow up with colorization

curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Now colorize the restored photo with natural colors appropriate for the 1930s era", "session_id": "family-photo-restoration" }'
curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Now colorize the restored photo with natural colors appropriate for the 1930s era", "session_id": "family-photo-restoration" }'

Further refinement

Further refinement

curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Enhance the faces to make them clearer and more detailed", "session_id": "family-photo-restoration" }'
undefined
curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Enhance the faces to make them clearer and more detailed", "session_id": "family-photo-restoration" }'
undefined

Batch Restoration

批量修复

Process multiple photos with consistent settings:
bash
undefined
使用一致设置处理多张照片:
bash
undefined

Photo 1

Photo 1

curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Restore and colorize this old family photo", "mode": "eco", "image_urls": ["https://example.com/family-photo-1.jpg"] }'
curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Restore and colorize this old family photo", "mode": "eco", "image_urls": ["https://example.com/family-photo-1.jpg"] }'

Photo 2

Photo 2

curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Restore and colorize this old family photo", "mode": "eco", "image_urls": ["https://example.com/family-photo-2.jpg"] }'
curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Restore and colorize this old family photo", "mode": "eco", "image_urls": ["https://example.com/family-photo-2.jpg"] }'

Photo 3

Photo 3

curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Restore and colorize this old family photo", "mode": "eco", "image_urls": ["https://example.com/family-photo-3.jpg"] }'
undefined
curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Restore and colorize this old family photo", "mode": "eco", "image_urls": ["https://example.com/family-photo-3.jpg"] }'
undefined

Mode Selection

模式选择

Ask your users before processing:
"Do you want fast & affordable, or highest quality?"
ModeBest ForSpeedQuality
max
Final restorations, precious family photos, professional archival workSlowerHighest
eco
Quick previews, batch processing, initial assessmentsFasterGood
处理前请询问用户:
"您想要快速实惠的方案,还是最高画质的修复?"
模式适用场景速度画质
max
最终修复、珍贵家庭照片、专业档案工作较慢最高
eco
快速预览、批量处理、初步评估较快良好

Best Practices

最佳实践

For Optimal Results

获得最佳结果的建议

  • Provide context: Mention the era, type of damage, and what aspects are most important to preserve
  • Start with damage repair: Fix scratches and tears before colorization
  • Use multi-turn sessions: Build up restoration in stages for complex projects
  • Specify faces: If faces are important, explicitly mention face restoration
  • Preserve authenticity: Request preservation of vintage qualities if desired
  • 提供上下文:说明照片年代、损伤类型,以及需要重点保留的部分
  • 先修复损伤:在上色前先修复划痕和撕裂问题
  • 使用多轮会话:针对复杂项目分阶段完成修复
  • 明确人脸修复需求:如果人脸很重要,请明确提及人脸修复
  • 保留真实性:若需要,可要求保留复古质感

Prompt Tips

提示词技巧

  1. Describe the damage: Scratches, tears, fading, water stains, yellowing
  2. Mention the era: This helps with appropriate colorization
  3. State priorities: What matters most - faces, overall clarity, color accuracy
  4. Set expectations: Natural look vs maximum enhancement
  1. 描述损伤:划痕、撕裂、褪色、水渍、泛黄
  2. 说明年代:这有助于选择合适的上色风格
  3. 明确优先级:最关注的部分——人脸、整体清晰度、色彩准确性
  4. 设定预期:自然风格 vs 最大化增强

Example Prompt Structure

提示词示例结构

"Restore this [era] photo. The damage includes [list damage types].
Focus on [priority areas]. [Additional preferences like colorization,
authenticity preservation, etc.]"
"修复这张[年代]的照片。存在的损伤包括[列出损伤类型]。
重点修复[优先区域]。[其他偏好,如上色、保留真实性等]"

Error Handling

错误处理

ErrorCauseSolution
Failed to create prediction: HTTP 422
Insufficient balanceTop up at eachlabs.ai
Content policy violationProhibited contentEnsure photo complies with content policies
TimeoutComplex restorationSet client timeout to minimum 10 minutes
Low quality resultInsufficient input resolutionUse highest available scan/photo resolution
错误原因解决方法
Failed to create prediction: HTTP 422
余额不足在eachlabs.ai充值
内容政策违规包含违禁内容确保照片符合内容政策
超时修复任务复杂将客户端超时设置为至少10分钟
修复结果画质低输入分辨率不足使用最高可用的扫描/拍摄分辨率

Related Skills

相关技能

  • each-sense
    - Core API documentation
  • image-enhancement
    - General image quality improvement
  • face-restoration
    - Specialized face enhancement
  • image-upscaling
    - Increase image resolution
  • each-sense
    - 核心API文档
  • image-enhancement
    - 通用图像画质提升
  • face-restoration
    - 专业人脸增强
  • image-upscaling
    - 提升图像分辨率