Self-adaptive color adjustment method, device and equipment for display and storage medium

By performing color measurement and decoding on the video after turning off the display's color adjustment function, and performing adaptive color adjustment based on ambient light data, the problem of color inconsistency among different players is solved and the consistency of the video author's color intent is achieved.

CN118629368APending Publication Date: 2024-09-10SHENZHEN KTC COMMERCIAL DISPLAY TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410794824.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

When different players watch the same video, they do not understand the color gamut, gamma, brightness and color temperature data of the video, as well as the influence of ambient light, resulting in inconsistent display color settings, which in turn leads to inconsistent color effects and affects the color intention of the video author.

Method used

By turning off the display color adjustment function, measuring the solid color and RGB measurement pictures respectively, and combining the ambient light and video decoding results, adaptive color adjustment is performed, including correction of gamma, color gamut, brightness and color temperature, to ensure that the display output meets the video The author's target color metrics.

Benefits of technology

It achieves the consistency of color effects when different players watch the same video, meets the color effect requirements of the video author, and ensures that the display output is consistent with the video author's intention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629368A
    Figure CN118629368A
Patent Text Reader

Abstract

The invention discloses a display self-adaptive color adjustment method, device and equipment and a storage medium, and relates to the field of display self-adaptive adjustment, and the method comprises the steps: after a color adjustment related function of a display is closed, respectively measuring a current pure color measurement picture and a current RGB measurement picture, and obtaining a corresponding first measurement result and a corresponding second measurement result; performing content decoding on the to-be-played video through a preset player in the playing equipment to obtain a decoding result; measuring the brightness and color temperature of the current ambient light through an ambient light sensor to obtain an ambient light measurement result; and sending the first measurement result, the second measurement result, the decoding result and the ambient light measurement result to a display, so that the display performs an adaptive color adjustment operation based on the results and a target video color index corresponding to the to-be-played video. According to the invention, different players can effectively see consistent color effects when playing the same video, and the color effect requirement of a video author is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of display adaptive adjustment, and in particular to a display adaptive color adjustment method, device, equipment and storage medium. Background Art

[0002] Usually, when a video author creates a video, he or she will specify the video's color gamut, gamma, brightness, color temperature and other data. However, currently, when a video is played and displayed on a monitor, because the player does not understand the video's color gamut, gamma, brightness, color temperature and other data, as well as the impact of ambient light on the display effect and the color-related settings of the monitor, different players often see inconsistent color effects when playing the same video, which in turn is inconsistent with the color effects when the video author creates the video. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide a display adaptive color adjustment method, device, equipment and storage medium, which can effectively make different players see the same color effect when playing the same video, and meet the color effect requirements of the video author. The specific scheme is as follows:

[0004] In a first aspect, the present application provides a method for adaptive color adjustment of a display, comprising:

[0005] After turning off the color adjustment related functions of the display, respectively measuring the current pure color measurement screen and the RGB measurement screen to obtain corresponding first measurement results and second measurement results;

[0006] Open the video to be played by using a preset player in the playback device, and perform corresponding content decoding on the video to be played to obtain a corresponding decoding result;

[0007] The brightness and color temperature of the current ambient light are measured by the ambient light sensor to obtain the corresponding ambient light measurement result;

[0008] The first measurement result, the second measurement result, the decoding result, and the ambient light measurement result are sent to the display, so that the display performs corresponding adaptive color adjustment operations based on the first measurement result, the second measurement result, the decoding result, the ambient light measurement result, and a target video color index corresponding to the video to be played.

[0009] Optionally, the performing a corresponding adaptive color adjustment operation based on the first measurement result, the second measurement result, the decoding result, the ambient light measurement result, and a target video color index corresponding to the video to be played includes:

[0010] Performing a corresponding gamma correction operation based on the first measurement result, the second measurement result, the video gamma value in the decoding result, and the target video color index;

[0011] Perform a corresponding color gamut correction operation based on the second measurement result, the video color gamut information in the decoding result, and the target video color index;

[0012] Perform corresponding brightness correction operation based on the video brightness information in the decoding result, the ambient light measurement result and the target video color index;

[0013] A corresponding color temperature correction operation is performed based on the video color temperature information in the decoding result, the ambient light measurement result, and the target video color index.

[0014] Optionally, performing a corresponding color gamut correction operation based on the second measurement result, the video color gamut information in the decoding result, and the target video color index includes:

[0015] Calculate the RGB output when all red, green and blue colors meet the target color gamut condition in the target video color index based on the second measurement result and the video color gamut information to obtain a corresponding output result;

[0016] A corresponding color gamut mapping matrix is ​​obtained based on the output result, and the color gamut mapping matrix is ​​used to perform a corresponding color gamut correction operation; wherein the color gamut mapping matrix includes a plurality of target color gamut correction coefficients.

[0017] Optionally, performing a corresponding brightness correction operation based on the video brightness information in the decoding result, the ambient light measurement result, and the target video color index includes:

[0018] Determine whether the video brightness information in the decoding result exists to obtain a corresponding first determination result;

[0019] If the first judgment result indicates that the video brightness information does not exist, brightness comparison is performed using the ambient light measurement result, and PWM dimming is performed based on the obtained brightness comparison result until the brightness of the display reaches the target brightness data in the target video color index.

[0020] Optionally, performing a corresponding color temperature correction operation based on the video color temperature information in the decoding result, the ambient light measurement result, and the target video color index includes:

[0021] Determine whether the video color temperature information in the decoding result exists to obtain a corresponding second determination result;

[0022] If the second judgment result indicates that the video color temperature information does not exist, the ambient light measurement result is used to perform color temperature comparison, and corresponding red, blue and green gain adjustments are performed based on the obtained color temperature comparison result until the color temperature of the display is the target color temperature data in the target video color index.

[0023] Optionally, performing a corresponding gamma correction operation based on the first measurement result, the second measurement result, the video gamma value in the decoding result, and the target video color index includes:

[0024] Perform corresponding measurement result analysis using the first measurement result and the second measurement result, and perform panel gamma correction using the obtained first analysis result, so that the current display gamma is output as 1.0;

[0025] A corresponding gamma analysis is performed based on the video gamma value in the decoding result, and a display gamma correction is performed on the display using the obtained second analysis result, so that the display gamma is the target gamma data in the target video color index.

[0026] Optionally, respectively measuring the current pure color measurement screen and the RGB measurement screen, and sending the obtained corresponding first measurement results and second measurement results to the display, includes:

[0027] For a pure color measurement picture with the same RGB value output and displayed by the display, brightness measurement is performed, and a first measurement result obtained is sent to the display to obtain the corresponding first measurement result;

[0028] For the RGB measurement picture output and displayed by the display, the chromaticity coordinates and brightness of the red, green and blue monochrome pictures are measured respectively to obtain corresponding second measurement results.

[0029] In a second aspect, the present application provides a display adaptive color adjustment device, comprising:

[0030] A measurement module, used to measure the current pure color measurement screen and the RGB measurement screen respectively after turning off the color adjustment related functions of the display, and obtain corresponding first measurement results and second measurement results;

[0031] The video decoding module is used to open the video to be played through a preset player in the playback device, and perform corresponding content decoding on the video to be played to obtain a corresponding decoding result;

[0032] The ambient light processing module is used to measure the brightness and color temperature of the current ambient light through the ambient light sensor to obtain the corresponding ambient light measurement results;

[0033] A color adjustment module is used to send the first measurement result, the second measurement result, the decoding result and the ambient light measurement result to the display, so that the display performs corresponding adaptive color adjustment operations based on the first measurement result, the second measurement result, the decoding result, the ambient light measurement result and the target video color index corresponding to the video to be played.

[0034] In a third aspect, the present application provides an electronic device, including:

[0035] Memory, used to store computer programs;

[0036] The processor is used to execute the computer program to implement the steps of the aforementioned display adaptive color adjustment method.

[0037] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program, which implements the steps of the aforementioned display adaptive color adjustment method when executed by a processor.

[0038] It can be seen that in the present application, after the color adjustment related functions of the display are turned off, the current pure color measurement screen and the RGB measurement screen are measured respectively to obtain the corresponding first measurement result and the second measurement result; the video to be played is opened by the preset player in the playback device, and the corresponding content decoding is performed on the video to be played to obtain the corresponding decoding result; the brightness and color temperature of the current ambient light are measured by the ambient light sensor to obtain the corresponding ambient light measurement result; the first measurement result, the second measurement result, the decoding result and the ambient light measurement result are sent to the display, so that the display performs the corresponding adaptive color adjustment operation based on the first measurement result, the second measurement result, the decoding result, the ambient light measurement result and the target video color index corresponding to the video to be played. That is, in the present application, after the color adjustment related functions of the display are turned off, the current pure color measurement screen and the RGB measurement screen are measured respectively, so as to use the corresponding first measurement result and the second measurement result obtained, and based on the decoding result obtained by content decoding of the video to be played by the preset player, the ambient light measurement result obtained by the ambient light sensor and the target video color index corresponding to the video to be played, the color effect of the display is automatically adjusted. In this way, the color effects seen by different players when playing the same video can be effectively consistent, and the color effect requirements of the video author can be met. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0040] Figure 1 A flow chart of a display adaptive color adjustment method provided in this application;

[0041] Figure 2 A flow chart of a specific display adaptive color adjustment method provided in this application;

[0042] Figure 3 A schematic diagram of a code segment for video decoding provided by the present application;

[0043] Figure 4 A schematic diagram of a specific adaptive color adjustment process provided for this application;

[0044] Figure 5 A schematic diagram of the structure of a display adaptive color adjustment device provided in this application;

[0045] Figure 6 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] At present, when a video is played and displayed on a display, the color effects seen by different players when playing the same video are often inconsistent, and thus inconsistent with the color effects when the video author produced the video, because the player does not understand the color gamut, gamma, brightness, color temperature and other data of the video, as well as the impact of ambient light on the display effect and the color-related settings of the display. To this end, the present application provides a display adaptive color adjustment solution, which can effectively make the color effects seen by different players when playing the same video consistent and meet the color effect requirements of the video author.

[0048] See also Figure 1 As shown, an embodiment of the present invention discloses a method for adaptive color adjustment of a display, comprising:

[0049] Step S11: after turning off the color adjustment related functions of the display, respectively measure the current pure color measurement screen and the RGB measurement screen to obtain corresponding first measurement results and second measurement results.

[0050] Specifically, in this embodiment, combined with Figure 2 As shown, it is necessary to first use a measuring device, that is, a color analyzer such as ca310, mk550t, etc., to measure the screen of the display to be adjusted. That is, the current pure color measurement screen and RGB (Red Green Blue) measurement screen are measured respectively, and the corresponding first measurement result and second measurement result are sent to the display, including: for the pure color measurement screen with the same RGB value output and displayed by the display, brightness measurement is performed, and the obtained first measurement result is sent to the display to obtain the corresponding first measurement result; for the RGB measurement screen (RGB value increases from 0 to 255, step 1) output and displayed by the display, the chromaticity coordinates and brightness of the red, green and blue monochrome screen are measured respectively, and the corresponding second measurement result is obtained. It should be understood that the functions related to the color adjustment of the display include gamma adjustment, color temperature adjustment, color gamut adjustment, etc. The RGB values ​​of the RGB measurement screen are the maximum values ​​of 255 for monochrome. The first measurement result and the second measurement result are shown in Tables 1 and 2 below, respectively.

[0051] Table 1

[0052]

[0053] Table 2

[0054]

[0055] As shown in Table 2, the second measurement result includes the chromaticity coordinates xy and brightness information of the corresponding monochrome picture.

[0056] Step S12: open the video to be played through a preset player in the playback device, and perform corresponding content decoding on the video to be played to obtain a corresponding decoding result.

[0057] Combination Figure 2 It can be seen that in this embodiment, the video to be played is decoded by a preset player in the customized playback device. The specific code example content of the video decoding is as follows: Figure 3 shown.

[0058] Step S13: measure the brightness and color temperature of the current ambient light through the ambient light sensor to obtain a corresponding ambient light measurement result.

[0059] Combination Figure 2As shown, in this embodiment, the ambient light sensor is used to measure the brightness and color temperature of the current ambient light in real time. The specific result data can be seen in Table 3.

[0060] Table 3

[0061]

[0062] Step S14: Send the first measurement result, the second measurement result, the decoding result, and the ambient light measurement result to the display, so that the display performs corresponding adaptive color adjustment operations based on the first measurement result, the second measurement result, the decoding result, the ambient light measurement result, and the target video color index corresponding to the video to be played.

[0063] In this embodiment, the first measurement result, the second measurement result, the decoding result and the ambient light measurement result obtained in the above steps will all be sent to the display and stored in the display flash. Figure 2 As shown, after receiving each result data, the display will use these data to perform a series of correction operations.

[0064] Specifically, in the process of correction, regarding gamma correction, a corresponding gamma correction operation is performed based on the first measurement result, the second measurement result, the video gamma value in the decoding result, and the target video color index, including: using the first measurement result and the second measurement result to perform a corresponding measurement result analysis, and using the obtained first analysis result to perform panel gamma correction so that the current display gamma is 1.0 output; performing a corresponding gamma analysis based on the video gamma value in the decoding result, and using the obtained second analysis result to perform display gamma correction so that the display gamma is the target gamma data in the target video color index. It should be understood that regarding the gamma correction method:

[0065] 1) Based on the first measurement result data, the maximum brightness max_raw_lv and the minimum brightness min_raw_lv are obtained. The brightness of a certain order is represented by raw_lv[i], where i takes the value [0,255].

[0066] 2) Find the target brightness target_lv.

[0067] The panel gamma-corrected target brightness is calculated as follows:

[0068] k=(max_raw_lv-min_raw_lv) / 255, b=min_raw_lv, target_lv[i]=k*i+b, where i is [0,255], and the target brightness is represented by target_lv[i]. Since the panel gamma needs to be corrected to 1.0, the target lv conforms to the linear function, that is, y=kx+b, k is the slope, and b is the intercept.

[0069] The video gamma correction target brightness is calculated as follows:

[0070] target_lv[i]=min_raw_lv+(i / 255)^video gamma*(max_raw_lv-min_raw_lv).

[0071] 3) Calculate the brightness difference sub_lv.

[0072] The brightness difference is represented by sub_lv[i], i takes the value [0,255], and the calculation formula is:

[0073] sub_lv[i]=target_lv[i]-raw_lv[i];

[0074] Wherein, raw_lv[i] is the brightness value recorded in Table 1.

[0075] 4) Calculate the brightness compensation lv_gain.

[0076] Brightness compensation is represented by lv_gain[i]. The value range of lv_gain is [-16383, 16383]. When lv_gain=0, brightness is not compensated.

[0077] The effect of lv_gain on brightness is: corrected i-th order brightness = raw_lv[i]+(max_raw_lv / 16383)*n, where n is the value of lv_gain.

[0078] Furthermore, the illuminance compensation of the i-th order is lv_gain[i]=(target_lv[i]-raw_lv[i]) / (max_raw_lv / 16383).

[0079] In addition, it should be understood that the two gamma corrections mentioned above, namely panel gamma correction and video gamma correction, are both corrected using the formulas mentioned above. When performing panel gamma correction, target_lv uses the target brightness of the panel correction; when performing video gamma correction, target lv uses the target brightness of the video correction. The correction order is panel gamma correction ➡ video gamma correction.

[0080] Regarding color gamut correction, in this embodiment, a corresponding color gamut correction operation is performed based on the second measurement result, the video color gamut information in the decoding result, and the target video color index. The specific steps include: calculating the RGB output when the red, green, and blue monochrome colors all meet the target color gamut conditions in the target video color index based on the second measurement result and the video color gamut information to obtain the corresponding output result. Based on the output result, a corresponding color gamut mapping matrix is ​​obtained, and the color gamut mapping matrix is ​​used to perform a corresponding color gamut correction operation; wherein the color gamut mapping matrix includes multiple target color gamut correction coefficients. Specifically, the method of color gamut correction:

[0081] 1) Calculate the RGB output when the red, green and blue colors meet the target color gamut conditions in the target video color index. The formula is as follows.

[0082] .

[0083] Among them, the X, Y, and Z targets represent: assuming that the video color gamut is the sRGB color gamut, the chromaticity coordinates of red, green, and blue are fixed values, as described in Table 4. For example, the target red x=0.64, y=0.33 (lowercase xy), and the red X, Y, and Z targets (uppercase) are calculated by the formula. The lvr, lvg, and lvb targets are the chromaticity coordinates and brightness values ​​of the red, green, and blue colors expected after correction. The specific target values ​​will vary according to the video color gamut information. xr and yr are the red monochrome chromaticity coordinates when the display is not corrected; xg and yg are the green monochrome chromaticity coordinates when the display is not corrected; xb and yb are the blue monochrome chromaticity coordinates when the display is not corrected, and xr, yr, xg, yg, xb, and yb are the data in the second measurement result. Specifically, as shown in Table 2, we can obtain xr=0.64326; yr=0.33367; lvr=89.68284; xg=0.21402; yg=0.71302; xb=0.14864; yb=0.06456.

[0084] X target = x target / y target * Y target;

[0085] Z target = (1-x target-y target) / y target * Y target.

[0086] Among them, xtarget and ytarget are the monochrome chromaticity coordinates x and y of the video color gamut. It is assumed that the target monochrome chromaticity x and y coordinates are shown in Table 4 below.

[0087] Table 4

[0088]

[0089] In addition, Y target is an indefinite parameter. Generally, Y target = max_raw_lv is set to calculate lvr target, lvg target, and lvb target. If one of the calculated lvr target, lvg target, and lvb target is greater than the monochrome brightness, then Y target is reduced and lvr target, lvg target, and lvb target are recalculated until the following relationship is met:

[0090] lvr target <= monochrome r brightness (see Table 2, 89.68284 in this example);

[0091] lvg target <= monochrome g brightness (190.07886 in this example);

[0092] lvb target <= monochrome b brightness (24.59151 in this example);

[0093] Afterwards, the RGB output is calculated based on the following expression:

[0094] R output = lvr target / monochrome r brightness (89.68284 in this example) * 255;

[0095] G output = lvg target / monochrome g brightness (190.07886 in this example) * 255;

[0096] B output = lvb target / monochrome b brightness (24.59151 in this example) * 255.

[0097] 2) Calculate the color gamut mapping matrix. The formula is as follows:

[0098] ;

[0099] Substitute the RGB outputs calculated in step 1 for the single-color red, green, and blue to get the values ​​of a1-a9. For example, the single-color green RGB output = 0, 255, 0, and the RGB output obtained in step 1 = 63, 224, 1. Then there exists:

[0100] .

[0101] The value of a1-a9 obtained based on the above formula is the color gamut correction coefficient. The red and blue calculations are omitted, and the final value of a1-a9 is as follows:

[0102] .

[0103] Regarding brightness correction, in this embodiment, the corresponding brightness correction operation is performed based on the video brightness information in the decoding result, the ambient light measurement result, and the target video color index. The specific steps include: judging whether the video brightness information in the decoding result exists to obtain the corresponding first judgment result; if the first judgment result indicates that the video brightness information does not exist, then using the ambient light measurement result to perform brightness comparison, and based on the obtained brightness comparison result, PWM (Pulse Width Modulation Dimming) dimming is performed until the brightness of the display is the target brightness data in the target video color index. It should be understood that if the first judgment result indicates that the video brightness information exists, then the brightness comparison is performed based on the video brightness information as the standard, and PWM dimming is performed, thereby changing the screen current to adjust the brightness of the backlight beads.

[0104] Regarding color temperature correction, in this embodiment, the corresponding color temperature correction operation is performed based on the video color temperature information in the decoding result, the ambient light measurement result, and the target video color index. The specific steps include: judging whether the video color temperature information in the decoding result exists to obtain a corresponding second judgment result; if the second judgment result indicates that the video color temperature information does not exist, then using the ambient light measurement result to perform color temperature comparison, and performing corresponding red, blue, and green gain adjustments based on the obtained color temperature comparison result, until the color temperature of the display is the target color temperature data in the target video color index. It should be understood that if the second judgment result indicates that the video color temperature information exists, then the color temperature comparison is performed based on the video color temperature information as the standard, and the corresponding red, blue, and green gain adjustments are performed. Specifically, the influence of red, green, and blue gains during color temperature correction is shown in the following formula:

[0105] R output = R input + R gain, where R output, R input, and R gain have a value range of [0,255];

[0106] G output = G input + G gain, where G output, G input, and G gain have a value range of [0,255];

[0107] B output = B input + B gain, where B output, B input, and B gain are in the range of [0,255].

[0108] It can be seen that in the embodiment of the present application, after the color adjustment related functions of the display are turned off, the current pure color measurement screen and the RGB measurement screen are measured respectively to obtain the corresponding first measurement result and the second measurement result; the video to be played is opened by the preset player in the playback device, and the corresponding content decoding is performed on the video to be played to obtain the corresponding decoding result; the brightness and color temperature of the current ambient light are measured by the ambient light sensor to obtain the corresponding ambient light measurement result; the first measurement result, the second measurement result, the decoding result and the ambient light measurement result are sent to the display, so that the display performs the corresponding adaptive color adjustment operation based on the first measurement result, the second measurement result, the decoding result, the ambient light measurement result and the target video color index corresponding to the video to be played. That is, in the present application, after the color adjustment related functions of the display are turned off, the current pure color measurement screen and the RGB measurement screen are measured respectively, so as to use the corresponding first measurement result and the second measurement result obtained, and based on the decoding result obtained by content decoding of the video to be played by the preset player, the ambient light measurement result obtained by the ambient light sensor and the target video color index corresponding to the video to be played, the color effect of the display is automatically adjusted. In this way, the color effects seen by different players when playing the same video can be effectively consistent, and the color effect requirements of the video author can be met.

[0109] As can be seen from the previous embodiment, when the present application performs adaptive color adjustment, it specifically performs a series of automatic color gamut, gamma, brightness, and color temperature correction operations. To this end, the present embodiment will describe the process of adaptive color adjustment in detail. Figure 4 As shown, an embodiment of the present invention discloses a method for adaptive color adjustment of a display, comprising:

[0110] Step S21, performing corresponding gamma correction operations based on the first measurement result, the second measurement result, the video gamma value in the decoding result, and the target video color index.

[0111] Step S22: performing a corresponding color gamut correction operation based on the second measurement result, the video color gamut information in the decoding result, and the target video color index.

[0112] Step S23: performing corresponding brightness correction operations based on the video brightness information in the decoding result, the ambient light measurement result, and the target video color index.

[0113] Step S24: performing a corresponding color temperature correction operation based on the video color temperature information in the decoding result, the ambient light measurement result, and the target video color index.

[0114] Among them, the specific process of the above steps S21 to S24 can refer to the corresponding content disclosed in the above embodiments, and will not be repeated here.

[0115] It can be seen that in the embodiment of the present application, the display uses the corresponding first measurement results and the second measurement results collected, and based on the decoding results obtained by decoding the content of the video to be played by a preset player, the ambient light measurement results obtained by the ambient light sensor, and the target video color index corresponding to the video to be played, automatically performs color gamut, gamma, brightness, and color temperature corrections, thereby effectively ensuring that different players have consistent color effects when playing the same video.

[0116] See also Figure 5 As shown, the embodiment of the present application also discloses a display adaptive color adjustment device, including:

[0117] The measuring module 11 is used to measure the current pure color measurement screen and the RGB measurement screen respectively after turning off the color adjustment related functions of the display, and obtain the corresponding first measurement result and second measurement result;

[0118] The video decoding module 12 is used to open the video to be played through a preset player in the playback device, and perform corresponding content decoding on the video to be played to obtain a corresponding decoding result;

[0119] The ambient light processing module 13 is used to measure the brightness and color temperature of the current ambient light through the ambient light sensor to obtain the corresponding ambient light measurement result;

[0120] The color adjustment module 14 is used to send the first measurement result, the second measurement result, the decoding result and the ambient light measurement result to the display, so that the display performs corresponding adaptive color adjustment operations based on the first measurement result, the second measurement result, the decoding result, the ambient light measurement result and the target video color index corresponding to the video to be played.

[0121] Among them, for more specific working processes of the above-mentioned modules, please refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0122] It can be seen that in this application, after turning off the color adjustment related functions of the display, the current pure color measurement screen and the RGB measurement screen are measured respectively, so as to use the corresponding first measurement result and the second measurement result, and based on the decoding result obtained by decoding the content of the video to be played by the preset player, the ambient light measurement result obtained by the ambient light sensor, and the target video color index corresponding to the video to be played, the color effect of the display is automatically adjusted. In this way, the color effect seen by different players when playing the same video can be effectively consistent, and the color effect requirements of the video author can be met.

[0123] In some specific embodiments, the color adjustment module 14 may specifically include:

[0124] A gamma correction unit, configured to perform a corresponding gamma correction operation based on the first measurement result, the second measurement result, the video gamma value in the decoding result, and the target video color index;

[0125] A color gamut correction unit, configured to perform a corresponding color gamut correction operation based on the second measurement result, the video color gamut information in the decoding result, and the target video color index;

[0126] A brightness correction unit, configured to perform a corresponding brightness correction operation based on the video brightness information in the decoding result, the ambient light measurement result, and the target video color index;

[0127] The color temperature correction unit is used to perform corresponding color temperature correction operations based on the video color temperature information in the decoding result, the ambient light measurement result and the target video color index.

[0128] In some specific embodiments, the color gamut correction unit may specifically include:

[0129] an RGB output acquisition subunit, configured to calculate the RGB output when all red, green and blue colors meet the target color gamut condition in the target video color index based on the second measurement result and the video color gamut information, so as to obtain a corresponding output result;

[0130] The color gamut correction subunit is used to obtain a corresponding color gamut mapping matrix based on the output result, and facilitate the color gamut mapping matrix to perform a corresponding color gamut correction operation; wherein the color gamut mapping matrix includes a plurality of target color gamut correction coefficients.

[0131] In some specific embodiments, the brightness correction unit may specifically include:

[0132] A first judgment subunit, used to judge whether the video brightness information in the decoding result exists, so as to obtain a corresponding first judgment result;

[0133] The brightness correction subunit is used to perform brightness comparison using the ambient light measurement result if the first judgment result indicates that the video brightness information does not exist, and perform PWM dimming based on the obtained brightness comparison result until the brightness of the display is the target brightness data in the target video color index.

[0134] In some specific embodiments, the color temperature correction unit may specifically include:

[0135] A second judgment subunit is used to judge whether the video color temperature information in the decoding result exists to obtain a corresponding second judgment result;

[0136] The color temperature correction subunit is used to perform color temperature comparison using the ambient light measurement result if the second judgment result indicates that the video color temperature information does not exist, and perform corresponding red, blue and green gain adjustments based on the obtained color temperature comparison result until the color temperature of the display is the target color temperature data in the target video color index.

[0137] In some specific embodiments, the gamma correction unit may specifically include:

[0138] A panel gamma correction subunit, configured to perform corresponding measurement result analysis using the first measurement result and the second measurement result, and perform panel gamma correction using the obtained first analysis result, so that the current display has a display gamma of 1.0 output;

[0139] The display gamma correction unit is used to perform corresponding gamma analysis based on the video gamma value in the decoding result, and use the obtained second analysis result to perform display gamma correction so that the display gamma is the target gamma data in the target video color index.

[0140] In some specific embodiments, the measuring module 11 may specifically include:

[0141] A first measurement result acquisition unit is used to perform brightness measurement on a pure color measurement picture with the same RGB value output and displayed by the display, and send the obtained first measurement result to the display to obtain the corresponding first measurement result;

[0142] The second measurement result acquisition unit is used to measure the chromaticity coordinates and brightness of the red, green and blue monochrome pictures respectively for the RGB measurement picture output and displayed by the display, and obtain the corresponding second measurement result.

[0143] Furthermore, the present application also discloses an electronic device. Figure 6 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0144] Figure 6 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the display adaptive color adjustment method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0145] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0146] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0147] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, and can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the display adaptive color adjustment method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0148] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the display adaptive color adjustment method disclosed above is implemented. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the above embodiments, and no further description will be given here.

[0149] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0150] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0151] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

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

[0153] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for adaptive color adjustment of a display, It is characterized in that include: After turning off the color adjustment related functions of the display, respectively measuring the current pure color measurement screen and the RGB measurement screen to obtain corresponding first measurement results and second measurement results; Open the video to be played by using a preset player in the playback device, and perform corresponding content decoding on the video to be played to obtain a corresponding decoding result; The brightness and color temperature of the current ambient light are measured by the ambient light sensor to obtain the corresponding ambient light measurement result; The first measurement result, the second measurement result, the decoding result, and the ambient light measurement result are sent to the display, so that the display performs corresponding adaptive color adjustment operations based on the first measurement result, the second measurement result, the decoding result, the ambient light measurement result, and a target video color index corresponding to the video to be played.

2. The display adaptive color adjustment method according to claim 1, It is characterized in that The performing a corresponding adaptive color adjustment operation based on the first measurement result, the second measurement result, the decoding result, the ambient light measurement result, and a target video color index corresponding to the video to be played includes: Performing a corresponding gamma correction operation based on the first measurement result, the second measurement result, the video gamma value in the decoding result, and the target video color index; Performing a corresponding color gamut correction operation based on the second measurement result, the video color gamut information in the decoding result, and the target video color index; Perform corresponding brightness correction operation based on the video brightness information in the decoding result, the ambient light measurement result and the target video color index; A corresponding color temperature correction operation is performed based on the video color temperature information in the decoding result, the ambient light measurement result, and the target video color index.

3. The display adaptive color adjustment method according to claim 2, It is characterized in that The performing a corresponding color gamut correction operation based on the second measurement result, the video color gamut information in the decoding result, and the target video color index includes: Calculate the RGB output when all red, green and blue colors meet the target color gamut condition in the target video color index based on the second measurement result and the video color gamut information to obtain a corresponding output result; A corresponding color gamut mapping matrix is ​​obtained based on the output result, and the color gamut mapping matrix is ​​used to perform a corresponding color gamut correction operation; wherein the color gamut mapping matrix includes a plurality of target color gamut correction coefficients.

4. The display adaptive color adjustment method according to claim 2, It is characterized in that The performing corresponding brightness correction operation based on the video brightness information in the decoding result, the ambient light measurement result and the target video color index includes: Determine whether the video brightness information in the decoding result exists to obtain a corresponding first determination result; If the first judgment result indicates that the video brightness information does not exist, brightness comparison is performed using the ambient light measurement result, and PWM dimming is performed based on the obtained brightness comparison result until the brightness of the display reaches the target brightness data in the target video color index.

5. The display adaptive color adjustment method according to claim 2, It is characterized in that The performing corresponding color temperature correction operation based on the video color temperature information in the decoding result, the ambient light measurement result and the target video color index includes: Determine whether the video color temperature information in the decoding result exists to obtain a corresponding second determination result; If the second judgment result indicates that the video color temperature information does not exist, the ambient light measurement result is used to perform color temperature comparison, and corresponding red, blue and green gain adjustments are performed based on the obtained color temperature comparison result until the color temperature of the display is the target color temperature data in the target video color index.

6. The display adaptive color adjustment method according to claim 2, It is characterized in that The performing a corresponding gamma correction operation based on the first measurement result, the second measurement result, the video gamma value in the decoding result, and the target video color index includes: Perform corresponding measurement result analysis using the first measurement result and the second measurement result, and perform panel gamma correction using the obtained first analysis result, so that the current display gamma is output as 1.0; A corresponding gamma analysis is performed based on the video gamma value in the decoding result, and a display gamma correction is performed on the display using the obtained second analysis result, so that the display gamma is the target gamma data in the target video color index.

7. The display adaptive color adjustment method according to any one of claims 1 to 6, It is characterized in that The measuring the current pure color measurement screen and the RGB measurement screen respectively, and sending the obtained corresponding first measurement results and second measurement results to the display, comprises: For a pure color measurement picture with the same RGB value output and displayed by the display, brightness measurement is performed, and a first measurement result obtained is sent to the display to obtain the corresponding first measurement result; For the RGB measurement picture output and displayed by the display, the chromaticity coordinates and brightness of the red, green and blue monochrome pictures are measured respectively to obtain corresponding second measurement results.

8. A display adaptive color adjustment device, It is characterized in that include: A measurement module, used to measure the current pure color measurement screen and the RGB measurement screen respectively after turning off the color adjustment related functions of the display, and obtain corresponding first measurement results and second measurement results; The video decoding module is used to open the video to be played through a preset player in the playback device, and perform corresponding content decoding on the video to be played to obtain a corresponding decoding result; The ambient light processing module is used to measure the brightness and color temperature of the current ambient light through the ambient light sensor to obtain the corresponding ambient light measurement results; A color adjustment module is used to send the first measurement result, the second measurement result, the decoding result and the ambient light measurement result to the display, so that the display performs corresponding adaptive color adjustment operations based on the first measurement result, the second measurement result, the decoding result, the ambient light measurement result and the target video color index corresponding to the video to be played.

9. An electronic device, It is characterized in that include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the display adaptive color adjustment method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that Used to store a computer program, which, when executed by a processor, implements the display adaptive color adjustment method according to any one of claims 1 to 7.