# US 2026/0094400 A1 · Implementing automatic layer decomposition

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0094400 A1
- Document ID: US20260094400A1
- Status: Published application
- Kind: A1
- Application number: 18/902,810
- Filed: 2024-09-30
- Published: 2026-04-02
- Earliest claimed: 2024-09-30
- Assignees: Lemon Inc.
- Applicants: Lemon Inc.
- Inventors: Ye Yuan; Lu Xu; Fangyi Chen; Longyin Wen
- Web page: https://patentgrep.com/patent/US20260094400A1

## CPC

- G06V 10/25: Determination of region of interest [ROI] or a volume of interest [VOI]
- G06T 5/77: Retouching; Inpainting; Scratch removal
- G06T 7/12: Edge-based segmentation
- G06T 7/50: Depth or shape recovery
- G06T 11/00: Two-dimensional [2D] image generation
- G06V 10/26: Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
- G06V 20/70: Labelling scene content, e.g. deriving syntactic or semantic representations
- G06V 30/10: Character recognition
- G06V 2201/07: Target detection
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Techniques for implementing automatic layer decomposition are provided. An image comprising a plurality of objects is received. Object detection results are generated based on detecting the plurality of objects in the image. The object detection results comprising an object detection result corresponding to each of the plurality of objects. Textual descriptions of the image are generated. The textual descriptions comprise a textual description corresponding to each of the plurality of objects. The object detection result is associated with the textual description corresponding to each of the plurality of objects. Depth estimation results are generated by predicting a depth map of the image. The depth estimation results comprise a depth estimation result corresponding to each of the plurality of objects. The plurality of objects are merged into layers based on the object detection result, the textual description, and the depth estimation result corresponding to each of the plurality of objects.

## Claims

### Claim 1

A method of implementing automatic layer decomposition, comprising:
receiving an image comprising a plurality of objects;
generating object detection results based on detecting the plurality of objects in the image, the object detection results comprising an object detection result corresponding to each of the plurality of objects;
generating textual descriptions of the image, the textual descriptions comprising a textual description corresponding to each of the plurality of objects;
associating the object detection result with the textual description corresponding to each of the plurality of objects;
generating depth estimation results by predicting a depth map of the image, the depth estimation results comprising a depth estimation result corresponding to each of the plurality of objects; and
merging the plurality of objects into layers based on the object detection result, the textual description, and the depth estimation result corresponding to each of the plurality of objects.

### Claim 2 (depends on 1)

The method of claim 1, wherein at least one of the plurality of objects in the image is occluded by one or more other objects among the plurality of objects, and wherein the method further comprises:
generating occlusion relation graphs associated with the image; and
sorting the plurality of objects based on the depth estimation results and the occlusion relation graphs in a foreground-to-background order.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
generating inpainting masks corresponding to the layers; and
generating completed layer images comprising a completed layer image corresponding to each of the layers and a completed background layer image by utilizing an image inpainting model, wherein the completed layer images depict an entirety of the at least one of the plurality of objects as if it was not occluded by the one or more other objects.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
generating refined layer masks based on the completed layer images; and
generating red, green, blue, and alpha (RGBA) layer images based on the completed layer images and the refined layer masks.

### Claim 5 (depends on 1)

The method of claim 1, wherein the generating object detection results based on detecting the plurality of objects in the image comprises:
detecting object bounding boxes and labels associated with the plurality of objects.

### Claim 6 (depends on 5)

The method of claim 5, wherein the associating the object detection result with the textual description corresponding to each of the plurality of objects comprises:
associating the textual description with a corresponding object bounding box among the object bounding boxes.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
extracting texts from the image by performing Optical Character Recognition (OCR) on the image to generate an OCR result;
generating segmentation masks for the plurality of objects based on the object detection results; and
generating object instance-level annotations based on the OCR result, the object detection results, and the segmentation masks.

### Claim 8 (depends on 7)

The method of claim 7, wherein the merging the plurality of objects into layers comprises:
merging the plurality of objects into the layers based on the object instance-level annotations and the depth estimation results.

### Claim 9

A system of implementing automatic layer decomposition, comprising:
at least one processor; and
at least one memory communicatively coupled to the at least one processor and comprising computer-readable instructions that upon execution by the at least one processor cause the at least one processor to perform operations comprising:
receiving an image comprising a plurality of objects;
generating object detection results based on detecting the plurality of objects in the image, the object detection results comprising an object detection result corresponding to each of the plurality of objects;
generating textual descriptions of the image, the textual descriptions comprising a textual description corresponding to each of the plurality of objects;
associating the object detection result with the textual description corresponding to each of the plurality of objects;
generating depth estimation results by predicting a depth map of the image, the depth estimation results comprising a depth estimation result corresponding to each of the plurality of objects; and
merging the plurality of objects into layers based on the object detection result, the textual description, and the depth estimation result corresponding to each of the plurality of objects.

### Claim 10 (depends on 9)

The system of claim 9, wherein at least one of the plurality of objects in the image is occluded by one or more other objects among the plurality of objects, and wherein the method further comprises:
generating occlusion relation graphs associated with the image; and
sorting the plurality of objects based on the depth estimation results and the occlusion relation graphs in a foreground-to-background order.

### Claim 11 (depends on 10)

The system of claim 10, the operations further comprising:
generating inpainting masks corresponding to the layers; and
generating completed layer images comprising a completed layer image corresponding to each of the layers and a completed background layer image by utilizing an image inpainting model, wherein the completed layer images depict an entirety of the at least one of the plurality of objects as if it was not occluded by the one or more other objects.

### Claim 12 (depends on 11)

The system of claim 11, the operations further comprising:
generating refined layer masks based on the completed layer images; and
generating red, green, blue, and alpha (RGBA) layer images based on the completed layer images and the refined layer masks.

### Claim 13 (depends on 9)

The system of claim 9, wherein the generating object detection results based on detecting the plurality of objects in the image comprises:
detecting object bounding boxes and labels associated with the plurality of objects.

### Claim 14 (depends on 13)

The system of claim 13, wherein the associating the object detection result with the textual description corresponding to each of the plurality of objects comprises:
associating the textual description with a corresponding object bounding box among the object bounding boxes.

### Claim 15 (depends on 9)

The system of claim 9, the operations further comprising:
extracting texts from the image by performing Optical Character Recognition (OCR) on the image to generate an OCR result;
generating segmentation masks for the plurality of objects based on the object detection results; and
generating object instance-level annotations based on the OCR result, the object detection results, and the segmentation masks.

### Claim 16

A non-transitory computer-readable storage medium, storing computer-readable instructions that upon execution by a processor cause the processor to implement operations comprising:
receiving an image comprising a plurality of objects;
generating object detection results based on detecting the plurality of objects in the image, the object detection results comprising an object detection result corresponding to each of the plurality of objects;
generating textual descriptions of the image, the textual descriptions comprising a textual description corresponding to each of the plurality of objects;
associating the object detection result with the textual description corresponding to each of the plurality of objects;
generating depth estimation results by predicting a depth map of the image, the depth estimation results comprising a depth estimation result corresponding to each of the plurality of objects; and
merging the plurality of objects into layers based on the object detection result, the textual description, and the depth estimation result corresponding to each of the plurality of objects.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein at least one of the plurality of objects in the image is occluded by one or more other objects among the plurality of objects, and wherein the method further comprises:
generating occlusion relation graphs associated with the image; and
sorting the plurality of objects based on the depth estimation results and the occlusion relation graphs in a foreground-to-background order.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, the operations further comprising:
generating inpainting masks corresponding to the layers; and
generating completed layer images comprising a completed layer image corresponding to each of the layers and a completed background layer image by utilizing an image inpainting model, wherein the completed layer images depict an entirety of the at least one of the plurality of objects as if it was not occluded by the one or more other objects;
generating refined layer masks based on the completed layer images; and
generating red, green, blue, and alpha (RGBA) layer images based on the completed layer images and the refined layer masks.

### Claim 19 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein the generating object detection results based on detecting the plurality of objects in the image comprises:
detecting object bounding boxes and labels associated with the plurality of objects, and
wherein the associating the object detection result with the textual description corresponding to each of the plurality of objects comprises:
associating the textual description with a corresponding object bounding box among the object bounding boxes.

### Claim 20 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, the operations further comprising:
extracting texts from the image by performing Optical Character Recognition (OCR) on the image to generate an OCR result;
generating segmentation masks for the plurality of objects based on the object detection results; and
generating object instance-level annotations based on the OCR result, the object detection results, and the segmentation masks.
