A method and device for processing image groups, a communication device and a storage medium

By adjusting the frame data sending rate in the video network terminal according to the data transmission information of the image group, the problem of sudden increase in network bandwidth and packet loss caused by uneven frame data transmission in the video conferencing scenario is solved, and more stable network performance is achieved. .

CN115514916BActive Publication Date: 2024-08-27海南乾唐视联信息技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210987841.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-17
Publication Date
2024-08-27
Estimated Expiration
2042-08-17

AI Technical Summary

Technical Problem

When video networking terminals are used in video conferencing scenarios, the size of different types of frame data varies greatly, resulting in uneven data packet transmission rates, sudden increases in network bandwidth, reduced network capacity, and prone to network packet loss.

Method used

By obtaining the data transmission information of the previous image group, calculate the sending rate of the first frame data and other frame data of the current image group, ensure that the first sending rate is less than the second sending rate, and send data packets at the corresponding rate to adjust the data Packet sending time to avoid excessive instantaneous bandwidth usage.

Benefits of technology

By extending the sending time of the first frame of data and shortening the sending time of other frame data, the instantaneous bandwidth occupation of the video network is reduced, the risk of network packet loss is reduced, and the pressure of the video network is relieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115514916B
    Figure CN115514916B
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for processing an image group, wherein the method includes: obtaining data transmission information of the current image group and the previous image group; calculating the first transmission rate of each data packet in the first frame data of the current image group and the second transmission rate of each data packet in other frame data of the current image group according to the data transmission information; sending each data packet in the first frame data at the first transmission rate, and sending each data packet in other frame data at the second transmission rate. In the embodiment of the present invention, since the amount of data of the first frame data is greater than the amount of data of other frame data, by making the first transmission rate less than the second transmission rate, the transmission time of the first frame data is increased, and the transmission time of other frame data is reduced, thereby avoiding the first frame data from transmitting a large number of data packets to the visual network in a short time, reducing the instantaneous bandwidth occupancy of the visual network, alleviating the pressure of the visual network, and not prone to network packet loss problems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and in particular to a method for processing an image group, a device for processing an image group, a communication device, and a computer-readable storage medium. Background Art

[0002] With the development and promotion of visual networking technology, more and more visual networking terminals are deployed and used. One of the main functional services of visual networking terminals is audio and video data transmission, so the efficiency of audio and video data transmission in visual networking is crucial to the performance of visual networking. Various algorithms and network technologies are widely used in network data transmission and play an important role in optimizing network performance.

[0003] In related technologies, when a visual networking terminal is used in a video conferencing scenario, the audio and video data collected by the visual networking terminal is encoded and transmitted in the same time period for each frame of data. However, the sizes of different types of frame data vary greatly, which may cause the transmission rate of each data packet of a certain type of frame data to be too fast during transmission, resulting in a sudden increase in instantaneous network bandwidth, reducing the capacity of the visual networking network, and easily causing network packet loss. Summary of the invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide a method for processing an image group and a corresponding device for processing an image group that overcome the above problems or at least partially solve the above problems.

[0005] In order to solve the above problem, an embodiment of the present invention discloses a method for processing an image group, which is applied to a terminal. The method includes:

[0006] Obtain data transmission information of the current image group and the previous image group to be processed;

[0007] Calculating, according to the data transmission information, a first transmission rate of each data packet in a first frame of data of the current image group and a second transmission rate of each data packet in other frame of data of the current image group, wherein the data volume of the first frame of data is greater than the data volume of the other frame of data, and the first transmission rate is less than the second transmission rate;

[0008] Each data packet in the first frame data is sent according to the first sending rate, and each data packet in the other frame data is sent according to the second sending rate.

[0009] Optionally, the data transmission information includes an average transmission rate of each data packet in the previous image group;

[0010] The calculating, according to the data transmission information, a first transmission rate of each data packet in the first frame data of the current image group and a second transmission rate of each data packet in other frame data of the current image group comprises:

[0011] The average sending rate is weighted to obtain the first sending rate and the second sending rate.

[0012] Optionally, performing weighted processing on the average sending rate to obtain the first sending rate and the second sending rate includes:

[0013] Performing weighted processing on the average sending rate according to a first weighting coefficient to obtain the first sending rate;

[0014] Performing weighted processing on the average sending rate according to a second weighting coefficient to obtain the second sending rate;

[0015] The first sending rate is lower than the average sending rate, and the second sending rate is higher than the average sending rate.

[0016] Optionally, the acquiring data transmission information of the previous image group includes:

[0017] Obtaining the transmission time length of the previous image group and the total number of data packets in the previous image group;

[0018] The data transmission information is obtained by dividing the total number by the transmission time length.

[0019] Optionally, sending each data packet in the first frame of data at the first sending rate includes:

[0020] When the last data packet of the previous image group is completely sent from the data packet queue, each data packet in the first frame of data is sent from the data packet queue at the first sending rate.

[0021] Optionally, sending each data packet in the other frame data at the second sending rate includes:

[0022] When the last data packet in the first frame of data is completely sent from the data packet queue, each data packet in the other frame of data is sent from the data packet queue at the second sending rate.

[0023] Optionally, the first frame data packet is an I frame data packet, and the other frame data packets are P frame data packets.

[0024] The embodiment of the present invention further discloses a device for processing an image group, which is applied to a terminal, and the device includes:

[0025] An acquisition module, used to acquire data transmission information of the current image group and the previous image group to be processed;

[0026] a calculation module, configured to calculate, according to the data transmission information, a first transmission rate of each data packet in a first frame of data of the current image group, and a second transmission rate of each data packet in other frame of data of the current image group, wherein the data volume of the first frame of data is greater than the data volume of the other frame of data, and the first transmission rate is less than the second transmission rate;

[0027] A sending module is used to send each data packet in the first frame data according to the first sending rate, and to send each data packet in the other frame data according to the second sending rate.

[0028] Optionally, the data transmission information includes an average transmission rate of each data packet in the previous image group;

[0029] The calculation module is used to perform weighted processing on the average sending rate to obtain the first sending rate and the second sending rate.

[0030] Optionally, the calculation module includes:

[0031] A first weighting module, configured to perform weighted processing on the average sending rate according to a first weighting coefficient to obtain the first sending rate;

[0032] A second weighting module, configured to perform weighted processing on the average sending rate according to a second weighting coefficient to obtain the second sending rate;

[0033] The first sending rate is lower than the average sending rate, and the second sending rate is higher than the average sending rate.

[0034] Optionally, the acquisition module includes:

[0035] A time quantity acquisition module, used to acquire the transmission time length of the previous image group and the total number of data packets in the previous image group;

[0036] The average rate calculation module is used to divide the total number by the transmission time length to obtain the data transmission information.

[0037] Optionally, the sending module is used to send each data packet in the first frame data from the data packet queue at the first sending rate when the last data packet of the previous image group is sent from the data packet queue.

[0038] Optionally, the sending module is used to send each data packet in the other frame data from the data packet queue at the second sending rate when the last data packet in the first frame data is sent from the data packet queue.

[0039] Optionally, the first frame data packet is an I frame data packet, and the other frame data packets are P frame data packets.

[0040] An embodiment of the present invention also discloses a communication device, comprising: one or more processors; and one or more machine-readable media storing instructions thereon, which, when executed by the one or more processors, enable the device to execute the image group processing method as described above.

[0041] The embodiment of the present invention further discloses a computer-readable storage medium, which stores a computer program that enables a processor to execute the image group processing method as described above.

[0042] The embodiments of the present invention include the following advantages:

[0043] The image group processing scheme provided by the embodiment of the present invention is applied to a terminal. When the terminal is located in a visual network and executes a video conferencing service scenario in the visual network, the terminal obtains the data transmission information of the current image group and the previous image group to be processed, and calculates the first transmission rate of each data packet in the first frame data of the current image group and the second transmission rate of each data packet in other frame data of the current image group according to the data transmission information. Among them, the data volume of the first frame data is greater than the data volume of other frame data, and the first transmission rate is less than the second transmission rate. Then, each data packet in the first frame data is sent at the first transmission rate, and each data packet in the other frame data is sent at the second transmission rate.

[0044] The embodiment of the present invention combines the data transmission information of the previous image group to recalculate the transmission rate of each data packet in the first frame data and other frame data in the current image group. Moreover, the first transmission rate of each data packet in the first frame data is less than the second transmission rate of each data packet in the other frame data. Since the amount of data in the first frame data is greater than the amount of data in other frame data, by making the first transmission rate less than the second transmission rate, the transmission time of the first frame data is increased, and the transmission time of other frame data is reduced, thereby avoiding the first frame data from transmitting a large number of data packets to the visual network in a short time, reducing the instantaneous bandwidth occupancy of the visual network, alleviating the pressure on the visual network, and not prone to network packet loss problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 is a flowchart of a method for processing an image group according to an embodiment of the present invention;

[0046] Figure 2It is a flow chart of data packet caching in a data processing solution based on a visual networking terminal according to an embodiment of the present invention;

[0047] Figure 3 It is a flow chart of data packet transmission in a data processing solution based on a visual networking terminal according to an embodiment of the present invention;

[0048] Figure 4 It is a structural block diagram of a device for processing an image group according to an embodiment of the present invention. DETAILED DESCRIPTION

[0049] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0050] In the related art, the image groups (Group of Pictures, GOP for short) collected in the visual network terminal are transmitted over the network at the same frame time interval after encoding. Since the sizes of different types of frame data in the image group vary greatly, but the total time length to complete each frame of data transmission is the same, this will cause the transmission rate of each data packet to be faster when the frame data with a larger data capacity is transmitted, resulting in a sudden increase in instantaneous network bandwidth, causing bandwidth impact on the visual network. For example, the visual network terminal sends 30 frames of data per second, and one frame of data is sent approximately every 33ms. Each frame of data contains multiple data packets, and the size of the frame data is different, that is, the amount of data to be sent every 33ms is different, which will cause uneven data transmission.

[0051] In order to solve the problems in the related art, the visual networking terminal in the embodiment of the present invention uses the data transmission information of the previous image group to calculate the first transmission rate of each data packet in the first frame data of the current image group, and the second transmission rate of each data packet in the other frame data of the current image group, and ensures that the first transmission rate is less than the second transmission rate. Then, each data packet in the first frame data is sent at the first transmission rate, and each data packet in the other frame data is sent at the second transmission rate, so that the transmission time length of the first frame data is greater than the transmission time length of the other frame data.

[0052] Reference Figure 1 , shows a flowchart of a method for processing an image group according to an embodiment of the present invention. The method can be applied in a terminal. The method can specifically include the following steps:

[0053] Step 101: Obtain data transmission information of a current image group and a previous image group to be processed.

[0054] In an embodiment of the present invention, a terminal connected to a visual network may be referred to as a visual network terminal. The application layer of the visual network terminal sends a data packet through a network socket, and the data packet passes through the protocol layer to the bottom layer of the network subsystem of the operating system. The bottom layer of the network subsystem identifies whether the data packet needs to be controlled for packet transmission. If it does not need to be controlled for packet transmission, the data packet is directly sent to the receiving end through the network card. If it needs to be controlled for packet transmission, the data packet is cached in a data packet queue.

[0055] When the network subsystem bottom layer identifies whether a data packet needs to be controlled for packet sending, it first identifies whether the data packet is a visual network data packet based on the packet length and protocol type. If it is a visual network data packet, it then identifies whether the data in the data packet is video stream data based on the data type. If it is video stream data, it then determines which packet in the image group the data packet belongs to, that is, the number of the data packet in the image group. Finally, the data packet is cached in the data packet queue. Among them, when the data packet is not a visual network data packet, or the data type is not video stream data, it indicates that the data packet does not need to be controlled for packet sending, and it is directly sent to the receiving end through the network card.

[0056] When the visual networking terminal obtains the first data packet of the image group, it can be considered that the visual networking terminal obtains the current image group. In addition, the last data packet of the previous image group has also been sent, and the data transmission information of the previous image group can be obtained.

[0057] In practical applications, the data transmission information of the previous image group may include but is not limited to: the total number of data packets of the previous image group and the transmission time consumed or occupied by the data packets in the previous image group to be transmitted completely.

[0058] Step 102: Calculate, according to the data transmission information, a first transmission rate of each data packet in the first frame data of the current image group and a second transmission rate of each data packet in other frame data of the current image group.

[0059] In an embodiment of the present invention, the types of frames may include intra-frame coded frames (I frames, often called key frames), predictive coded image frames (P frames, which are inter-frame coded frames, using previous I frames or P frames for predictive coding), and bidirectional predictive coded image frames (B frames, which are inter-frame coded frames, using previous and / or subsequent I frames or P frames for bidirectional predictive coding, and B frames cannot be used as reference frames). An image group may be composed of one I frame data and multiple P frame / B frame data, and each frame data may contain at least one data packet. The first frame data of an image group is the I frame data. The amount of data of the first frame data is greater than the amount of data of other frame data.

[0060] In practical applications, the total packet transmission time (GOP length) of different image groups is usually constant. That is, the length of time consumed or occupied by the transmission of each data packet of the previous image group is usually the same as the length of time consumed or occupied by the transmission of each data packet of the current image group. In an embodiment of the present invention, the average transmission rate of each data packet in the previous image group can be calculated based on the data transmission information of the previous image group, and then the first transmission rate of each data packet in the first frame data of the current image group and the second transmission rate of each data packet in other frame data of the current image group can be calculated using the average transmission rate of the previous image group. Moreover, it is necessary to ensure that the first transmission rate is less than the second transmission rate.

[0061] Step 103: Send each data packet in the first frame data at a first sending rate, and send each data packet in other frame data at a second sending rate.

[0062] In the embodiment of the present invention, since the calculated first transmission rate is different from the second transmission rate, the transmission rates of the first frame data and the data packets in the other frame data in the current image group are different. Specifically, the first transmission rate is less than the second transmission rate. The data packets in the first frame data with a relatively large data volume are transmitted at the relatively small first transmission rate, and the data packets in the other frame data with a relatively small data volume are transmitted at the relatively large second transmission rate.

[0063] The image group processing scheme provided by the embodiment of the present invention is applied to a terminal. When the terminal is located in a visual network and executes a video conferencing service scenario in the visual network, the terminal obtains the data transmission information of the current image group and the previous image group to be processed, and calculates the first transmission rate of each data packet in the first frame data of the current image group and the second transmission rate of each data packet in other frame data of the current image group according to the data transmission information. Among them, the data volume of the first frame data is greater than the data volume of other frame data, and the first transmission rate is less than the second transmission rate. Then, each data packet in the first frame data is sent at the first transmission rate, and each data packet in the other frame data is sent at the second transmission rate.

[0064] The embodiment of the present invention combines the data transmission information of the previous image group to recalculate the transmission rate of each data packet in the first frame data and other frame data in the current image group. Moreover, the first transmission rate of each data packet in the first frame data is less than the second transmission rate of each data packet in the other frame data. Since the amount of data in the first frame data is greater than the amount of data in other frame data, by making the first transmission rate less than the second transmission rate, the transmission time of the first frame data is increased, and the transmission time of other frame data is reduced, thereby avoiding the first frame data from transmitting a large number of data packets to the visual network in a short time, reducing the instantaneous bandwidth occupancy of the visual network, alleviating the pressure on the visual network, and not prone to network packet loss problems.

[0065] In an exemplary embodiment of the present invention, the previous image group may include an average transmission rate of each data packet in the previous image group. An implementation method of calculating the first transmission rate of each data packet in the first frame data of the current image group and the second transmission rate of each data packet in other frame data of the current image group according to the data transmission information is to perform weighted processing on the average transmission rate to obtain the first transmission rate and the second transmission rate.

[0066] In practical applications, when weighting the average transmission rate to obtain the first transmission rate, the average transmission rate may be weighted according to the first weighting coefficient to obtain the first transmission rate. For example, the first weighting coefficient is 0.8, and the first weighting coefficient may be multiplied by the average transmission rate to obtain the first transmission rate. The first weighting coefficient may be set to be less than 1 based on experience, and the first transmission rate obtained by multiplying the first weighting coefficient by the average transmission rate will be smaller than the average transmission rate.

[0067] In practical applications, when the average transmission rate is weighted to obtain the second transmission rate, the average transmission rate may be weighted according to the second weighting coefficient to obtain the second transmission rate. For example, the second weighting coefficient is 1.1, and the second weighting coefficient may be multiplied by the average transmission rate to obtain the second transmission rate. The second weighting coefficient may be set to be greater than 1 based on experience, and the second transmission rate obtained by multiplying the second weighting coefficient by the average transmission rate will be greater than the average transmission rate.

[0068] It should be noted that the first weighting coefficient and the second weighting coefficient can be set or adjusted based on experience, and the embodiment of the present invention does not impose specific restrictions on the numerical values, units, etc. of the first weighting coefficient and the second weighting coefficient. Moreover, the embodiment of the present invention does not impose specific restrictions on the technical means used to obtain the first transmission rate using the first weighting coefficient and the average transmission rate, and to obtain the second transmission rate using the second weighting coefficient and the average transmission rate.

[0069] In an exemplary embodiment of the present invention, an implementation method of obtaining data transmission information of the previous image group is to obtain the transmission time length of the previous image group and the total number of data packets in the previous image group, and divide the total number by the transmission time length to obtain the data transmission information. The transmission time length of the previous image group is usually the same as the transmission time length of the current image group.

[0070] In an exemplary embodiment of the present invention, an implementation method of sending each data packet in the first frame data at a first sending rate is to send each data packet in the first frame data from the data packet queue at the first sending rate when the last data packet of the previous image group is sent from the data packet queue. In an embodiment of the present invention, each data packet of the current image group is first cached in the corresponding data packet queue, and the visual network terminal will send out each data packet in the current image group only when all the data packets in the previous image group are sent. Therefore, the data packet queue is used to cache the data packets to be sent. In actual applications, the data packet queue can only cache each data packet of the previous image group, or only cache each data packet of the current image group, or cache each data packet of the previous image group and each data packet of the current image group at the same time.

[0071] In an exemplary embodiment of the present invention, an implementation method of sending each data packet in other frame data at a second sending rate is to send each data packet in other frame data from the data packet queue at the second sending rate when the last data packet in the first frame data is sent from the data packet queue.

[0072] In an exemplary embodiment of the present invention, the first frame data packet may be an I frame data packet, and the other frame data packets may be P frame data packets.

[0073] Based on the above description of an embodiment of a method for processing an image group, a data processing solution based on a visual networking terminal is introduced below. The data processing solution is applied to a visual networking terminal.

[0074] Reference Figure 2 , Figure 2 A schematic flow chart of data packet caching in a data processing solution based on a visual networking terminal according to an embodiment of the present invention is shown.

[0075] The visual network terminal identifies whether the data packet belongs to the video data type according to the data type of the data packet. If the data packet does not belong to the video data type, there is no need to control the packet sending, and the data packet can be directly sent through the network card. If the data packet belongs to the video data type, it is determined whether the data packet is the first data packet of the I frame data of the image group. Generally, the first data packet of the I frame data is the data packet numbered 0 in the I frame, the second data packet of the I frame data is the data packet numbered 1 in the I frame, and so on. If the data packet is not the first data packet of the I frame data, the data packet is cached in the data packet queue. If the data packet is the first data packet of the I frame data, the first sending rate of the data packet and the second sending rate of the data packet of the P frame data are calculated in combination with the average sending rate of the previous image group. Then, the data packet is cached in the data packet queue. When the next data packet is received, it is re-identified whether the data packet belongs to the video data type.

[0076] Reference Figure 3 , Figure 3 A schematic diagram of the flow of data packet transmission in a data processing solution based on a visual networking terminal according to an embodiment of the present invention is shown.

[0077] A high-precision timer is provided in the operating system kernel of the visual networking terminal, and the high-precision timer is used to determine whether each data packet in the data packet queue has reached the sending time point. The sending time point can be calculated based on the first sending rate and the time point when the previous data packet is sent, or the second sending rate and the time point when the previous data packet is sent. Alternatively, the sending time point can be input through the operating system. For example, the time point when the previous data packet is sent is t, the first sending rate is v1, and the number of data packets of I frame data is n, then n / v1 represents the length of time required for each data packet of I frame data to be sent. The time interval between n data packets is n-1. n / v1(n-1) is the time interval. Starting from time point t, the next data packet can be sent from the data packet queue every n / v1(n-1) time interval. If the high-precision timer is used to determine that each data packet in the data packet queue has not reached the sending time point, the step of determining whether the sending time point has been reached is re-executed. If the high-precision timer is used to determine that each data packet in the data packet queue has reached the sending time point, the calculated time interval is used to determine whether the sending interval condition is met. If the high-precision timer is used to determine that the calculated time interval has not passed since the time point when the last data packet was sent, it is considered that the data packet sending interval condition is not met. Re-execute the step of determining whether the sending time point has been reached. If the high-precision timer is used to determine that the calculated time interval has passed since the time point when the last data packet was sent, it is considered that the data packet sending interval condition is met. If there are data packets in the data packet queue, send a data packet from the data packet queue. Moreover, update the time point when the last data packet was sent in the high-precision timer. And update the data packet sending counter. Then re-execute the step of determining whether the sending interval condition is met. After all the data packets of the I frame data have been sent, the time interval can be recalculated according to the second sending rate corresponding to the P frame data, and the data packets in the P frame data can continue to be sent in the manner of sending each data packet in the I frame data packet as described above.

[0078] In the embodiment of the present invention, each data packet of I frame data is sent at a first sending rate, and each data packet of P frame data is sent at a second sending rate, and the first sending rate is less than the second sending rate. In other words, the sending rate of each data packet of I frame data is different from that of each data packet of P frame data. Since the data volume of I frame data is greater than that of P frame data, when the first sending rate is less than the second sending rate, the overall sending duration of I frame data is greater than the overall sending duration of P frame data. Compared with the sending process of each data packet in the previous image group, the sending duration of I frame data is extended, and the sending duration of P frame data is shortened, thereby avoiding the problem of too many data packets being instantly sent to the visual network and alleviating the network pressure of the visual network.

[0079] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0080] Reference Figure 4 , shows a structural block diagram of an image group processing device according to an embodiment of the present invention, , the device can be applied to a terminal, and the device can specifically include the following modules.

[0081] An acquisition module 41 is used to acquire data transmission information of a current image group and a previous image group to be processed;

[0082] a calculation module 42, configured to calculate, according to the data transmission information, a first transmission rate of each data packet in a first frame of data of the current image group, and a second transmission rate of each data packet in other frame of data of the current image group, wherein the data volume of the first frame of data is greater than the data volume of the other frame of data, and the first transmission rate is less than the second transmission rate;

[0083] The sending module 43 is used to send each data packet in the first frame data at the first sending rate, and to send each data packet in the other frame data at the second sending rate.

[0084] In an exemplary embodiment of the present invention, the data transmission information includes an average transmission rate of each data packet in the previous image group;

[0085] The calculation module 42 is used to perform weighted processing on the average sending rate to obtain the first sending rate and the second sending rate.

[0086] In an exemplary embodiment of the present invention, the calculation module 42 includes:

[0087] A first weighting module, configured to perform weighted processing on the average sending rate according to a first weighting coefficient to obtain the first sending rate;

[0088] A second weighting module, configured to perform weighted processing on the average sending rate according to a second weighting coefficient to obtain the second sending rate;

[0089] The first sending rate is lower than the average sending rate, and the second sending rate is higher than the average sending rate.

[0090] In an exemplary embodiment of the present invention, the acquisition module 41 includes:

[0091] A time quantity acquisition module, used to acquire the transmission time length of the previous image group and the total number of data packets in the previous image group;

[0092] The average rate calculation module is used to divide the total number by the transmission time length to obtain the data transmission information.

[0093] In an exemplary embodiment of the present invention, the sending module 43 is used to send each data packet in the first frame data from the data packet queue at the first sending rate when the last data packet of the previous image group is sent from the data packet queue.

[0094] In an exemplary embodiment of the present invention, the sending module 43 is used to send each data packet in the other frame data from the data packet queue at the second sending rate when the last data packet in the first frame data is sent from the data packet queue.

[0095] In an exemplary embodiment of the present invention, the first frame data packet is an I frame data packet, and the other frame data packets are P frame data packets.

[0096] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0097] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0098] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of 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 embodiments of 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 codes.

[0099] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0100] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0101] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0102] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0103] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including a..." do not exclude the presence of other identical elements in the process, method, article or terminal device including the elements.

[0104] The above is a detailed introduction to a method for processing an image group and a device for processing an image group provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for processing an image group, characterized in that: Applied to a terminal, the method comprises: Acquire data transmission information of the current image group to be processed and the previous image group; the data transmission information includes an average transmission rate of each data packet in the previous image group; Performing weighted processing on the average sending rate to obtain a first sending rate of each data packet in a first frame of data of the current image group, and a second sending rate of each data packet in other frame of data of the current image group, wherein the data volume of the first frame of data is greater than the data volume of the other frame of data, and the first sending rate is less than the second sending rate; the first sending rate is less than the average sending rate, and the second sending rate is greater than the average sending rate; Each data packet in the first frame data is sent according to the first sending rate, and each data packet in the other frame data is sent according to the second sending rate.

2. The method according to claim 1, characterized in that: The weighted processing of the average sending rate to obtain a first sending rate of each data packet in the first frame data of the current image group and a second sending rate of each data packet in other frame data of the current image group includes: Performing weighted processing on the average sending rate according to a first weighting coefficient to obtain the first sending rate; The average sending rate is weighted according to a second weighting coefficient to obtain the second sending rate.

3. The method according to claim 1, characterized in that The acquiring of data transmission information of the previous image group includes: Obtaining the transmission time length of the previous image group and the total number of data packets in the previous image group; The data transmission information is obtained by dividing the total number by the transmission time length.

4. The method according to claim 1, characterized in that: The sending of each data packet in the first frame of data at the first sending rate includes: When the last data packet of the previous image group is completely sent from the data packet queue, each data packet in the first frame of data is sent from the data packet queue at the first sending rate.

5. The method according to claim 4, characterized in that The sending of each data packet in the other frame data at the second sending rate comprises: When the last data packet in the first frame of data is completely sent from the data packet queue, each data packet in the other frame of data is sent from the data packet queue at the second sending rate.

6. The method according to claim 1, characterized in that The first frame data packet is an I frame data packet, and the other frame data packets are P frame data packets.

7. A device for processing an image group, characterized in that: Applied to a terminal, the device comprises: An acquisition module, used to acquire data transmission information of a current image group to be processed and a previous image group; the data transmission information includes an average transmission rate of each data packet in the previous image group; a calculation module, configured to perform weighted processing on the average sending rate to obtain a first sending rate of each data packet in a first frame of data of the current image group, and a second sending rate of each data packet in other frame of data of the current image group, wherein the data volume of the first frame of data is greater than the data volume of the other frame of data, and the first sending rate is less than the second sending rate; the first sending rate is less than the average sending rate, and the second sending rate is greater than the average sending rate; A sending module is used to send each data packet in the first frame data according to the first sending rate, and to send each data packet in the other frame data according to the second sending rate.

8. A communication device, characterized in that: include: one or more processors; and One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the apparatus to perform the image group processing method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer program stored therein enables the processor to execute the image group processing method according to any one of claims 1 to 6.