Image transmission method and device based on SPICE protocol

By establishing image compression structure and sparse matrix storage technology in the SPICE protocol, the contradiction between real-time performance and bandwidth in image transmission is solved, the balance between real-time performance and bandwidth of image transmission in the SPICE protocol is achieved, and the compatibility of image transmission is improved. sex and integrity.

CN114466195BActive Publication Date: 2024-10-11AEROSPACE SCI & ENG NETWORK INFORMATION DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111628480.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2024-10-11
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

The existing SPICE protocol has a contradiction between real-time performance and network bandwidth occupation in image transmission. The non-compression method has strong real-time performance but large bandwidth, while the compression method has small bandwidth but poor real-time performance.

Method used

By establishing an image compression structure, the difference between adjacent images is compressed, and triples are used to store the sparse matrix. The image difference and the serial number of the display interface are transmitted, and retransmission instructions are added to ensure transmission integrity.

Benefits of technology

While ensuring real-time transmission, the network bandwidth is reduced and the compatibility and integrity of image transmission are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114466195B_ABST
    Figure CN114466195B_ABST
Patent Text Reader

Abstract

The present invention discloses an image transmission method and device based on SPICE protocol. The method comprises: establishing an image compression structure, wherein the image compression structure comprises three parts, wherein the first part is used to store the serial number of the display interface, the second part is used to store the image, and the third part is used to store the image difference; receiving the image to be transmitted sent by the virtual machine, calculating the image difference between the image to be transmitted and the image stored in the second part of the image compression structure; storing the image to be transmitted in the second part of the image compression structure, storing the image difference in the third part of the image compression structure, and adding 1 to the serial number of the display interface of the first part of the image compression structure; compressing the image difference, and sending the compressed image difference and the serial number of the display interface to the remote computer. It can be seen that the present invention compresses the image difference of adjacent images before transmission, which reduces the network bandwidth while ensuring the real-time transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing, and in particular to an image transmission method, device, electronic device, and computer-readable storage medium based on the SPICE protocol. Background Art

[0002] SPICE (Simple Protocol for Independent Computing Environment) is a virtualized visual transmission protocol that can be used to deploy virtual desktops on remote computers. It allows users to use the computing and storage resources connected to the remote computer while also providing a localized experience. It also facilitates the unified management of remote clusters on the server side. The SPICE protocol is similar to a rendering protocol for remote desktop management, such as Microsoft's Remote Desktop Protocol or Citrix's Independent Computing Architecture, and can support virtual machine instances such as Windows and Linux.

[0003] The SPICE protocol contains multiple channels, through which various commands from the remote computer are transmitted to the server, and then the server sends the results of the operation back to the remote computer in the form of images or videos for display. Among all the channels, the channel used to process images is the most important. The existing SPICE protocol provides compressed and uncompressed transmission methods for image transmission. The uncompressed method has strong real-time performance, but occupies a large network bandwidth, while the compressed method is just the opposite. Summary of the invention

[0004] In view of the above problems, the present invention is proposed to provide a method, device, electronic device, and computer-readable storage medium for image transmission based on the SPICE protocol that overcome the above problems or at least partially solve the above problems.

[0005] An embodiment of the present invention provides an image transmission method based on the SPICE protocol, the method comprising:

[0006] Establishing an image compression structure, wherein the image compression structure includes three parts, wherein the first part is used to store the serial number of the display interface, the second part is used to store the image, and the third part is used to store the image difference;

[0007] receiving an image to be transmitted sent by the virtual machine, and calculating an image difference between the image to be transmitted and the image stored in the second part of the image compression structure;

[0008] storing the image to be transmitted into the second part of the image compression structure, storing the image difference into the third part of the image compression structure, and increasing the serial number of the display interface of the first part of the image compression structure by 1;

[0009] The image difference is compressed, and the compressed image difference and the serial number of the display interface are sent to a remote computer.

[0010] Optionally, compressing the image difference includes:

[0011] The sparse matrix of the image difference is stored in triplets, and the triplets store positions and values ​​of non-zero elements of the sparse matrix of the image difference.

[0012] Optionally, the method further comprises:

[0013] After receiving the retransmission instruction sent by the remote computer, compress the image stored in the second part of the compression structure, set the serial number of the display interface of the first part of the compression structure to 1, and send the compressed image and serial number 1 to the remote computer.

[0014] Another embodiment of the present invention provides an image transmission method based on the SPICE protocol, the method comprising:

[0015] Establishing an image decompression structure, wherein the image decompression structure includes three parts, wherein the first part is used to store the serial number of the display interface, the second part is used to store the image, and the third part is used to store the image difference;

[0016] Receive and parse the serial number and image sent by the server;

[0017] If the sequence number is 1, the image is stored in the second part of the image decompression structure, the sequence number of the first part of the image decompression structure is set to 1, and the image is decompressed and displayed;

[0018] If the serial number is not 1, the serial number is subtracted from the serial number of the first part of the image decompression structure. If the subtraction result is 1, the image is decompressed and the decompressed image is added to the image of the second part of the image decompression structure and then displayed.

[0019] Optionally, the method further comprises:

[0020] If the subtraction result is not 1, a retransmission instruction is sent to the server.

[0021] Another embodiment of the present invention provides an image transmission device based on the SPICE protocol, comprising:

[0022] An image compression structure establishing unit, used to establish an image compression structure, wherein the image compression structure includes three parts, wherein the first part is used to store the serial number of the display interface, the second part is used to store the image, and the third part is used to store the image difference;

[0023] An image difference calculation unit, configured to receive an image to be transmitted sent by the virtual machine, and calculate an image difference between the image to be transmitted and an image stored in the second part of the image compression structure;

[0024] An image compression structure processing unit, used for storing the image to be transmitted into the second part of the image compression structure, storing the image difference into the third part of the image compression structure, and increasing the serial number of the display interface of the first part of the image compression structure by 1;

[0025] The image sending unit is used to compress the image difference and send the compressed image difference and the serial number of the display interface to the remote computer.

[0026] Optionally, the image sending unit is further used for:

[0027] The sparse matrix of the image difference is stored in triplets, wherein the triplets store positions and values ​​of non-zero elements of the sparse matrix of the image difference;

[0028] The device also includes:

[0029] The image retransmission unit is used to compress the image stored in the second part of the compression structure after receiving the retransmission instruction sent by the remote computer, set the serial number of the display interface of the first part of the compression structure to 1, and send the compressed image and serial number 1 to the remote computer.

[0030] Another embodiment of the present invention provides an image transmission device based on the SPICE protocol, comprising:

[0031] An image decompression structure establishing unit, used to establish an image decompression structure, wherein the image decompression structure includes three parts, wherein the first part is used to store the serial number of the display interface, the second part is used to store the image, and the third part is used to store the image difference;

[0032] An image receiving unit, used for receiving and parsing the sequence number and image sent by the server;

[0033] An image display unit is used to store the image into the second part of the image decompression structure when the serial number is 1, set the serial number of the first part of the image decompression structure to 1, and decompress and display the image; when the serial number is not 1, subtract the serial number from the serial number of the first part of the image decompression structure, if the subtraction result is 1, decompress the image, and add the decompressed image to the image in the second part of the image decompression structure for display.

[0034] Optionally, if the subtraction result is not 1, a retransmission instruction is sent to the server.

[0035] Another embodiment of the present invention provides an electronic device, wherein the electronic device includes:

[0036] processor; and,

[0037] A memory is arranged to store computer executable instructions, which, when executed, cause the processor to perform the above-mentioned image transmission method based on the SPICE protocol.

[0038] Another embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the above-mentioned image transmission method based on the SPICE protocol is implemented.

[0039] The beneficial effect of the present invention is that the present invention compresses the image difference between adjacent images and transmits them through a structure, thereby reducing the network bandwidth while ensuring the real-time transmission.

[0040] The present invention uses triples to store the sparse matrix of image differences, and stores the positions and values ​​of non-zero elements of the sparse matrix of image differences through triples. The compression algorithm is not affected by the image format, and improves the compatibility of image transmission.

[0041] The present invention also adds a retransmission instruction to the SPICE protocol, thereby improving the integrity of image transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A schematic diagram of a flow chart of an image transmission method based on the SPICE protocol according to an embodiment of the present invention;

[0043] Figure 2 A schematic flow chart of an image transmission method based on the SPICE protocol according to another embodiment of the present invention;

[0044] Figure 3 A schematic diagram of an image transmission method based on the SPICE protocol according to an embodiment of the present invention;

[0045] Figure 4 A schematic flow chart of an image transmission method based on the SPICE protocol according to another embodiment of the present invention;

[0046] Figure 5 A schematic diagram of the structure of an image transmission device based on the SPICE protocol according to an embodiment of the present invention;

[0047] Figure 6 A schematic diagram of the structure of an image transmission device based on the SPICE protocol according to an embodiment of the present invention;

[0048] Figure 7 A schematic diagram of the structure of an electronic device according to an embodiment of the present invention is shown;

[0049] Figure 8 A schematic diagram of the structure of a computer-readable storage medium according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0050] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0051] Figure 1 FIG. 1 is a flow chart of an image transmission method based on the SPICE protocol according to an embodiment of the present invention. Figure 1 As shown, the execution subject of the method is a server, including:

[0052] S11: establishing an image compression structure, wherein the image compression structure includes three parts, wherein the first part is used to store the serial number of the display interface, the second part is used to store the image, and the third part is used to store the image difference;

[0053] S12: receiving an image to be transmitted sent by the virtual machine, and calculating an image difference between the image to be transmitted and the image stored in the second part of the image compression structure;

[0054] S13: storing the image to be transmitted into the second part of the image compression structure, storing the image difference into the third part of the image compression structure, and increasing the sequence number of the display interface of the first part of the image compression structure by 1;

[0055] S14: compressing the image difference, and sending the compressed image difference and the serial number of the display interface to a remote computer.

[0056] The image transmission method based on the SPICE protocol in the embodiment of the present invention compresses the image differences of adjacent images through a structure and then transmits them, thereby reducing the network bandwidth while ensuring the real-time transmission.

[0057] It is understandable that the image difference can be regarded as a sparse matrix. In an optional implementation of the embodiment of the present invention, compressing the image difference includes:

[0058] The sparse matrix of the image difference is stored in triplets, and the triplets store positions and values ​​of non-zero elements of the sparse matrix of the image difference.

[0059] The embodiment of the present invention uses triples to store the sparse matrix of image differences, and stores the positions and values ​​of non-zero elements of the sparse matrix of image differences through triples. The compression algorithm is not affected by the image format, and improves the compatibility of image transmission.

[0060] Furthermore, the method further comprises:

[0061] After receiving the retransmission instruction sent by the remote computer, compress the image stored in the second part of the compression structure, set the serial number of the display interface of the first part of the compression structure to 1, and send the compressed image and serial number 1 to the remote computer.

[0062] The embodiment of the present invention also adds a retransmission instruction to the SPICE protocol, thereby improving the integrity of image transmission.

[0063] Figure 2 FIG. 1 is a flow chart of an image transmission method based on the SPICE protocol according to an embodiment of the present invention. Figure 2 As shown, the execution subject of the method is a remote computer, including:

[0064] S21: establishing an image decompression structure, wherein the image decompression structure includes three parts, wherein the first part is used to store the serial number of the display interface, the second part is used to store the image, and the third part is used to store the image difference;

[0065] S22: receiving and parsing the serial number and image sent by the server;

[0066] S23: If the serial number is 1, the image is stored in the second part of the image decompression structure, the serial number of the first part of the image decompression structure is set to 1, and the image is decompressed and displayed; if the serial number is not 1, the serial number is subtracted from the serial number of the first part of the image decompression structure, and if the result of the subtraction is 1, the image is decompressed, and the decompressed image is added to the image in the second part of the image decompression structure and then displayed.

[0067] The image transmission method based on the SPICE protocol of the embodiment of the present invention receives and parses the sequence number and image sent by the server through a structure, decompresses the image and displays it, thereby reducing the network bandwidth while ensuring the real-time transmission.

[0068] In an optional implementation manner of the embodiment of the present invention, the method further includes:

[0069] If the subtraction result is not 1, a retransmission instruction is sent to the server.

[0070] The embodiment of the present invention also adds a retransmission instruction to the SPICE protocol, thereby improving the integrity of image transmission.

[0071] Figure 3 FIG. 1 is a schematic diagram of an image transmission method based on the SPICE protocol according to an embodiment of the present invention. Figure 3 As shown, the embodiment of the present invention transmits an image from a SPICE server to a SPICE client (remote computer) through a structure. The specific process is as follows Figure 4 As shown:

[0072] (1) Compared with the prior art, the compression end and the decompression end of the present invention both add a structure.

[0073] (2) At the compression end, the image to be transmitted is subtracted from the image stored in the structure, and then the image to be transmitted is stored in the second part of the structure. The image difference is then stored in the third part of the structure. Finally, the sequence number of the displayed image is increased by 1, and the image difference is compressed and transmitted to the decompression end together with the image sequence number.

[0074] (3) At the decompression end, first read the image serial number. If the serial number is 1, parse the received data according to the corresponding image format and store it in the second part of the structure. Then set the serial number of the first part to 1 and display the image on the screen. If the serial number is not 1, subtract the received image serial number from the decompression end serial number. If the result is not equal to 1, the compression end is required to retransmit. If the result is equal to 1, decompress the data and then add it to the second part of the structure to obtain the final image. The final image is displayed on the screen. Finally, the final image is stored in the second part of the structure and the serial number of the first part of the structure is increased by 1.

[0075] (4) After receiving the retransmission instruction, the compression end sets the sequence number of the first part of the structure to 1, and sends the sequence number and the image stored in the second part of the structure to the decompression end.

[0076] Figure 5 FIG. 1 is a schematic diagram of the structure of an image transmission device based on the SPICE protocol according to an embodiment of the present invention. Figure 5 As shown, the device comprises:

[0077] An image compression structure establishing unit 51 is used to establish an image compression structure, wherein the image compression structure includes three parts, wherein the first part is used to store the serial number of the display interface, the second part is used to store the image, and the third part is used to store the image difference;

[0078] An image difference calculation unit 52, configured to receive an image to be transmitted sent by the virtual machine, and calculate an image difference between the image to be transmitted and the image stored in the second part of the image compression structure;

[0079] The image compression structure processing unit 53 is used to store the image to be transmitted into the second part of the image compression structure, store the image difference into the third part of the image compression structure, and increase the serial number of the display interface of the first part of the image compression structure by 1;

[0080] The image sending unit 54 is used to compress the image difference and send the compressed image difference and the serial number of the display interface to the remote computer.

[0081] The image transmission device based on the SPICE protocol in the embodiment of the present invention compresses the image differences of adjacent images through a structure and then transmits them, thereby reducing the network bandwidth while ensuring the real-time transmission.

[0082] The image sending unit 54 is further used for:

[0083] The sparse matrix of the image difference is stored in triplets, wherein the triplets store positions and values ​​of non-zero elements of the sparse matrix of the image difference;

[0084] The device also includes:

[0085] The image retransmission unit is used to compress the image stored in the second part of the compression structure after receiving the retransmission instruction sent by the remote computer, set the serial number of the display interface of the first part of the compression structure to 1, and send the compressed image and serial number 1 to the remote computer.

[0086] Figure 6 FIG. 1 is a schematic diagram of the structure of an image transmission device based on the SPICE protocol according to an embodiment of the present invention. Figure 6 As shown, the device comprises:

[0087] An image decompression structure establishing unit 61 is used to establish an image decompression structure, wherein the image decompression structure includes three parts, wherein the first part is used to store the serial number of the display interface, the second part is used to store the image, and the third part is used to store the image difference;

[0088] The image receiving unit 62 is used to receive and parse the serial number and image sent by the server;

[0089] The image display unit 63 is used for storing the image into the second part of the image decompression structure when the serial number is 1, setting the serial number of the first part of the image decompression structure to 1, and decompressing and displaying the image; when the serial number is not 1, subtracting the serial number from the serial number of the first part of the image decompression structure, and if the result of the subtraction is 1, decompressing the image, and adding the decompressed image to the image in the second part of the image decompression structure for display.

[0090] The SPICE protocol-based image transmission device of the embodiment of the present invention receives and parses the serial number and image sent by the server through the structure, decompresses the image and displays it, thereby reducing the network bandwidth while ensuring the real-time transmission.

[0091] Further, if the subtraction result is not 1, a retransmission instruction is sent to the server.

[0092] It should be noted that the image transmission device based on the SPICE protocol in the above embodiments can be used to execute the methods in the above embodiments respectively, so they will not be described in detail one by one.

[0093] In summary, the present invention compresses the image differences between adjacent images and transmits them through a structure, thereby reducing the network bandwidth while ensuring the real-time transmission.

[0094] The present invention uses triples to store the sparse matrix of image differences, and stores the positions and values ​​of non-zero elements of the sparse matrix of image differences through triples. The compression algorithm is not affected by the image format, and improves the compatibility of image transmission.

[0095] The present invention also adds a retransmission instruction to the SPICE protocol, thereby improving the integrity of image transmission.

[0096] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0097] It should be noted that:

[0098] The algorithm and display provided herein are not inherently related to any particular computer, virtual device or other equipment. Various general-purpose devices can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of device. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the description of the above specific language is for the purpose of disclosing the best mode of the present invention.

[0099] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0100] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0101] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0102] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0103] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the device for detecting the wearing state of an electronic device according to an embodiment of the present invention. The present invention may also be implemented as a device or device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program for implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0104] For example, Figure 7 FIG. 1 is a block diagram of an electronic device according to an embodiment of the present invention. The electronic device conventionally includes a processor 71 and a memory 72 arranged to store computer executable instructions (program code). The memory 72 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM. The memory 72 has a memory for storing instructions for executing the program. Figure 1 The storage space 73 for storing program codes 74 of any method steps shown in the figure and in each embodiment. For example, the storage space 73 for storing program codes may include various program codes 74 respectively used to implement various steps in the above method. These program codes can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are usually, for example, Figure 8 The computer-readable storage medium may have Figure 7The memory 72 in the electronic device of the present invention is similarly arranged as a storage segment, a storage space, etc. The program code can be compressed, for example, in an appropriate form. Generally, the storage space stores a program code 81 for executing the steps of the method according to the present invention, that is, there may be program codes such as those read by the processor 71, and when these program codes are run by the electronic device, the electronic device performs the various steps in the method described above.

[0105] The above is only a specific embodiment of the present invention. Under the above teachings of the present invention, those skilled in the art can make other improvements or modifications on the basis of the above embodiments. Those skilled in the art should understand that the above specific description is only to better explain the purpose of the present invention, and the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. An image transmission method based on SPICE protocol, characterized in that: include: Establishing an image compression structure, wherein the image compression structure includes three parts, wherein the first part is used to store the serial number of the display interface, the second part is used to store the image, and the third part is used to store the image difference; receiving an image to be transmitted sent by the virtual machine, and calculating an image difference between the image to be transmitted and the image stored in the second part of the image compression structure; storing the image to be transmitted into the second part of the image compression structure, storing the image difference into the third part of the image compression structure, and increasing the serial number of the display interface of the first part of the image compression structure by 1; The image difference is compressed, and the compressed image difference and the serial number of the display interface are sent to a remote computer.

2. The method according to claim 1, characterized in that The compressing the image difference comprises: The sparse matrix of the image difference is stored in triplets, and the triplets store positions and values ​​of non-zero elements of the sparse matrix of the image difference.

3. The method according to claim 1, characterized in that: The method further comprises: After receiving the retransmission instruction sent by the remote computer, compress the image stored in the second part of the image compression structure, set the serial number of the display interface of the first part of the image compression structure to 1, and send the compressed image and serial number 1 to the remote computer.

4. An image transmission method based on SPICE protocol, characterized in that: include: Establishing an image decompression structure, wherein the image decompression structure includes three parts, wherein the first part is used to store the serial number of the display interface, the second part is used to store the image, and the third part is used to store the image difference; Receive and parse the serial number and image sent by the server; If the sequence number is 1, the image is stored in the second part of the image decompression structure, the sequence number of the first part of the image decompression structure is set to 1, and the image is decompressed and displayed; If the serial number is not 1, the serial number is subtracted from the serial number of the first part of the image decompression structure. If the subtraction result is 1, the image is decompressed and the decompressed image is added to the image of the second part of the image decompression structure and then displayed.

5. The method according to claim 4, characterized in that The method further comprises: If the subtraction result is not 1, a retransmission instruction is sent to the server.

6. An image transmission device based on SPICE protocol, characterized in that: include: An image compression structure establishing unit, used to establish an image compression structure, wherein the image compression structure includes three parts, wherein the first part is used to store the serial number of the display interface, the second part is used to store the image, and the third part is used to store the image difference; An image difference calculation unit, configured to receive an image to be transmitted sent by the virtual machine, and calculate an image difference between the image to be transmitted and an image stored in the second part of the image compression structure; An image compression structure processing unit, used for storing the image to be transmitted into the second part of the image compression structure, storing the image difference into the third part of the image compression structure, and increasing the serial number of the display interface of the first part of the image compression structure by 1; The image sending unit is used to compress the image difference and send the compressed image difference and the serial number of the display interface to the remote computer.

7. The image transmission device according to claim 6, characterized in that: The image sending unit is further used for: The sparse matrix of the image difference is stored in triplets, wherein the triplets store positions and values ​​of non-zero elements of the sparse matrix of the image difference; The image transmission device also includes: The image retransmission unit is used to compress the image stored in the second part of the image compression structure after receiving the retransmission instruction sent by the remote computer, set the serial number of the display interface of the first part of the image compression structure to 1, and send the compressed image and serial number 1 to the remote computer.

8. An image transmission device based on SPICE protocol, characterized in that: include: An image decompression structure establishing unit, used to establish an image decompression structure, wherein the image decompression structure includes three parts, wherein the first part is used to store the serial number of the display interface, the second part is used to store the image, and the third part is used to store the image difference; An image receiving unit, used for receiving and parsing the sequence number and image sent by the server; An image display unit, configured to store the image into the second part of the image decompression structure when the sequence number is 1, set the sequence number of the first part of the image decompression structure to 1, and decompress and display the image; When the serial number is not 1, the serial number is subtracted from the serial number of the first part of the image decompression structure. If the subtraction result is 1, the image is decompressed, and the decompressed image is added to the image of the second part of the image decompression structure and then displayed.

9. An electronic device, characterized in that: The electronic device includes: processor; and, A memory arranged to store computer executable instructions which, when executed, cause the processor to perform a method according to any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the method of any one of claims 1 to 5 is implemented.