# US 2018/0322675 A1 · Image Processing Method and Computing Device

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

- Number: US 2018/0322675 A1
- Document ID: US20180322675A1
- Status: Published application
- Kind: A1
- Application number: 16/030,442
- Filed: 2018-07-09
- Published: 2018-11-08
- Earliest claimed: 2016-12-13
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Jinhui Cao; Zhe Wang; Jincheng Li
- Web page: https://patentgrep.com/patent/US20180322675A1

## CPC

- G06T 11/60: Creating or editing images; Combining images with text
- G06F 16/51: Indexing; Data structures therefor; Storage structures
- G06T 2200/24: involving graphical user interfaces [GUIs]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An image processing method to reduce access pressure of each image in an image set, where the image processing method includes obtaining a quantity of times each image layer in an image set is accessed, determining one or more first image layers, where a quantity of times the first image layer in the image set is accessed is greater than a first threshold, and the first image layer has at least two child image layers, generating a copy of the first image layer, and modifying some child image layers of the first image layer to child image layers of the copy of the first image layer.

## Claims

### Claim 1

An image processing method, applicable to a computing device on which an image set is deployed, comprising:
obtaining a quantity of times each image layer in the image set is accessed, wherein the image set comprises a base image and an image obtained by superimposing P image layers on the base image, wherein P comprises a positive integer, and wherein each image layer has a parent image layer;
determining a first image layer according to the quantity of times each image layer in the image set is accessed, wherein a quantity of times the first image layer is accessed is greater than a first threshold;
generating a copy of the first image layer; and
modifying a child image layer of the first image layer to a child image layer of the copy of the first image layer.

### Claim 2 (depends on 1)

The image processing method according to claim 1, wherein an image layer identity (ID) is configured for each image layer, wherein each image layer further records a parent image layer ID, and wherein generating the copy of the first image layer comprises:
copying the first image layer to obtain the copy of the first image layer; and
configuring an image layer ID for the copy of the first image layer, and
wherein modifying the child image layer of the first image layer to the child image layer of the copy of the first image layer comprises modifying a parent image layer ID of the child image layer of the first image layer to the image layer ID of the copy of the first image layer.

### Claim 3 (depends on 1)

The image processing method according to claim 1, wherein after obtaining the quantity of times each image layer in the image set is accessed, the method further comprises:
determining a second image layer according to the quantity of times each image layer in the image set is accessed, wherein a quantity of times the second image layer is accessed is less than a second threshold, and wherein the image set further comprises a copy of the second image layer;
modifying a child image layer of the second image layer to a child image layer of the copy of the second image layer; and
deleting the second image layer.

### Claim 4

An image processing method, applicable to a management node in a computing device cluster comprising a shared storage, wherein each computing device in the computing device cluster can access an image set deployed on the shared storage, and wherein the image processing method comprises:
obtaining a quantity of times each image layer in the image set is accessed, wherein the image set comprises a base image and an image obtained by superimposing P image layers on the base image, wherein P comprises a positive integer, and wherein each image layer has a parent image layer;
determining a third image layer according to the quantity of times each image layer in the image set is accessed, wherein a quantity of times the third image layer is accessed is greater than a third threshold;
generating a copy of the third image layer; and
modifying a child image layer of the third image layer to a child image layer of the copy of the third image layer.

### Claim 5 (depends on 4)

The image processing method according to claim 4, wherein obtaining the quantity of times each image layer in the image set is accessed comprises:
obtaining access information from each computing device in the computing device cluster, wherein each piece of the access information comprises a quantity of times a computing device in the computing device cluster accesses each image layer in the image set; and
collecting statistics on the access information from each computing device in the computing device cluster to obtain the quantity of times each image layer in the image set is accessed.

### Claim 6 (depends on 4)

The image processing method according to claim 4, wherein an image layer identity (ID) is configured for each image layer, wherein each image layer further records a parent image layer ID, and wherein generating the copy of the third image layer comprises:
copying the third image layer to obtain the copy of the third image layer; and
configuring an image layer ID for the copy of the third image layer, and
wherein modifying the child image layer of the third image layer to the child image layer of the copy of the third image layer comprises modifying a parent image layer ID of the child image layer of the third image layer to the image layer ID of the copy of the third image layer.

### Claim 7 (depends on 4)

The image processing method according to claim 4, wherein after obtaining the quantity of times each image layer in the image set is accessed, the method further comprises:
determining a fourth image layer according to the quantity of times each image layer in the image set is accessed, wherein a quantity of times the fourth image layer is accessed is less than a fourth threshold, and wherein the image set further comprises a copy of the fourth image layer;
modifying a child image layer of the fourth image layer to a child image layer of the copy of the fourth image layer; and
deleting the fourth image layer.

### Claim 8

A computing device, comprising:
a processor;
a memory coupled to the processor and configured to store an image set and a program code, wherein the image set comprises a base image and an image obtained by superimposing P image layers on the base image, wherein P comprises a positive integer, and wherein each image layer has a parent image layer; and
a communications interface coupled to the processor and the memory, and
wherein the program code causes the processor to be configured to:
obtain a quantity of times each image layer in the image set is accessed;
determine a first image layer according to the quantity of times each image layer in the image set is accessed, wherein a quantity of times the first image layer is accessed is greater than a first threshold;
generate a copy of the first image layer; and
modify a child image layer of the first image layer to a child image layer of the copy of the first image layer.

### Claim 9 (depends on 8)

The computing device according to claim 8, wherein an image layer identity (ID) is configured for each image layer, wherein each image layer further records a parent image layer ID, and wherein the program code further causes the processor to be configured to:
copy the first image layer to obtain the copy of the first image layer;
configure an image layer ID for the copy of the first image layer; and
modify a parent image layer ID of the child image layer of the first image layer to the image layer ID of the copy of the first image layer.

### Claim 10 (depends on 8)

The computing device according to claim 8, wherein the program code further causes the processor to be configured to:
determine a second image layer according to the quantity of times each image layer in the image set is accessed, wherein a quantity of times the second image layer is accessed is less than a second threshold, and wherein the image set further comprises a copy of the second image layer;
modify a child image layer of the second image layer to a child image layer of the copy of the second image layer; and
delete the second image layer.

### Claim 11

A computing device configured to manage a computing device cluster comprising a shared storage, wherein each computing device in the computing device cluster can access an image set deployed on the shared storage, and wherein the computing device comprises:
a processor;
a memory coupled to the processor and configured to store a program code; and
a communications interface coupled to the processor and the memory, and
wherein the program code causes the processor to be configured to:
obtain a quantity of times each image layer in the image set is accessed, wherein the image set comprises a base image and an image obtained by superimposing P image layers on the base image, wherein P comprises a positive integer, and wherein each image layer has a parent image layer;
determine a third image layer according to the quantity of times each image layer in the image set is accessed, wherein a quantity of times the third image layer is accessed is greater than a third threshold;
generate a copy of the third image layer; and
modify a child image layer of the third image layer to a child image layer of the copy of the third image layer.

### Claim 12 (depends on 11)

The computing device according to claim 11, wherein the program code further causes the processor to be configured to:
obtain access information from each computing device in the computing device cluster, wherein each piece of the access information comprises a quantity of times a computing device in the computing device cluster accesses each image layer in the image set; and
collect statistics on the access information from each computing device in the computing device cluster to obtain the quantity of times each image layer in the image set is accessed.

### Claim 13 (depends on 11)

The computing device according to claim 11, wherein an image layer identity (ID) is configured for each image layer, wherein each image layer further records a parent image layer ID, and wherein the program code further causes the processor to be configured to:
copy the third image layer to obtain the copy of the third image layer;
configure an image layer ID for the copy of the third image layer; and
modify a parent image layer ID of the child image layer of the third image layer to the image layer ID of the copy of the third image layer.

### Claim 14 (depends on 11)

The computing device according to claim 11, wherein the program code further causes the processor to be configured to:
determine a fourth image layer according to the quantity of times each image layer in the image set is accessed, wherein a quantity of times the fourth image layer is accessed is less than a fourth threshold, and wherein the image set further comprises a copy of the fourth image layer;
modify a child image layer of the fourth image layer to a child image layer of the copy of the fourth image layer; and
delete the fourth image layer.
