WO2023088021A1 - 一种基于预设规则的数据压缩方法、装置、设备和介质 - Google Patents

一种基于预设规则的数据压缩方法、装置、设备和介质 Download PDF

Info

Publication number
WO2023088021A1
WO2023088021A1 PCT/CN2022/126267 CN2022126267W WO2023088021A1 WO 2023088021 A1 WO2023088021 A1 WO 2023088021A1 CN 2022126267 W CN2022126267 W CN 2022126267W WO 2023088021 A1 WO2023088021 A1 WO 2023088021A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
binary
abbreviated
fragments
preset
Prior art date
Application number
PCT/CN2022/126267
Other languages
English (en)
French (fr)
Inventor
白智德
哈米德
白志得
丁晓端
黄坤
殷燕
Original Assignee
深圳智慧林网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳智慧林网络科技有限公司 filed Critical 深圳智慧林网络科技有限公司
Publication of WO2023088021A1 publication Critical patent/WO2023088021A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format

Definitions

  • the present application relates to the technical field of data processing, in particular to a data compression method, device, device and medium based on preset rules.
  • the data is usually split to achieve the purpose of compressing the data.
  • the current data compression method usually only splits the data into multiple data fragments of the same size for data transmission.
  • the multiple split data fragments have no regularity in the data content, so the compression method of each data fragment in the multiple data fragments is also not regular, and then in the data compression of a large number of data fragments It takes a lot of time to match the compression method in the process. Therefore, the current data compression method is difficult to improve the data transmission speed.
  • Embodiments of the present application provide a data compression method, device, device, and medium based on preset rules, implement the data compression method of the embodiment of the present application, and compress raw data to increase data transmission speed.
  • the embodiment of the present application provides a data compression method based on preset rules, the method includes:
  • the abbreviated data is sent, and the abbreviated data includes the abbreviated data fragments.
  • the above method also includes:
  • the re-abbreviated data is sent, and the re-abbreviated data includes abbreviated data fragments, abbreviated schema data, and re-abbreviated schema data.
  • the embodiment of the present application provides a data compression device based on preset rules, the above device includes: an acquisition unit, configured to acquire original data;
  • the conversion unit is used to perform binary conversion on the original data to obtain binary data
  • the scanning unit is used to scan the binary data, match the binary data with preset rules, and split the binary data that successfully matches the preset rules into data fragments;
  • the abbreviation unit is used to abbreviate the data fragmentation to obtain the abbreviated data fragmentation
  • the sending unit is configured to send the abbreviated data, and the abbreviated data includes the abbreviated data fragments.
  • the embodiment of the present application provides an electronic device, including a processor, a memory, and computer-executed instructions stored in the memory and operable on the processor.
  • the electronic device executes such as Part or all of the steps described in any method of the first aspect of the embodiment of the present application.
  • the embodiment of the present application provides a computer-readable storage medium, in which computer instructions are stored, and when the computer instructions are run on the communication device, the communication device executes the first method as in the first embodiment of the application. Part or all of the steps described in any method of the aspect.
  • the embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and the computer program is operable to cause the computer to execute the part or method described in any one of the methods in the first aspect of the embodiment of the present application. All steps.
  • the computer program product may be a software installation package.
  • the original data is obtained; the original data is converted into binary data to obtain binary data; the binary data is scanned, the binary data is matched with the preset rules, and the binary data that successfully matches the preset rules is Split into data fragments; abbreviate the data fragments to obtain the abbreviated data fragments; send the abbreviated data, and the abbreviated data includes the abbreviated data fragments.
  • FIG. 1A is a structural deployment diagram of a data transmission system
  • FIG. 1B is a flowchart of a data compression method based on preset rules provided by an embodiment of the present application
  • FIG. 1C is a deployment diagram of a data compression system based on preset rules applied in the embodiment of the present application
  • FIG. 2A is a schematic diagram of a data compression method based on preset rules provided by an embodiment of the present application
  • FIG. 2B is a schematic diagram of another data compression method based on preset rules provided by the embodiment of the present application.
  • FIG. 2C is a schematic diagram of another data compression method based on preset rules provided by the embodiment of the present application.
  • FIG. 3 is a structural diagram of a data compression device based on preset rules provided by an embodiment of the present application
  • FIG. 4 is a schematic diagram of a server structure of a hardware operating environment of an electronic device provided by an embodiment of the present application.
  • FIG. 1A is a structural deployment diagram of a data transmission system. As shown in Figure 1A, the first end of the system is connected to the data sender and the second end is connected to the data receiver.
  • the data sender refers to the role that wants to send the original data to the data receiver so as to send the original data to the data transmission system for compression;
  • the data transmission system is used to receive the original data of the data sender, and split the original data into multiple data fragments of the same size for data transmission, so as to send the original data from the data sender to the data receiver square;
  • the data receiver refers to the role that receives multiple data fragments from the data transmission system and restores the multiple data fragments to obtain the original data
  • FIG. 1B is a flow chart of a data compression method based on preset rules provided in the embodiment of the present application, as shown in As shown in 1B, the method comprises the following steps:
  • the data form of the original data includes numerical value, text, image, sound and other forms.
  • the binary conversion of different types of original data may be realized by means of program codes such as JavaScript and C#.
  • the binary data includes two kinds of numbers of 0 and 1.
  • the original data is a value of 8, and the value 8 is converted into binary to obtain the binary data of 1000.
  • the preset rule means that the data has a certain regularity, and there can be more than one preset rule.
  • the binary data that successfully matches the preset rules is split into data fragments, which may be to determine the binary data segments that successfully match different preset rules into different data fragments, thereby completing the binary data. split.
  • preset rule 1 and preset rule 2 scan the binary data, and find that the binary data segment 1 in the binary data matches the preset rule 1 successfully, and the binary data segment 2 successfully matches the preset rule 2, then determine The binary data segment 1 is the data segment 1, and the binary data segment 2 is determined as the data segment 2, thereby completing the splitting of the binary data.
  • the binary data is compared with the preset rule After matching, since the binary data segments 0000 and 1111 only contain a single binary number, the binary data is split into two data fragments of 0000 and 1111.
  • the data slices may be abbreviated according to the content of the data slices in a specific implementation;
  • the data pattern may include n-bit data, and the n-bit data included in each data pattern is different from other data patterns, so as to represent different data contents.
  • the data fragment 0000 can be abbreviated as 0 and the data fragment 1111 can be abbreviated as 1 to complete the two data fragments
  • the abbreviation of fragmentation assuming that each data pattern includes 2-bit data, if the data pattern is abbreviated according to the content of the data pattern included in the data fragment, the data pattern 00 can be abbreviated as 0 and the data pattern 11 can be abbreviated as 1, thus abbreviating the data slice 0000 to 00 and abbreviating the data slice 1111 to 11 to complete the abbreviation of the two data slices;
  • the way to abbreviate the data slice can also be: identify the number corresponding to the single binary number, and obtain the identified individual number, the number after identification is in binary form, and the content corresponding to the number after identification and a single binary number is arranged according to the preset arrangement method, assuming that the data fragmentation is 00000000, then the data fragmentation consists of 8 single binary digits Composed of digital 0, the binary form of 8 is 1000, and 1000 is marked to get (1000), if the default arrangement is a single binary number corresponding to the next digit of the number after the mark, then 00000000 will be abbreviated as (1000)0.
  • the abbreviated data can be composed of one abbreviated data fragment, or can be composed of multiple abbreviated data fragments. The pieces are assembled sequentially.
  • sending the abbreviated data may not send the abbreviated data until all the abbreviations of the data fragments are completed; Partially abbreviated data fragments, while abbreviating the remaining data fragments, that is to say, the two actions of abbreviating the data fragments and sending the abbreviated data can be processed synchronously. Once the data fragments are abbreviated, they can be sent to the data receiver.
  • data slice 1 can be abbreviated as abbreviated data slice 1
  • data slice 2 can be abbreviated as abbreviated data After fragment 2, send the abbreviated data fragment 1 and the abbreviated data fragment 2; it is also possible to abbreviate the data fragment 1 into the abbreviated data fragment 1, and then send the data fragment 2 While performing abbreviation, the abbreviated data fragment 1 is sent out.
  • Figure 1C is a deployment diagram of a data compression system based on preset rules applied in the embodiment of the present application, as shown in Figure 1C, the system includes an acquisition module, a conversion module, a scanning module, an abbreviation module and a sending module.
  • the first end of the system is connected to the data sender and the second end is connected to the data receiver, wherein the function of each module can be realized by a separate server, or the functions of multiple modules can be realized by one server. Multiple servers that realize the functions of different modules communicate with each other.
  • the server can be an independent server, or it can provide cloud services, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, content delivery network (Content Delivery Network, CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.
  • cloud services cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, content delivery network (Content Delivery Network, CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.
  • the data sender refers to the role of wanting to send the original data to the data receiver, so as to send the original data to the acquisition module in the data compression system based on preset rules.
  • the acquisition module is used for receiving the original data of the data sender, and sending the original data to the conversion module.
  • the conversion module is configured to perform binary conversion on the original data after receiving the original data from the acquisition module to obtain binary data, and send the binary data to the scanning module.
  • the scanning module is used to scan the binary data after receiving the binary data from the conversion module, match the binary data with preset rules, and split the binary data that successfully matches the preset rules into data fragments, And send multiple data fragments to the abbreviation module.
  • the abbreviation module is configured to abbreviate the data fragments after receiving multiple data fragments from the scanning module, obtain the abbreviated data fragments, and send the abbreviated data fragments to the sending module.
  • the sending module is configured to, after receiving the abbreviated data fragments from the abbreviation module, splice the abbreviated data fragments to obtain the abbreviated data, and include the abbreviated data fragments of the abbreviated data fragments data to the data receiver.
  • the data receiver refers to the role of receiving the abbreviated data from the data compression system based on preset rules, and restoring the abbreviated data to obtain the original data from the data sender.
  • the default rule is that the data slice only contains a single binary number, that is, the data slice only contains 0 or 1, then the binary data is combined with After the preset rules are matched, since the binary data segments 0000000000 and 1111111111 only contain a single binary number, the binary data is split into two data fragments of 0000000000 and 1111111111.
  • the abbreviation method for data fragmentation that conforms to the preset rule is: identify the number corresponding to a single binary number, obtain the number after identification, and the number after identification is in binary form, and convert the number after identification The content corresponding to the number and a single binary number is arranged according to the preset arrangement.
  • both data slices contain 10 single binary numbers, and the binary form of 10 is 1010. Then abbreviate the data slice 0000000000 to get the abbreviation
  • the final data slice 1 is (1010)0
  • the abbreviated data slice 1111111111 is abbreviated to obtain the abbreviated data slice 2 is (1010)1
  • the two abbreviated data slices are spliced to obtain the abbreviated
  • the data is sent as (1010)0(1010)1. It can be seen that the data volume of the abbreviated data is greatly reduced compared with the binary data, which is conducive to improving the data transmission speed.
  • the original data is obtained; the original data is converted into binary data to obtain binary data; the binary data is scanned, the binary data is matched with the preset rules, and the binary data that successfully matches the preset rules is Split into data fragments; abbreviate the data fragments to obtain the abbreviated data fragments; send the abbreviated data, and the abbreviated data includes the abbreviated data fragments.
  • the above-mentioned preset rule is that the single binary number contained is greater than the preset number, the above-mentioned binary data is matched with the preset rule, and the binary data that successfully matches the preset rule is split into data segments. slices, including:
  • the first binary data segment contains a plurality of single binary numbers, the binary numbers are 0 or 1;
  • the preset number may be 5 or other numbers.
  • the default rule is that the single binary number contained is greater than the preset number, the purpose is to make the data content in the data slice single and highly repetitive, and reduce the subsequent abbreviation of the data slice by reducing the complexity of the data content of the data slice of complexity.
  • the preset number is 5, and the obtained first binary data segment is 00000000, then the number of single binary digits contained in the first binary data segment is 8, which is greater than the preset number, Then it is determined that the first binary data segment matches the preset rule successfully, therefore, it is determined that the first binary data segment 00000000 is a data segment.
  • the preset rule when the preset rule is that the single binary number contained is greater than the preset number, the first binary data segment containing multiple single binary numbers is obtained, and in the first binary
  • the single binary number contained in the data segment is greater than the preset number, it is determined that the first binary data segment successfully matches the preset rule, and it is determined that the first binary data segment is a data fragment, thereby completing the matching with the preset rule
  • Successfully matched binary data is split into data slices, and by ensuring that the data content in the data slices is single and highly repetitive, the complexity of subsequent abbreviation of data slices is reduced, which is conducive to the improvement of data transmission speed.
  • the above abbreviated data sharding includes:
  • the abbreviated data fragments are determined, and the abbreviated data fragments include the number of signs arranged in a preset arrangement and the content corresponding to a single binary number.
  • the content corresponding to a single binary number refers to 0 or 1.
  • the number corresponding to a single binary number is identified.
  • the number corresponding to a single binary number may be marked with () symbols or other symbols.
  • the number after the logo arranged according to the preset arrangement method and the content corresponding to the single binary number in a specific implementation, can be arranged in the previous digit of the content corresponding to the single binary number, or after the logo The number of is arranged in the last digit of the content corresponding to the single binary number.
  • the data corresponding to a single binary number is identified by the () symbol, and the number after the identification is arranged in the previous bit of the content corresponding to the single binary number
  • the data The slice is 00000000
  • the content corresponding to the single binary number contained in the obtained data slice is 0 and the number is 8, and the binary form of the number 8 corresponding to the single binary number is 1000
  • the number corresponding to the single binary number is 1000.
  • the number is identified, and the number after identification is (1000), and the abbreviated data fragmentation is determined to be (1000)0, so as to complete the abbreviation of the data fragmentation; similarly, if the number of identification Arranged in the last bit of the content corresponding to a single binary number, the abbreviated data slice is 0 (1000).
  • the preset rule is that the single binary number contained is greater than the preset number
  • the content and number corresponding to the single binary number contained in the data slice are obtained, and the data slice is abbreviated as It includes the number of signs arranged according to a preset arrangement and the content corresponding to a single binary number, which greatly reduces the amount of data transmission, thereby increasing the speed of data transmission.
  • the above method also includes:
  • the data dictionary represents the identification processing method for the number corresponding to the single binary number in the data slice, and the preset arrangement of the number after the identification and the content corresponding to the single binary number;
  • sending the data dictionary means that the data sender sends the data dictionary directly to the data receiver when sending the abbreviated data, and the data dictionary corresponds to the data slice; the identifier of the sending data dictionary is the data sender sends the abbreviation When sending data, only the identifier of the data dictionary corresponding to the data slice is sent to the data receiver, and the identifier of the data dictionary corresponds to the data slice.
  • the data transmission volume of sending the data dictionary identifier is smaller than that of directly sending the data dictionary. If the data receiver stores the data dictionary locally, the data transmission speed can be further improved by sending the data dictionary identifier.
  • FIG. 2A is a schematic diagram of a data compression method based on preset rules provided by the embodiment of the present application.
  • the data dictionary represents the abbreviation method of the data slice, which means that the number corresponding to a single binary number is identified.
  • the number corresponding to the single binary code identifies the () symbol, and the number after the marking is arranged in the first digit of the content corresponding to the single binary code.
  • the data dictionary is generated according to the abbreviation method of the data slice, and the data dictionary represents the identification processing method for the number corresponding to the single binary number in the data slice, and the number after identification is related to the single binary number.
  • the above method before sending the abbreviated data, the above method also includes:
  • the abbreviated data sent above includes:
  • the abbreviated data is sent, and the abbreviated data includes abbreviated data fragments and abbreviated schema data.
  • the repeating pattern is one of the data patterns mentioned above.
  • the data pattern includes 2-bit data
  • the other data obtained in the binary data except for the data fragmentation is 10101010000101
  • the other data includes three data patterns of 10, 00, and 01, where the data pattern is 10
  • the occupied binary data length is 8, the binary data length occupied by data pattern 00 is 2, and the binary data length occupied by data pattern 01 is 4, then determine that the repeated data pattern 10 occupying the longest binary data length is the target pattern, for 10101010000101
  • the target pattern 10 is abbreviated, and the abbreviated pattern data corresponding to the target pattern is obtained. If the method of abbreviating the target mode is to abbreviate the target mode as 0, that is, the abbreviated mode data is 0, then 10101010000101 will be abbreviated as 0000000101.
  • the above method also includes:
  • the abbreviated data sent above includes:
  • the re-abbreviated data is sent, and the re-abbreviated data includes abbreviated data fragments, abbreviated schema data, and re-abbreviated schema data.
  • the other data obtained in the binary data except data fragments is 10101010000101.
  • the secondary target pattern occupying the binary data length second only to the target pattern 10 is 01, therefore, abbreviate the secondary target mode 01 to obtain the mode data after re-abbreviation. If the method of abbreviating the secondary target mode is to abbreviate the secondary target mode to 1, that is, the mode data after the abbreviation again is 1, then after abbreviating the target mode 10 to 0 and the secondary target mode to 1, 10101010000101 will be Abbreviated as 00000011.
  • the secondary target pattern with the second largest binary data length after the target pattern is also abbreviated.
  • the amount of data transmission is further reduced, and the data transmission speed is further improved to a higher degree.
  • the above method also includes:
  • sending the data dictionary means that the data sender sends the data dictionary directly to the data receiver when sending the abbreviated data, and the data dictionary corresponds to the data slice; the identifier of the sending data dictionary is the data sender sends the abbreviation When sending data, only the identifier of the data dictionary corresponding to the data slice is sent to the data receiver, and the identifier of the data dictionary corresponds to the data slice.
  • the data transmission volume of sending the data dictionary identifier is smaller than that of directly sending the data dictionary. If the data receiver stores the data dictionary locally, the data transmission speed can be further improved by sending the data dictionary identifier.
  • FIG. 2B is a schematic diagram of another data compression method based on preset rules provided by the embodiment of the present application.
  • other data except data fragments are 10101010000101.
  • the repetitive data pattern 10 occupying the longest binary data length is the target pattern, and the target pattern 10 can be abbreviated as 0, that is, the abbreviated pattern data is 0, then the data dictionary represents the target pattern 10 and the abbreviated Correspondence of pattern data 0.
  • the data dictionary is generated according to the corresponding relationship between the target mode and the abbreviated mode data; the data dictionary is sent or the identifier of the data dictionary corresponding to other data is sent, so as to inform the data receiver of the abbreviated data.
  • the above method also includes:
  • the first duration corresponding to the abbreviated data segment and the second duration corresponding to the expected abbreviated data segment can be calculated according to the historical average abbreviation speed and the historical average data transmission speed respectively in specific implementation.
  • the preset duration may be 200ms or other durations.
  • the data fragmentation is divided into multiple sub-data fragments.
  • it can be divided according to the length of the data fragments, that is, after the data fragments are divided into multiple sub-data fragments, the multiple sub-data fragments are divided into
  • the abbreviation is multiple abbreviated sub-data fragments.
  • the difference between the abbreviated duration corresponding to each sub-data fragment in the multiple sub-data fragments and the sending duration corresponding to each abbreviated sub-data fragment is less than or equal to Default duration.
  • the data fragmentation is divided into multiple sub-data fragmentation, the purpose is to avoid the existence of too long data fragmentation, resulting in the need to spend a lot of time on data fragmentation
  • the abbreviation causes the data transmission channel to be idle for a long time, reducing the time utilization rate in the data transmission process.
  • the two actions of abbreviating data fragments and sending the abbreviated data can be processed synchronously, and the data fragments can be sent to the data receiver once the abbreviation is completed.
  • the preset duration is 200ms
  • the abbreviated data fragment corresponding to this data fragment is 000000.
  • the data fragment 000000000000 is divided into two sub-data fragments of the first sub-data fragment 000000 and the second sub-data fragment 000000, assuming the abbreviations corresponding to the two sub-data fragments
  • the final sub-data fragments are the sub-data fragment 000 after the first abbreviation and the sub-data fragment 000 after the second abbreviation, which can be calculated.
  • the first duration corresponding to the two sub-data fragments is 240ms
  • the sending The second duration corresponding to the two abbreviated sub-data fragments is 120ms
  • the data fragment when the difference between the first duration corresponding to the abbreviated data fragment and the second duration corresponding to the expected transmission of the abbreviated data fragment is greater than the preset duration, the data fragment is divided into multiple subsections. Data shards, and abbreviate all or part of the multiple sub-data shards.
  • FIG. 3 is a structural diagram of a data compression device based on preset rules provided by the embodiment of the present application, as shown in FIG. 3:
  • a data compression device based on preset rules comprising:
  • an acquisition unit used to acquire raw data.
  • a conversion unit configured to perform binary conversion on the original data to obtain binary data.
  • a scanning unit configured to scan binary data, match the binary data with preset rules, and split the binary data that successfully matches the preset rules into data fragments.
  • an abbreviation unit configured to abbreviate data slices, and obtain abbreviated data slices.
  • a sending unit configured to send abbreviated data, where the abbreviated data includes abbreviated data fragments.
  • the acquisition unit acquires the original data; the conversion unit performs binary conversion on the original data to obtain binary data; the scanning unit scans the binary data, matches the binary data with preset rules, and The binary data that successfully matches the preset rules is split into data fragments; the abbreviation unit abbreviates the data fragments to obtain the abbreviated data fragments; the sending unit sends the abbreviated data, and the abbreviated data includes the abbreviated data Fragmentation.
  • the embodiments of the present application can divide the functional units of the data compression device based on the preset rules according to the above method example, for example, each functional unit can be divided corresponding to each function, or two or more functions can be integrated in one processing unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic, and is only a logical function division, and there may be another division manner in actual implementation.
  • FIG. 4 is a schematic diagram of the server structure of the hardware operating environment of the electronic device provided by the embodiment of the present application , as shown in FIG. 4 , the electronic device includes a processor, a memory, and computer-executed instructions stored on the memory and operable on the processor. When the computer-executed instructions are executed, the electronic device executes any Instructions for the steps of the regular data compression method.
  • the processor is a CPU.
  • the memory optionally, the memory may be a high-speed RAM memory, or a stable memory, such as a disk memory.
  • the structure of the server shown in FIG. 4 is not limited thereto, and may include more or less components than those shown in the illustration, or combine some components, or arrange different components.
  • the memory may include an operating system, a network communication module, and computer-executed instructions of a data compression method based on preset rules.
  • the operating system is used to manage and control server hardware and software resources, and supports the operation of computer-executed instructions.
  • the network communication module is used to realize the communication between the various components inside the memory, as well as the communication with other hardware and software inside the server.
  • the communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global Mobile Communication System), GPRS (General Packet Radio Service, General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000, Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access), TD-SCDMA ( Time Division-Synchronous CodeDivision Multiple Access, Time Division Synchronous Code Division Multiple Access), etc.
  • GSM Global System of Mobile communication, global Mobile Communication System
  • GPRS General Packet Radio Service, General Packet Radio Service
  • CDMA2000 Code Division Multiple Access 2000, Code Division Multiple Access 2000
  • WCDMA Wideband Code Division Multiple Access
  • TD-SCDMA Time Division-Synchronous CodeDivision Multiple Access, Time Division Synchronous Code Division Multiple Access
  • the processor is used to execute the computer-executed instructions stored in the memory for personnel management, and realize the following steps: obtain the original data; perform binary conversion on the original data to obtain binary data; scan the binary data, convert the binary data to Match the preset rules, and split the binary data that successfully matches the preset rules into data fragments; abbreviate the data fragments to obtain the abbreviated data fragments; send the abbreviated data, the abbreviated data Include abbreviated data shards.
  • An embodiment of the present application provides a computer-readable storage medium.
  • Computer instructions are stored in the computer-readable storage medium.
  • the communication device is made to perform the following steps: acquire original data; Binary conversion to obtain binary data; scan the binary data, match the binary data with the preset rules, and split the binary data that successfully matches the preset rules into data slices; abbreviate the data slices to obtain the abbreviated Data fragmentation; send the abbreviated data, and the abbreviated data includes the abbreviated data fragments.
  • the computer described above includes electronic equipment.
  • electronic terminal equipment includes mobile phones, tablet computers, personal digital assistants, wearable devices, etc.
  • the computer-readable storage medium may be an internal storage unit of the electronic device described in the above embodiments, such as a hard disk or a memory of the electronic device.
  • the computer-readable storage medium can also be an external storage device of the above-mentioned electronic equipment, such as a plug-in hard disk equipped on the electronic equipment, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash memory card (Flash Card) etc.
  • the computer-readable storage medium may also include both an internal storage unit of the electronic device and an external storage device.
  • Computer-readable storage media are used to store computer-executable instructions and other computer-executable instructions and data required by the electronic device.
  • the computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
  • An embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and the computer program is operable to make the computer execute any part or part of the preset rule-based data compression method described in the above method embodiments.
  • the computer program product may be a software installation package.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
  • the device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
  • the memory may include: a flash disk, a read-only memory (English: Read-Only Memory, ROM for short), a random access device (English: Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
  • the memory may include: flash disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access device (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

本申请提供一种基于预设规则的数据压缩方法、装置、设备和介质,其中方法的实现包括:获取原始数据;对原始数据进行二进制转换,得到二进制数据;扫描二进制数据,将二进制数据与预设规则进行匹配,并将与预设规则匹配成功的二进制数据拆分成数据分片;对数据分片进行缩写,获得缩写后的数据分片;发送缩写后的数据,缩写后的数据包括缩写后的数据分片。采用本申请实施例的方法,通过将二进制数据与预设规则进行匹配,并将与预设规则匹配成功的二进制数据拆分成数据分片,再对数据分片进行缩写,由于二进制数据与预设规则匹配,从而在对二进制数据进行拆分以及缩写时具有一定的规则性,进而提高数据传输效率。

Description

一种基于预设规则的数据压缩方法、装置、设备和介质
本申请要求于2021年11月18日提交中国专利局、申请号为202111367774.4、申请名称为“一种基于预设规则的数据压缩方法、装置、设备和介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据处理技术领域,特别是涉及一种基于预设规则的数据压缩方法、装置、设备和介质。
背景技术
随着社会经济的快速发展和人民生活水平的不断提高,数据通信技术在各行各业都得到了大范围的普及应用,伴随着数据传输量的增长,市面上对于数据传输速度的要求也越来越高。
为了提高数据传输速度,通常会对数据进行拆分达到压缩数据的目的,目前的数据压缩方法通常只是将数据拆分成大小相同的多个数据分片来进行数据传输,然而在这种方法下,拆分出来的多个数据分片在数据内容上不具有规则性,从而多个数据分片中每个数据分片的压缩方式也不具有规则性,进而在大量的数据分片的数据压缩过程中花费了较多的时间去匹配压缩方式,因此,目前的数据压缩方法难以起到提高数据传输速度的作用。
发明内容
本申请实施例提供了一种基于预设规则的数据压缩方法、装置、设备和介质,实施本申请实施例的数据压缩方法,通过对原始数据进行压缩,从而提高数据传输速度。
第一方面,本申请实施例提供了一种基于预设规则的数据压缩方法,上述方法包括:
获取原始数据;
对原始数据进行二进制转换,得到二进制数据;
扫描二进制数据,将二进制数据与预设规则进行匹配,并将与预设规则匹配成功的二进制数据拆分成数据分片;
对数据分片进行缩写,获得缩写后的数据分片;
发送缩写后的数据,缩写后的数据包括缩写后的数据分片。
在一个可能的示例中,上述方法还包括:
根据同一重复模式占用的二进制数据长度,确定次目标模式,次目标模式为占用二进制数据长度仅次于目标模式的一种重复模式;
对次目标模式进行缩写,获得再次缩写后的模式数据;
发送缩写后的数据,包括:
发送再次缩写后的数据,再次缩写后的数据包括缩写后的数据分片、缩写后的模式数据和再次缩写后的模式数据。
第二方面,本申请实施例提供了一种基于预设规则的数据压缩装置,上述装置包括:获取单元,用于获取原始数据;
转换单元,用于对原始数据进行二进制转换,得到二进制数据;
扫描单元,用于扫描二进制数据,将二进制数据与预设规则进行匹配,并将与预设规则匹配成功的二进制数据拆分成数据分片;
缩写单元,用于对数据分片进行缩写,获得缩写后的数据分片;
发送单元,用于发送缩写后的数据,缩写后的数据包括缩写后的数据分片。
第三方面,本申请实施例提供了一种电子设备,包括处理器、存储器以及存储在存储器上并可在处理器上运行的计算机执行指令,当计算机执行指令被运行时,使得电子设备执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。
第四方面,本申请实施例提供了一种计算机可读存储介质,计算机可读存储介质中存储有计算机指令,当计算机指令在通信装置上运行时,使得通信装置执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。
第五方面,本申请实施例提供了一种计算机程序产品,其中,计算机程序产品包括计算机程序,计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
可以看出,本申请实施例中,获取原始数据;对原始数据进行二进制转换,得到二进制数据;扫描二进制数据,将二进制数据与预设规则进行匹配,并将与预设规则匹配成功的二进制数据拆分成数据分片;对数据分片进行缩写,获得缩写后的数据分片;发送缩写后的数据,缩写后的数据包括缩写后的数据分片。采用本申请实施例的数据压缩方法,通过将二进制数据与预设规则进行匹配,并将与预设规则匹配成功的二进制数据拆分成数据分片,再对数据分片进行缩写,由于二进制数据与预设规则匹配,从而在对二进制数据进行拆分以及缩写时具有一定的规则性,进而提高数据传输效率。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1A是一种数据传输系统的结构部署图;
图1B是本申请实施例提供的一种基于预设规则的数据压缩方法的流程图;
图1C是本申请实施例应用的一种基于预设规则的数据压缩系统的部署图;
图2A是本申请实施例提供的一种基于预设规则的数据压缩方法的示意图;
图2B是本申请实施例提供的另一种基于预设规则的数据压缩方法的示意图;
图2C是本申请实施例提供的另一种基于预设规则的数据压缩方法的示意图;
图3是本申请实施例提供的一种基于预设规则的数据压缩装置的结构图;
图4是本申请的实施例提供的一种电子设备的硬件运行环境的服务器结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有 作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤的过程、方法、系统、产品或设备没有限定于已列出的步骤,而是可选地还包括没有列出的步骤,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
下面结合附图对本申请实施例涉及的应用场景进行介绍。
图1A是一种数据传输系统的结构部署图。如图1A所示,该系统的第一端与数据发送方连接且第二端与数据接收方连接。
其中,数据发送方,指欲将原始数据发送给数据接收方从而将原始数据发送给数据传输系统进行压缩的角色;
其中,数据传输系统,用于接收数据发送方的原始数据,并通过将原始数据拆分成大小相同的多个数据分片以进行数据传输,从而将来自数据发送方的原始数据发送给数据接收方;
其中,数据接收方,指接收自数据传输系统的多个数据分片并对多个数据分片进行还原后得到原始数据的角色;
在上述系统进行数据传输的过程中,由于原始数据只是被拆分成大小相同的多个数据分片,因此,拆分出来的多个数据分片在数据内容上不具有规则性,从而多个数据分片中每个数据分片的压缩方式也不具有规则性,进而在大量的数据分片的数据压缩过程中花费了较多的时间去匹配压缩方式,可以看出,上述过程对于数据传输速度并没有足够的提高作用。
基于此,本申请实施例提供了一种基于预设规则的数据压缩方法,请参阅图1B,图1B是本申请实施例提供的一种基于预设规则的数据压缩方法的流程图,如图1B所示,该方法包括以下步骤:
101:获取原始数据。
其中,原始数据的数据形式包括数值、文字、图像、声音等形式。
102:对原始数据进行二进制转换,得到二进制数据。
其中,对原始数据进行二进制转换,在具体实现中,可以是通过JavaScript、C#等程序代码的方式实现不同类型原始数据的二进制转换。
其中,二进制数据中包括0和1两种数码。
示例性地,原始数据是数值8,则对数值8进行二进制转换,得到二进制数据为1000。
103:扫描二进制数据,将二进制数据与预设规则进行匹配,并将与预设规则匹配成功的二进制数据拆分成数据分片。
其中,预设规则,指数据存在一定的规则性,预设规则可以有一个以上。在具体实现中,将与预设规则匹配成功的二进制数据拆分成数据分片,可以是分别将与不同预设规则匹配成功的二进制数据段落确定到不同数据分片中,从而完成二进制数据的拆分。
示例性地,有预设规则1和预设规则2,扫描二进制数据,发现二进制数据中的二进制数据段落1与预设规则1匹配成功、二进制数据段落2与预设规则2匹配成功,则确定二进制数据段落1为数据分片1、确定二进制数据段落2为数据分片2,从而完成二进制数据的拆 分。
又一示例性地,假设有二进制数据00001111、预设规则为数据分片中只包含单一二进制数码,即是说,数据分片中只包含0或1,则将该二进制数据与预设规则进行匹配后,由于二进制数据段落0000、1111都只包含单一二进制数码,则将二进制数据拆分为0000和1111两个数据分片。
104:对数据分片进行缩写,获得缩写后的数据分片。
其中,对数据分片进行缩写,在具体实现中,可以是根据数据分片的内容进行缩写;还可以是根据数据分片中包括的数据模式的内容来对数据模式进行缩写,从而完成对每个数据分片的缩写。其中,数据模式,可以包括n位数据,且每种数据模式包括的n位数据与其他数据模式是不相同的,以表征不同的数据内容。
示例性地,假设有0000和1111两个数据分片,由于两个数据分片的内容不同,则可以将数据分片0000缩写为0且将数据分片1111缩写为1从而完成对两个数据分片的缩写;假设每个数据模式包括2位数据,若是根据数据分片中包括的数据模式的内容来对数据模式进行缩写,则可以将数据模式00缩写为0且将数据模式11缩写为1,从而将数据分片0000缩写为00且将数据分片1111缩写为11从而完成对两个数据分片的缩写;
又一示例性地,假设预设规则为数据分片中只包含单一二进制数码,对数据分片进行缩写的方式还可以是:对单一二进制数码对应的个数进行标识处理,得到标识后的个数,标识后的个数为二进制形式,并将标识后的个数与单一二进制数码对应的内容按照预设排列方式排列,则假设数据分片为00000000,则该数据分片由8个单一二进制数码0组成,8的二进制形式为1000,对1000进行标识处理得到(1000),若预设排列方式为单一二进制数码对应的内容位于标识后的个数的下一位,则00000000将被缩写为(1000)0。
需要说明的是,上述仅作为对多个数据分片进行缩写的方式的个别示例,在具体的应用中,对数据分片进行缩写的方式还可以以其他方式的形式存在,在此不做限制。
105:发送缩写后的数据,缩写后的数据包括缩写后的数据分片。
其中,缩写后的数据分片可以是一个或多个,因此,缩写后的数据,在具体实现中,可以是由一个缩写后的数据分片组成、也可以是由多个缩写后的数据分片按照顺序拼接而成。
其中,发送缩写后的数据,在具体实现中,可以是直到数据分片全部缩写完成之后再发送缩写后的数据;也可以是在对数据分片进行缩写的过程中,先发送已完成缩写的部分缩写后的数据分片,同时对剩余数据分片进行缩写,即是说,对数据分片进行缩写和发送缩写后的数据这两个动作可以进行同步处理,数据分片一旦缩写完成就可以发送给数据接收方。
示例性地,若有数据分片1和数据分片2,在具体实现中,可以是把数据分片1缩写成缩写后的数据分片1、且把数据分片2缩写成缩写后的数据分片2后,再把缩写后的数据分片1和缩写后的数据分片2发送出去;也可以是把数据分片1缩写成缩写后的数据分片1后,在对数据分片2进行缩写的同时把缩写后的数据分片1发送出去。
下面结合附图对本申请实施例中所涉及的设备进行介绍。
请参阅图1C,图1C是本申请实施例应用的一种基于预设规则的数据压缩系统的部署图,如图1C所示,该系统包括获取模块、转换模块、扫描模块、缩写模块和发送模块。该系统的第一端与数据发送方连接且第二端与数据接收方连接,其中,每个模块的功能可以由单独的服务器来实现,也可以是多个模块的功能由一个服务器实现。实现不同模块功能的多个服务器互相通信连接。服务器可以是独立的服务器,也可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content  Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。
其中,数据发送方,指欲将原始数据发送给数据接收方,从而将原始数据发送给基于预设规则的数据压缩系统中的获取模块的角色。
其中,获取模块,用于接收数据发送方的原始数据,并将原始数据发送给转换模块。
其中,转换模块,用于在接收到来自获取模块的原始数据后,对原始数据进行二进制转换,得到二进制数据,并将二进制数据发送给扫描模块。
其中,扫描模块,用于在接收到来自转换模块的二进制数据后,扫描二进制数据,将二进制数据与预设规则进行匹配,并将与预设规则匹配成功的二进制数据拆分成数据分片,并将多个数据分片发送给缩写模块。
其中,缩写模块,用于在接收到来自扫描模块的多个数据分片后,对数据分片进行缩写,获得缩写后的数据分片,并将缩写后的数据分片发送给发送模块。
其中,发送模块,用于在接收到来自缩写模块的缩写后的数据分片后,将缩写后的数据分片进行拼接得到缩写后的数据,并将包括缩写后的数据分片的缩写后的数据给数据接收方。
其中,数据接收方,指接收来自基于预设规则的数据压缩系统的缩写后的数据,并对缩写后的数据进行还原从而得到来自数据发送方的原始数据的角色。
示例性地,假设原始数据经过二进制转换后得到二进制数据00000000001111111111、预设规则为数据分片中只包含单一二进制数码,即是说,数据分片中只包含0或1,则将该二进制数据与预设规则进行匹配后,由于二进制数据段落0000000000、1111111111都只包含单一二进制数码,则将二进制数据拆分为0000000000和1111111111两个数据分片。假设对符合该预设规则的数据分片的缩写方式是:对单一二进制数码对应的个数进行标识处理,得到标识后的个数,标识后的个数为二进制形式,并将标识后的个数与单一二进制数码对应的内容按照预设排列方式排列,可以看出,两个数据分片都包含有10个单一二进制数码,10的二进制形式为1010,则对数据分片0000000000进行缩写得到缩写后的数据分片1为(1010)0、对数据分片1111111111进行缩写得到缩写后的数据分片2为(1010)1,对该两个缩写后的数据分片进行拼接,得到缩写后的数据为(1010)0(1010)1进行发送,可见,缩写后的数据的数据量相较于二进制数据有了极大程度的减少,有利于提高数据传输速度。
可以看出,本申请实施例中,获取原始数据;对原始数据进行二进制转换,得到二进制数据;扫描二进制数据,将二进制数据与预设规则进行匹配,并将与预设规则匹配成功的二进制数据拆分成数据分片;对数据分片进行缩写,获得缩写后的数据分片;发送缩写后的数据,缩写后的数据包括缩写后的数据分片。采用本申请实施例的数据压缩方法,通过将二进制数据与预设规则进行匹配,并将与预设规则匹配成功的二进制数据拆分成数据分片,再对数据分片进行缩写,由于二进制数据与预设规则匹配,从而在对二进制数据进行拆分以及缩写时具有一定的规则性,进而提高数据传输效率。
在一个可能的示例中,上述预设规则为包含的单一二进制数码大于预设个数,上述将二进制数据与预设规则进行匹配,并将与预设规则匹配成功的二进制数据拆分成数据分片,包括:
获取第一二进制数据段落,第一二进制数据段落中包含多个单一二进制数码,二进制数码为0或1;
若第一二进制数据段落中包含的单一二进制数码大于预设个数,则确定第一二进制数据段落与预设规则匹配成功;
确定第一二进制数据段落为数据分片。
其中,预设个数可以是5或其他数字。
其中,预设规则为包含的单一二进制数码大于预设个数,目的是使得数据分片中的数据内容单一且高度重复,通过减少数据分片的数据内容复杂度减少后续对数据分片进行缩写的复杂度。
示例性地,预设个数为5,且获取到第一二进制数据段落为00000000,则第一二进制数据段落中包含的单一二进制数码个数为8个即大于预设个数,则确定第一二进制数据段落与预设规则匹配成功,因此,确定第一二进制数据段落00000000为数据分片。
可以看出,本申请实施例中,在预设规则为包含的单一二进制数码大于预设个数时,获取包含多个单一二进制数码的第一二进制数据段落,且在第一二进制数据段落中包含的单一二进制数码大于预设个数时确定第一二进制数据段落与预设规则匹配成功,并确定第一二进制数据段落为数据分片,从而完成将与预设规则匹配成功的二进制数据拆分成数据分片,通过确保数据分片中的数据内容单一且高度重复,从而减少后续对数据分片进行缩写的复杂度,有利于数据传输速度的提高。
在一个可能的示例中,上述对数据分片进行缩写,包括:
获取数据分片中包含的单一二进制数码对应的内容和个数;
对单一二进制数码对应的个数进行标识处理,得到标识后的个数,标识后的个数为二进制形式;
确定缩写后的数据分片,缩写后的数据分片包括按照预设排列方式排列的标识后的个数和单一二进制数码对应的内容。
其中,单一二进制数码对应的内容,指0或1。
其中,对单一二进制数码对应的个数进行标识处理,在具体实现中,可以是对单一二进制数码对应的个数标识()符号或标识其他符号。
其中,按照预设排列方式排列的标识后的个数和单一二进制数码对应的内容,在具体实现中,可以是标识后的个数排列于单一二进制数码对应的内容的前一位、或标识后的个数排列于单一二进制数码对应的内容的后一位。
示例性地,假设对单一二进制数码对应的个数进行标识处理是对单一二进制数码对应的个数标识()符号、且标识后的个数排列于单一二进制数码对应的内容的前一位,数据分片为00000000,获取到该数据分片中包含的单一二进制数码对应的内容为0且个数为8,单一二进制数码对应的个数8的二进制形式为1000,则对单一二进制数码对应的个数进行标识处理,得到标识后的个数为(1000),确定到缩写后的数据分片为(1000)0,从而完成对数据分片进行缩写;同理可得,若标识后的个数排列于单一二进制数码对应的内容的后一位,则缩写后的数据分片为0(1000)。
可以看出,本申请实施例中,在预设规则为包含的单一二进制数码大于预设个数时,获取数据分片中包含的单一二进制数码对应的内容和个数,将数据分片缩写为包括按照预设排列方式排列的标识后的个数和单一二进制数码对应的内容,极大地减少了数据传输量,进而提高了数据传输速度。
在一个可能的示例中,上述方法还包括:
生成数据分片对应的数据字典,数据字典表征对数据分片中单一二进制数码对应的个数的标识处理方式,以及标识后的个数与单一二进制数码对应的内容的预设排列方式;
发送数据字典;或发送数据字典的标识,数据字典的标识用于表征数据分片对应的数据字典。
其中,发送数据字典,是数据发送方在发送缩写后的数据时直接向数据接收方发送数据字典,且数据字典与数据分片对应;发送数据字典的标识,是数据发送方在发送缩写后的数据时只向数据接收方发送表征数据分片对应的数据字典的标识,数据字典的标识与数据分片对应。
在具体实现中,发送数据字典标识的数据传输量小于直接发送数据字典,若数据接收方本地存储有数据字典,可以采用发送数据字典标识的方式进一步提高数据传输速度。
示例性地,请参阅图2A,图2A是本申请实施例提供的一种基于预设规则的数据压缩方法的示意图,如图2A所示,有数据分片为00000000,若该数据分片对应的缩写后的数据分片为(1000)0,因此,生成该数据分片对应的数据字典,数据字典表征该数据分片的缩写方式即表征对单一二进制数码对应的个数进行标识处理是对单一二进制数码对应的个数标识()符号、且标识后的个数排列于单一二进制数码对应的内容的前一位。
可以看出,本申请实施例中,根据数据分片的缩写方式生成数据字典,数据字典表征对数据分片中单一二进制数码对应的个数的标识处理方式,以及标识后的个数与单一二进制数码对应的内容的预设排列方式;发送数据字典或发送表征数据分片对应的数据字典的标识,从而告知数据接收方在缩写后的数据中包括的缩写后的数据分片的对应还原方式,以便于数据接收方根据数据字典对缩写后的数据进行还原得到原始数据。
在一个可能的示例中,在发送缩写后的数据之前,上述方法还包括:
获取二进制数据中除数据分片之外的其他数据;
获取其他数据中,同一重复模式占用的二进制数据长度;
确定占用二进制数据长度最长的重复模式为目标模式;
对目标模式进行缩写,获得缩写后的模式数据;
上述发送缩写后的数据,包括:
发送缩写后的数据,缩写后的数据包括缩写后的数据分片和缩写后的模式数据。
其中,重复模式是上述的一种数据模式。
示例性地,假设数据模式包括2位数据,获取到二进制数据中除数据分片之外的其他数据为10101010000101,则其他数据中包括10、00、01共三种数据模式,其中,数据模式10占用的二进制数据长度为8、数据模式00占用的二进制数据长度为2且数据模式01占用的二进制数据长度为4,则确定占用二进制数据长度最长的重复数据模式10为目标模式,对10101010000101中的目标模式10进行缩写,获得目标模式对应的缩写后的模式数据。若对目标模式进行缩写的方式是将目标模式缩写为0,即缩写后的模式数据为0,则10101010000101将被缩写为0000000101。
可以看出,本申请实施例中,在发送缩写后的数据之前,获取二进制数据中除数据分片之外的其他数据,确定占用二进制数据长度最长的重复模式为目标模式,对目标模式进行缩写,获得缩写后的模式数据,从而缩写后的数据包括缩写后的数据分片和缩写后的模式数据。通过对占用二进制数据长度最长的重复模式进行缩写,极大地减少了数据传输量,进而提高数据传输速度。
在一个可能的示例中,上述方法还包括:
根据同一重复模式占用的二进制数据长度,确定次目标模式,次目标模式为占用二进制数据长度仅次于目标模式的一种重复模式;
对次目标模式进行缩写,获得再次缩写后的模式数据;
上述发送缩写后的数据,包括:
发送再次缩写后的数据,再次缩写后的数据包括缩写后的数据分片、缩写后的模式数据和再次缩写后的模式数据。
示例性地,假设数据模式包括2位数据,获取到二进制数据中除数据分片之外的其他数据为10101010000101,由上述实施例可知,占用二进制数据长度仅次于目标模式10的次目标模式为01,因此,对次目标模式01进行缩写,获得再次缩写后的模式数据。若对次目标模式进行缩写的方式是将次目标模式缩写为1,即再次缩写后的模式数据为1,则经过将目标模式10缩写为0、将次目标模式缩写为1后,10101010000101将被缩写为00000011。
可以看出,本申请实施例中,在对占用二进制数据长度最长的目标模式进行缩写之后,还对占用二进制数据长度仅次于目标模式的次目标模式进行缩写。通过对占用二进制数据长度最长的目标模式、占用二进制数据长度仅次于目标模式的次目标模式进行缩写,进一步地减少了数据传输量,进而更高程度地提高数据传输速度。
在一个可能的示例中,上述方法还包括:
生成其他数据对应的数据字典,数据字典表征目标模式与缩写后的模式数据的对应关系;
发送数据字典;或发送数据字典标识,数据字典标识用于表征其他数据对应的数据字典。
其中,发送数据字典,是数据发送方在发送缩写后的数据时直接向数据接收方发送数据字典,且数据字典与数据分片对应;发送数据字典的标识,是数据发送方在发送缩写后的数据时只向数据接收方发送表征数据分片对应的数据字典的标识,数据字典的标识与数据分片对应。
在具体实现中,发送数据字典标识的数据传输量小于直接发送数据字典,若数据接收方本地存储有数据字典,可以采用发送数据字典标识的方式进一步提高数据传输速度。
示例性地,请参阅图2B,图2B是本申请实施例提供的另一种基于预设规则的数据压缩方法的示意图,如图2B所示,除数据分片之外的其他数据为10101010000101,由上述实施例可知,占用二进制数据长度最长的重复数据模式10为目标模式,且可以将目标模式10缩写为0即缩写后的模式数据为0,则数据字典表征目标模式10与缩写后的模式数据0的对应关系。
可以看出,本申请实施例中,根据目标模式与缩写后的模式数据的对应关系生成数据字典;发送数据字典或发送表征其他数据对应的数据字典的标识,从而告知数据接收方在缩写后的数据中包括的缩写后的模式数据以及缩写后的数据模式对应的还原方式,以便于数据接收方根据数据字典对缩写后的数据进行还原得到原始数据。
在一个可能的示例中,上述方法还包括:
获取缩写数据分片对应的第一时长;
获取预计发送缩写后的数据分片对应的第二时长;
当第一时长与第二时长的差值大于预设时长时,划分数据分片为多个子数据分片;
上述对数据分片进行缩写,包括:
对多个子数据分片中的全部或部分子数据分片进行缩写。
其中,缩写数据分片对应的第一时长、预计发送缩写后的数据分片对应的第二时长,在具体实现中,可以通过分别根据历史平均缩写速度、历史平均数据传输速度推算得到。
其中,预设时长,可以是200ms或其他时长。
其中,划分数据分片为多个子数据分片,在具体实现中,可以是根据数据分片的长度来进行划分,即数据分片被划分为多个子数据分片后,多个子数据分片被缩写为多个缩写后的子数据分片,此时多个子数据分片中的每个子数据分片对应的缩写时长与每个缩写后的子数 据分片对应的发送时长的差值小于或等于预设时长。
其中,当第一时长与第二时长的差值大于预设时长时,划分数据分片为多个子数据分片,目的是避免存在过长的数据分片,导致需要花费大量时间对数据分片进行缩写而造成数据传输通道被空置较长时间,降低数据传输过程中的时间利用率。
示例性地,假设对数据分片进行缩写和发送缩写后的数据这两个动作可以进行同步处理,数据分片一旦缩写完成就可以发送给数据接收方。假设预设时长为200ms,有数据分片000000000000,该数据分片对应的缩写后的数据分片为000000,假设在缩写、发送一位数字时花费的时间都是40ms,由于数据分片有12位数字,则获取到缩写该数据分片对应的第一时长为480ms,且获取到预计发送该缩写后的数据分片对应的第二时长为240ms,可见,第一时长与第二时长的差值大于预设时长时,因此,将数据分片000000000000等大小地划分为第一子数据分片000000和第二子数据分片000000共两个子数据分片,假设两个子数据分片对应的缩写后的子数据分片分别为第一缩写后的子数据分片000和第二缩写后的子数据分片000,可以计算得到,缩写两个子数据分片对应的第一时长为240ms,而发送两个缩写后的子数据分片对应的第二时长为120ms,请参阅图2C,图2C是本申请实施例提供的另一种基于预设规则的数据压缩方法的示意图,如图2C所示,若直接对000000000000进行缩写再发送所需要的数据传输时长1=缩写数据分片000000000000对应的时长+发送缩写后的数据分片000000对应的时长=480+240=720ms,而若是将数据分片000000000000等大小地划分为第一子数据分片000000和第二子数据分片000000共两个子数据分片再进行缩写、发送,由于在发送第一缩写后的子数据分片000的同时可以同时对第二子数据分片000000进行缩写,因此,此时所需要的数据传输时长2=缩写第一子数据分片对应的时长+缩写第二子数据分片对应的时长+发送第二子数据分片对应的时长=240+240+120=600ms,很明显地,数据传输时长2<数据传输时长1。可见,采用本申请实施例的方法,能够避免数据分片过长而降低数据传输过程中的时间利用率,从而提高数据传输速度。
可以看出,本申请实施例中,当缩写数据分片对应的第一时长与预计发送缩写后的数据分片对应的第二时长的差值大于预设时长时,划分数据分片为多个子数据分片,并对多个子数据分片中的全部或部分子数据分片进行缩写。采用本申请实施例的数据压缩方法,使得缩写数据分片的时长和预计发送缩写后的数据分片的时长之间的差值较为合理,通过提高数据传输过程中的时间利用率进而提高了数据传输速度。
与上述图1B所示的实施例一致的,请参阅图3,图3是本申请实施例提供的一种基于预设规则的数据压缩装置的结构图,如图3所示:
一种基于预设规则的数据压缩装置,上述装置包括:
301:获取单元,用于获取原始数据。
302:转换单元,用于对原始数据进行二进制转换,得到二进制数据。
303:扫描单元,用于扫描二进制数据,将二进制数据与预设规则进行匹配,并将与预设规则匹配成功的二进制数据拆分成数据分片。
304:缩写单元,用于对数据分片进行缩写,获得缩写后的数据分片。
305:发送单元,用于发送缩写后的数据,缩写后的数据包括缩写后的数据分片。
可以看出,本申请实施例提供的装置中,获取单元获取原始数据;转换单元对原始数据进行二进制转换,得到二进制数据;扫描单元扫描二进制数据,将二进制数据与预设规则进行匹配,并将与预设规则匹配成功的二进制数据拆分成数据分片;缩写单元对数据分片进行缩写,获得缩写后的数据分片;发送单元发送缩写后的数据,缩写后的数据包括缩写后的数 据分片。采用本申请实施例的数据压缩装置,通过将二进制数据与预设规则进行匹配,并将与预设规则匹配成功的二进制数据拆分成数据分片,再对数据分片进行缩写,由于二进制数据与预设规则匹配,从而在对二进制数据进行拆分以及缩写时具有一定的规则性,进而提高数据传输效率。
具体地,本申请实施例可以根据上述方法示例对基于预设规则的数据压缩装置进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
与上述图1B所示的实施例一致的,本申请实施例提供了一种电子设备,请参阅图4,图4是本申请的实施例提供的一种电子设备的硬件运行环境的服务器结构示意图,如图4所示,电子设备包括处理器、存储器以及存储在存储器上并可在处理器上运行的计算机执行指令,当计算机执行指令被运行时,使得电子设备执行包括任一项基于预设规则的数据压缩方法的步骤的指令。
其中,处理器为CPU。
其中,存储器,可选的,存储器可以为高速RAM存储器,也可以是稳定的存储器,例如磁盘存储器。
本领域技术人员可以理解,图4中示出的服务器的结构并不构成对其的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图4所示,存储器中可以包括操作系统、网络通信模块以及基于预设规则的数据压缩方法的计算机执行指令。操作系统用于管理和控制服务器硬件和软件资源,支持计算机执行指令的运行。网络通信模块用于实现存储器内部各组件之间的通信,以及与服务器内部其他硬件和软件之间通信,通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA2000(CodeDivision Multiple Access 2000,码分多址2000)、WCDMA(Wideband Code DivisionMultiple Access,宽带码分多址)、TD-SCDMA(Time Division-Synchronous CodeDivision Multiple Access,时分同步码分多址)等。
在图4所示的服务器中,处理器用于执行存储器中存储的人员管理的计算机执行指令,实现以下步骤:获取原始数据;对原始数据进行二进制转换,得到二进制数据;扫描二进制数据,将二进制数据与预设规则进行匹配,并将与预设规则匹配成功的二进制数据拆分成数据分片;对数据分片进行缩写,获得缩写后的数据分片;发送缩写后的数据,缩写后的数据包括缩写后的数据分片。
本申请涉及的服务器的具体实施可参见上述基于预设规则的数据压缩方法的各实施例,在此不做赘述。
本申请实施例提供了一种计算机可读存储介质,计算机可读存储介质中存储有计算机指令,当计算机指令在通信装置上运行时,使得通信装置执行以下步骤:获取原始数据;对原始数据进行二进制转换,得到二进制数据;扫描二进制数据,将二进制数据与预设规则进行匹配,并将与预设规则匹配成功的二进制数据拆分成数据分片;对数据分片进行缩写,获得缩写后的数据分片;发送缩写后的数据,缩写后的数据包括缩写后的数据分片。上述计算机包括电子设备。
其中,电子终端设备包括手机、平板电脑、个人数字助理、穿戴式设备等。
其中,计算机可读存储介质可以是上述实施例所述的电子设备的内部存储单元,例如电子设备的硬盘或内存。计算机可读存储介质也可以是上述电子设备的外部存储设备,例如电子设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,计算机可读存储介质还可以既包括电子设备的内部存储单元也包括外部存储设备。计算机可读存储介质用于存储计算机执行指令以及电子设备所需的其他计算机执行指令和数据。计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。
本申请涉及的计算机可读存储介质的具体实施可参见上述基于预设规则的数据压缩方法的各实施例,在此不做赘述。
本申请实施例提供了一种计算机程序产品,其中,计算机程序产品包括计算机程序,计算机程序可操作来使计算机如上述方法实施例中记载的任何一种基于预设规则的数据压缩方法的部分或全部步骤,该计算机程序产品可以是一个软件安装包。
需要说明的是,对于前述的任一种基于预设规则的数据压缩方法的实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请所必须的。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请一种基于预设规则的数据压缩方法、装置、设备和介质的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请一种基于预设规则的数据压缩方法、装置、设备和介质的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。
本申请是参照本申请实施例的方法、硬件产品和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。
尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看附图、公开内容、以及所附权利要求书,可理解并实现所公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。
本领域普通技术人员可以理解上述任一种基于预设规则的数据压缩方法的方法实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory, 简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。
显然,本领域的技术人员可以对本申请提供的一种基于预设规则的数据压缩方法、装置、设备和介质进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (10)

  1. 一种基于预设规则的数据压缩方法,其特征在于,所述方法包括:
    获取原始数据;
    对所述原始数据进行二进制转换,得到二进制数据;
    扫描所述二进制数据,将所述二进制数据与预设规则进行匹配,并将与所述预设规则匹配成功的二进制数据拆分成数据分片;
    对所述数据分片进行缩写,获得缩写后的数据分片;
    发送缩写后的数据,所述缩写后的数据包括所述缩写后的数据分片。
  2. 根据权利要求1所述的方法,其特征在于,所述预设规则为包含的单一二进制数码大于预设个数,所述将所述二进制数据与预设规则进行匹配,并将与所述预设规则匹配成功的二进制数据拆分成数据分片,包括:
    获取第一二进制数据段落,所述第一二进制数据段落中包含多个单一二进制数码,所述二进制数码为0或1;
    若所述第一二进制数据段落中包含的单一二进制数码大于预设个数,则确定所述第一二进制数据段落与预设规则匹配成功;
    确定所述第一二进制数据段落为数据分片。
  3. 根据权利要求2所述的方法,其特征在于,所述对所述数据分片进行缩写,包括:
    获取所述数据分片中包含的单一二进制数码对应的内容和个数;
    对所述单一二进制数码对应的个数进行标识处理,得到标识后的个数,所述标识后的个数为二进制形式;
    确定所述缩写后的数据分片,所述缩写后的数据分片包括按照预设排列方式排列的所述标识后的个数和所述单一二进制数码对应的内容。
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:
    生成所述数据分片对应的数据字典,所述数据字典表征对所述数据分片中单一二进制数码对应的个数的标识处理方式,以及所述标识后的个数与所述单一二进制数码对应的内容的预设排列方式;
    发送所述数据字典;或
    发送所述数据字典的标识,所述数据字典的标识用于表征所述数据分片对应的数据字典。
  5. 根据权利要求2所述的方法,其特征在于,在所述发送缩写后的数据之前,所述方法还包括:
    获取所述二进制数据中除所述数据分片之外的其他数据;
    获取所述其他数据中,同一重复模式占用的二进制数据长度;
    确定占用二进制数据长度最长的重复模式为目标模式;
    对所述目标模式进行缩写,获得缩写后的模式数据;
    所述发送所述缩写后的数据,包括:
    发送所述缩写后的数据,所述缩写后的数据包括所述缩写后的数据分片和所述缩写后的模式数据。
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    生成所述其他数据对应的数据字典,所述数据字典表征所述目标模式与缩写后的模式数据的对应关系;
    发送所述数据字典;或
    发送数据字典标识,所述数据字典标识用于表征所述其他数据对应的数据字典。
  7. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    获取缩写所述数据分片对应的第一时长;
    获取预计发送所述缩写后的数据分片对应的第二时长;
    当所述第一时长与所述第二时长的差值大于预设时长时,划分所述数据分片为多个子数据分片;
    所述对所述数据分片进行缩写,包括:
    对所述多个子数据分片中的全部或部分子数据分片进行缩写。
  8. 一种基于预设规则的数据压缩装置,其特征在于,所述装置包括:
    获取单元,用于获取原始数据;
    转换单元,用于对所述原始数据进行二进制转换,得到二进制数据;
    扫描单元,用于扫描所述二进制数据,将所述二进制数据与预设规则进行匹配,并将与所述预设规则匹配成功的二进制数据拆分成数据分片;
    缩写单元,用于对所述数据分片进行缩写,获得缩写后的数据分片;
    发送单元,用于发送缩写后的数据,所述缩写后的数据包括所述缩写后的数据分片。
  9. 一种电子设备,其特征在于,包括处理器、存储器以及存储在所述存储器上并可在所述处理器上运行的计算机执行指令,当所述计算机执行指令被运行时,使得所述电子设备执行权利要求1-7任一项所述的方法。
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机指令,当所述计算机指令在通信装置上运行时,使得所述通信装置执行权利要求1-7任一项所述的方法。
PCT/CN2022/126267 2021-11-18 2022-10-19 一种基于预设规则的数据压缩方法、装置、设备和介质 WO2023088021A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111367774.4 2021-11-18
CN202111367774.4A CN114040030B (zh) 2021-11-18 2021-11-18 一种基于预设规则的数据压缩方法、装置、设备和介质

Publications (1)

Publication Number Publication Date
WO2023088021A1 true WO2023088021A1 (zh) 2023-05-25

Family

ID=80138088

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/126267 WO2023088021A1 (zh) 2021-11-18 2022-10-19 一种基于预设规则的数据压缩方法、装置、设备和介质

Country Status (2)

Country Link
CN (1) CN114040030B (zh)
WO (1) WO2023088021A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116996698A (zh) * 2023-08-16 2023-11-03 武汉精臣智慧标识科技有限公司 一种图像点阵数据压缩方法及装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040030B (zh) * 2021-11-18 2023-11-24 深圳智慧林网络科技有限公司 一种基于预设规则的数据压缩方法、装置、设备和介质
CN114979794B (zh) * 2022-05-13 2023-11-14 深圳智慧林网络科技有限公司 一种数据发送方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821275A (zh) * 2011-06-08 2012-12-12 中兴通讯股份有限公司 数据压缩方法及装置、数据解压缩方法及装置
JP2015172823A (ja) * 2014-03-11 2015-10-01 株式会社電通国際情報サービス 情報処理装置、情報処理方法及びプログラム
CN110896483A (zh) * 2018-09-12 2020-03-20 阿诺德和里克特电影技术公司 压缩和解压缩图像数据的方法
CN112332853A (zh) * 2020-11-02 2021-02-05 重庆邮电大学 一种基于电力系统的时序数据压缩与恢复方法
CN113346911A (zh) * 2021-06-18 2021-09-03 安谋科技(中国)有限公司 压缩编码方法、电子设备和存储介质
CN114040030A (zh) * 2021-11-18 2022-02-11 深圳智慧林网络科技有限公司 一种基于预设规则的数据压缩方法、装置、设备和介质

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100219991A1 (en) * 2006-01-23 2010-09-02 Bob Tang New Generation Data Compression Methods
JP4719924B2 (ja) * 2007-06-05 2011-07-06 Necアクセステクニカ株式会社 画像処理装置および画像処理方法
CN101552652A (zh) * 2009-05-13 2009-10-07 北京交大思源科技有限公司 一种文件传输方法及传输装置
CN101674315B (zh) * 2009-10-20 2014-12-10 中兴通讯股份有限公司 一种时间戳压缩、解压缩的方法及装置
EP2388780A1 (en) * 2010-05-19 2011-11-23 Fraunhofer-Gesellschaft zur Förderung der Angewandten Forschung e.V. Apparatus and method for extending or compressing time sections of an audio signal
CN102843142B (zh) * 2011-06-23 2013-07-31 深圳市国微电子有限公司 可编程逻辑器件配置数据流压缩、解压缩处理方法及系统
CN103546161A (zh) * 2013-10-31 2014-01-29 江苏引跑网络科技有限公司 基于二进制位处理的无损压缩方法
CN104579573B (zh) * 2015-01-19 2017-12-26 北京华力创通科技股份有限公司 数据传输的反馈信息的编码、解码方法及发送端和接收端
CN106941697A (zh) * 2016-01-04 2017-07-11 中兴通讯股份有限公司 一种发送、接收时间戳信息的方法和装置
CN109962710A (zh) * 2017-12-14 2019-07-02 阿里巴巴集团控股有限公司 数据压缩方法、电子设备及计算机可读存储介质
CN108829901B (zh) * 2018-10-09 2019-01-29 上海岚豹智能科技有限公司 一种平面地图数据压缩方法和装置
CN109660527B (zh) * 2018-12-05 2020-12-29 上海威侃电子材料有限公司 一种打印机数据的压缩传输方法
JP7172537B2 (ja) * 2018-12-11 2022-11-16 株式会社島津製作所 イメージング分析装置
CN109783446A (zh) * 2019-01-04 2019-05-21 北京百度网讯科技有限公司 用于存储数据的方法和装置
GB2594514A (en) * 2020-05-01 2021-11-03 Memoscale As Data compression and transmission technique
CN112803950A (zh) * 2021-01-05 2021-05-14 上海臣星软件技术有限公司 一种数据压缩方法、装置、设备及计算机存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821275A (zh) * 2011-06-08 2012-12-12 中兴通讯股份有限公司 数据压缩方法及装置、数据解压缩方法及装置
JP2015172823A (ja) * 2014-03-11 2015-10-01 株式会社電通国際情報サービス 情報処理装置、情報処理方法及びプログラム
CN110896483A (zh) * 2018-09-12 2020-03-20 阿诺德和里克特电影技术公司 压缩和解压缩图像数据的方法
CN112332853A (zh) * 2020-11-02 2021-02-05 重庆邮电大学 一种基于电力系统的时序数据压缩与恢复方法
CN113346911A (zh) * 2021-06-18 2021-09-03 安谋科技(中国)有限公司 压缩编码方法、电子设备和存储介质
CN114040030A (zh) * 2021-11-18 2022-02-11 深圳智慧林网络科技有限公司 一种基于预设规则的数据压缩方法、装置、设备和介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116996698A (zh) * 2023-08-16 2023-11-03 武汉精臣智慧标识科技有限公司 一种图像点阵数据压缩方法及装置

Also Published As

Publication number Publication date
CN114040030A (zh) 2022-02-11
CN114040030B (zh) 2023-11-24

Similar Documents

Publication Publication Date Title
WO2023088021A1 (zh) 一种基于预设规则的数据压缩方法、装置、设备和介质
WO2017067391A1 (zh) 虚拟机的数据共享方法及装置
JP6931050B2 (ja) バイナリデータをエンコード及びデコードする方法及び装置
CN107292808B (zh) 图像处理方法、装置及图像协处理器
US20210227007A1 (en) Data storage method, encoding device, and decoding device
WO2021073156A1 (zh) 短链接的生成方法、服务器、存储介质及计算机设备
WO2017054597A1 (zh) 表情字符串的处理方法及装置
WO2017000915A1 (zh) 组播传输方法、信息提取方法及相应的终端和设备
WO2022142033A1 (zh) 数据传输方法、装置、电子设备及可读存储介质
CN108418683B (zh) 一种基于汉字结构特征的无载体文本隐写方法
CN115567589B (zh) Json数据的压缩传输方法、装置、设备及存储介质
WO2023071893A1 (zh) 一种基于三种模式的数据压缩方法和数据解压方法
WO2023061177A1 (zh) 基于列式数据扫描的多数据发送和接收方法、装置和设备
US9294125B2 (en) Leveraging language structure to dynamically compress a short message service (SMS) message
WO2018041036A1 (zh) 关键词的查找方法、装置及终端
WO2023061180A1 (zh) 基于多频率的数据发送和接收方法、装置和设备
WO2020020226A1 (zh) 照片分类的方法,设备及计算机可读介质和系统
WO2014029081A1 (zh) 压缩方法及设备
WO2023051319A1 (zh) 基于多数据对齐的数据发送和接收方法、装置和设备
US20150195225A1 (en) Compressing and decompressing electronic messages in message threads
CN115033544A (zh) 一种基于关系数值的数据压缩方法、装置、设备和介质
WO2023130801A1 (zh) 基于函数的数据发送方法、装置、设备和数据接收方法
CN106878431B (zh) 一种转化分布式系统中节点通讯消息格式的方法和装置
CN114040027B (zh) 一种基于双模式的数据压缩方法、装置和数据解压方法
CN104518850B (zh) 将参考模板同步到数据流的方法和信息处理系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22894558

Country of ref document: EP

Kind code of ref document: A1