Image Inpainting via Object-Background Scratch Segmentation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing image inpainting methods struggle to effectively restore images with scratches and local damage, especially for non-repeating patterns, resulting in poor inpainting effects.

Innovation Solution

The proposed method involves determining object and background scratch regions using a segmentation network model and U-Net, followed by image inpainting using specific network models for each region, and finally fusing the inpainted object and background images.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If existing image inpainting methods are used, then the processing speed is maintained, but the inpainting effect is poor especially for non-repeating patterns

Engineering Contradiction:
Improveinpainting effectVSAvoidmethod complexity
Core Design Contradiction:
Manufacturing precisionVSDevice complexity

Solution Approach 1:

The scratch region is segmented into object scratch region and background scratch region based on object region detection. This segmentation allows different inpainting strategies to be applied to different regions, improving the overall inpainting effect while managing complexity through modular processing

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

Different network models are used for different regions: a first network model specifically trained for object regions handles object scratch regions, while a second network model handles background scratch regions. This local differentiation improves inpainting quality for non-repeating patterns without requiring a single overly complex model

Inventive Principle:
Principle #3Local quality

2Manufacturing precision

If a single network model is used for inpainting, then the device complexity is reduced, but the inpainting precision for different regions deteriorates

Engineering Contradiction:
Improveinpainting precisionVSAvoidnetwork model complexity
Core Design Contradiction:
Manufacturing precisionVSDevice complexity

Solution Approach 1:

The scratch region is divided into object scratch region and background scratch region, enabling the use of specialized network models for each region type. This segmentation justifies the increased model complexity by delivering superior inpainting precision for different regional characteristics

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The first network model is specifically trained on object images to handle object scratch regions, while the second network model handles background regions. This localized specialization improves precision without requiring a single monolithic complex model, as each sub-model can be optimized for its specific region type

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS20250166140A1Image inpainting method and device
Publication Date: 2025.05.22 BEIJING ZITIAO NETWORK TECH CO LTD
  • US20250166140A1 patent drawing
  • US20250166140A1 patent drawing
  • US20250166140A1 patent drawing

AI summary

Embodiments of the present disclosure relate to the technical field of image processing, and provide an image inpainting method and device. The method includes: obtaining an image to be inpainted; determining an object area and a scratch area of the image to be inpainted, wherein the object area is an area where a target object in the image to be inpainted is located; determining an object scratch area and a background scratch area according to the object area and the scratch area; performing image inpainting on the object area according to the object scratch area to obtain an object image; performing image inpainting on the image, to be inpainted, according to the background scratch area to obtain a background image; and fusing the object image and the background image to obtain an inpainted image of the image to be inpainted.