Color correction method and device, display equipment and storage medium
By calculating and adjusting the color parameters of wireless screen-sharing video data in real time at the receiving end, the problem of color distortion caused by network bandwidth and signal interference in wireless screen-sharing is solved, and high-quality color display is achieved in different network environments.
Patent Information
- Application Number
- CN202411352863.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2026-03-27
AI Technical Summary
During wireless screen sharing, video data is susceptible to network bandwidth and signal interference, which can cause color distortion and affect the display effect at the receiving end.
After receiving video data at the receiving end, the adjustment factor is calculated by determining the initial color parameters of each pixel and the preset standard color parameters. The color parameters are adjusted in real time, and further adjustments are made in combination with the network evaluation level to ensure that color correction is performed in real time during transmission and adapts to different network environments.
It provides excellent visual effects in various network environments, avoids color distortion, and ensures the stability of the image displayed on the receiving end and the accuracy of the color effect.
Smart Images

Figure CN121750842A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of image processing, and particularly relate to a color correction method and device, a display device, and a storage medium. BACKGROUND
[0002] Wireless screen transmission (may also be referred to as wireless projection, etc.) can instantly and synchronously display the current operation content of a sending end on a display screen of a receiving end. In a wireless screen transmission scenario, when the sending end of the wireless screen transmission transmits video data for wireless screen transmission to the receiving end, the video data is easily affected by network bandwidth and signal interference, resulting in color distortion of a wireless screen transmission picture presented by the receiving end based on the video data, which affects the final display effect when the receiving end displays the video data of the wireless screen transmission. SUMMARY
[0003] Embodiments of the present application provide a color correction method, device, display device, and storage medium to solve the technical problem of color distortion of video data in the process of wireless screen transmission due to the influence of network bandwidth and signal interference.
[0004] In a first aspect, an embodiment of the present application provides a color correction method, comprising:
[0005] receiving video data sent by a wireless screen transmission sending end, and determining a first adjustment factor according to initial color parameters of each pixel in a current frame image received each time and preset standard color parameters in a receiving process, the video data being composed of multiple frame images;
[0006] adjusting the initial color parameters of each pixel in the current frame image according to the first adjustment factor to obtain second color parameters of each pixel;
[0007] determining a network evaluation level when the current frame image is received;
[0008] adjusting the second color parameters according to the network evaluation level to obtain third color parameters of each pixel in the current frame image, so as to display the current frame image based on the third color parameters.
[0009] The technical scheme is characterized in that: after receiving a current frame image in a wireless screen transmission process, initial color parameters of each pixel in the current frame image are determined, then first adjustment factors are obtained according to the initial color parameters and standard color parameters, and the initial color parameters of each pixel in the current frame image are adjusted based on the first adjustment factors to obtain second color parameters of each pixel, then the second color parameters of each pixel are adjusted in combination with a network evaluation level when the current frame image is received, so that third color parameters of each pixel in the current frame image are obtained as color parameters used for displaying the current frame image, thereby solving the technical problem that in the related art, video data is easily affected by network bandwidth and signal interference in the wireless screen transmission process, and color distortion occurs, and by using the preset standard color parameters, the color effect when the receiving end displays the image can be ensured, color distortion can be avoided as much as possible, when the initial color parameters are adjusted based on the first adjustment factors, real-time monitoring and dynamic adjustment of the initial color parameters can be realized, so that the adjusted second color parameters are more high-quality and closer to the standard color parameters, and by adjusting the second color parameters in combination with the network evaluation level to obtain the third color parameters, when the receiving end displays the image based on the third color parameters, the color can be as close to the standard color as possible, and the current color effect can be ensured to be more consistent with the actual environment of the wireless screen transmission current network, so that when the network environment is good, high-quality color performance can be ensured, and when the network environment is poor, color distortion can be reduced, and the stability of the image displayed by the receiving end can be ensured. Moreover, when the image is received, color correction is performed, and then the image is displayed, so that the problem of correction lag when the image is displayed first and then color corrected can be avoided, real-time adjustment of the color parameters in the transmission process can be realized, and better visual effects can be provided under various network environments.
[0010] In an embodiment of the present application, the first adjustment factor is determined according to the initial color parameters of each pixel in the current frame image received each time and the preset standard color parameters, and the determination includes:
[0011] The current frame image received each time is converted from BGR format to HSV color space to obtain initial color parameters corresponding to each pixel in the current frame image;
[0012] The average value of the initial color parameters of each pixel in the current frame image is calculated and taken as a first color parameter;
[0013] The first adjustment factor is determined according to the first color parameter and the preset standard color parameter.
[0014] The average value of the initial color parameters of each pixel in the current frame image is calculated and taken as a first color parameter, which can ensure that the first color parameter more accurately reflects the color situation of the current frame image, and then ensure that the first adjustment factor determined based on the first color parameter and the standard color parameter is more suitable for the current frame image.
[0015] In one embodiment of the present application, the first adjustment factor is determined according to the first color parameter and the preset standard color parameter, including:
[0016] The deviation value of the first color parameter and the preset standard color parameter is determined, and the deviation value is taken as the first adjustment factor;
[0017] The initial color parameter of each pixel in the current frame image is adjusted according to the first adjustment factor, and the second color parameter of each pixel is obtained, including:
[0018] The initial color parameter of each pixel in the current frame image is subtracted from the first adjustment factor to obtain the second color parameter of each pixel.
[0019] The deviation value of the first color parameter and the preset standard color parameter is taken as the first adjustment factor, and then each initial color parameter is subtracted from the first adjustment factor to obtain the second color parameter, which can ensure that the adjusted current frame image is close to the standard color parameter using a simple algorithm, reduces the calculation complexity, and improves the performance of the receiving end.
[0020] In one embodiment of the present application, the first adjustment factor is determined according to the first color parameter and the preset standard color parameter, including:
[0021] The ratio of the preset standard color parameter and the first color parameter is determined, and the ratio is taken as the first adjustment factor;
[0022] The initial color parameter of each pixel in the current frame image is adjusted according to the first adjustment factor, and the second color parameter of each pixel is obtained, including:
[0023] The initial color parameter of each pixel in the current frame image is multiplied by the first adjustment factor to obtain the second color parameter of each pixel.
[0024] The ratio of the preset standard color parameter and the first color parameter is taken as the first adjustment factor, and then each initial color parameter is multiplied by the first adjustment factor to obtain the second color parameter, which can ensure that the adjusted current frame image is close to the standard color parameter using a simple algorithm, reduces the calculation complexity, and improves the performance of the receiving end.
[0025] In one embodiment of the present application, the network evaluation level when the current frame image is received is determined, including:
[0026] The network parameter when the current frame image is received is obtained, and the network parameter includes at least one of network bandwidth, network delay and packet loss rate;
[0027] The score of the network parameter at present and the weight value of the network parameter are obtained, and each network parameter has a corresponding weight value.
[0028] determining a network evaluation score according to the current score of the network parameter and the weight value;
[0029] determining a network evaluation level according to the network evaluation score, different network evaluation levels corresponding to different network evaluation score ranges.
[0030] The above sets the applicable score for different parameter values of the network parameter, and each network parameter has a proper weight value, so that the network evaluation level can be obtained by combining the real-time network parameter corresponding score and weight value, ensuring the accuracy of the determination of the network evaluation level and reducing the calculation complexity.
[0031] In an embodiment of the present application, the second color parameter includes a second brightness parameter, a second hue parameter and a second saturation parameter, and the third color parameter includes a third brightness parameter, a third hue parameter and a third saturation parameter.
[0032] adjusting each second color parameter according to the network evaluation level to obtain the third color parameter of each pixel in the current frame image, including:
[0033] when the network evaluation level is a good network level, adjusting each second brightness parameter according to the first brightness increase value to obtain the corresponding third brightness parameter, adjusting each second hue parameter according to the first hue amplification ratio or keeping each second hue parameter to obtain the corresponding third hue parameter, and adjusting each second saturation parameter according to the first saturation amplification ratio to obtain the corresponding third saturation parameter.
[0034] when the network evaluation level is a medium network level, adjusting each second brightness parameter according to the second brightness increase value or keeping each second brightness parameter to obtain the corresponding third brightness parameter, adjusting each second hue parameter according to the second hue amplification ratio or keeping each second hue parameter to obtain the corresponding third hue parameter, and adjusting each second saturation parameter according to the second saturation amplification ratio to obtain the corresponding third saturation parameter, the second brightness increase value being less than the first brightness increase value, the second hue amplification ratio being less than the first hue amplification ratio, and the second saturation amplification ratio being less than the first saturation amplification ratio.
[0035] when the network evaluation level is a poor network level, adjusting each second brightness parameter according to the brightness decrease value to obtain the corresponding third brightness parameter, adjusting each second hue parameter according to the hue reduction ratio or keeping each second hue parameter to obtain the corresponding third hue parameter, and adjusting each second saturation parameter according to the saturation reduction ratio to obtain the corresponding third saturation parameter.
[0036] According to the above, using appropriate adjustment means for various color tone parameters according to different network evaluation levels can make the color tone adjustment more refined, and further ensure the color effect of the third color parameters after adjustment under different network evaluation levels.
[0037] In an embodiment of the present application, after adjusting the second color parameters according to the network evaluation level and obtaining the third color parameters of each pixel in the current frame image, the method comprises:
[0038] Performing gamut correction on the current frame image using the third color parameters to display the current frame image after gamut correction.
[0039] According to the above, after color correction, the current frame image is also subjected to gamut correction, i.e., higher-level correction, which can ensure the color consistency and accuracy in the entire transmission and processing link.
[0040] In a second aspect, an embodiment of the present application also provides a color correction method, comprising:
[0041] Receiving video data sent by a wireless screen transmission sender, and determining the network evaluation level when receiving the current frame image each time in the receiving process, wherein the video data is composed of multiple frame images;
[0042] Adjusting the initial color parameters of each pixel in the current frame image according to the network evaluation level to obtain the fourth color parameters corresponding to each pixel;
[0043] Determining a second adjustment factor according to the fourth color parameters of each pixel in the current frame image and the preset standard color parameters;
[0044] Adjusting the fourth color parameters of each pixel in the current frame image according to the second adjustment factor to obtain the fifth color parameters of each pixel, and displaying the current frame image based on the fifth color parameters.
[0045] The above, by receiving the current frame image in the wireless screen transmission process, determining the network evaluation level when receiving the current frame image and the initial color parameter of each pixel in the current frame image, then adjusting the initial color parameter of each pixel combined with the network evaluation level to obtain the fourth color parameter of each pixel, obtaining the second adjustment factor according to the fourth color parameter and the standard color parameter and adjusting the fourth color parameter of each pixel in the current frame image based on the second adjustment factor to obtain the fifth color parameter of each pixel as the color parameter used when displaying the current frame image, solve the technical problem that the video data is easy to be affected by the network bandwidth and signal interference in the wireless screen transmission process and color distortion occurs in the related art, and combined with the network evaluation score to adjust the initial color parameter, the fourth color parameter can be more consistent with the actual environment of the wireless screen current network, so as to ensure high-quality color performance when the network environment is good, reduce color distortion when the network environment is poor, and ensure the stability of the display picture at the receiving end. By using the preset standard color parameter, the color effect of the image displayed at the receiving end can be ensured, and color distortion can be avoided as much as possible. When adjusting the fourth color parameter based on the second adjustment factor, real-time monitoring and dynamic adjustment of the fourth color parameter can be realized, so that the adjusted fifth color parameter is more high-quality and conforms to the standard color parameter. Moreover, when the image is received, color correction is performed, and display is performed after color correction, which can avoid the problem of correction lag when displaying first and then color correcting, and real-time adjustment of the color parameter during transmission can be realized to ensure better visual effect under various network environments.
[0046] In a third aspect, an embodiment of the present application also provides a color correction device, comprising:
[0047] A first factor determination unit is configured to receive video data sent by a wireless screen transmission sending end, and determine a first adjustment factor according to the initial color parameter of each pixel in the current frame image received each time and a preset standard color parameter during the receiving process, wherein the video data is composed of multiple frames of images.
[0048] A first correction unit is configured to adjust the initial color parameter of each pixel in the current frame image according to the first adjustment factor to obtain a second color parameter of each pixel.
[0049] A first network evaluation unit is configured to determine a network evaluation level when receiving the current frame image.
[0050] A second correction unit is configured to adjust the second color parameter according to the network evaluation level to obtain a third color parameter of each pixel in the current frame image, and display the current frame image based on the third color parameter.
[0051] In a fourth aspect, an embodiment of the present application also provides a color correction device, comprising:
[0052] a second network evaluation unit, configured to receive video data sent by the wireless screen transmission sender, and determine a network evaluation level when receiving each current frame image in a receiving process, the video data being composed of multiple frame images;
[0053] a third correction unit, configured to adjust initial color parameters of each pixel in the current frame image according to the network evaluation level, to obtain fourth color parameters corresponding to each pixel;
[0054] a second factor determination unit, configured to determine a second adjustment factor according to the fourth color parameters of each pixel in the current frame image and preset standard color parameters;
[0055] a fourth correction unit, configured to adjust the fourth color parameters of each pixel in the current frame image according to the second adjustment factor, to obtain fifth color parameters of each pixel, and display the current frame image based on the fifth color parameters.
[0056] In a fifth aspect, an embodiment of the present application further provides a display device, comprising a display screen, a communication module, one or more processors and a memory;
[0057] the memory is configured to store one or more programs;
[0058] the display screen is configured to realize display;
[0059] the communication module is configured to receive video data sent by the wireless screen transmission sender;
[0060] when the one or more programs are executed by the one or more processors, the one or more processors realize the color correction method in the first aspect or the second aspect.
[0061] In a sixth aspect, an embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the color correction method in the first aspect or the second aspect.
[0062] The color correction device, the display device and the storage medium provided above have the beneficial effects of the color correction method. BRIEF DESCRIPTION OF DRAWINGS
[0063] Figure 1 a structural schematic diagram of a display device provided by an embodiment of the present application;
[0064] Figure 2 a flowchart of a color correction method provided by an embodiment of the present application;
[0065] Figure 3 a flowchart of a color correction method provided by another embodiment of the present application;
[0066] Figure 4 A flow chart of another color correction method provided for an embodiment of the present application;
[0067] Figure 5 A structural schematic diagram of a color correction device provided for an embodiment of the present application;
[0068] Figure 6 A structural schematic diagram of a color correction device provided for an embodiment of the present application. DETAILED DESCRIPTION
[0069] The present application will be further described below in conjunction with the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are used to explain the present application, rather than limit the present application. In addition, it should be noted that, for the convenience of description, only the parts related to the present application are shown in the accompanying drawings, rather than all the structures.
[0070] In wireless screen transmission, the sending end can send the content to be transmitted (such as the display content containing operations in the display screen) to the receiving end in the form of video data (also referred to as video signal or video stream).
[0071] Among them, the sending end and the receiving end are both display devices with display screens, and both the sending end and the receiving end have the function of wireless screen transmission. For example, the sending end can be a notebook computer, a tablet computer and the like. The receiving end can be an interactive tablet, a smart television and the like.
[0072] In the process of wireless screen transmission, the video data transmitted is easily affected by network bandwidth and signal interference, resulting in color distortion of the wireless screen transmission picture presented by the receiving end based on the video data.
[0073] In related technologies, in order to avoid color distortion in wireless screen transmission network transmission, color correction can be performed at the receiving end. Among them, the process of color correction can be to use a color correction instrument connected to the receiving end to correct the color of the receiving end. When correcting, the receiving end needs to display a picture (such as a picture of wireless screen transmission) in the display screen first, and then the color correction instrument corrects the presentation effect of the picture to make the color of the corrected display picture more consistent with the actual needs of the user.
[0074] The correction belongs to correction lag, that is, the receiving end has displayed the picture, and then the correction is performed according to the display effect. In the wireless screen transmission scene, the video data has color distortion (that is, color loss) in the transmission process. When the receiving end displays the corresponding picture according to the received video data, the displayed picture is different from the picture corresponding to the video data sent by the sending end, that is, the display effect is different. At this time, even if the color correction is performed through the external instrument, it also belongs to displaying first and then correcting, and the color effect of the initially displayed picture cannot be guaranteed.
[0075] Based on this, the color correction method provided in the embodiments of the present application can perform color correction on the video data before the receiving end receives the video data and displays the picture corresponding to the video data, that is, perform color correction on the transmitted video data to correct the color distortion occurring in the transmission process, so that the color effect of the wireless screen transmission picture displayed by the receiving end is better. In the color correction process, the receiving end first determines the real-time color parameter of the currently received video data, then adjusts the real-time color parameter in combination with the standard color parameter, so that the display effect of the displayed picture is closer to the standard color, and then adjusts the adjusted color parameter again in combination with the network environment, so that the currently used color parameter is more consistent with the actual environment of the current network of the wireless screen transmission, so as to ensure high-quality color performance when the network environment is good, reduce color distortion when the network environment is poor, and ensure the stability of the picture displayed by the receiving end.
[0076] The color correction method provided in the embodiments of the present application can be executed by a color correction device. The color correction device can be realized by software and / or hardware, and can be composed of two or more physical entities or one physical entity. At present, the color correction device is a device acting as a receiving end in the wireless screen transmission scene, and can be a display device such as a tablet computer, an interactive tablet, a smart television, etc. that can realize wireless screen transmission. That is, the color correction device can also be understood as a display device.
[0077] Figure 1 A structural schematic diagram of a display device is provided for an embodiment of the present application. Referring to Figure 1 The display device includes a processor 11, a memory 12, a display screen 13, and a communication module 14. The processor 11, the memory 12, the display screen 13, and the communication module 14 can be connected through a bus or other means.
[0078] The number of processors 11 is one or more, Figure 1The processor 11 is taken as an example. The processor 11 can include a processing unit such as an application processor (AP), a graphics processing unit (GPU), and a central processing unit (CPU).
[0079] The memory 12 is a computer-readable storage medium and can be used to store software programs, computer-executable programs, and modules, such as program instructions / modules corresponding to the color correction method in the embodiments of the present application. The memory 12 can mainly include a program storage area and a data storage area, where the program storage area can store an operating system and application programs required by at least one function; and the data storage area can store data created according to the use of the display device, and the like. In addition, the memory 12 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state memory device. In some examples, the memory 12 can further include a memory 12 remotely arranged with respect to the processor 11, and these remote memories can be connected to the display device through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0080] The display screen 13 can be a liquid crystal display (LCD), an LED display, an organic light-emitting diode (OLED) display, a flexible light-emitting diode (FLED) display, or the like. The display screen 13 can be a touch display screen, in which case the display screen 13 includes a display component for completing visual output and a touch component for collecting a touch operation of a user. The touch component can be a touch component supporting infrared touch, electromagnetic touch, capacitive touch, and / or resistive touch, and the like.
[0081] The display device can further include a communication module 14 for realizing communication with the outside. For example, when the display device is used as a receiving end of wireless screen transmission, the communication module 14 is used to receive video data sent by a sending end of wireless screen transmission. The communication module 14 is composed of components for accessing a network (such as the Internet, Wireless Fidelity (Wi-Fi)), and components for realizing short-distance wireless communication such as Bluetooth, and the like.
[0082] In addition, the display device can further include a power supply, a speaker, a camera, and the like, which are not limited by the embodiments.
[0083] On the basis of the foregoing hardware structure, the display device is installed with at least one operating system. The operating system can be an Android system, a Windows system, or a Linux system, etc. On the basis of the installed operating system, the display device can be installed with at least one application program, which can be an application program provided by the operating system or an application program downloaded from a background server or a third-party device. In one embodiment, the display device is installed with at least an application program for realizing wireless screen projection and an application program for realizing the color correction method in the present application.
[0084] Currently, when the display device executes the color correction method, the wireless screen projection connection has been established between the receiving end and the sending end as the receiving end and the sending end of the wireless screen projection, so as to receive the video data in the wireless screen projection process through the connection. Therefore, in the embodiment, the display device can also be recorded as the receiving end.
[0085] Figure 2 A flowchart of a color correction method provided for one embodiment of the present application is shown in FIG. 2. Figure 2 The color correction method includes steps 210-240.
[0086] In step 210, the video data sent by the wireless screen projection sending end is received, and in the receiving process, a first adjustment factor is determined according to the initial color parameters of each pixel in the current frame image received each time and the preset standard color parameters. The video data is composed of multiple images.
[0087] Currently, the wireless screen projection sending end (which can also be recorded as the sending end) is the same as the sending end for realizing wireless screen projection in the prior art.
[0088] The video data refers to a video stream containing the content to be projected (such as the display content containing operations in the display screen) in the wireless screen projection process. The video data is composed of multiple images, and each image can be considered as a video frame. After the video data is generated by the sending end, it is sent to the receiving end by using a wireless communication mode (such as Bluetooth or Wi-Fi, etc.). Currently, the embodiment of the way in which the sending end generates the video data is not limited, and the existing way in which the video data is generated in the wireless screen projection scene can be referred to.
[0089] When the receiving end receives the video data, it receives each frame image of the video data (the received image can be data for generating the image, such as the BGR value of each pixel in the image, etc.) frame by frame. At this time, the receiving end can be considered as a video input device, which can capture the video data transmitted in the wireless screen projection process and process the video data to realize the display of the corresponding picture. The way in which the receiving end receives the video data in the existing wireless screen projection scene can be referred to.
[0090] In one embodiment, in the process of receiving the video data, for each received frame of image, the receiving end first performs color correction, and then displays the color-corrected image. Optionally, the software currently used for processing the image is collectively referred to as a processing system, which includes an application program for color correction and an application program for wireless screen display, etc. It can be understood that the receiving end uses the same color correction method for each image in the video data. In the embodiment, the process of color correction is described by taking the currently received frame of image as an example, and the currently received frame of image is denoted as the current frame of image.
[0091] After receiving the current frame of image, when performing color correction on the image, the receiving end first determines the color parameters of the image, and then corrects the color parameters. The color parameters refer to the parameters in the HSV (Hue, Saturation, Value) color space, which can determine the color presented when the image is displayed. The HSV color space can also be referred to as the HSV color model, which is a color space created according to the intuitive characteristics of colors. In the HSV color space, each color is represented by hue (H), saturation (S), and value (V). That is, the currently determined color parameters include hue parameters, saturation parameters, and brightness parameters. In actual applications, the color parameters can be at least one of the hue parameters, the saturation parameters, and the brightness parameters.
[0092] Each pixel in the current frame of image has corresponding color parameters. In one embodiment, the color parameters of each pixel when the current frame of image is received are denoted as initial color parameters. That is, each pixel has corresponding initial color parameters. The initial color parameters include hue parameters, saturation parameters, and brightness parameters, which are denoted as initial hue parameters, initial saturation parameters, and initial brightness parameters, respectively. If color distortion occurs during the transmission of the video data, the initial color parameters are the color parameters after color distortion.
[0093] For example, the receiving end can monitor the color parameters of the current frame of image in the video data in real time through a color sensor. The color sensor can be considered as a software expression for detecting colors (determining color parameters at present) in the receiving end, which can also be denoted as an image processing algorithm. It can be understood that the current frame of image received by the receiving end is an image in BGR color mode, where in computer science and digital image technology, BGR represents a combination of blue (Blue), green (Green), and red (Red) three channels, which corresponds to RGB mode, and RGB represents a combination of red, green, and blue three primary colors. Both BGR and RGB are commonly used color space representation methods, and the difference between them is the arrangement order of the color channels of the image.
[0094] Currently, the BGR format is converted into the HSV color space by the color sensor to obtain the initial color parameters of each pixel in the current frame image. The conversion of the BGR format into the HSV color space is a technology that has been implemented, and will not be described in detail.
[0095] For example, the standard color parameters refer to ideal color parameters expected to be used by the receiving end. When the initial color parameters include the initial hue parameter, the initial brightness parameter and the initial saturation parameter, the standard color parameters include the standard hue parameter, the standard brightness parameter and the standard saturation parameter.
[0096] The standard color parameters are pre-set (i.e. stored) in the receiving end for use.
[0097] Optionally, the preset standard color parameters can be determined based on internationally specified color standards. The color standards can be sRGB (standard Red Green Blue), Adobe RGB, Rec.709, etc. The sRGB is a standardized color space, which defines standard red, green and blue primary colors, gamma curves, etc. The Adobe RGB color space is a color space standard developed by Adobe Systems. The Rec.709 is an international standard for high-definition television. After the color standard is converted into the HSV color space, the obtained hue value, brightness value and saturation value are respectively used as the preset standard color parameters. For example, the standard red, green and blue colors specified in the sRGB are converted from the RGB into the HSV color space (the existing conversion method) to obtain the hue value as the standard hue parameter, the brightness value as the standard brightness parameter and the saturation value as the standard saturation parameter.
[0098] Optionally, the standard color parameters can also be pre-defined in combination with the actual situation of the display screen of the receiving end. For example, a color temperature instrument is used to perform color correction on the display screen of the receiving end, so that the color gamut of the corrected display screen is closer to the target color gamut (which can be set in combination with the actual situation). The correction process of the color temperature instrument uses the existing correction process. After the correction, the hue value, brightness value and saturation value used by the display screen can be respectively used as the standard hue parameter, the standard brightness parameter and the standard saturation parameter.
[0099] Optionally, the standard color parameters can also be determined using a color profile. The color profile (ICC Profile) is a set of data used to describe the characteristics of a color input, output device or a certain color space. Different display screen manufacturers can set different color profiles and store them in the display screen. Currently, the hue value, brightness value and saturation value contained in the color profile of the receiving end display screen are used as the standard hue parameter, standard brightness parameter and standard saturation parameter, respectively.
[0100] Currently, after obtaining the initial color parameters, the receiving end can obtain the standard color parameters. Then, the first adjustment factor is calculated according to the initial color parameters and the standard color parameters. The first adjustment factor refers to the parameter required for adjusting the initial color parameters. After adjusting each initial color parameter according to the first adjustment factor, the current frame image obtained satisfies the standard color parameters. Currently, the first adjustment factor includes a hue adjustment factor for adjusting each initial hue parameter, a brightness adjustment factor for adjusting each initial brightness parameter, and a saturation adjustment factor for adjusting each initial saturation parameter.
[0101] In one embodiment, when determining the first adjustment factor, the color parameters reflecting the overall current frame image can be determined based on the initial color parameters of each pixel. Currently, the color parameters reflecting the overall current frame image are referred to as first color parameters. The first color parameters can be the maximum value, average value or minimum value of the initial color parameters of each pixel. At this time, the first color parameters can also include hue parameters, brightness parameters and saturation parameters, which can be referred to as first hue parameters, first brightness parameters and first saturation parameters, respectively.
[0102] Then, the first adjustment factor is determined based on the first color parameters and the standard color parameters. Taking the calculation of the hue adjustment factor as an example, for instance, the deviation value between the first hue parameter and the standard hue parameter is calculated (which can be calculated by subtraction), and then the deviation value is taken as the hue adjustment factor to make the overall (such as the average) of the adjusted hue parameters of each pixel satisfy (i.e., approach or equal) the standard hue parameter based on the hue adjustment factor. For another example, the ratio between the standard hue parameter and the first hue parameter is calculated (which can be calculated by division), and then the ratio is taken as the hue adjustment factor to make the overall (such as the average) of the adjusted hue parameters of each pixel satisfy (i.e., approach or equal) the standard hue parameter based on the hue adjustment factor. The calculation method of the hue adjustment factor can also be used to calculate the brightness adjustment factor and the saturation adjustment factor, i.e., to obtain the first adjustment factor. It can be understood that in actual application, the first adjustment factor can also be calculated by subtraction and division, i.e., some first adjustment factors can be determined by subtraction, and some first adjustment factors can be determined by division. After calculating the first adjustment factor, the first adjustment factor can be saved in the database for use in step 220.
[0103] Step 220, adjusting the initial color parameter of each pixel in the current frame image according to the first adjustment factor to obtain a second color parameter of each pixel.
[0104] For example, after obtaining the first adjustment factor, the first adjustment factor can be read from the database, and the initial color parameter of each pixel in the current frame image is adjusted using the first adjustment factor, so that the color parameter of the adjusted current frame image meets the preset standard color parameter. At present, the color parameter obtained after adjusting the initial color parameter is called the second color parameter. Each pixel has a corresponding second color parameter, and the hue parameter, brightness parameter and saturation parameter included in the second color parameter are respectively called the second hue parameter, second brightness parameter and second saturation parameter.
[0105] When the first adjustment factor is determined by the deviation value of the first color parameter and the standard color parameter, the initial color parameter of each pixel can be subtracted by the first adjustment factor to obtain the second color parameter of each pixel. When the first adjustment factor is determined by the ratio of the first color parameter to the standard color parameter, the initial color parameter of each pixel can be multiplied by the first adjustment factor to obtain the second color parameter of each pixel.
[0106] For example, the first saturation parameter is 150, the standard saturation parameter is 100, and the saturation adjustment factor is 100 / 150≈0.67. Then, the initial saturation parameter of each pixel can be adjusted using the saturation adjustment factor. For example, the initial saturation parameter of a pixel is 150, and then the second saturation parameter obtained is 150×0.67=100.5.
[0107] For another example, the first brightness parameter is 180, the standard brightness parameter is 150, and the brightness adjustment factor is 180-150=30. The initial brightness parameter of each pixel is adjusted using the brightness adjustment factor. For example, the initial brightness parameter of a pixel is 180, and then the second brightness parameter obtained is 180-30=150.
[0108] For another example, the first hue parameter is 150, the standard hue parameter is 120, and the hue adjustment factor is 150-120=30. The initial hue parameter of each pixel is adjusted using the hue adjustment factor. For example, the initial hue parameter of a pixel is 150, and then the second hue parameter obtained is 150-30=120.
[0109] It can be understood that after each pixel of the current frame image is adjusted from the initial color parameter to the second color parameter, the average value of each second color parameter is equal to or close to the standard color parameter. For example, the average value of the second hue parameter of each pixel is close to the standard hue parameter. At this time, the color effect of the current frame image using the second color parameter is closer to the color effect of the standard color parameter.
[0110] Step 230, determining the network evaluation level when the current frame image is received.
[0111] It can be understood that when the receiving end receives the video data using the network, the network environment can change in real time. At this time, in order to enable the receiving end to achieve a high-quality color display effect under different network environments, in the embodiment, the second color parameter is also adjusted in combination with the real-time network environment during the process of receiving the video data, so that the finally obtained color parameter is adapted to the current network environment.
[0112] The network evaluation level refers to a level for evaluating the quality of the current network environment. The specific division of the network evaluation level can be set in combination with actual conditions. In one embodiment, the network evaluation level is divided into a network good level, a network medium level, and a network poor level. Under the network good level, it is indicated that the current network environment is good, which can enable the receiving end to display relatively bright and bright colors when displaying the video data. Under the network medium level, it is indicated that the current network environment is normal but not good, which can enable the receiving end to maintain a good color effect when displaying the video data, that is, to maintain the standard color. Under the network poor level, it is indicated that the current network environment is not good, and the packet loss rate and the delay are high. At this time, the receiving end can reduce the bright display effect of the color, so as to reduce color distortion and the like as much as possible and ensure the stability of the display picture of the receiving end.
[0113] In one embodiment, when each frame image of the video data is received, the network evaluation level when the frame image is received needs to be determined. The network evaluation level can be determined by a network parameter. The network parameter refers to a parameter that can reflect the network environment during network use. In one embodiment, the network parameter includes at least one of a network bandwidth, a network delay, and a packet loss rate. The network parameter can also include other types of parameters in actual application.
[0114] The network bandwidth refers to the amount of data that can be transmitted in a unit of time (generally 1 second). The network delay is defined as the time used in the transmission medium. If the amount of transmitted information is too large and is not limited, excessive network traffic will cause slow device response and network delay. The packet loss rate refers to the ratio of the number of lost data packets to the number of transmitted data groups.
[0115] When calculating the network evaluation level, the network parameters can be set with reasonable weights, and a comprehensive score can be calculated, and then the network evaluation level can be obtained according to the score. For example, when the network parameters include network bandwidth, network delay, and packet loss rate, the network bandwidth, network delay, and packet loss rate can be set with applicable weights, and then the score of the network environment can be obtained by weighted calculation. At present, in order to ensure the accuracy of the network evaluation level, different scores can be set based on different parameter ranges of the network parameters, and then the scores can be weighted to obtain the score of the network environment. The scores corresponding to different parameter ranges of the network parameters can be set in combination with actual conditions. For example, when the network parameter is network bandwidth, if the specific value of the network bandwidth is greater than 5 Mbps (bps, i.e., bit rate), the corresponding score is 3 points, if the network bandwidth is greater than or equal to 2 Mbps and less than or equal to 5 Mbps, the corresponding score is 2 points, and if the network bandwidth is less than 2 Mbps, the corresponding score is 1 point. At this time, the receiving end can determine the corresponding score according to the current specific value of the network bandwidth, and then the score related to the network bandwidth in the network environment score can be obtained in combination with the weight corresponding to the network bandwidth. After determining the corresponding scores of each type of network parameter in the network environment score, the score of the network environment can be obtained by adding the scores. Then, the corresponding network evaluation level can be obtained according to the score of the network environment. Different network evaluation levels corresponding to different network environment scores can be set in advance in combination with actual conditions. Then, the current applicable network evaluation level can be obtained according to the corresponding relationship.
[0116] Step 240, adjusting each second color parameter according to the network evaluation level to obtain a third color parameter of each pixel in the current frame image, so as to display the current frame image based on the third color parameter.
[0117] The adjustment rules of the second color parameters corresponding to different network evaluation levels are set in advance, and then the second color parameters of each pixel in the current frame image can be adjusted according to the current network evaluation level and the corresponding adjustment rules.
[0118] The adjustment rules can be set in combination with actual conditions, and the adjustment rules corresponding to different color parameter types can be different. For example, the second hue parameter, the second brightness parameter, and the second saturation parameter each have corresponding adjustment rules. The adjustment rules can limit the corresponding second color parameter to be increased, decreased, or remain unchanged, and when increased or decreased, the specific value or proportion of the increase or decrease can be limited, or when increased or decreased, the calculation method of the specific value or proportion of the increase or decrease can be limited.
[0119] The second color parameter is adjusted to obtain a third color parameter. The third color parameter includes a third hue parameter, a third brightness parameter, and a third saturation parameter. Each pixel in the current frame image has a corresponding third color parameter.
[0120] For example, when the network evaluation level is a good network level, the third saturation parameter and the third brightness parameter of each pixel after adjustment can be appropriately increased compared with the second color parameter, and the third hue parameter can be appropriately increased or remain unchanged, so that the color becomes more bright and vivid when displayed at the receiving end.
[0121] When the network evaluation level is a medium network level, the third saturation parameter of each pixel after adjustment can be slightly increased compared with the second color parameter, and the third brightness parameter and the third hue parameter can be slightly increased or remain unchanged, so that the color effect is good when displayed at the receiving end, that is, the standard color is maintained.
[0122] When the network evaluation level is a poor network level, the third saturation parameter and the third brightness parameter of each pixel after adjustment can be appropriately reduced compared with the second color parameter, and the third hue parameter can be appropriately reduced or remain unchanged, so that the bright display effect of the color is reduced when displayed at the receiving end, so as to reduce color distortion and the like as much as possible.
[0123] In one embodiment, after the third color parameter is obtained, the third color parameter is converted from the HSV color space back to the BGR format. At this time, each pixel can obtain a corresponding value in the BGR format based on the third color parameter, and then the receiving end can display the current frame image in the BGR format, so as to ensure the color display effect of the image, that is, the color parameter of the currently displayed image is the third color parameter.
[0124] Optionally, during the wireless screen transmission process, each received frame image is subjected to the aforementioned color correction and displayed. After the wireless screen transmission is completed, the receiving end also stops the color correction.
[0125] The above-mentioned technical solution, by determining the initial color parameters of each pixel in the current frame image after receiving the current frame image in the wireless screen transmission process, then obtaining the first adjustment factor according to the initial color parameters and the standard color parameters and adjusting the initial color parameters of each pixel in the current frame image based on the first adjustment factor to obtain the second color parameters of each pixel, then adjusting the second color parameters of each pixel in combination with the network evaluation level when the current frame image is received to obtain the third color parameters of each pixel in the current frame image as the color parameters used when displaying the current frame image, solves the technical problem of color distortion of video data in the wireless screen transmission process in the related art due to the influence of network bandwidth and signal interference, and by using the preset standard color parameters, the color effect when the receiving end displays the image can be ensured, color distortion can be avoided as much as possible, the initial color parameters can be monitored and dynamically adjusted based on the first adjustment factor, so that the adjusted second color parameters are more high-quality and close to the standard color parameters, and by adjusting the second color parameters in combination with the network evaluation level to obtain the third color parameters, the image displayed by the receiving end based on the third color parameters can be as close as possible to the standard color and the current color effect can be ensured to be more consistent with the actual environment of the wireless screen transmission current network, so that in a good network environment, high-quality color performance can be ensured, and in a poor network environment, color distortion can be reduced to ensure the stability of the image displayed by the receiving end. Moreover, the color correction is performed when the image is received, and the display is performed after the color correction, which can avoid the problem of correction lag when displaying first and then performing color correction, and real-time adjustment of the color parameters during the transmission process can be realized to ensure better visual effect in various network environments.
[0126] Figure 3 A flowchart of a color correction method according to another embodiment of the present application is shown. Figure 3 The method shown is a specific embodiment of the method shown in Figure 2 In this embodiment, the initial color parameters include an initial brightness parameter, an initial hue parameter, and an initial saturation parameter, the second color parameters include a second brightness parameter, a second hue parameter, and a second saturation parameter, and the third color parameters include a third brightness parameter, a third hue parameter, and a third saturation parameter.
[0127] Reference is made to Figure 3 The color correction method includes steps 310-3100:
[0128] Step 310, receiving video data sent by a wireless screen transmission sending end, and converting each received current frame image from BGR format to HSV color space during the receiving process to obtain initial color parameters corresponding to each pixel in the current frame image.
[0129] For example, the BGR format refers to a BGR color mode. In the BGR format, each pixel in an image has a value in a blue channel, a green channel and a red channel. Converting the BGR format into an HSV color space can be understood as converting each pixel from a value in the blue channel, the green channel and the red channel to a value in a hue channel, a saturation channel and a lightness channel. The conversion of the BGR format into the HSV color space can be implemented by using a currently available technical means. After converting the current frame image into the HSV color space, each pixel in the image has a corresponding initial hue parameter, an initial saturation parameter and an initial lightness parameter. The initial hue parameter, the initial saturation parameter and the initial lightness parameter of a pixel can be used as initial color parameters of the pixel when the current frame image is received. Each pixel has a corresponding initial color parameter.
[0130] In step 320, an average value of the initial color parameters of the pixels in the current frame image is calculated and used as a first color parameter.
[0131] For example, the hue calculation is taken as an example. After obtaining the initial hue parameter of each pixel in the current frame image, the first hue parameter of the current frame image can be obtained based on the initial hue parameters. For example, the minimum value, the maximum value or the average value of the initial hue parameters is selected as the first hue parameter. In an embodiment, the average value of the initial hue parameters is taken as an example, that is, the average value of the initial hue parameters of each pixel is calculated and used as the first hue parameter. The first lightness parameter and the first saturation parameter are calculated in the same way as the first hue parameter, and thus are not described herein.
[0132] At this time, the step can be specifically implemented as follows: an average value of the initial lightness parameters of the pixels in the current frame image is calculated and used as a first lightness parameter, an average value of the initial hue parameters of the pixels in the current frame image is calculated and used as a first hue parameter, and an average value of the initial saturation parameters of the pixels in the current frame image is calculated and used as a first saturation parameter.
[0133] The first hue parameter, the first lightness parameter and the first saturation parameter can be used as the first color parameter of the current frame image. The first color parameter can reflect the color effect of the current frame image as a whole, that is, the hue, the lightness and the saturation of the whole.
[0134] In step 330, a first adjustment factor is determined based on the first color parameter and a preset standard color parameter.
[0135] In an embodiment, the step includes the following two schemes:
[0136] In scheme one, a deviation value of the first color parameter and the preset standard color parameter is determined, and the deviation value is used as the first adjustment factor.
[0137] For example, the first color parameter is subtracted from the standard color parameter to obtain a deviation value, which reflects the difference between the overall color of the image and the standard color. This deviation value is then used as the first adjustment factor. The deviation value can be positive or negative; a positive value decreases the initial color parameter, while a negative value increases it.
[0138] Specifically, the deviation value is obtained by subtracting the first hue parameter from the standard hue parameter, and this deviation value is used as the hue adjustment factor in the first adjustment factor. The deviation value is obtained by subtracting the first brightness parameter from the standard brightness parameter, and this deviation value is used as the brightness adjustment factor in the first adjustment factor. The deviation value is obtained by subtracting the first saturation parameter from the standard saturation parameter, and this deviation value is used as the saturation adjustment factor in the first adjustment factor.
[0139] Option 2: Determine the ratio of the preset standard color parameter to the first color parameter, and use the ratio as the first adjustment factor.
[0140] For example, the standard color parameter is divided by the first color parameter to obtain a ratio. This ratio represents the proportion by which the initial color parameter of a pixel should be multiplied so that the overall color after multiplication is close to or equal to the standard color parameter. The ratio can be greater than 1 or less than 1. When it is greater than 1, it is used to increase the initial color parameter; when it is less than 1, it is used to decrease the initial color parameter.
[0141] Specifically, the ratio of the first hue parameter to the standard hue parameter is used as the hue adjustment factor in the first adjustment factor. Similarly, the ratio of the first brightness parameter to the standard brightness parameter is used as the brightness adjustment factor in the first adjustment factor. Finally, the ratio of the first saturation parameter to the standard saturation parameter is used as the saturation adjustment factor in the first adjustment factor.
[0142] Step 340: Adjust the initial color parameters of each pixel in the current frame image according to the first adjustment factor to obtain the second color parameters of each pixel.
[0143] In one embodiment, this step includes the following two options:
[0144] Option 1: Subtract the initial color parameter of each pixel in the current frame image from the first adjustment factor to obtain the second color parameter of each pixel.
[0145] This scheme applies to cases where the first adjustment factor is determined through the steps outlined in Scheme 1.
[0146] For example, the initial color parameter of each pixel is subtracted by the first adjustment factor to compensate for the difference between the initial color parameter and the standard color parameter, thereby obtaining the second color parameter of each pixel.
[0147] Specifically, the initial hue parameter of each pixel is subtracted by the hue adjustment factor in the first adjustment factor, thereby obtaining the second hue parameter of each pixel. The initial brightness parameter of each pixel is subtracted by the brightness adjustment factor in the first adjustment factor, thereby obtaining the second brightness parameter of each pixel. The initial saturation parameter of each pixel is subtracted by the saturation adjustment factor in the first adjustment factor, thereby obtaining the second saturation parameter of each pixel.
[0148] Option two, the initial color parameter of each pixel in the current frame image is multiplied by the first adjustment factor to obtain the second color parameter of each pixel.
[0149] This option is applicable to the case where the first adjustment factor is determined by the aforementioned step of option two.
[0150] For example, the initial color parameter of each pixel is multiplied by the first adjustment factor to make the overall color after multiplication close to or equal to the standard color parameter, thereby obtaining the second color parameter of each pixel.
[0151] Specifically, the initial hue parameter of each pixel is multiplied by the hue adjustment factor in the first adjustment factor, thereby obtaining the second hue parameter of each pixel. The initial brightness parameter of each pixel is multiplied by the brightness adjustment factor in the first adjustment factor, thereby obtaining the second brightness parameter of each pixel. The initial saturation parameter of each pixel is multiplied by the saturation adjustment factor in the first adjustment factor, thereby obtaining the second saturation parameter of each pixel.
[0152] In practical applications, the two options can also be used in combination, for example, the saturation parameter uses option two, and the hue parameter and the brightness parameter use option one.
[0153] Step 350, obtaining the network parameter when the current frame image is received, the network parameter including at least one of network bandwidth, network delay and packet loss rate.
[0154] In the embodiment, the network parameter includes network bandwidth, network delay and packet loss rate as an example.
[0155] Exemplarily, the network bandwidth can be obtained by a speedtest library. The speedtest library is used to test the download and upload speed when the network (such as the Internet) is connected. Based on the download and upload speed, the network bandwidth can be obtained. The network delay and the packet loss rate can be measured by a ping command. The ping command is a network diagnostic tool that can check the delay and packet loss rate of network connection. The speedtest library and the ping command are both implemented technical means, and are not described in detail at present.
[0156] In step 360, the current score of the network parameter and the weight value corresponding to the network parameter are obtained. Each network parameter has a corresponding weight value.
[0157] Exemplarily, a weight value is set for each network parameter in advance by a person according to the actual situation, and is stored in the receiving end. The receiving end determines the network parameter, and then obtains the stored weight value. For example, the weight value of the network bandwidth is 0.4, the weight value of the network delay is 0.3, and the weight value of the packet loss rate is 0.3.
[0158] In order to ensure the simplicity and rationality of the network evaluation score calculation, a reasonable score is set for the network parameter according to the specific value of the network parameter. Then, the corresponding score can be obtained according to the specific value of the network parameter determined at present.
[0159] The value range of the network parameter can be reasonably divided to obtain a plurality of sub-ranges. Different sub-ranges reflect different network environments. Then, a reasonable score can be set for different sub-ranges by a person and stored in the receiving end.
[0160] For example, when the network parameter is the network bandwidth, three sub-ranges are divided, which are greater than 5 Mbps, greater than or equal to 2 Mbps and less than or equal to 5 Mbps, and less than 2 Mbps. The network bandwidth is greater than 5 Mbps, which indicates that the network bandwidth is good, and the set score can be high, which is currently set to 3 points. The network bandwidth is greater than or equal to 2 Mbps and less than or equal to 5 Mbps, which indicates that the network bandwidth is moderate, and the set score can be moderate, which is currently set to 2 points. The network bandwidth is less than 2 Mbps, which indicates that the network bandwidth is poor, and the set score can be low, which is currently set to 1 point.
[0161] When the network parameter is network delay, three sub-ranges are divided, which are less than 50 ms (i.e. millisecond), greater than or equal to 50 ms and less than or equal to 100 ms, and greater than 100 ms. When the network delay is less than 50 ms, it means that the delay is small, and the score set can be higher, and the current setting is 3 points. When the network delay is greater than or equal to 50 ms and less than or equal to 100 ms, it means that the network delay is moderate, and the score set can be moderate, and the current setting is 2 points. When the network delay is greater than 100 ms, it means that the delay is higher. The score set can be lower, and the current setting is 1 point.
[0162] When the network parameter is packet loss rate, three sub-ranges are divided, which are less than 1%, greater than or equal to 1% and less than or equal to 5%, and greater than 5%. When the packet loss rate is less than 1%, it means that the packet loss is small, and the score set can be higher, and the current setting is 3 points. When the packet loss rate is greater than or equal to 1% and less than or equal to 5%, it means that the packet loss is moderate, and the score set can be moderate, and the current setting is 2 points. When the packet loss rate is greater than 5%, it means that the packet loss is more, and the score set can be lower, and the current setting is 1 point.
[0163] After the receiving end obtains the network bandwidth, network delay and packet loss rate, the corresponding score (i.e. score) can be obtained according to the specific value.
[0164] Step 370, determining the network evaluation score according to the current score of the network parameter and the weight value.
[0165] Based on the score of the network parameter and the corresponding weight, the network evaluation score is obtained. The network evaluation score can be considered as the score for evaluating the quality of the network environment. The higher the network evaluation score, the better the quality of the network environment. In one embodiment, after the network parameters including network bandwidth, network delay and packet loss rate, the calculation method of the network evaluation score is: the score of network bandwidth * the weight value of network bandwidth + the score of network delay * the weight value of network delay + the score of packet loss rate * the weight value of packet loss rate. For example, the score and weight value in the foregoing example, the score of network bandwidth * the weight value of network bandwidth can be 3*0.4, 2*0.4 or 1*0.4. The score of network delay * the weight value of network delay can be 3*0.3, 2*0.3 or 1*0.3. The score of packet loss rate * the weight value of packet loss rate can be 3*0.3, 2*0.3 or 1*0.3.
[0166] Step 380, determining the network evaluation level according to the network evaluation score, different network evaluation levels correspond to different network evaluation score ranges.
[0167] For example, in combination with the division of the network evaluation level, different network evaluation score ranges corresponding to different network evaluation levels are set. Different network evaluation levels correspond to different network evaluation score ranges, and each network evaluation score range constitutes the total parameter range of the network evaluation score.
[0168] Taking the score and weight value of the foregoing example as an example, when the network evaluation level is divided into a network good level, a network medium level, and a network poor level, the network evaluation score corresponding to the network good level is greater than 2.5, the network evaluation score corresponding to the network medium level is greater than 1.5 and less than or equal to 2.5, and the network evaluation score corresponding to the network poor level is less than or equal to 1.5.
[0169] When the receiving end obtains the network rating parameter, the corresponding network evaluation level can be determined according to the range in which it falls. For example, taking the score, weight value, and network evaluation score range of the foregoing example as an example, when the receiving end receives the current frame image, the network bandwidth is 3 points, the network delay is 2 points, and the packet loss rate is 1 point, the calculated network evaluation score is 3*0.4+2*0.3+1*0.3=2.1, and the corresponding network evaluation level is the network medium level.
[0170] Step 390, adjusting each second color parameter according to the network evaluation level to obtain a third color parameter of each pixel in the current frame image.
[0171] In one embodiment, when the network evaluation level is the network good level, this step can be specifically: adjusting each second brightness parameter according to a first brightness increase value to obtain a corresponding third brightness parameter, adjusting each second hue parameter or keeping each second hue parameter according to a first hue amplification ratio to obtain a corresponding third hue parameter, and adjusting each second saturation parameter according to a first saturation amplification ratio to obtain a corresponding third saturation parameter.
[0172] For example, when the network evaluation level is the network good level, the current second brightness parameter of each pixel can be increased to avoid the current frame image from being too dark. When the brightness of each pixel is increased, a preset increase value can be used to achieve the increase, and the increase value corresponding to each pixel is equal. At present, the increase value of the brightness when the network evaluation level is the network good level is referred to as a first brightness increase value, the first brightness increase value is a positive value, and the specific value can be set according to actual conditions. After the second brightness parameter of each pixel is added to the first brightness increase value, the obtained brightness parameter can be used as the third brightness parameter of the corresponding pixel.
[0173] For example, when the network is in the good level, the second hue parameter of each pixel can be increased or kept unchanged to increase the contrast between colors, so that the image is clearer. When the second hue parameter is increased, the second hue parameter can be enlarged by using a preset enlargement ratio. The enlargement ratio used by each pixel is the same. At present, the enlargement ratio of the hue when the network is in the good level is referred to as the first hue enlargement ratio. The first hue enlargement ratio is greater than 1.0, and the specific value thereof can be set in combination with actual conditions. After the second hue parameter of each pixel is multiplied by the first hue enlargement ratio, the obtained hue parameter can be used as the third hue parameter of the corresponding pixel. When each second hue parameter is kept unchanged, the second hue parameter of each pixel can be used as the third hue parameter of the corresponding pixel, or the first hue enlargement ratio is set to 1.0, and after the second hue parameter of each pixel is multiplied by the first hue enlargement ratio, the obtained hue parameter can be used as the third hue parameter of the corresponding pixel.
[0174] For example, when the network is in the good level, the second saturation parameter of each pixel can be increased to make the colors of the pixels more vivid. When the second saturation parameter is increased, the second saturation parameter can be enlarged by using a preset enlargement ratio. The enlargement ratio used by each pixel is the same. At present, the enlargement ratio of the saturation when the network is in the good level is referred to as the first saturation enlargement ratio. The first saturation enlargement ratio is greater than 1.0, and the specific value thereof can be set in combination with actual conditions. After the second saturation parameter of each pixel is multiplied by the first saturation enlargement ratio, the obtained saturation parameter can be used as the third saturation parameter of the corresponding pixel.
[0175] In one embodiment, when the network evaluation level is the medium level, the step can be specifically: adjusting the second luminance parameters or keeping the second luminance parameters according to the second luminance increase value to obtain corresponding third luminance parameters, adjusting the second hue parameters or keeping the second hue parameters according to the second hue enlargement ratio to obtain corresponding third hue parameters, and adjusting the second saturation parameters according to the second saturation enlargement ratio to obtain corresponding third saturation parameters. The second luminance increase value is less than the first luminance increase value, the second hue enlargement ratio is less than the first hue enlargement ratio, and the second saturation enlargement ratio is less than the first saturation enlargement ratio.
[0176] For example, at a medium network level, the second brightness parameter of each pixel can be slightly increased or kept unchanged to ensure image brightness consistency. When slightly increasing the brightness of each pixel, a preset increase value can be used, and the increase value for each pixel is equal. Currently, the brightness increase value at a medium network level is recorded as the second brightness increase value. The second brightness increase value is positive, and its specific value can be set according to actual conditions. Generally, the second brightness increase value is less than the first brightness increase value. Currently, the brightness parameter of each pixel is added to the second brightness increase value, and the resulting brightness parameter can be used as the third brightness parameter of the corresponding pixel. While maintaining the second brightness parameters, the second brightness parameter of each pixel can be used as the third brightness parameter of the corresponding pixel.
[0177] For example, at a medium network level, the current second hue parameter of each pixel can be slightly increased or kept unchanged to maintain image sharpness. When increasing the second hue parameter, a preset magnification ratio can be used. The same magnification ratio is used for each pixel. Currently, the magnification ratio of the hue at a medium network level is denoted as the second hue magnification ratio. The second hue magnification ratio is greater than and close to 1.0, and its specific value can be set according to actual conditions. Generally, the second hue magnification ratio is less than the first hue magnification ratio. Currently, the hue parameter obtained by multiplying the second hue parameter of each pixel by the second hue magnification ratio can be used as the third hue parameter of the corresponding pixel. Alternatively, the second hue parameter can be kept constant, and the second hue parameter of each pixel can be used as the third hue parameter of the corresponding pixel. Or, the second hue magnification ratio can be set to 1.0, and the hue parameter obtained by multiplying the second hue parameter of each pixel by the second hue magnification ratio can be used as the third hue parameter of the corresponding pixel.
[0178] For example, at a medium network level, the second saturation parameter of each pixel can be slightly increased to maintain good color performance and avoid over-adjustment. This slight increase in the second saturation parameter can be achieved using a preset magnification ratio. The same magnification ratio is used for all pixels. Currently, the magnification ratio for saturation at a medium network level is denoted as the second saturation magnification ratio. The second saturation magnification ratio is greater than and close to 1.0, and its specific value can be set according to actual conditions. Generally, the second saturation magnification ratio is less than the first saturation magnification ratio. Currently, multiplying the second saturation parameter of each pixel by the second saturation magnification ratio yields the third saturation parameter for that pixel.
[0179] In one embodiment, when the network evaluation level is a poor network level, this step may specifically be as follows: adjust each second brightness parameter according to the brightness reduction value to obtain the corresponding third brightness parameter, adjust each second hue parameter according to the hue reduction ratio or keep each second hue parameter to obtain the corresponding third hue parameter, and adjust each second saturation parameter according to the saturation reduction ratio to obtain the corresponding third saturation parameter.
[0180] For example, in cases of poor network quality, the second brightness parameter of each pixel can be reduced to decrease image brightness and avoid overexposure. The brightness reduction for each pixel can be achieved using a preset reduction value, and the reduction value for each pixel is equal. Currently, the brightness reduction value for poor network quality is recorded as the brightness reduction value, and the second brightness reduction value is negative, with the specific value adjustable based on actual conditions. The brightness parameter obtained by adding the second brightness parameter of each pixel to the negative brightness reduction value can then be used as the third brightness parameter for that pixel.
[0181] For example, at a poor network level, the current second tone parameter of each pixel can be reduced or kept unchanged to maintain or slightly reduce image contrast and avoid over-sharpening. When reducing the second tone parameter, a preset reduction ratio can be used. The reduction ratio used for each pixel is the same. Currently, the reduction ratio for the tone at a poor network level is denoted as the tone reduction ratio. The tone reduction ratio is less than 1.0, and its specific value can be set according to actual conditions. Currently, the tone parameter obtained by multiplying the second tone parameter of each pixel by the tone reduction ratio can be used as the third tone parameter of the corresponding pixel. Alternatively, when maintaining the second tone parameter, the second tone parameter of each pixel can be used as the third tone parameter of the corresponding pixel; or, the tone reduction ratio can be set to 1.0, and the tone parameter obtained by multiplying the second tone parameter of each pixel by the tone reduction ratio can be used as the third tone parameter of the corresponding pixel.
[0182] For example, at a poor network level, the current second saturation parameter of each pixel can be reduced to decrease image color saturation and reduce color distortion. When reducing the second saturation parameter, a preset reduction ratio can be used. The reduction ratio used for each pixel is the same. Currently, the reduction ratio of saturation at a poor network level is denoted as the saturation reduction ratio. The saturation reduction ratio is less than 1.0, and its specific value can be set according to actual conditions. Currently, the saturation parameter obtained by multiplying the second saturation parameter of each pixel by the saturation reduction ratio can be used as the third saturation parameter of the corresponding pixel.
[0183] Step 3100: Perform color gamut correction on the current frame image using the third color parameter to display the color gamut corrected current frame image.
[0184] For example, after obtaining the third color parameters of each pixel, the current frame image using the third color parameters is converted from the HSV color space back to BGR format. Then, color gamut correction is performed on the BGR format current frame image. This color gamut correction is achieved through color gamut mapping, which is the process of converting colors from one color space to another (i.e., the target color space) to ensure correct color display or conversion. Currently, the target color space used in color gamut mapping can be set according to actual conditions; for example, the target color space used may be XvYcc. XvYcc is the latest generation color gamut standard. Currently, by converting each pixel in the current frame image from BGR format to the sRGB or DisplayP3 color gamut, and then converting it to the XvYcc color gamut, color gamut correction can be achieved. The receiving end can then display the current frame image in the XvYcc color gamut. DisplayP3 is a wide color gamut standard. The aforementioned color gamut mapping is an existing technical method and will not be described further here.
[0185] As described above, determining the first color parameter based on the average value of the initial color parameters of each pixel in the current frame image ensures that the first color parameter more accurately reflects the color situation of the current frame image, thereby ensuring that determining the first adjustment factor based on the first color parameter and the standard color parameter is more suitable for the current frame image. By using the deviation between the first color parameter and the preset standard color parameter as the first adjustment factor, and then subtracting each initial color parameter from the first adjustment factor to obtain the second color parameter; or by using the ratio of the preset standard color parameter to the first color parameter as the first adjustment factor, and then multiplying each initial color parameter by the first adjustment factor to obtain the second color parameter, a simple algorithm can be used to ensure that the adjusted current frame image is close to the standard color parameters, reducing computational complexity and improving the performance of the receiving end. Furthermore, by setting appropriate scores for different network parameter values, and ensuring that each network parameter has an appropriate weight value, the network evaluation level can be obtained by combining the real-time network parameter scores and weight values, ensuring the accuracy of the network evaluation level determination and reducing computational complexity. Furthermore, by applying appropriate adjustment methods to various hue parameters based on different network evaluation levels, the hue adjustment can be made more refined, thereby ensuring the color effect of the adjusted third color parameter under different network evaluation levels. In addition, after color correction, color gamut correction is performed on the current frame image, i.e., a more advanced correction, which can ensure color consistency and accuracy throughout the entire transmission and processing link.
[0186] This application also provides a color correction method, which has the same inventive concept as the aforementioned color correction method and can be executed by the same receiving end. The difference is that the aforementioned color correction method first performs color correction based on standard color parameters and then performs color correction a second time based on network evaluation level, while the color correction method in this embodiment first performs color correction based on network evaluation level and then performs color correction a second time based on standard color parameters. Figure 4 A flowchart illustrating another color correction method provided in one embodiment of this application. (See also:) Figure 4 The color correction method includes steps 410-440:
[0187] Step 410: Receive video data sent by the wireless screen sharing terminal, and determine the network evaluation level each time the current frame image is received during the receiving process. The video data consists of multiple frames.
[0188] Currently, the video data, the current frame image, and the network evaluation level can all be referred to the relevant descriptions in the foregoing embodiments. The calculation method for the network evaluation level can refer to the calculation method in the foregoing embodiments.
[0189] Step 420: Adjust the initial color parameters of each pixel in the current frame image according to the network evaluation level to obtain the fourth color parameters corresponding to each pixel.
[0190] The initial color parameters can be referred to the relevant descriptions in the foregoing embodiments. Currently, the initial color parameters of each pixel are adjusted according to the network evaluation level, and the adjusted color parameters are denoted as the fourth color parameters. It can be understood that the hue parameter, brightness parameter, and saturation parameter included in the fourth color parameters are respectively denoted as the fourth hue parameter, the fourth brightness parameter, and the fourth saturation parameter.
[0191] The initial color parameters of each pixel are adjusted according to the network evaluation level to obtain the fourth color parameter. The adjustment method for the initial color parameters based on the network evaluation level can refer to the adjustment method for the second color parameters based on the network evaluation level in the previous embodiment. The difference is that the previous embodiment adjusted the second color parameters based on the network evaluation level after they had already been adjusted based on the standard color parameters, while the current embodiment adjusts the initial color parameters based on the network evaluation level before they have been corrected.
[0192] Step 430: Determine the second adjustment factor based on the fourth color parameters of each pixel in the current frame image and the preset standard color parameters.
[0193] The standard color parameters can be found in the descriptions of the foregoing embodiments. The second adjustment factor refers to the parameter required to adjust the fourth color parameters. After each fourth color parameter is adjusted according to the second adjustment factor, the resulting current frame image satisfies the standard color parameters.
[0194] Currently, the method for determining the second adjustment factor can refer to the method for determining the first adjustment factor based on the initial color parameters and standard color parameters in the aforementioned embodiments. The difference is that the initial color parameters are replaced with a fourth color parameter.
[0195] Step 440: Adjust the fourth color parameter of each pixel in the current frame image according to the second adjustment factor to obtain the fifth color parameter of each pixel, so as to display the current frame image based on the fifth color parameter.
[0196] For example, the adjustment method for adjusting the fourth color parameters of each pixel according to the second adjustment factor can refer to the adjustment method for adjusting the initial color parameters according to the first adjustment factor in the previous embodiment. The difference is that in the previous embodiment, the initial color parameters that have not yet been corrected are adjusted according to the first adjustment factor, while in the current embodiment, the fourth color parameters that have been adjusted based on the network level parameters are adjusted according to the second adjustment factor.
[0197] Currently, the color parameter obtained by adjusting the fourth color parameter according to the second adjustment factor is denoted as the fifth color parameter. It can be understood that the hue parameter, brightness parameter, and saturation parameter included in the fifth color parameter are respectively denoted as the fifth hue parameter, the fifth brightness parameter, and the fifth saturation parameter.
[0198] Then, the current frame image using the fifth hue parameter can be displayed.
[0199] Optionally, color gamut correction can be performed using the fifth hue parameter, and the current frame image after color gamut correction can be displayed.
[0200] Other technical details not disclosed in this embodiment can be found in the relevant descriptions in the foregoing embodiments.
[0201] The above-described method, which involves receiving the current frame image during wireless screen sharing, determining the network evaluation level and the initial color parameters of each pixel in the current frame image, then adjusting the initial color parameters of each pixel based on the network evaluation level to obtain the fourth color parameters of each pixel, and obtaining a second adjustment factor based on the fourth color parameters and standard color parameters. This second adjustment factor is then used to adjust the fourth color parameters of each pixel in the current frame image to obtain the fifth color parameters of each pixel, which are then used as the color parameters for displaying the current frame image. This method solves the technical problem in related technologies where video data is easily affected by network bandwidth and signal interference during wireless screen sharing, resulting in color distortion. Furthermore, adjusting the initial color parameters based on the network evaluation score makes the fourth color parameters more consistent with the actual network environment during wireless screen sharing. This ensures high-quality color performance in a good network environment and reduces color distortion in a poor network environment, ensuring the stability of the displayed image at the receiving end. By using preset standard color parameters, the color effect of the image displayed at the receiving end can be guaranteed, minimizing color distortion. When adjusting the fourth color parameter based on the second adjustment factor, real-time monitoring and dynamic adjustment of the fourth color parameter can be achieved, ensuring that the adjusted fifth color parameters are of higher quality and more closely match the standard color parameters. Furthermore, color correction is performed upon receiving the image, and the image is displayed after color correction, avoiding the correction lag problem when displaying first and then correcting. This allows for real-time adjustment of color parameters during transmission, ensuring optimal visual effects under various network environments.
[0202] One embodiment of this application also provides a color correction device. Figure 5 This is a schematic diagram of the structure of a color correction device provided in one embodiment of this application, with reference to... Figure 5 The color correction device includes a first factor determination unit 501, a first correction unit 502, a first network evaluation unit 503, and a second correction unit 504.
[0203] The system includes a first factor determination unit 501, which receives video data sent by a wireless screen sharing terminal and determines a first adjustment factor based on the initial color parameters of each pixel in the current frame image and preset standard color parameters during the reception process. The video data consists of multiple frames. A first correction unit 502 adjusts the initial color parameters of each pixel in the current frame image according to the first adjustment factor to obtain a second color parameter for each pixel. A first network evaluation unit 503 determines the network evaluation level when receiving the current frame image. A second correction unit 504 adjusts each second color parameter according to the network evaluation level to obtain a third color parameter for each pixel in the current frame image, so as to display the current frame image based on the third color parameter.
[0204] In one embodiment, the first factor determination unit 501 includes: an initial parameter determination subunit, configured to receive video data sent by the wireless screen sharing transmitter, and during the receiving process, convert the current frame image received each time from BGR format to HSV color space to obtain the initial color parameters corresponding to each pixel in the current frame image; a first parameter determination subunit, configured to calculate the average value of the initial color parameters of each pixel in the current frame image and use it as the first color parameter; and a first adjustment factor determination subunit, configured to determine the first adjustment factor according to the first color parameter and a preset standard color parameter.
[0205] In one embodiment, the first adjustment factor determining subunit is specifically used to: determine the deviation value between the first color parameter and the preset standard color parameter, and use the deviation value as the first adjustment factor. Correspondingly, the first correction unit 502 is specifically used to: subtract the first adjustment factor from the initial color parameter of each pixel in the current frame image to obtain the second color parameter of each pixel.
[0206] In one embodiment, the first adjustment factor determining subunit is specifically used to: determine the ratio of a preset standard color parameter to a first color parameter, and use the ratio as the first adjustment factor; correspondingly, the first correction unit 502 is specifically used to: multiply the initial color parameter of each pixel in the current frame image by the first adjustment factor to obtain the second color parameter of each pixel.
[0207] In one embodiment, the first network evaluation unit 503 includes: a network parameter acquisition subunit, used to acquire network parameters when receiving the current frame image, the network parameters including at least one of network bandwidth, network latency, and packet loss rate; a weight acquisition subunit, used to acquire the current score of the network parameters and the weight value of the network parameters, each network parameter having a corresponding weight value; an evaluation score calculation subunit, used to determine the network evaluation score based on the current score and weight value of the network parameters; and an evaluation level determination subunit, used to determine the network evaluation level based on the network evaluation score, different network evaluation levels corresponding to different ranges of network evaluation scores.
[0208] In one embodiment, the second color parameter includes a second brightness parameter, a second hue parameter, and a second saturation parameter, and the third color parameter includes a third brightness parameter, a third hue parameter, and a third saturation parameter. The second correction unit 504 includes: a good correction subunit, used to adjust each second brightness parameter according to a first brightness increase value to obtain a corresponding third brightness parameter when the network evaluation level is good; adjust each second hue parameter according to a first hue amplification ratio or maintain each second hue parameter to obtain a corresponding third hue parameter; and adjust each second saturation parameter according to a first saturation amplification ratio to obtain a corresponding third saturation parameter; and a medium correction subunit, used to adjust each second brightness parameter according to a second brightness increase value or maintain each second brightness parameter to obtain a corresponding third brightness parameter when the network evaluation level is medium. The hue parameters are used to obtain the corresponding third hue parameters. The second saturation parameters are adjusted according to the second saturation amplification ratio to obtain the corresponding third saturation parameters. The second brightness increase is less than the first brightness increase, the second hue amplification ratio is less than the first hue amplification ratio, and the second saturation amplification ratio is less than the first saturation amplification ratio. A poor correction subunit is used when the network evaluation level is poor. It adjusts the second brightness parameters according to the brightness decrease value to obtain the corresponding third brightness parameter, adjusts the second hue parameters according to the hue reduction ratio or maintains the second hue parameters to obtain the corresponding third hue parameter, and adjusts the second saturation parameters according to the saturation reduction ratio to obtain the corresponding third saturation parameter.
[0209] In one embodiment, the color correction device further includes a color gamut correction unit, configured to adjust each of the second color parameters according to the network evaluation level, obtain the third color parameters of each pixel in the current frame image, and then perform color gamut correction on the current frame image using the third color parameters to display the color gamut corrected current frame image.
[0210] The color correction device provided in this application embodiment is included in a display device and can be used to perform the above embodiments (see reference). Figure 2 and Figure 3 The color correction methods provided in [the document] have the corresponding functions and beneficial effects.
[0211] One embodiment of this application also provides a color correction device. Figure 6 This is a schematic diagram of the structure of a color correction device provided in one embodiment of this application, with reference to... Figure 6 The color correction device includes a second network evaluation unit 601, a third correction unit 602, a second factor determination unit 603, and a fourth correction unit 604.
[0212] The second network evaluation unit 601 is used to receive video data sent by the wireless screen sharing terminal and determine the network evaluation level each time the current frame image is received during the reception process. The video data consists of multiple frames. The third correction unit 602 is used to adjust the initial color parameters of each pixel in the current frame image according to the network evaluation level to obtain the fourth color parameters corresponding to each pixel. The second factor determination unit 603 is used to determine the second adjustment factor according to the fourth color parameters of each pixel in the current frame image and the preset standard color parameters. The fourth correction unit 604 is used to adjust the fourth color parameters of each pixel in the current frame image according to the second adjustment factor to obtain the fifth color parameters of each pixel, so as to display the current frame image based on the fifth color parameters.
[0213] The color correction device provided in this application embodiment is included in a display device and can be used to perform the above embodiments (see reference). Figure 4 The color correction methods provided in [the document] have the corresponding functions and beneficial effects.
[0214] It is worth noting that in the embodiments of the color correction device described above, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of this application.
[0215] One embodiment of this application also provides a display device, see reference. Figure 1 The display device includes a processor 11, a memory 12, a display screen 13, and a communication module 14. The processor 11, memory 12, display screen 13, and communication module 14 can be connected via a bus or other means. The communication module 14 is used to receive video data sent by a wireless screen sharing transmitter; the display screen 13 is used for display; the memory 12 is used to store one or more programs; when one or more programs are executed by one or more processors 11, the one or more processors 11 implement the color correction method described in any of the foregoing embodiments. The relevant details of each component can be found in the foregoing description.
[0216] The aforementioned display device is used to perform any color correction method and has corresponding functions and beneficial effects. For specific details not described here, please refer to the relevant descriptions of the aforementioned color correction methods.
[0217] One embodiment of this application also provides a storage medium containing computer-executable instructions, which, when executed by a processor, are used to perform relevant operations in the color correction method provided in any embodiment of this application, and have corresponding functions and beneficial effects.
[0218] Those skilled in the art will understand that embodiments of this application may provide methods, systems, or computer program products.
[0219] Therefore, this application may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing module of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing module of the computer or other programmable data processing apparatus, produce implementations of the flowchart... Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes The steps of the function specified in one or more boxes.
[0220] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0221] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0222] Note that the above are merely preferred embodiments and the technical principles employed in this application. Those skilled in the art will understand that this application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the appended claims.
Claims
1. A color correction method characterized by, The method comprises the following steps: receiving video data sent by a wireless screen transmission end, and determining a first adjustment factor according to initial color parameters of each pixel in a current frame image received each time and preset standard color parameters during the receiving process, wherein the video data is composed of multiple frame images; adjusting the initial color parameters of each pixel in the current frame image according to the first adjustment factor to obtain second color parameters of each pixel; determining a network evaluation level when the current frame image is received; adjusting the second color parameters according to the network evaluation level to obtain third color parameters of each pixel in the current frame image, and displaying the current frame image based on the third color parameters.
2. The color correction method according to claim 1, characterized by, The method comprises the following steps: converting the current frame image received each time from BGR format to HSV color space to obtain initial color parameters corresponding to each pixel in the current frame image; calculating an average value of the initial color parameters of each pixel in the current frame image as a first color parameter; determining the first adjustment factor according to the first color parameter and the preset standard color parameter.
3. The color correction method according to claim 2, characterized by, The method comprises the following steps: determining a deviation value of the first color parameter and the preset standard color parameter, and taking the deviation value as the first adjustment factor; The method comprises the following steps: subtracting the initial color parameters of each pixel in the current frame image from the first adjustment factor to obtain the second color parameters of each pixel.
4. The color correction method of claim 2, wherein The method comprises the following steps: determining a ratio of the preset standard color parameter and the first color parameter, and taking the ratio as the first adjustment factor; The method comprises the following steps: multiplying the initial color parameters of each pixel in the current frame image by the first adjustment factor to obtain the second color parameters of each pixel.
5. The color correction method of claim 1, wherein The method comprises the following steps: obtaining network parameters when the current frame image is received, wherein the network parameters include at least one of network bandwidth, network delay and packet loss rate; obtaining a current score of the network parameters and a weight value of the network parameters, wherein each network parameter has a corresponding weight value; determining a network evaluation score according to the current score of the network parameters and the weight value; determining a network evaluation level according to the network evaluation score, wherein different network evaluation levels correspond to different network evaluation score ranges.
6. The color correction method of claim 1, wherein The second color parameters include a second brightness parameter, a second hue parameter and a second saturation parameter, and the third color parameters include a third brightness parameter, a third hue parameter and a third saturation parameter. The second color parameters are adjusted according to the network evaluation level, and third color parameters of each pixel in the current frame image are obtained. When the network evaluation level is a good network level, the second luminance parameters are adjusted according to a first luminance increase value to obtain corresponding third luminance parameters, the second hue parameters are adjusted according to a first hue amplification ratio or remain unchanged to obtain corresponding third hue parameters, and the second saturation parameters are adjusted according to a first saturation amplification ratio to obtain corresponding third saturation parameters. When the network evaluation level is a medium network level, the second luminance parameters are adjusted according to a second luminance increase value or remain unchanged to obtain corresponding third luminance parameters, the second hue parameters are adjusted according to a second hue amplification ratio or remain unchanged to obtain corresponding third hue parameters, and the second saturation parameters are adjusted according to a second saturation amplification ratio to obtain corresponding third saturation parameters, the second luminance increase value is less than the first luminance increase value, the second hue amplification ratio is less than the first hue amplification ratio, and the second saturation amplification ratio is less than the first saturation amplification ratio. When the network evaluation level is a poor network level, the second luminance parameters are adjusted according to a luminance decrease value to obtain corresponding third luminance parameters, the second hue parameters are adjusted according to a hue reduction ratio or remain unchanged to obtain corresponding third hue parameters, and the second saturation parameters are adjusted according to a saturation reduction ratio to obtain corresponding third saturation parameters.
7. The color correction method of claim 1, wherein After the second color parameters are adjusted according to the network evaluation level, and third color parameters of each pixel in the current frame image are obtained, the following steps are included: The current frame image using the third color parameters is subjected to color gamut correction, and a color gamut corrected current frame image is displayed.
8. A color correction method characterized by, The following steps are included: Video data sent by a wireless screen transmission sender is received, and during the receiving process, a network evaluation level is determined each time a current frame image is received, the video data is composed of multiple frame images; Initial color parameters of each pixel in the current frame image are adjusted according to the network evaluation level to obtain corresponding fourth color parameters of each pixel; A second adjustment factor is determined according to the fourth color parameters of each pixel in the current frame image and preset standard color parameters; The fourth color parameters of each pixel in the current frame image are adjusted according to the second adjustment factor to obtain fifth color parameters of each pixel, and the current frame image is displayed based on the fifth color parameters.
9. A color correction device, characterized by, The following steps are included: A first factor determination unit is configured to receive video data sent by a wireless screen transmission sender, and during the receiving process, a first adjustment factor is determined according to initial color parameters of each pixel in a current frame image received each time and preset standard color parameters, the video data is composed of multiple frame images; A first correction unit is configured to adjust the initial color parameters of each pixel in the current frame image according to the first adjustment factor to obtain second color parameters of each pixel; The first network evaluation unit is configured to determine a network evaluation level when the current frame image is received. The second correction unit is configured to adjust the second color parameter of each pixel in the current frame image according to the network evaluation level, to obtain a third color parameter of each pixel in the current frame image, and to display the current frame image based on the third color parameter.
10. A color correction device, characterized by, The method comprises: The second network evaluation unit is configured to receive video data sent by a wireless screen transmission sender, and to determine a network evaluation level when each current frame image is received during the receiving process, wherein the video data comprises a plurality of frame images. The third correction unit is configured to adjust the initial color parameter of each pixel in the current frame image according to the network evaluation level, to obtain a fourth color parameter corresponding to each pixel. The second factor determination unit is configured to determine a second adjustment factor according to the fourth color parameter of each pixel in the current frame image and a preset standard color parameter. The fourth correction unit is configured to adjust the fourth color parameter of each pixel in the current frame image according to the second adjustment factor, to obtain a fifth color parameter of each pixel, and to display the current frame image based on the fifth color parameter.
11. A display device, characterized by comprising: The method comprises: A display screen, a communication module, one or more processors, and a memory; The memory is configured to store one or more programs; The display screen is configured to realize display; The communication module is configured to receive video data sent by a wireless screen transmission sender; When the one or more programs are executed by the one or more processors, the one or more processors realize the color correction method according to any one of claims 1-8.