Data compression method and computing device
AssigneeHuawei Technologies Co., Ltd.
InventorsWen Zhou, Zhongquan Liu, Litian Sun, Hongfeng Jiang
Life of this patent
Estimating the term…
Abstract
This application discloses a data compression method and a computing device. The disclosed method is applied to the computing device. The method includes receiving, by the computing device, to-be-compressed data, and identifying a data type of the to-be-compressed data. The method further includes selecting one or more data compression models based on the identified data type and compressing the to-be-compressed data based on the selected one or more data compression models.
Claims15
A data compression method performed by a computing device, comprising:
- receiving, by a first processor of the computing device, to-be-compressed data;
- obtaining, by the first processor of the computing device, M data type identification models;
- determining, by the first processor of the computing device, M probability sets corresponding to the to-be-compressed data based on the M data type identification models;
- identifying, by the first processor of the computing device, a data type of the to-be-compressed data by obtaining P intermediate values based on the M probability sets and weight ratios of the M data type identification models, the data type of the to-be-compressed data corresponding to an intermediate value in the P intermediate values and that is greater than an accuracy threshold, the data type including a text type, a picture type, or a video type;
- selecting, by the first processor of the computing device, a data compression model based on the data type;
- sending, by the first processor of the computing device, the to-be-compressed data and information related to the selected data compression model to a second processor of the computing device;
- compressing, by the second processor of the computing device, the to-be-compressed data to obtain compressed data based on the selected data compression model;
- and
- sending, by the second processor of the computing device, the compressed data to the first processor of the computing device.
A computing device, comprising:
- a plurality of processors including a first processor and a second processor, wherein the first processor is configured to:
- receive to-be-compressed data;
- obtain M data type identification models;
- determine M probability sets corresponding to the to-be-compressed data based on the M data type identification models;
- identify a data type of the to-be-compressed data by obtaining P intermediate values based on the M probability sets and weight ratios of the M data type identification models, the data type of the to-be-compressed data corresponding to an intermediate value in the P intermediate values and that is greater than an accuracy threshold, the data type including a text type, a picture type, or a video type;
- select a data compression model based on the data type;
- and
- send the to-be-compressed data and information related to the selected data compression model to the second processor, and
- wherein the second processor is configured to compress the to-be-compressed data to obtain compressed data based on the selected data compression model, and send the compressed data to the first processor of the computing device.
Dependencies are inferred from the claim text.