IP Library Granted Patent US 11,080,909
Granted Patent B2
US 11,080,909 · App. 16/030,442 · Granted Aug 3, 2021

Image layer processing method and computing device

Inventors: Jinhui Cao (Shenzhen, CN); Zhe Wang (Xi'an, CN); Jincheng Li (Xi'an, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G06T11/60G06F16/51G06T2200/24
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,080,909
App. No.
16/030,442
Granted
Aug 3, 2021
Kind
B2
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 (57)

1. An image processing method, implemented by a computing device, comprising:

obtaining a quantity of times each image layer in an image set is accessed, wherein the image set comprises a base image and a plurality of images obtained by superimposing one or more image layers on the base image, wherein each image layer comprises incremental data for modifying the base image, wherein the images of the image set are accessed by accessing the one or more image layers and the base image and wherein each image layer is accessed by reading the incremental data of each image layer;

determining a first image layer by comparing the quantity of times that image layers in the image set is accessed with a first threshold, wherein a quantity of times that the first image layer is accessed is greater than the first threshold, wherein the first image layer and a plurality of image layers are associated using a parent-child relationship, and wherein the first image layer comprises a plurality of child image layers;

generating a copy of the first image layer; and

changing one or more child image layers of the first image layer to child image layers of the copy of the first image layer.

2. The image processing method of claim 1 , wherein an image layer identity (ID) of the first image layer is a parent image layer ID of the one or more child image layers, 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,

wherein changing the one or more child image layers comprises modifying the parent image layer ID of the one or more child image layers to the image layer ID of the copy of the first image layer.

3. The image processing method of claim 1 , further comprising:

determining a second image layer is accessed a quantity of times less than a second threshold, wherein the image set further comprises a copy of the second image layer and a child image layer of the second image layer;

modifying the 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.

4. The image processing method of claim 1 , wherein the image set is deployed on the computing device, and wherein obtaining a quantity of times each image layer in the image set is accessed comprises collecting statistics on access frequency of each image layer.

5. The image processing method of claim 1 , wherein the computing device is part of a computing device cluster comprising a shared storage for deploying the image set and a plurality of computing devices for accessing the image set.

6. The image processing method of claim 5 , 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 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.

7. A computing device, comprising:

a processor;

a communications interface coupled to the processor; and

a memory coupled to the processor and configured to store program code which, when executed by the processor, causes the processor to:

obtain a quantity of times each image layer in an image set is accessed, wherein the image set comprises a base image and images obtained by superimposing one or more image layers on the base image, wherein each image layer includes incremental data for modifying the base image, wherein the images of the image set are accessed by accessing one or more image layers and the base image, and wherein each image layer is accessed by reading the incremental data of each image layer;

determine a first image layer by comparing the quantity of times that image layers in the image set is accessed with a first threshold, wherein a quantity of times that the first image layer is accessed is greater than the first threshold, wherein the first image layer and a plurality of image layers are associated using a parent-child relationship, and wherein the first image layer comprises a plurality of child image layers;

generate a copy of the first image layer; and

change child image layers of the first image layer to child image layers of the copy of the first image layer.

8. The computing device of claim 7 , wherein an image layer identity (ID) of the first image layer is a parent image layer ID of the one or more child image layers, and wherein the program code further causes the processor 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 the parent image layer ID of the one or more child image layers to the image layer ID of the copy of the first image layer.

9. The computing device of claim 7 , wherein the program code further causes the processor to:

determine a second image layer is accessed a quantity of times less than a second threshold, wherein the image set further comprises a copy of the second image layer and a child image layer of the second image layer;

modify the 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.

10. The computing device of claim 7 , wherein the image set is deployed on the computing device, and wherein the program code further causes the processor to collect statistics on access frequency of each image layer.

11. The computing device of claim 7 , wherein the computing device is part of a computing device cluster comprising a shared storage for deploying the image set and a plurality of computing devices for accessing the image set.

12. The computing device of claim 11 , wherein the program code further causes the processor to:

obtain access information from each computing device in the computing device cluster, wherein each 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.

13. A non-transitory computer readable storage medium comprising instructions which, when executed by a processor of a computing device, cause the computing device to:

obtain a quantity of times each image layer in an image set is accessed, wherein the image set comprises a base image and images obtained by superimposing one or more image layers on the base image, wherein each image layer includes incremental data for modifying the base image, wherein the images of the image set are accessed by accessing one or more image layers and the base image, and wherein each image layer is accessed by reading the incremental data of each image layer;

determine a first image layer by comparing the quantity of times that image layers in the image set is accessed with a first threshold, wherein a quantity of times that the first image layer is accessed is greater than the first threshold, wherein the first image layer and a plurality of image layers are associated using a parent-child relationship, and wherein the first image layer comprises a plurality of child image layers;

generate a copy of the first image layer; and

change child image layers of the first image layer to child image layers of the copy of the first image layer.

14. The non-transitory computer readable storage medium of claim 13 , wherein an image layer identity (ID) of the first image layer is a parent image layer ID of the one or more child image layers, and wherein the instructions further cause the computing device 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 the parent image layer ID of the one or more child image layers to the image layer ID of the copy of the first image layer.

15. The non-transitory computer readable storage medium of claim 13 , wherein the instructions further cause the computing device to:

determine a second image layer is accessed a quantity of times less than a second threshold, wherein the image set further comprises a copy of the second image layer and a child image layer of the second image layer;

modify the 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.

16. The non-transitory computer readable storage medium of claim 13 , wherein the image set is deployed on the computing device, and wherein the instructions further cause the computing device to collect statistics on access frequency of each image layer.

17. The non-transitory computer readable storage medium of claim 13 , wherein the computing device is part of a computing device cluster comprising a shared storage for deploying the image set and a plurality of computing devices for accessing the image set.

18. The non-transitory computer readable storage medium of claim 17 , wherein the instructions further cause the computing device to:

obtain access information from each computing device in the computing device cluster, wherein each 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.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 1, 2022
From: HUAWEI TECHNOLOGIES CO., LTD.
To: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
Reel/Frame 059267/0088 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 13, 2018
From: CAO, JINHUI; WANG, ZHE; LI, JINCHENG
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 046346/0004 →
Continuity (2)
Continuation PCTCN2016109686 · Dec 13, 2016
Related Publication 20180322675A1 · Nov 8, 2018