Image transmission method, device, equipment and storage medium

By acquiring and processing screen images during screen projection requests and acquiring image adjustment strategies based on network status, the problem of poor image transmission in the prior art is solved, and efficient image transmission under different network status is achieved, reducing delay and lag.

CN119743635APending Publication Date: 2025-04-01祺迹汽车科技(广州)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510056020.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-14
Publication Date
2025-04-01

Smart Images

  • Figure CN119743635A_ABST
    Figure CN119743635A_ABST
Patent Text Reader

Abstract

The present application relates to an image transmission method, device, equipment and storage medium. The method includes: in response to receiving a screen projection request, obtaining a screen image according to the screen projection request; transmitting the screen image to the receiving end, determining the current network state; when the current network state meets the preset conditions, obtaining an image adjustment strategy that matches the preset conditions; processing the screen image according to the image adjustment strategy, obtaining multiple target data packets, and transmitting the multiple target data packets to the receiving end. The solution provided by the present application is conducive to the efficient transmission of screen images under different network conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an image transmission method, device, equipment and storage medium. Background Art

[0002] Among the related technologies, existing screen projection technology performs poorly when faced with challenges such as high latency, bandwidth limitations, large image transmission and poor adaptability. It is particularly prone to freezes, image quality degradation and increased latency in environments with high real-time requirements and unstable networks. Summary of the invention

[0003] In order to solve or partially solve the problems existing in the related art, the present application provides an image transmission method, apparatus, device and storage medium, which can obtain a screen image according to the screen projection request in response to receiving a screen projection request; transmit the screen image to the receiving end and determine the current network status; when the current network status meets the preset conditions, obtain an image adjustment strategy that matches the preset conditions; process the screen image according to the image adjustment strategy to obtain multiple target data packets, and transmit the multiple target data packets to the receiving end, thereby facilitating efficient transmission of the screen image under different network conditions.

[0004] The first aspect of the present application provides an image transmission method, including: in response to receiving a screen projection request, obtaining a screen image according to the screen projection request; transmitting the screen image to a receiving end and determining a current network status; when the current network status meets preset conditions, obtaining an image adjustment strategy that matches the preset conditions; processing the screen image according to the image adjustment strategy to obtain multiple target data packets, and transmitting the multiple target data packets to the receiving end.

[0005] In some embodiments, the current network state includes a round-trip delay that characterizes the network state and a bandwidth that characterizes the network state; the preset conditions include multiple groups of preset round-trip delay ranges and preset bandwidth ranges; the image adjustment strategy includes a resolution adjustment strategy and a data packet size adjustment strategy; when the current network state meets the preset conditions, an image adjustment strategy that matches the preset conditions is obtained, including: obtaining the round-trip delay and bandwidth, and comparing them with multiple groups of preset round-trip delay ranges and preset bandwidth ranges to obtain a set of target preset round-trip delay ranges and target preset bandwidth ranges; obtaining a resolution adjustment strategy and a data packet size adjustment strategy that match the target preset round-trip delay range and the target preset bandwidth range.

[0006] In some implementations, processing the screen image according to the image adjustment strategy to obtain multiple target data packets includes: processing the screen image according to the resolution adjustment strategy and the data packet size adjustment strategy to obtain multiple target data packets.

[0007] In some embodiments, before transmitting multiple target data packets to a receiving end, the method further includes: adding metadata to the multiple target data packets, the metadata including one or more of an image identification number, a total image size, a data packet sequence number, a total number of data packets, and a data packet size.

[0008] In some implementations, the method further includes: transmitting a plurality of target data packets to a receiving end based on a user datagram protocol.

[0009] The second aspect of the present application provides an image transmission device, including: an acquisition module, used to obtain a screen image according to the screen projection request in response to receiving a screen projection request; a determination module, used to transmit the screen image to the receiving end and determine the current network status; an acquisition module, used to obtain an image adjustment strategy that matches the preset conditions when the current network status meets the preset conditions; a processing module, used to process the screen image according to the image adjustment strategy, obtain multiple target data packets, and transmit the multiple target data packets to the receiving end.

[0010] In some embodiments, the current network status includes a round-trip delay characterizing the network status and a bandwidth characterizing the network status; the preset conditions include multiple sets of preset round-trip delay ranges and preset bandwidth ranges; the image adjustment strategy includes a resolution adjustment strategy and a data packet size adjustment strategy; the acquisition module includes: a comparison unit, used to obtain the round-trip delay and bandwidth, and compare them with multiple sets of preset round-trip delay ranges and preset bandwidth ranges to obtain a set of target preset round-trip delay ranges and target preset bandwidth ranges; an adjustment unit, used to obtain a resolution adjustment strategy and a data packet size adjustment strategy that match the target preset round-trip delay range and the target preset bandwidth range.

[0011] In some implementations, the processing module is further used to: process the screen image according to the resolution adjustment strategy and the data packet size adjustment strategy to obtain multiple target data packets.

[0012] A third aspect of the present application provides an electronic device, including: Processor; and The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.

[0013] A fourth aspect of the present application provides a computer-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.

[0014] The technical solution provided by the present application may include the following beneficial effects: being able to obtain a screen image according to a screen projection request in response to receiving a screen projection request; transmitting the screen image to a receiving end to determine the current network status; when the current network status meets the preset conditions, obtaining an image adjustment strategy that matches the preset conditions; processing the screen image according to the image adjustment strategy to obtain multiple target data packets, and transmitting the multiple target data packets to the receiving end, thereby facilitating efficient transmission of the screen image under different network conditions.

[0015] The technical solution of the present application can also: reduce freezes, image quality degradation and delays.

[0016] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and other objects, features and advantages of the present application will become more apparent by describing in more detail the exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.

[0018] Figure 1 is a flowchart of an image transmission method shown in an embodiment of the present application; Figure 2 is a schematic diagram of the execution of the sending end shown in the embodiment of the present application; Figure 3 is a schematic diagram of the execution of the receiving end shown in the embodiment of the present application; Figure 4 is a structural schematic diagram of an image transmission device shown in an embodiment of the present application; Figure 5 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0019] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0020] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0021] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0022] Existing screen projection technology performs poorly when faced with challenges such as high latency, bandwidth limitations, large image transmission and poor adaptability. It is particularly prone to freezes, image quality degradation and increased latency in environments with high real-time requirements and unstable networks.

[0023] In response to the above problems, an embodiment of the present application provides an image transmission method, which can obtain a screen image according to the screen projection request in response to receiving a screen projection request; transmit the screen image to the receiving end to determine the current network status; when the current network status meets the preset conditions, obtain an image adjustment strategy that matches the preset conditions; process the screen image according to the image adjustment strategy to obtain multiple target data packets, and transmit the multiple target data packets to the receiving end, thereby facilitating efficient transmission of the screen image under different network conditions.

[0024] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0025] Figure 1 It is a flowchart of the image transmission method shown in an embodiment of the present application.

[0026] See also Figure 1 , an image transmission method, the method comprising: Step 101, in response to receiving a screen projection request, obtaining a screen image according to the screen projection request.

[0027] In some embodiments, the first device may project the screen to the second device, which may trigger a projection request. For example, when an Android phone projects the screen to a TV, the screen content may be captured by the Android phone to obtain a screen image.

[0028] In some embodiments, the screen image may be compressed into JPEG format.

[0029] Step 102, transmit the screen image to the receiving end and determine the current network status.

[0030] After the screen image is obtained, the screen image can be transmitted to the receiving end based on a preset method.

[0031] For example, the resolution of a compressed image can be dynamically adjusted according to network conditions, and the image can be split into multiple small data packets and sent to the target IP using the UDP protocol (User Datagram Protocol).

[0032] In some embodiments, the current network status may be recorded during data packet transmission, such as bandwidth, delay, jitter, packet loss rate, and utilization rate.

[0033] Step 103: when the current network status meets the preset conditions, obtain an image adjustment strategy that matches the preset conditions.

[0034] You can set up a variety of preset conditions for various types of network status.

[0035] For example, information representing the network status is collected, and a plurality of preset conditions are pre-set according to the information representing the network status, so that the preset conditions include the information representing the network status and the image adjustment strategy.

[0036] In some embodiments, the network status may include an ideal network, a moderate network, a poor network, a very poor network, and the like.

[0037] It can be understood that, through the matching result between the current network status and the preset condition, the image adjustment strategy correspondingly matching the preset condition can be obtained.

[0038] Step 104 , processing the screen image according to the image adjustment strategy to obtain a plurality of target data packets, and transmitting the plurality of target data packets to a receiving end.

[0039] The screen image may be processed according to the image adjustment strategy to obtain a plurality of target data packets to be transmitted that are suitable for transmission in the current network state, such as adjusting the data packet size and resolution so that the target data packet conforms to the adjusted target size and target resolution.

[0040] Transmit multiple target data packets to the receiving end. Since the target data packets are relatively matched with the current network status, it can ensure that the image can be efficiently transmitted in a low-latency, low-bandwidth environment.

[0041] The image transmission method of the embodiment of the present application can obtain a screen image according to the screen projection request in response to receiving the screen projection request; transmit the screen image to the receiving end to determine the current network status; when the current network status meets the preset conditions, obtain an image adjustment strategy that matches the preset conditions; process the screen image according to the image adjustment strategy to obtain multiple target data packets, and transmit the multiple target data packets to the receiving end, thereby facilitating efficient transmission of the screen image under different network conditions.

[0042] In some embodiments, the current network state includes a round trip delay representing the network state and a bandwidth representing the network state; the preset conditions include multiple sets of preset round trip delay ranges and preset bandwidth ranges; the image adjustment strategy includes a resolution adjustment strategy and a data packet size adjustment strategy; when the current network state meets the preset conditions, obtaining an image adjustment strategy matching the preset conditions includes: The round-trip delay and bandwidth are obtained, and compared with multiple sets of preset round-trip delay ranges and preset bandwidth ranges to obtain a set of target preset round-trip delay ranges and target preset bandwidth ranges; a resolution adjustment strategy and a data packet size adjustment strategy that match the target preset round-trip delay range and the target preset bandwidth range are obtained.

[0043] Round Trip Time (RTT) refers to the time from when the sender sends data to when the sender receives the confirmation message from the receiver. Round Trip Time is an important indicator for measuring network transmission performance. Bandwidth refers to the amount of information that flows from one end to the other within a specified time, that is, the data transmission rate. Both round trip time and bandwidth can characterize the network status.

[0044] The preset conditions may include multiple groups of preset round-trip delay ranges and preset bandwidth ranges, for example, the first group: round-trip delay 10ms~20ms, bandwidth 80Mbps~100Mbps; the second group: round-trip delay 80ms~100ms, bandwidth 5Mbps~10Mbps; the third group: round-trip delay 150ms~200ms, bandwidth 1Mbps~2Mbps; the fourth group: round-trip delay 400ms~500ms, bandwidth 0~512Kbps, etc.

[0045] Resolution adjustment strategy and data packet size adjustment strategy, for example, adjusting the resolution to 1080p and the data packet size to 1024KB; adjusting the resolution to 720p and the data packet size to 512KB; adjusting the resolution to 480p and the data packet size to 256KB; adjusting the resolution to 360p and the data packet size to 128KB, etc.

[0046] In some embodiments, the following table 1 may be set.

[0047] Table 1

[0048] In some embodiments, the actual round-trip delay and bandwidth obtained can be compared with the data in Table 1 to obtain a set of target preset round-trip delay ranges and target preset bandwidth ranges to further determine the resolution adjustment strategy and the data packet size adjustment strategy.

[0049] In some embodiments, the screen image may be processed according to a resolution adjustment strategy and a data packet size adjustment strategy to obtain multiple target data packets.

[0050] In some embodiments, after obtaining multiple target data packets and before transmitting the multiple target data packets to a receiving end, metadata can be added to the multiple target data packets, and the metadata includes one or more of an image identification number, a total image size, a data packet sequence number, a total number of data packets, and a data packet size.

[0051] In some embodiments, the following table 2 may be set.

[0052] Table 2

[0053] In some embodiments, multiple target data packets may be transmitted to a receiving end based on a user datagram protocol.

[0054] User Datagram Protocol (UDP) is a simple, connectionless, unreliable datagram-oriented transport layer protocol. IETF RFC 768 is the official specification of UDP. In the TCP / IP model, UDP provides a simple interface above the network layer and below the application layer. UDP only provides unreliable data delivery. Once it sends the data sent by the application to the network layer, it does not retain the data backup (so UDP is sometimes considered an unreliable datagram protocol). UDP only adds multiplexing and data verification (fields) to the header of the IP datagram. Due to the lack of reliability, UDP applications generally must allow a certain amount of packet loss, errors, and duplication.

[0055] For example, the screen content is captured by an Android phone and compressed into JPEG format. Then, the resolution of the compressed image is dynamically adjusted according to the network conditions, and it is split into multiple small data packets and sent to the target IP using the UDP protocol. The receiving end reassembles the data packets according to the packet header information, merges them into a complete image and renders them on the interface to ensure the real-time and integrity of the image transmission.

[0056] The image transmission method of the embodiment of the present application splits a large image into multiple small data packets and adds metadata (such as image ID, total size, packet sequence number, etc.) to the packet header to ensure that the receiving end can correctly reassemble the image. At the same time, combined with the UDP protocol and RTT measurement, the data packet size and unpacking strategy are dynamically adjusted according to the network delay and image resolution to optimize the transmission effect in low-latency and bandwidth-constrained environments.

[0057] In order to better understand the present application, the content of the present application is further explained below in conjunction with the embodiments, but the present application is not limited to the following embodiments.

[0058] Initialize the transmission parameters and calculate the RTT value when casting the screen to adjust the size and unpacking strategy of each data packet in the network transmission according to the RTT value. Check the network bandwidth. If the network bandwidth is sufficient, set a higher resolution and use a larger data packet, and send the corresponding data packet; if the network bandwidth is insufficient, set a lower resolution and use a smaller data packet, and send the corresponding data packet. Receive and verify the integrity of the data packet. If the data packet is complete, reassemble the data packet and display the image; if the data packet is incomplete, re-request the lost data packet and adjust the data packet size and unpacking strategy according to the actual situation. Calculate new transmission parameters, recalculate the resolution and data packet size according to the network situation, update the image ID and data packet sequence, and continue to send new data packets.

[0059] Specifically, Figure 3 is a schematic diagram of the execution of the receiving end shown in the embodiment of the present application; Figure 4 It is a schematic diagram of the structure of the image transmission device shown in an embodiment of the present application.

[0060] See also Figure 3 , the sender triggers screen projection and starts capturing images. Determine whether the image capture frequency is too fast. If the image capture frequency is too fast, skip the current image. If the image capture frequency is not too fast, process the image and send it. During the sending process, compress the image, initialize the UDP connection, calculate the number of data packets, construct the data packet header, and finally send the data packet.

[0061] See also Figure 4 , the receiving end receives the data packet through the screen receiver. Then, extract the data header and screen content. Determine whether it is a new image. If it is determined to be a new image, initialize the receiving buffer. If it is determined not to be a new image, add data to the buffer. Then, check whether the reception is complete. If not, that is, the reception is not complete, continue to receive. If completed, that is, the reception is complete, stitch and render the image. Continue to receive, handle exceptions (connection loss, data packet damage, buffer overflow, etc.), and finally close the receiver.

[0062] The image transmission method of the embodiment of the present application can efficiently transmit large images, split large images into small data packets, and avoid UDP size limitations. It can reduce latency, that is, dynamically adjust the data packet size, unpacking strategy and image resolution to reduce latency. It can enhance reliability and ensure that the image is correctly reassembled even if the network is unstable. It can save bandwidth, compress images and dynamically adjust resolution, reduce data volume, and optimize bandwidth utilization. It is also easy to expand, supports parallel transmission of multiple devices, and adapts to different network environments.

[0063] Figure 4 It is a schematic diagram of the structure of the image transmission device shown in an embodiment of the present application.

[0064] See also Figure 4 The image transmission device 400 of this embodiment includes an obtaining module 410, a determining module 420, an acquisition module 430 and a processing module 440.

[0065] An acquisition module 410 is used to obtain a screen image according to the screen projection request in response to receiving the screen projection request; The determination module 420 is used to transmit the screen image to the receiving end and determine the current network status; An acquisition module 430 is used to acquire an image adjustment strategy matching the preset condition when the current network state meets the preset condition; The processing module 440 is used to process the screen image according to the image adjustment strategy, obtain multiple target data packets, and transmit the multiple target data packets to the receiving end.

[0066] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated again here.

[0067] According to an embodiment of the present application, any multiple modules among the acquisition module 410, the determination module 420, the acquisition module 430 and the processing module 440 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the acquisition module 410, the determination module 420, the acquisition module 430 and the processing module 440 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the acquisition module 410, the determination module 420, the acquisition module 430 and the processing module 440 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be executed.

[0068] Figure 5 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application.

[0069] See also Figure 5 , the electronic device 500 includes a memory 510 and a processor 520 .

[0070] The processor 520 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0071] The memory 510 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 520 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at runtime. In addition, the memory 510 may include any combination of computer-readable storage media, including various types of semiconductor storage chips (such as DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 510 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. Computer-readable storage media do not include carrier waves and transient electronic signals transmitted wirelessly or wired.

[0072] The memory 510 stores executable codes, and when the executable codes are processed by the processor 520 , the processor 520 can execute part or all of the methods described above.

[0073] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.

[0074] Alternatively, the present application can also be implemented as a computer-readable storage medium (or non-transitory machine-readable storage medium or machine-readable storage medium) on which executable code (or computer program or computer instruction code) is stored. When the executable code (or computer program or computer instruction code) is executed by a processor of an electronic device (or server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.

[0075] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. An image transmission method, characterized in that: include: In response to receiving a screen projection request, obtaining a screen image according to the screen projection request; Transmitting the screen image to a receiving end to determine the current network status; When the current network state satisfies a preset condition, acquiring an image adjustment strategy matching the preset condition; The screen image is processed according to the image adjustment strategy to obtain a plurality of target data packets, and the plurality of target data packets are transmitted to the receiving end.

2. The method according to claim 1, characterized in that The current network state includes a round trip delay representing the network state and a bandwidth representing the network state; the preset conditions include multiple sets of preset round trip delay ranges and preset bandwidth ranges; the image adjustment strategy includes a resolution adjustment strategy and a data packet size adjustment strategy; When the current network state satisfies a preset condition, obtaining an image adjustment strategy matching the preset condition includes: Acquire the round trip delay and the bandwidth, and compare them with the multiple groups of preset round trip delay ranges and preset bandwidth ranges to obtain a group of target preset round trip delay ranges and target preset bandwidth ranges; A resolution adjustment strategy and a data packet size adjustment strategy that match the target preset round-trip delay range and the target preset bandwidth range are obtained.

3. The method according to claim 2, characterized in that Processing the screen image according to the image adjustment strategy to obtain a plurality of target data packets, including: The screen image is processed according to the resolution adjustment strategy and the data packet size adjustment strategy to obtain a plurality of target data packets.

4. The method according to claim 1, characterized in that: Before transmitting the plurality of target data packets to the receiving end, the method further comprises: Metadata is added for the multiple target data packets, where the metadata includes one or more of an image identification number, a total image size, a data packet sequence number, a total number of data packets, and a data packet size.

5. The method according to claim 1, characterized in that The method further comprises: Based on the User Datagram Protocol, the multiple target data packets are transmitted to the receiving end.

6. An image transmission device, characterized in that: include: An acquisition module, configured to, in response to receiving a screen projection request, obtain a screen image according to the screen projection request; A determination module, used for transmitting the screen image to a receiving end and determining a current network status; An acquisition module, configured to acquire an image adjustment strategy matching the preset condition when the current network state satisfies the preset condition; A processing module is used to process the screen image according to the image adjustment strategy to obtain multiple target data packets, and transmit the multiple target data packets to the receiving end.

7. The device according to claim 6, characterized in that The current network state includes a round trip delay representing the network state and a bandwidth representing the network state; the preset conditions include multiple sets of preset round trip delay ranges and preset bandwidth ranges; The image adjustment strategy includes a resolution adjustment strategy and a data packet size adjustment strategy; The acquisition module comprises: A comparison unit, configured to obtain the round trip delay and the bandwidth, and compare them with the multiple groups of preset round trip delay ranges and preset bandwidth ranges to obtain a group of target preset round trip delay ranges and target preset bandwidth ranges; The adjustment unit is used to obtain a resolution adjustment strategy and a data packet size adjustment strategy that match the target preset round-trip delay range and the target preset bandwidth range.

8. The device according to claim 7, characterized in that The processing module is further used for: The screen image is processed according to the resolution adjustment strategy and the data packet size adjustment strategy to obtain a plurality of target data packets.

9. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 5.

10. A computer-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 5.