Image processing method and device and electronic equipment
By performing target processing based on network bandwidth pressure and picture complexity on the image to be transmitted, the problem of poor image transmission effect when the network bandwidth pressure is high is solved, and more stable and high-quality image transmission is achieved.
Patent Information
- Application Number
- CN202311681433.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-08
- Publication Date
- 2025-06-10
AI Technical Summary
In the case of high network bandwidth pressure, the image transmission effect of video stream data is poor, and frame drops, seconds jumps, and lags often occur. The existing technologies such as code stream adaptation and switching video main and auxiliary streaming methods cannot effectively improve the network transmission effect of images.
By determining the network bandwidth pressure and the picture complexity of the image to be transmitted, the image to be transmitted is subjected to target processing, including encoding processing or image picture processing and encoding processing, and the target image is obtained and then transmitted through the target network.
It effectively improves the network transmission effect of the images to be transmitted, reduces the occurrence of frame drops, seconds jumps, lags, etc., and improves the transmission quality of the image.
Smart Images

Figure CN120128762A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of image processing, and in particular, to an image processing method, apparatus, and electronic device. Background Art
[0002] When transmitting video stream data over a network, the transmission effect of the images in the video stream data is affected by the network bandwidth pressure. If the network bandwidth pressure is too high, the network transmission effect of the images will be poor, such as frame loss, second jump, and freezing.
[0003] Currently, mainly the method of bitstream adaptation or the method of switching the main and auxiliary video streams is used to reduce the network bandwidth pressure. However, the method of bitstream adaptation mainly reduces the bit rate by adjusting the parameters on the encoding side, which will result in poor display quality of the images and is disadvantageous for obtaining key frame information; while the method of switching the main and auxiliary video streams requires the video stream data sender and receiver to establish and interact with two video stream data, which will instead increase the network bandwidth pressure and reduce the network transmission effect of the images.
[0004] Therefore, the above methods cannot effectively improve the network transmission effect of the images. Summary of the Invention
[0005] The present application provides an image processing method, apparatus, and electronic device, which can effectively improve the network transmission effect of the image to be transmitted by processing the image to be transmitted.
[0006] The present application provides an image processing method, which may include:
[0007] Determine the network bandwidth pressure of the target network for transmitting video stream data;
[0008] Perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity of the image to be transmitted in the video stream data to obtain a target image; wherein, the target processing includes encoding processing, or the target processing includes image picture processing and the encoding processing;
[0009] Transmit the target image through the target network.
[0010] According to an image processing method provided by the present application, the performing target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity of the image to be transmitted in the video stream data includes:
[0011] In the case where the network bandwidth pressure is greater than or equal to the first network bandwidth pressure threshold, perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity.
[0012] An image processing method provided by the present application, which performs target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity, includes:
[0013] When the network bandwidth pressure is less than the second network bandwidth pressure threshold and the picture complexity is less than the first picture complexity threshold, perform the encoding process on the image to be transmitted to obtain the target image.
[0014] An image processing method provided by the present application, which performs target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity, includes:
[0015] When the network bandwidth pressure is less than the second network bandwidth pressure threshold and the picture complexity is greater than or equal to the first picture complexity threshold, perform the first image picture processing and the encoding process on the image to be transmitted in sequence to obtain the target image;
[0016] Or,
[0017] When the network bandwidth pressure is greater than the second network bandwidth pressure threshold and the picture complexity is less than the first picture complexity threshold, perform the first image picture processing and the encoding process on the image to be transmitted in sequence to obtain the target image.
[0018] An image processing method provided by the present application, which performs target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity, includes:
[0019] When the network bandwidth pressure is greater than the second network bandwidth pressure threshold and the picture complexity is greater than or equal to the first picture complexity threshold, perform the second image picture processing and the encoding process on the image to be transmitted in sequence to obtain the target image, and the processing intensity of the second image picture processing is higher than that of the first image picture processing.
[0020] An image processing method provided by the present application, which performs target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity, includes:
[0021] When the network bandwidth pressure is less than the second network bandwidth pressure threshold, the picture complexity is greater than or equal to the first picture complexity threshold and less than the second picture complexity threshold, perform the first image picture processing and the encoding process on the image to be transmitted in sequence to obtain the target image;
[0022] Or,
[0023] When the network bandwidth pressure is greater than or equal to the second network bandwidth pressure threshold and the picture complexity is less than the first picture complexity threshold, the first image picture processing and the encoding processing are sequentially performed on the image to be transmitted to obtain the target image.
[0024] According to an image processing method provided by the present application, the target processing of the image to be transmitted according to the network bandwidth pressure and the picture complexity includes:
[0025] When the network bandwidth pressure is less than the second network bandwidth pressure threshold and the picture complexity is greater than or equal to the second picture complexity threshold, the second image picture processing and the encoding processing are sequentially performed on the image to be transmitted to obtain the target image;
[0026] Or,
[0027] When the network bandwidth pressure is greater than or equal to the second network bandwidth pressure threshold, the picture complexity is greater than or equal to the first picture complexity threshold and less than the second picture complexity threshold, the second image picture processing and the encoding processing are sequentially performed on the image to be transmitted to obtain the target image, and the processing intensity of the second image picture processing is higher than that of the first image picture processing.
[0028] According to an image processing method provided by the present application, the target processing of the image to be transmitted according to the network bandwidth pressure and the picture complexity includes:
[0029] When the network bandwidth pressure is greater than or equal to the second network bandwidth pressure threshold and the picture complexity is greater than or equal to the second picture complexity threshold, the third image picture processing and the encoding processing are sequentially performed on the image to be transmitted to obtain the target image, and the processing intensity of the third image picture processing is higher than that of the second image picture processing.
[0030] The present application further provides an image processing apparatus, which may include:
[0031] A determination unit, configured to determine the network bandwidth pressure of a target network for transmitting video stream data;
[0032] A processing unit, configured to perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity of the image to be transmitted in the video stream data to obtain a target image; wherein, the target processing includes encoding processing, or the target processing includes image picture processing and the encoding processing;
[0033] A transmission unit for transmitting the target image through the target network.
[0034] According to an image processing device provided by the present application, the processing unit is configured to perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity of the image to be transmitted in the video stream data, including:
[0035] When the network bandwidth pressure is greater than or equal to the first network bandwidth pressure threshold, perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity.
[0036] According to an image processing device provided by the present application, the processing unit is configured to perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity, including:
[0037] When the network bandwidth pressure is less than the second network bandwidth pressure threshold and the picture complexity is less than the first picture complexity threshold, perform the encoding processing on the image to be transmitted to obtain the target image.
[0038] According to an image processing device provided by the present application, the processing unit is configured to perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity, including:
[0039] When the network bandwidth pressure is less than the second network bandwidth pressure threshold and the picture complexity is greater than or equal to the first picture complexity threshold, perform first image picture processing and the encoding processing on the image to be transmitted in sequence to obtain the target image;
[0040] Or,
[0041] When the network bandwidth pressure is greater than the second network bandwidth pressure threshold and the picture complexity is less than the first picture complexity threshold, perform first image picture processing and the encoding processing on the image to be transmitted in sequence to obtain the target image.
[0042] According to an image processing device provided by the present application, the processing unit is configured to perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity, including:
[0043] When the network bandwidth pressure is greater than the second network bandwidth pressure threshold and the picture complexity is greater than or equal to the first picture complexity threshold, perform second image picture processing and the encoding processing on the image to be transmitted in sequence to obtain the target image, and the processing intensity of the second image picture processing is higher than that of the first image picture processing.
[0044] An image processing apparatus provided according to the present application, the processing unit is configured to perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity, including:
[0045] When the network bandwidth pressure is less than the second network bandwidth pressure threshold, the picture complexity is greater than or equal to the first picture complexity threshold and less than the second picture complexity threshold, the first image picture processing and the encoding processing are sequentially performed on the image to be transmitted to obtain the target image;
[0046] Or,
[0047] When the network bandwidth pressure is greater than or equal to the second network bandwidth pressure threshold and the picture complexity is less than the first picture complexity threshold, the first image picture processing and the encoding processing are sequentially performed on the image to be transmitted to obtain the target image.
[0048] An image processing apparatus provided according to the present application, the processing unit is configured to perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity, including:
[0049] When the network bandwidth pressure is less than the second network bandwidth pressure threshold and the picture complexity is greater than or equal to the second picture complexity threshold, the second image picture processing and the encoding processing are sequentially performed on the image to be transmitted to obtain the target image;
[0050] Or,
[0051] When the network bandwidth pressure is greater than or equal to the second network bandwidth pressure threshold, the picture complexity is greater than or equal to the first picture complexity threshold and less than the second picture complexity threshold, the second image picture processing and the encoding processing are sequentially performed on the image to be transmitted to obtain the target image, and the processing intensity of the second image picture processing is higher than that of the first image picture processing.
[0052] An image processing apparatus provided according to the present application, the processing unit is configured to perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity, including:
[0053] When the network bandwidth pressure is greater than or equal to the second network bandwidth pressure threshold and the picture complexity is greater than or equal to the second picture complexity threshold, the third image picture processing and the encoding processing are sequentially performed on the image to be transmitted to obtain the target image, and the processing intensity of the third image picture processing is higher than that of the second image picture processing.
[0054] The present application also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the image processing method described in any one of the above is implemented.
[0055] The present application also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the image processing method described in any one of the above is implemented.
[0056] The present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the image processing method described in any one of the above is implemented.
[0057] In the image processing method, device, and electronic device provided by the embodiments of the present application, when transmitting video stream data through a network, the network bandwidth pressure of the target network for transmitting the video stream data can be determined first; and according to the network bandwidth pressure and the picture complexity of the images to be transmitted in the video stream data, target processing is performed on the images to be transmitted to obtain target images; where the target processing includes encoding processing, or the target processing includes image picture processing and encoding processing; the target images are transmitted through the target network. In this way, by jointly performing target processing on the images to be transmitted according to the network bandwidth pressure and the picture complexity of the images to be transmitted in the video stream data and then transmitting, the network transmission effect of the images to be transmitted can be effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions in the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0059] Figure 1 It is a schematic flowchart of an image processing method provided by an embodiment of the present application;
[0060] Figure 2 It is a schematic diagram of an image transmitted when the network transmission state is good provided by an embodiment of the present application;
[0061] Figure 3 It is a schematic diagram of an image transmitted when the network transmission state is poor provided by an embodiment of the present application;
[0062] Figure 4 It is a schematic diagram of an image transmitted using the technical solution of the present application when the network transmission state is poor provided by an embodiment of the present application;
[0063] Figure 5A schematic diagram of the structure of an image processing device provided in an embodiment of the present application;
[0064] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0066] In the embodiments of the present application, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In the text description of the present application, the character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0067] The technical solution provided by the embodiment of the present application can be applied to image processing scenarios. Taking the image processing scenario in the video stream transmission scenario as an example, the transmission effect of the image in the video stream data will be affected by the network bandwidth pressure. If the network bandwidth pressure is too large, the network transmission effect of the image will be poor, such as frame loss, skipping seconds, freezes, etc.
[0068] At present, the network bandwidth pressure is mainly reduced by bitstream adaptation or switching the main and auxiliary video streams, but both methods will result in poor network transmission of images.
[0069] In order to effectively improve the network transmission effect of images, an embodiment of the present application provides an image processing method, which can perform target processing on the image to be transmitted before transmitting it according to the network bandwidth pressure of the target network used to transmit video stream data and the picture complexity of the image to be transmitted in the video stream data, thereby effectively improving the network transmission effect of the image to be transmitted.
[0070] The image processing method provided by the present application will be described in detail below through the following specific embodiments. It is understandable that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0071] Figure 1Schematic flowchart of an image processing method provided by an embodiment of the present application. This image processing method can be executed by software and / or hardware devices. For example, please refer to Figure 1 As shown, this image processing method may include:
[0072] S101. Determine the network bandwidth pressure of the target network for transmitting video stream data.
[0073] Among them, the network bandwidth pressure can be used to characterize the network transmission state.
[0074] It can be understood that in the embodiment of the present application, the network bandwidth pressure is negatively correlated with the network transmission state, that is, the smaller the network bandwidth pressure, the better the corresponding network transmission state and the better the network transmission effect; the larger the network bandwidth pressure, the worse the corresponding network transmission state and the worse the network transmission effect.
[0075] For example, in the embodiment of the present application, when determining the network bandwidth pressure of the target network for transmitting video stream data, the number of data packets received by the target network within the current time period, the reception rate of each data packet, and the packet loss rate can be determined first; and based on the number of data packets, the reception rate of each data packet, and the packet loss rate, the network bandwidth pressure can be determined. Among them, the higher the reception rate of the data packet, the smaller the network bandwidth pressure; the higher the packet loss rate of the data packet, the greater the network bandwidth pressure.
[0076] For example, a network monitoring mechanism can be established in advance at the video stream data sending end and the receiving end, and based on the network monitoring mechanism, the number of data packets received by the target network within the current time period, the reception rate of each data packet, and the packet loss rate can be obtained.
[0077] For example, in the embodiment of the present application, when determining the network bandwidth pressure based on the number of data packets, the reception rate of each data packet, and the packet loss rate, at least two of the following possible situations may be included:
[0078] In a possible situation, the image size of the frame image in the video stream data is the same as the reference image size. In this case, the network bandwidth pressure can be determined based on the number of data packets, the reception rate of each data packet, and the packet loss rate. Specifically, please refer to the formula
[0079] Among them, P represents the network bandwidth pressure, W v represents the weight of the average reception rate of the data packet, W x represents the packet loss rate weight, x represents the packet loss rate, N represents the number of received data packets, V 1 represents the reception rate of the first data packet among the N received data packets, V 2 represents the reception rate of the second data packet among the N received data packets, Vn Indicates the reception rate of the nth data packet among N received data packets.
[0080] In another possible case, the image size of the frame image in the video stream data is inconsistent with the reference image size. In this case, an image size coefficient is determined based on the ratio of the image size of the image in the video stream data to the reference image size, and the network bandwidth pressure is determined based on the number of data packets, the reception rate of each data packet, the packet loss rate, and the image size coefficient. For details, see the formula
[0081] where S represents the image size coefficient.
[0082] The reference image size can be set according to actual needs. For example, the reference image size can be 1920*1080. If the image size of the image in the video stream data is 2560*1440, then the image size coefficient S = (2560*1440) / (1920*1080).
[0083] After determining the network bandwidth pressure of the target network for transmitting the video stream data, the image to be transmitted can be subjected to target processing according to the network bandwidth pressure and the picture complexity of the image to be transmitted in the video stream data, that is, the following S102 is executed:
[0084] S102. Perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity of the image to be transmitted in the video stream data to obtain a target image; where the target processing includes encoding processing, or the target processing includes image picture processing and encoding processing.
[0085] Among them, the higher the picture complexity, the higher the requirement for the network transmission state; the lower the picture complexity, the lower the requirement for the network transmission state.
[0086] For an image picture with a relatively low picture complexity, for example, when the image picture includes a stairwell with some stairs or a football under a solid-color background, the picture content is relatively small and its picture complexity is low. In this case, the requirement for the network transmission state is relatively low, and only a relatively low transmission bitstream is required for the receiving end to roughly see the image picture clearly. However, if the image picture includes a large bouquet of flowers or a forest, the picture content is relatively rich and there are also many details and textures, and its picture complexity is high. In this case, the requirement for the network transmission state is high, and a high transmission bitstream is required for the receiving end to see the image picture clearly.
[0087] For example, in the embodiments of the present application, the image picture processing may include detail sharpening intensity, edge sharpening intensity, temporal noise reduction, and spatial noise reduction, which can be specifically set according to actual needs.
[0088] It can be understood that in the embodiments of the present application, by performing image frame processing on the image to be transmitted, the frame complexity of the image to be transmitted can be effectively reduced, which is more conducive to network transmission.
[0089] Exemplarily, in the embodiments of the present application, when determining the frame complexity of the image to be transmitted, for each brightness value in the image to be transmitted, a preset size area can be determined based on the position of the target pixel point of the brightness value, and the pixel complexity corresponding to the brightness value can be determined based on the brightness values of the pixel points in the preset size area; and the frame complexity of the image to be transmitted can be determined based on the pixel complexities corresponding to the respective brightness values. Among them, the preset size area can be set according to actual needs.
[0090] Exemplarily, in the embodiments of the present application, when determining the pixel complexity corresponding to the brightness value based on the brightness values of the pixel points in the preset size area, the probability of the pixel points corresponding to different brightness values appearing in the preset size area can be determined based on the brightness values of the pixel points in the preset size area; and the pixel complexity corresponding to the brightness value can be determined based on the probability of the pixel points corresponding to different brightness values appearing in the preset size area.
[0091] Taking the brightness value i as an example, when determining the pixel complexity corresponding to the brightness value i, the formula can be combined to determine the pixel complexity corresponding to the brightness value i. Among them, E i represents the pixel complexity corresponding to the brightness value i, m represents the maximum value of the brightness value, and p(i, j) represents the probability that the brightness value j appears in the preset size area when the brightness value is i.
[0092] Exemplarily, in the embodiments of the present application, when determining the frame complexity of the image to be transmitted based on the pixel complexities corresponding to the respective brightness values, the sum value of the pixel complexities corresponding to the respective brightness values can be determined; and the frame complexity of the image to be transmitted can be determined based on the sum value.
[0093] Exemplarily, in the embodiments of the present application, when determining the frame complexity of the image to be transmitted based on the sum value, the formula can be combined for calculation, where E represents the frame complexity of the image to be transmitted.
[0094] For example, m can be set to 3. When determining the picture complexity of the image to be transmitted, first calculate the position of the target pixel point when the brightness value i = 0, and based on the position of the target pixel point, in the pixel points of the preset size area, determine the probability p(0, 0) of the pixel point corresponding to the brightness value j = 0, the probability p(0, 1) of the pixel point corresponding to the brightness value j = 1, the probability p(0, 2) of the pixel point corresponding to the brightness value j = 2, and the probability p(0, 3) of the pixel point corresponding to the brightness value j = 3, and determine the pixel complexity E(0, j) corresponding to the brightness value i = 0 based on the sum of the probabilities corresponding to j (j = 0, 1, 2, 3).
[0095] Similarly, after determining the pixel complexity corresponding to the brightness value i = 0, based on a similar method, the pixel complexity p(1, j) corresponding to the brightness value i = 1, the pixel complexity p(2, j) corresponding to the brightness value i = 2, and the pixel complexity E(3, j) corresponding to the brightness value i = 3 can be calculated respectively when the brightness values are i = 1, i = 2, or i = 3, and the picture complexity of the image to be transmitted is determined based on the sum of the pixel complexities corresponding to the brightness values i (i = 0, 1, 2, 3).
[0096] Exemplarily, in the embodiments of the present application, when performing target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity of the image to be transmitted, at least two possible scenarios may be included as follows:
[0097] In one possible scenario, the network bandwidth pressure of the target network is less than the first network bandwidth pressure threshold, indicating that although there is network bandwidth pressure in the target network, the network bandwidth pressure is small and the network transmission state is good, which does not affect the transmission of the image to be transmitted. Therefore, in this case, it is not necessary to perform target processing on the image to be transmitted, and the image to be transmitted can be directly transmitted through the target network.
[0098] Among them, the value of the first network bandwidth pressure threshold can be set according to actual needs. Here, the specific value of the first network bandwidth pressure threshold is not further limited in the embodiments of the present application.
[0099] In one possible scenario, the network bandwidth pressure of the target network is greater than or equal to the first network bandwidth pressure threshold, indicating that there is a certain network bandwidth pressure in the target network, indicating that the network transmission state is poor, which will affect the transmission of the image to be transmitted to a certain extent. Therefore, in this case, it is necessary to perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity of the image to be transmitted before transmission.
[0100] S103. Transmit the target image through the target network.
[0101] It can be seen that in the embodiments of the present application, when transmitting video stream data through a network, first determine the network bandwidth pressure of the target network for transmitting the video stream data; according to the network bandwidth pressure and the picture complexity of the image to be transmitted in the video stream data, perform target processing on the image to be transmitted to obtain a target image; wherein, the target processing includes encoding processing, or the target processing includes image picture processing and encoding processing; transmit the target image through the target network. In this way, according to the network bandwidth pressure and the picture complexity of the image to be transmitted in the video stream data, jointly perform target processing on the image to be transmitted and then transmit it, which can effectively improve the network transmission effect of the image to be transmitted.
[0102] Based on the above Figure 1 In the above-mentioned embodiment, for example, in S102, when the network bandwidth pressure is greater than or equal to the first network bandwidth pressure threshold, according to the network bandwidth pressure and the picture complexity, when performing target processing on the image to be transmitted, it may include at least two possible implementation manners as follows:
[0103] In a possible implementation manner, when performing target processing on the image to be transmitted based on the network bandwidth pressure and the picture complexity, as shown in Table 1 below, it may include at least three possible cases:
[0104] Table 1
[0105]
[0106] Among them, the first network bandwidth pressure threshold can be denoted as Pth1, the second network bandwidth pressure threshold can be denoted as Pth2, the first picture complexity threshold can be denoted as Eth1, and the second picture complexity threshold can be denoted as Eth2. Among them, the first network bandwidth pressure threshold Pth1 is less than the second network bandwidth pressure threshold Pth2, and the first picture complexity threshold can be denoted as Eth1 is less than the second picture complexity threshold can be denoted as Eth2. Combining the above Table 1:
[0107] In a possible case, when the network bandwidth pressure is less than the second network bandwidth pressure threshold Pth2 and the picture complexity is less than the first picture complexity threshold Eth1, there is no need to perform image picture processing on the image to be transmitted, and only perform encoding processing on the image to be transmitted to obtain a target image.
[0108] In this case, the network bandwidth pressure is in the interval [Pth1, Pth2], and the picture complexity is in the interval [0, Eth1]. This indicates that although there is a certain network bandwidth pressure in the target network, due to the low picture complexity of the image to be transmitted, the requirement for the network transmission state is low. Under the current network bandwidth pressure, the normal transmission of images with low picture complexity can still be ensured. Therefore, it is not necessary to perform image picture processing on the image to be transmitted, and only encoding processing is performed on the image to be transmitted to reduce the bit rate of the image to be transmitted, and the target image is obtained.
[0109] In another possible case, when the network bandwidth pressure is less than the second network bandwidth pressure threshold Pth2 and the picture complexity is greater than or equal to the first picture complexity threshold Eth1, the first image picture processing and encoding processing are sequentially performed on the image to be transmitted to obtain the target image; or, when the network bandwidth pressure is greater than the second network bandwidth pressure threshold Pth2 and the picture complexity is less than the first picture complexity threshold Eth1, the first image picture processing and encoding processing are sequentially performed on the image to be transmitted to obtain the target image.
[0110] In this case, the network bandwidth pressure is in the interval [Pth1, Pth2], and the picture complexity is in the interval [Eth1, Eth2]. This indicates that there is a certain network bandwidth pressure in the target network, and the picture complexity of the image to be transmitted is high, and the requirement for the network transmission state is high. Under the current network bandwidth pressure, the normal transmission of images with low picture complexity cannot be ensured. Therefore, it is necessary to first perform the first image picture processing on the image to be transmitted to weaken the detail sharpness of the image to be transmitted, enhance the edge sharpness of the image, make the flat area more flat, and make the noise quieter, so as to reduce the picture complexity of the image to be transmitted. Then, encoding processing is performed on the processed image to reduce the bit rate of the image to be transmitted, and the target image is obtained. The requirement of this target image for the network transmission state is significantly reduced, so that it can be transmitted better.
[0111] Or, the network bandwidth pressure is in the interval [Pth2, +∞], and the picture complexity is in the interval [0, Eth1]. This indicates that there is a large network bandwidth pressure in the target network. Even though the picture complexity of the image to be transmitted is low and the requirement for the network transmission state is low, under the current network bandwidth pressure, the normal transmission of images with low picture complexity cannot be ensured. Therefore, it is necessary to first perform the first image picture processing on the image to be transmitted to weaken the detail sharpness of the image to be transmitted, enhance the edge sharpness of the image, make the flat area more flat, and make the noise quieter, so as to reduce the picture complexity of the image to be transmitted. Then, encoding processing is performed on the processed image to reduce the bit rate of the image to be transmitted, and the target image is obtained. The requirement of this target image for the network transmission state is significantly reduced, so that it can be transmitted better.
[0112] In another possible scenario, when the network bandwidth pressure is greater than the second network bandwidth pressure threshold Pth2 and the picture complexity is greater than or equal to the first picture complexity threshold Eth1, the image to be transmitted is sequentially subjected to second image picture processing and encoding processing to obtain a target image. The processing intensity of the second image picture processing is higher than that of the first image picture processing.
[0113] The network bandwidth pressure is in the interval [Pth2, +∞), and the picture complexity is in the interval [Eth1, +∞). This indicates that there is a relatively large network bandwidth pressure in the target network. Even if the picture complexity of the image to be transmitted is relatively high and the requirements for the network transmission state are relatively high, it is impossible to ensure the normal transmission of an image with a relatively low picture complexity under the current network bandwidth pressure. Therefore, it is necessary to first perform second image picture processing on the image to be transmitted to weaken the detail sharpening, enhance the edge sharpening, make the flat area more flat, and make the noise quieter, thereby reducing the picture complexity of the image to be transmitted. Then, perform encoding processing on the processed image to reduce the bit rate of the image to be transmitted and obtain a target image. The requirements of this target image for the network transmission state are significantly reduced, so that it can be transmitted better.
[0114] It should be noted that in the embodiments of the present application, the relevant parameters of the second image picture processing and the first image picture processing are the same. For example, they may include detail sharpening intensity, edge sharpening intensity, temporal noise reduction, spatial noise reduction, etc. It's just that the processing intensity of the second image picture processing is higher than that of the first image picture processing.
[0115] In another possible implementation, when performing target processing on the image to be transmitted based on the network bandwidth pressure and the picture complexity, as shown in Table 2 below, it may include at least the following three possible scenarios:
[0116] Table 2
[0117]
[0118] Among them, the first network bandwidth pressure threshold can be denoted as Pth1, the second network bandwidth pressure threshold can be denoted as Pth2, the first picture complexity threshold can be denoted as Eth1, and the second picture complexity threshold can be denoted as Eth2. Among them, the first network bandwidth pressure threshold Pth1 is less than the second network bandwidth pressure threshold Pth2, and the first picture complexity threshold denoted as Eth1 is less than the second picture complexity threshold denoted as Eth2. Combining the above Table 2:
[0119] In a possible scenario, when the network bandwidth pressure is less than the second network bandwidth pressure threshold Pth2 and the picture complexity is less than the first picture complexity threshold Eth1, there is no need to perform image picture processing on the image to be transmitted, and only encoding processing is performed on the image to be transmitted to obtain a target image.
[0120] In this case, the network bandwidth pressure is in the range [Pth1, Pth2], and the picture complexity is in the range [0, Eth1], indicating that although there is a certain network bandwidth pressure in the target network, due to the low picture complexity of the image to be transmitted, the requirement for the network transmission state is low. Under the current network bandwidth pressure, the normal transmission of the image with low picture complexity can still be ensured. Therefore, it is not necessary to perform image picture processing on the image to be transmitted, but only perform encoding processing on the image to be transmitted to reduce the bit rate of the image to be transmitted and obtain the target image.
[0121] In another possible case, when the network bandwidth pressure is less than the second network bandwidth pressure threshold Pth2, the picture complexity is greater than or equal to the first picture complexity threshold Eth1 and less than the second picture complexity threshold Eth2, the first image picture processing and encoding processing are sequentially performed on the image to be transmitted to obtain the target image; or, when the network bandwidth pressure is greater than or equal to the second network bandwidth pressure threshold Pth2 and the picture complexity is less than the first picture complexity threshold Eth1, the first image picture processing and encoding processing are sequentially performed on the image to be transmitted to obtain the target image.
[0122] In this case, the network bandwidth pressure is in the range [Pth1, Pth2], and the picture complexity is in the range [Eth1, Eth2], indicating that there is a certain network bandwidth pressure in the target network, and the picture complexity of the image to be transmitted is high, and the requirement for the network transmission state is high. Under the current network bandwidth pressure, the normal transmission of the image with low picture complexity cannot be ensured. Therefore, it is necessary to first perform the first image picture processing on the image to be transmitted to weaken the detail sharpness of the image to be transmitted, enhance the edge sharpness of the image, make the flat area more flat, and make the noise quieter, thereby reducing the picture complexity of the image to be transmitted. Then, perform encoding processing on the processed image to reduce the bit rate of the image to be transmitted and obtain the target image. The requirement of the target image for the network transmission state is significantly reduced, so that it can be transmitted better.
[0123] Alternatively, when the network bandwidth pressure is in the range of [Pth2, +∞] and the picture complexity is in the range of [0, Eth1], it indicates that there is a relatively large network bandwidth pressure on the target network. Even if the picture complexity of the image to be transmitted is low and the requirements for the network transmission state are low, it is impossible to ensure the normal transmission of the image with a low picture complexity under the current network bandwidth pressure. Therefore, it is necessary to first perform first image picture processing on the image to be transmitted to weaken the detail sharpness, enhance the edge sharpness, make the flat area flatter, and make the noise quieter, so as to reduce the picture complexity of the image to be transmitted. Then, perform encoding processing on the processed image to reduce the bit rate of the image to be transmitted and obtain the target image. The requirements of the target image for the network transmission state are significantly reduced, so that it can be transmitted better.
[0124] In another possible case, when the network bandwidth pressure is less than the second network bandwidth pressure threshold Pth2 and the picture complexity is greater than or equal to the second picture complexity threshold Eth2, perform second image picture processing and encoding processing on the image to be transmitted in sequence to obtain the target image; or, when the network bandwidth pressure is greater than or equal to the second network bandwidth pressure threshold Pth2, the picture complexity is greater than or equal to the first picture complexity threshold Eth1 and less than the second picture complexity threshold Eth2, perform second image picture processing and encoding processing on the image to be transmitted in sequence to obtain the target image. The processing intensity of the second image picture processing is higher than that of the first image picture processing.
[0125] When the network bandwidth pressure is in the range of [Pth1, Pth2] and the picture complexity is in the range of [Eth2, +∞], it indicates that there is a certain network bandwidth pressure on the target network and the picture complexity of the image to be transmitted is high, and the requirements for the network transmission state are high. Under the current network bandwidth pressure, it is impossible to ensure the normal transmission of the image with a low picture complexity. Therefore, it is necessary to first perform second image picture processing on the image to be transmitted to weaken the detail sharpness, enhance the edge sharpness, make the flat area flatter, and make the noise quieter, so as to reduce the picture complexity of the image to be transmitted. Then, perform encoding processing on the processed image to reduce the bit rate of the image to be transmitted and obtain the target image. The requirements of the target image for the network transmission state are significantly reduced, so that it can be transmitted better.
[0126] Or,
[0127] When the network bandwidth pressure is in the interval [Pth2, +∞] and the picture complexity is in the interval [Eth1, Eth2], it indicates that there is a relatively large network bandwidth pressure in the target network, and the picture complexity of the image to be transmitted is relatively high, with a relatively high requirement for the network transmission state. Under the current network bandwidth pressure, it is impossible to ensure the normal transmission of an image with a relatively low picture complexity. Therefore, it is necessary to first perform a second image picture processing on the image to be transmitted, so that the detail sharpening of the image to be transmitted is weakened, the edge sharpening of the image is enhanced, the flat area is relatively flat, and the noise is relatively quiet, thereby reducing the picture complexity of the image to be transmitted. Then, perform an encoding process on the processed image to reduce the code rate of the image to be transmitted, and obtain a target image. The requirement of this target image for the network transmission state is significantly reduced, so that it can be transmitted better.
[0128] In another possible case, when the network bandwidth pressure is greater than or equal to the second network bandwidth pressure threshold Pth2 and the picture complexity is greater than or equal to the second picture complexity threshold Eth2, perform a third image picture processing and an encoding process on the image to be transmitted in sequence to obtain a target image. The processing intensity of the third image picture processing is higher than that of the second image picture processing.
[0129] When the network bandwidth pressure is in the interval [Pth2, +∞] and the picture complexity is in the interval [Eth2, +∞], it indicates that there is a relatively large network bandwidth pressure in the target network, and the picture complexity of the image to be transmitted is relatively high, with a relatively high requirement for the network transmission state. Under the current network bandwidth pressure, it is impossible to ensure the normal transmission of an image with a relatively low picture complexity. Therefore, it is necessary to first perform a third image picture processing on the image to be transmitted, so that the detail sharpening of the image to be transmitted is weakened, the edge sharpening of the image is enhanced, the flat area is relatively flat, and the noise is relatively quiet, thereby reducing the picture complexity of the image to be transmitted. Then, perform an encoding process on the processed image to reduce the code rate of the image to be transmitted, and obtain a target image. The requirement of this target image for the network transmission state is significantly reduced, so that it can be transmitted better.
[0130] It should be noted that in the embodiments of the present application, the relevant parameters of the first image picture processing, the second image picture processing, and the third image picture processing are the same. For example, it may include detail sharpening intensity, edge sharpening intensity, time-domain noise reduction, spatial-domain noise reduction, etc. Only the processing intensity of the third image picture processing is higher than that of the second image picture processing, and the processing intensity of the second image picture processing is higher than that of the first image picture processing.
[0131] Exemplarily, please refer to Figure 2 as shown in Figure 2 which is a schematic diagram of an image transmitted when the network transmission state is relatively good provided by the embodiments of the present application. Combining Figure 2It can be seen that when the network transmission state is good, an image with rich details, obvious edges, and high clarity can be obtained without processing the picture complexity of the image to be transmitted.
[0132] However, when the network transmission state is poor, directly transmitting the image using the existing encoding processing algorithm results in poor network transmission effect. By way of example, please refer to Figure 3 as shown in Figure 3 which is a schematic diagram of an image transmitted when the network transmission state is poor provided by an embodiment of the present application. Combining Figure 3 it can be seen that after processing with the existing encoding processing algorithm, the image obtained by the receiving end has blurred edges, mosaics, and low clarity, and the network transmission effect is poor.
[0133] However, for the technical solution provided by the embodiment of the present application, when the network transmission state is poor, after first obtaining the picture complexity of the image to be transmitted and performing target processing on the image to be transmitted based on the network bandwidth pressure and the picture complexity and then transmitting it, the image effect obtained by the receiving end is better. Please refer to Figure 4 as shown in Figure 4 which is a schematic diagram of an image transmitted using the technical solution of the present application when the network transmission state is poor provided by an embodiment of the present application. Combining Figure 3 and Figure 4 it can be seen that by using the image processing method provided by the embodiment of the present application, when the network transmission state is poor, after processing the picture complexity of the image and then transmitting it, the image obtained by the receiving end has high clarity and the edges can be distinguished, and the overall visual experience is significantly improved, effectively improving the network transmission effect of the video stream data.
[0134] It can be seen that in the embodiment of the present application, different processing can be performed on the image to be transmitted based on the network bandwidth pressure of the image and the picture complexity of the image to obtain the processed target image, which can effectively improve the network transmission effect of the video stream data.
[0135] Next, the image processing device provided by the present application will be described. The image processing device described below can be mutually corresponding and referred to the image processing method described above.
[0136] Figure 5 which is a schematic structural diagram of an image processing device provided by an embodiment of the present application. By way of example, please refer to Figure 5 as shown. The image processing device 50 may include:
[0137] A determination unit 501, configured to determine the network bandwidth pressure of the target network for transmitting video stream data;
[0138] A processing unit 502, configured to perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity of the image to be transmitted in the video stream data, so as to obtain a target image; wherein, the target processing includes encoding processing, or the target processing includes image picture processing and the encoding processing;
[0139] A transmission unit 503, configured to transmit the target image through the target network.
[0140] Exemplarily, in an embodiment of the present application, the processing unit 502 is configured to perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity of the image to be transmitted, including:
[0141] When the network bandwidth pressure is greater than or equal to a first network bandwidth pressure threshold, perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity.
[0142] Exemplarily, in an embodiment of the present application, the processing unit 502 is configured to perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity, including:
[0143] When the network bandwidth pressure is less than a second network bandwidth pressure threshold and the picture complexity is less than a first picture complexity threshold, perform the encoding processing on the image to be transmitted to obtain the target image.
[0144] Exemplarily, in an embodiment of the present application, the processing unit 502 is configured to perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity, including:
[0145] When the network bandwidth pressure is less than a second network bandwidth pressure threshold and the picture complexity is greater than or equal to a first picture complexity threshold, perform first image picture processing and the encoding processing on the image to be transmitted in sequence to obtain the target image;
[0146] Or,
[0147] When the network bandwidth pressure is greater than the second network bandwidth pressure threshold and the picture complexity is less than the first picture complexity threshold, perform first image picture processing and the encoding processing on the image to be transmitted in sequence to obtain the target image.
[0148] Exemplarily, in an embodiment of the present application, the processing unit 502 is configured to perform target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity, including:
[0149] When the network bandwidth pressure is greater than the second network bandwidth pressure threshold and the picture complexity is greater than or equal to the first picture complexity threshold, the to-be-transmitted image is sequentially subjected to second image picture processing and the encoding processing to obtain the target image, and the processing intensity of the second image picture processing is higher than that of the first image picture processing.
[0150] Exemplarily, in an embodiment of the present application, the processing unit 502 is configured to perform target processing on the to-be-transmitted image according to the network bandwidth pressure and the picture complexity, including:
[0151] When the network bandwidth pressure is less than the second network bandwidth pressure threshold, the picture complexity is greater than or equal to the first picture complexity threshold, and less than the second picture complexity threshold, the to-be-transmitted image is sequentially subjected to first image picture processing and the encoding processing to obtain the target image;
[0152] Or,
[0153] When the network bandwidth pressure is greater than or equal to the second network bandwidth pressure threshold and the picture complexity is less than the first picture complexity threshold, the to-be-transmitted image is sequentially subjected to the first image picture processing and the encoding processing to obtain the target image.
[0154] Exemplarily, in an embodiment of the present application, the processing unit 502 is configured to perform target processing on the to-be-transmitted image according to the network bandwidth pressure and the picture complexity, including:
[0155] When the network bandwidth pressure is less than the second network bandwidth pressure threshold and the picture complexity is greater than or equal to the second picture complexity threshold, the to-be-transmitted image is sequentially subjected to second image picture processing and the encoding processing to obtain the target image;
[0156] Or,
[0157] When the network bandwidth pressure is greater than or equal to the second network bandwidth pressure threshold, the picture complexity is greater than or equal to the first picture complexity threshold, and less than the second picture complexity threshold, the to-be-transmitted image is sequentially subjected to the second image picture processing and the encoding processing to obtain the target image, and the processing intensity of the second image picture processing is higher than that of the first image picture processing.
[0158] Exemplarily, in an embodiment of the present application, the processing unit 502 is configured to perform target processing on the to-be-transmitted image according to the network bandwidth pressure and the picture complexity, including:
[0159] When the network bandwidth pressure is greater than or equal to the second network bandwidth pressure threshold and the picture complexity is greater than or equal to the second picture complexity threshold, the to-be-transmitted image is sequentially subjected to third image picture processing and the encoding processing to obtain the target image, and the processing intensity of the third image picture processing is higher than that of the second image picture processing.
[0160] The image processing apparatus 50 provided in the embodiments of the present application can execute the technical solutions of the image processing method in any of the above embodiments. The implementation principle and beneficial effects are similar to those of the image processing method. For details, refer to the implementation principle and beneficial effects of the image processing method, which will not be elaborated here.
[0161] Figure 6 FIG. is a schematic structural diagram of an electronic device provided in an embodiment of the present application. As Figure 6 shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630, and a communication bus 640. The processor 610, the communication interface 620, and the memory 630 communicate with each other through the communication bus 640. The processor 610 can call the logical instructions in the memory 630 to execute the image processing method, which includes: determining the network bandwidth pressure of the target network for transmitting video stream data; according to the network bandwidth pressure and the picture complexity of the to-be-transmitted image in the video stream data, performing target processing on the to-be-transmitted image to obtain a target image; where the target processing includes encoding processing, or the target processing includes image picture processing and the encoding processing; transmitting the target image through the target network.
[0162] In addition, when the logical instructions in the above-mentioned memory 630 are implemented in the form of a software functional unit and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present application. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc that can store program codes.
[0163] On the other hand, the present application also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the above image processing method, and the method includes: determining the network bandwidth pressure of the target network for transmitting video stream data; performing target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity of the image to be transmitted in the video stream data to obtain a target image; wherein the target processing includes encoding processing, or the target processing includes image picture processing and the encoding processing; transmitting the target image through the target network.
[0164] In another aspect, the present application also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is implemented to execute the above image processing method, and the method includes: determining the network bandwidth pressure of the target network for transmitting video stream data; performing target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity of the image to be transmitted in the video stream data to obtain a target image; wherein the target processing includes encoding processing, or the target processing includes image picture processing and the encoding processing; transmitting the target image through the target network.
[0165] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative work.
[0166] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solutions, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0167] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An image processing method, characterized in that, comprising: determining the network bandwidth pressure of a target network for transmitting video stream data; performing target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity of the image to be transmitted in the video stream data to obtain a target image; wherein, the target processing includes encoding processing, or the target processing includes image picture processing and the encoding processing; transmitting the target image through the target network.
2. The method according to claim 1, characterized in that, the performing target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity of the image to be transmitted in the video stream data includes: when the network bandwidth pressure is greater than or equal to a first network bandwidth pressure threshold, performing target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity.
3. The method according to claim 2, characterized in that, the performing target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity includes: when the network bandwidth pressure is less than a second network bandwidth pressure threshold and the picture complexity is less than a first picture complexity threshold, performing the encoding processing on the image to be transmitted to obtain the target image.
4. The method according to claim 2, characterized in that, the performing target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity includes: when the network bandwidth pressure is less than the second network bandwidth pressure threshold and the picture complexity is greater than or equal to the first picture complexity threshold, sequentially performing first image picture processing and the encoding processing on the image to be transmitted to obtain the target image; or, when the network bandwidth pressure is greater than the second network bandwidth pressure threshold and the picture complexity is less than the first picture complexity threshold, sequentially performing the first image picture processing and the encoding processing on the image to be transmitted to obtain the target image.
5. The method according to claim 4, characterized in that, the performing target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity includes: when the network bandwidth pressure is greater than the second network bandwidth pressure threshold and the picture complexity is greater than or equal to the first picture complexity threshold, sequentially performing second image picture processing and the encoding processing on the image to be transmitted to obtain the target image, and the processing intensity of the second image picture processing is higher than that of the first image picture processing.
6. The method according to claim 2, characterized in that, the performing target processing on the image to be transmitted according to the network bandwidth pressure and the picture complexity includes: When the network bandwidth pressure is less than the second network bandwidth pressure threshold, the picture complexity is greater than or equal to the first picture complexity threshold and less than the second picture complexity threshold, the to-be-transmitted image is sequentially subjected to first image picture processing and the encoding processing to obtain the target image; Or, When the network bandwidth pressure is greater than or equal to the second network bandwidth pressure threshold and the picture complexity is less than the first picture complexity threshold, the to-be-transmitted image is sequentially subjected to the first image picture processing and the encoding processing to obtain the target image.
7. The method according to claim 6, wherein, the performing target processing on the to-be-transmitted image according to the network bandwidth pressure and the picture complexity includes: When the network bandwidth pressure is less than the second network bandwidth pressure threshold and the picture complexity is greater than or equal to the second picture complexity threshold, the to-be-transmitted image is sequentially subjected to second image picture processing and the encoding processing to obtain the target image; Or, When the network bandwidth pressure is greater than or equal to the second network bandwidth pressure threshold, the picture complexity is greater than or equal to the first picture complexity threshold and less than the second picture complexity threshold, the to-be-transmitted image is sequentially subjected to the second image picture processing and the encoding processing to obtain the target image, and the processing intensity of the second image picture processing is higher than that of the first image picture processing.
8. The method according to claim 7, wherein, the performing target processing on the to-be-transmitted image according to the network bandwidth pressure and the picture complexity includes: When the network bandwidth pressure is greater than or equal to the second network bandwidth pressure threshold and the picture complexity is greater than or equal to the second picture complexity threshold, the to-be-transmitted image is sequentially subjected to third image picture processing and the encoding processing to obtain the target image, and the processing intensity of the third image picture processing is higher than that of the second image picture processing.
9. An image processing apparatus, wherein, it includes: a determination unit, configured to determine the network bandwidth pressure of a target network for transmitting video stream data; a processing unit, configured to perform target processing on the to-be-transmitted image according to the network bandwidth pressure and the picture complexity of the to-be-transmitted image in the video stream data to obtain a target image; wherein, the target processing includes encoding processing, or the target processing includes image picture processing and the encoding processing; a transmission unit, configured to transmit the target image through the target network.
10. An electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, when the processor executes the program, it implements the image processing method according to any one of claims 1 to 7.