Generation of screen color calibration mapping table and screen calibration method, program product

By obtaining color calibration mapping tables for different screen brightness levels and generating color calibration mapping tables for the target screen brightness using interpolation algorithms, the problem of insufficient color accuracy when brightness changes in existing technologies is solved, achieving accurate display of screen colors under different brightness levels and improving user experience.

CN122116840APending Publication Date: 2026-05-29BEIJING XIAOMI MOBILE SOFTWARE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2024-11-27
Publication Date
2026-05-29

Smart Images

  • Figure CN122116840A_ABST
    Figure CN122116840A_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method, program product for generating a screen color calibration mapping table and screen calibration. The method can include: obtaining a first color calibration mapping table corresponding to a first screen brightness and a second color calibration mapping table corresponding to a second screen brightness. Determining the change relationship of screen color with screen brightness from the second screen brightness to the first screen brightness. Determining the target screen color corresponding to the target screen brightness based on the change relationship, and performing interpolation operation on the target screen color according to the first color calibration mapping table and the second color calibration mapping table to obtain the target color calibration mapping table corresponding to the target screen brightness. Through the technical solution of the present disclosure, a color calibration mapping table corresponding to each screen brightness can be established, so that the screen color is calibrated according to the corresponding color calibration mapping table, which can ensure that the screen color does not deviate at different brightness, always maintains the accurate display color, and improves the user's visual experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of screen display technology, and in particular to a method and program product for generating a screen color calibration mapping table and for screen calibration. Background Technology

[0002] With the rapid development of electronic devices, screens, as a crucial component, are subject to increasingly higher user demands for display quality. However, due to the limitations of screen materials, significant color differences can occur at varying brightness levels, leading to reduced color accuracy. This color difference not only affects the user's visual experience but can also cause severe color distortion in professional applications such as photography, design, and video editing.

[0003] To ensure a good visual experience for users, it's necessary to control how screen colors change with brightness, ensuring accurate color display across varying brightness levels. Screen calibration technology is commonly used for color adjustment in this context. However, current screen calibration technologies often only achieve color calibration at a specific brightness level, failing to comprehensively cover color calibration across all brightness levels. This means that in actual use, when screen brightness changes, color accuracy cannot be effectively guaranteed, thus impacting the overall user experience. Summary of the Invention

[0004] This disclosure provides a method and program for generating a screen color calibration map and for screen calibration, in order to address the shortcomings of related technologies.

[0005] According to a first aspect of the present disclosure, a method for generating a screen color calibration mapping table is provided, the method comprising:

[0006] Obtain the first color calibration mapping table corresponding to the first screen brightness and the second color calibration mapping table corresponding to the second screen brightness;

[0007] Determine the relationship between screen color and screen brightness changes from the second screen brightness to the first screen brightness.

[0008] Based on the change relationship, the target screen color corresponding to the target screen brightness is determined, and interpolation is performed on the target screen color according to the first color calibration mapping table and the second color calibration mapping table to obtain the target color calibration mapping table corresponding to the target screen brightness.

[0009] Optionally, obtaining the first color calibration mapping table corresponding to the first screen brightness and the second color calibration mapping table corresponding to the second screen brightness includes: determining the first actual color parameter of the sample image under the first screen brightness and the second actual color parameter under the second screen brightness; establishing the first color calibration mapping table based on the standard color parameter of the sample image and the first actual color parameter, and establishing the second color calibration mapping table based on the standard color parameter of the sample image and the second actual color parameter.

[0010] Optionally, the first screen brightness is greater than the second screen brightness. The method further includes: mapping the candidate images based on the first color calibration mapping table to obtain a first mapped image, and mapping the candidate images based on the second color calibration mapping table to obtain a second mapped image; determining the brightness groups corresponding to each color in the candidate images, wherein each brightness group corresponding to a color includes a first brightness corresponding to that color in the first mapped image and a second brightness corresponding to that color in the second mapped image; selecting the target brightness group with the smallest brightness difference and a first brightness less than a second brightness from the brightness groups corresponding to each color, and correcting the second color calibration mapping table according to the target brightness group to generate the target color calibration mapping table based on the corrected second color calibration mapping table; wherein the brightness difference of any brightness group is the difference between the first brightness and the second brightness contained in that brightness group.

[0011] Optionally, the relationship between screen color and screen brightness includes: a curve showing the change of screen color with screen brightness. Determining the relationship between screen color and screen brightness from the second screen brightness to the first screen brightness includes: acquiring reference color parameters of the candidate image at each reference screen brightness, wherein the reference screen brightness includes the first screen brightness, the second screen brightness, and at least one preset screen brightness, wherein the preset screen brightness is between the first screen brightness and the second screen brightness, and the first screen brightness is greater than the second screen brightness; calculating the color difference value corresponding to each reference screen brightness based on the reference color parameters corresponding to each reference screen brightness and the reference color parameters corresponding to the first screen brightness; and generating the change curve based on each reference screen brightness and its corresponding color difference value.

[0012] Optionally, it also includes: if the calculated color difference value indicates that the color difference value corresponding to the larger reference screen brightness is greater than the color difference value corresponding to the smaller reference screen brightness among two adjacent reference screen brightnesses, then modify the color difference value corresponding to the smaller reference screen brightness to the color difference value corresponding to the larger reference screen brightness.

[0013] Optionally, generating the variation curve based on the brightness of each reference screen and its corresponding color difference value includes: normalizing the color difference value corresponding to the brightness of each reference screen, and generating the variation curve based on the brightness of each reference screen and its corresponding normalized color difference value, wherein the normalized color difference value corresponding to the brightness of the first screen is 0, and the normalized color difference value corresponding to the brightness of the second screen is 1; determining the target screen color corresponding to the brightness of the target screen based on the variation relationship includes: determining the target color difference value corresponding to the brightness of the target screen on the variation curve, and performing interpolation on the target color difference value according to the first color calibration mapping table and the second color calibration mapping table to obtain the target color calibration mapping table.

[0014] Optionally, the step of interpolating the target screen color based on the first color calibration mapping table and the second color calibration mapping table to obtain the target color calibration mapping table corresponding to the target screen brightness includes: when the target screen brightness is less than the second screen brightness, determining the second color calibration mapping table as the target color calibration mapping table; when the target screen brightness is greater than the first screen brightness, determining the first color calibration mapping table as the target color calibration mapping table; and when the target screen brightness is between any two adjacent reference screen brightnesses, determining the color calibration mapping table corresponding to the larger of the two adjacent reference screen brightnesses as the target color calibration mapping table.

[0015] According to a second aspect of the present disclosure, a screen color calibration method is provided, comprising:

[0016] Determine the current screen brightness;

[0017] Obtain the target color calibration mapping table corresponding to the current screen brightness, wherein the target color calibration mapping table is generated by the method described in the first aspect above.

[0018] The target color parameters corresponding to the current screen brightness are determined according to the target color calibration mapping table, and the screen is controlled to display images according to the target color parameters.

[0019] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0020] processor;

[0021] Memory used to store processor-executable instructions;

[0022] The processor is configured to implement the method described in the embodiments of the first or second aspect above.

[0023] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided that stores a computer program thereon, which, when executed by a processor, implements the steps of the methods described in the embodiments of the first or second aspect above.

[0024] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement the steps of the methods described in the embodiments of the first or second aspect above.

[0025] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0026] As can be seen from the above embodiments, this disclosure obtains a first color calibration mapping table corresponding to the first screen brightness, a second color calibration mapping table corresponding to the second screen brightness, and the relationship between screen color and screen brightness. Then, it determines the target screen color corresponding to the target screen brightness based on the relationship. Finally, it performs interpolation on the target screen color based on the first color calibration mapping table and the second color calibration mapping table to obtain the target color calibration mapping table corresponding to the target screen brightness.

[0027] The above method not only generates color calibration maps corresponding to each screen brightness, but also, compared to generating color calibration maps for each screen brightness sequentially through screen calibration technology, it uses an interpolation algorithm to generate a color calibration map for any screen brightness. This significantly reduces the generation cost and complexity of color calibration maps, improving generation efficiency. Furthermore, by establishing color calibration maps corresponding to each screen brightness, calibrating the screen colors according to the corresponding color calibration maps ensures that the screen colors do not deviate under different brightness levels, maintaining accurate color display and enhancing the user's visual experience.

[0028] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0029] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0030] Figure 1 This is a schematic diagram of a screen color calibration mapping table generation system / screen color calibration system according to embodiments of the present disclosure.

[0031] Figure 2 This is a schematic flowchart illustrating a method for generating a screen color calibration map according to an embodiment of the present disclosure.

[0032] Figure 3 This is a schematic diagram illustrating a modified color calibration map according to an embodiment of the present disclosure.

[0033] Figure 4 This is a schematic diagram of a variation curve shown according to an embodiment of the present disclosure.

[0034] Figure 5 This is a schematic diagram illustrating a color calibration mapping table corresponding to different brightness ranges according to an embodiment of the present disclosure.

[0035] Figure 6 This is a schematic flowchart illustrating a screen color calibration method according to an embodiment of the present disclosure.

[0036] Figure 7 This is a schematic block diagram of an apparatus for generating a screen color calibration map according to an embodiment of the present disclosure.

[0037] Figure 8 This is a schematic block diagram illustrating a screen color calibration device according to an embodiment of the present disclosure.

[0038] Figure 9 This is a schematic block diagram of an electronic device according to an embodiment of the present disclosure. Detailed Implementation

[0039] The technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this disclosure.

[0040] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the present disclosure. The singular forms “a” and “the” as used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0041] It should be understood that although the terms first, second, third, etc., may be used to describe various information in embodiments of this disclosure, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first information may also be referred to as second information without departing from the scope of embodiments of this disclosure, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."

[0042] For the sake of brevity and ease of understanding, this document uses the terms "greater than" or "less than", "higher than" or "lower than" to describe size relationships. However, it will be understood by those skilled in the art that the term "greater than" also includes the meaning of "greater than or equal to", and "less than" also includes the meaning of "less than or equal to"; the term "higher than" also includes the meaning of "higher than or equal to", and "lower than" also includes the meaning of "lower than or equal to".

[0043] In related technologies, screen calibration technology is commonly used for color adjustment. Screen calibration technology requires a combination of hardware and software, using calibration algorithms and screen data measurements to generate a color calibration map for a specific screen brightness level. This map is then used to perform color calibration at that brightness. Generating separate color calibration maps for each screen brightness level requires multiple measurements and adjustments, increasing the complexity and cost of color calibration. Furthermore, because screen brightness variations are difficult to predict, it's challenging to cover all screen brightness levels with a comprehensive color calibration map. Therefore, current screen color solutions typically only perform color calibration at a specific brightness level to ensure accuracy at that particular level, failing to comprehensively cover color calibration at all brightness levels. This means that in actual use, when screen brightness changes, color accuracy cannot be effectively guaranteed, thus impacting the overall user experience.

[0044] In view of this, this disclosure proposes a method for generating a screen color calibration map, which can efficiently and accurately generate color calibration maps corresponding to different screen brightness levels, thereby achieving accurate color calibration under different screen brightness levels.

[0045] The following describes one or more embodiments of this disclosure in detail.

[0046] The embodiments of this disclosure can be applied to electronic devices with display screens, including but not limited to smartphones, desktop computers, tablets, laptops, e-book readers, smartwatches, and smart bracelets. One or more embodiments of this disclosure are not limited thereto. During operation, the electronic device can run a screen color calibration map generation system to generate a target color calibration map corresponding to the target screen brightness. The application program for the screen color calibration map generation system can be pre-installed on the electronic device, allowing the system to be started and run on the device. Alternatively, when using technologies such as HTML5, the screen color calibration map generation system can be obtained and run without installing the corresponding application on the electronic device.

[0047] In another embodiment, the system for generating the screen color calibration map may include, for example, Figure 1 The diagram shows a server 11, a network 12, and an electronic device 13. During operation, the server 11 runs the server-side program of the screen color calibration map generation system to perform related data processing functions. Meanwhile, the electronic device 13 runs the client-side program of the screen color calibration map generation system to perform related data acquisition and human-computer interaction functions. This collaboration between the server 11 and the electronic device 13 enables the generation of the screen color calibration map. It should be noted that the server 11 can also communicate with multiple electronic devices to generate screen color calibration maps on multiple devices.

[0048] Server 11 can be a physical server containing an independent host, or it can be a virtual server hosted by a host cluster. Electronic device 13 can be any type of device, such as a PC, tablet, laptop, PDA (Personal Digital Assistants), mobile phone, wearable device (such as smart glasses, smartwatches, etc.), etc., and this specification does not limit this to one or more embodiments. The network 12 for interaction between electronic device 13 and server 11 can include various types of wired or wireless networks. In one embodiment, network 12 can include the Public Switched Telephone Network (PSTN) and the Internet. The client application for the screen color calibration mapping table generation system can be pre-installed on the electronic device, allowing the client to be launched and run on the device; of course, when using an online "client" such as HTML5 technology, it is not necessary to install the corresponding application on the electronic device to obtain and run the client.

[0049] For example, based on Figure 1 The screen color calibration map generation system shown describes the following process: Electronic device 13 acquires a first color calibration map corresponding to a first screen brightness, a second color calibration map corresponding to a second screen brightness, and the relationship between the screen brightness and the first screen brightness, as well as the variation of screen color with screen brightness. Then, it reports the first color calibration map, the second color calibration map, the variation relationship, and the target screen brightness to server 11. Server 11 determines the target screen color corresponding to the target screen brightness based on the variation relationship, and then performs interpolation calculations on the target screen color based on the first and second color calibration maps. The resulting target color calibration map is then returned to electronic device 13, which controls the screen's color display based on the received target color calibration map.

[0050] The following will be based on Figure 1 The system architecture shown uses server 11 to execute the screen color calibration mapping table generation method provided in this embodiment of the disclosure as an example for illustrative explanation. Figure 2 This is a schematic flowchart illustrating a method for generating a screen color calibration map table according to an embodiment of this disclosure. It should be noted that the server can generate a target color calibration map table corresponding to the target screen brightness in real time based on the solution of this disclosure during the operation of the electronic device. Alternatively, the server can pre-generate multiple color calibration maps corresponding to different screen brightnesses according to the solution of this disclosure before the electronic device is started, so as to send the corresponding color calibration map table to the electronic device according to the real-time screen brightness during the operation of the electronic device. This disclosure does not limit this approach. Figure 2 As shown, the method may include the following steps:

[0051] S201: Obtain the first color calibration mapping table corresponding to the first screen brightness and the second color calibration mapping table corresponding to the second screen brightness.

[0052] In this embodiment, the first screen brightness and the second screen brightness are two different screen brightnesses. For example, the first screen brightness can be the maximum screen brightness achievable by the electronic device, and the second screen brightness can be the minimum screen brightness achievable by the electronic device. The first screen brightness and the second screen brightness can also be two screen brightnesses with a large difference in brightness. This disclosure does not specifically limit the specific brightness values ​​of the first screen brightness and the second screen brightness. The color calibration mapping table corresponding to any screen brightness refers to the mapping table used to calibrate and adjust the screen color output under that screen brightness. This mapping table can be understood as a set of mapping relationships, which contains a series of color conversion / mapping relationships. It should be noted that this disclosure does not specifically limit the specific form of the color calibration mapping table. For example, the color calibration mapping table can be presented in a chart form or in a matrix form. The electronic device can convert the input RGB values ​​into calibrated RGB values ​​according to the color calibration mapping table, thereby achieving accurate screen color display under the corresponding screen brightness. In one illustrated embodiment, the color calibration mapping table may include, but is not limited to: LUT (Lookup Table) and Color Matrix.

[0053] In one embodiment, the first color calibration mapping table and the second color calibration mapping table can be obtained in the following manner: First, determine the first actual color parameters of the sample image under the first screen brightness, and the second actual color parameters of the sample image under the second screen brightness. The sample image can be any image, and this disclosure does not specifically limit the content, quantity, or included colors of the sample image. The sample image is displayed on the screen of the electronic device, and the screen brightness of the electronic device is adjusted to the first screen brightness. Then, a calibration tool is used to determine the first actual color parameters of the sample image under the first screen brightness. These actual color parameters may include the first actual RGB values, the first actual color temperature, etc., of each color in the sample image under the first screen brightness. Similarly, the screen brightness of the electronic device is adjusted to the second screen brightness, and then the calibration tool can be used to determine the second actual color parameters of the sample image under the second screen brightness. Specific calibration tools and their usage methods can be found in the relevant content of screen calibration technology in related technologies, and will not be elaborated here.

[0054] Then, a first color calibration mapping table is established based on the standard color parameters of the sample image and the first actual color parameters, and a second color calibration mapping table is established based on the standard color parameters and the second actual color parameters. The standard color parameters of the sample image include the standard RGB values ​​of each color in the sample image, for example, the standard RGB value of red is (255,0,0), and the standard RGB value of white is (255,255,255). For example, a first color calibration mapping relationship is established for each color in the sample image based on its standard RGB value and the corresponding first actual RGB value, and then the first color calibration mapping relationships of all colors in the sample image are combined to form the first color calibration mapping table. This process is repeated to obtain the second color calibration mapping table.

[0055] The above method can obtain accurate first and second actual color parameters, and thus construct accurate first and second color calibration maps, which helps to improve the accuracy of the subsequently generated target color calibration map.

[0056] It should be noted that the above methods for obtaining the first color calibration map and the second color calibration map are merely examples, and this disclosure does not impose any particular limitations on the specific implementation methods for obtaining the first color calibration map and the second color calibration map.

[0057] In one embodiment, due to limitations in screen model and performance, brightness reversal may occur during color calibration based on the first and second color calibration maps. The following example, where the brightness of the first screen is greater than that of the second screen, further illustrates brightness reversal: First, it should be noted that the brightness of the image displayed on the screen is closely related to the actual RGB values ​​of the image. When the brightness of the first screen is greater than that of the second screen, color calibration is performed on the same image using both the first and second color calibration maps, resulting in a first calibrated image and a second calibrated image. The image brightness corresponding to the RGB values ​​of the first calibrated image should be greater than the image brightness corresponding to the RGB values ​​of the second calibrated image. "Brightness reversal" refers to a situation where the image brightness corresponding to the RGB values ​​of the first calibrated image is less than the image brightness corresponding to the RGB values ​​of the second calibrated image, contradicting the premise that the brightness of the first screen is greater than that of the second screen. When brightness reversal occurs, it indicates a conflict between the first and second color calibration maps obtained in the aforementioned process. Therefore, during the implementation of this disclosure, the obtained first and second color calibration maps can be corrected.

[0058] The following example illustrates the correction process using the case where the brightness of the first screen is greater than that of the second screen. First, the candidate images are mapped according to the first and second color calibration mapping tables, respectively, to obtain the first mapped image and the second mapped image. The candidate images can be any images, and this disclosure does not impose any particular limitations on the content, quantity, or colors contained in the candidate images. Then, the first brightness corresponding to each color contained in the candidate image in the first mapped image and the second brightness corresponding to each color in the second mapped image are determined. For example, the RGB values ​​of each color in the first mapped image can be mapped to the XYZ color space using an RGB-XYZ transformation matrix. In the XYZ space, the Y value represents brightness, so the first brightness can be determined based on the Y value corresponding to each color. Similarly, the second brightness corresponding to each color in the second mapped image can be obtained. Based on the first and second brightness corresponding to each color, a brightness group corresponding to each color contained in the candidate image can be constructed. For example, if the candidate image contains three colors—red, yellow, and green—Table 1 shows the brightness groups corresponding to these three colors in an exemplary embodiment:

[0059] Table 1

[0060]

[0061] Furthermore, from the brightness groups corresponding to each color, the target brightness group with the smallest brightness difference and where the first brightness is less than the second brightness is selected. The brightness difference of any brightness group refers to the difference between the first brightness and the second brightness contained in that brightness group. It can be understood that when the first brightness is less than the second brightness, the brightness difference is negative. During the selection process, the brightness differences of all brightness groups can be calculated first, and then the target brightness group with the smallest brightness difference and where the first brightness is less than the second brightness can be selected based on the calculation results. Alternatively, brightness groups where the first brightness is less than the second brightness can be selected from all brightness groups first, and then the brightness difference of each of these selected brightness groups can be calculated to select the target brightness group with the smallest brightness difference. The above are merely examples, and this disclosure does not specifically limit the specific implementation method of selecting target brightness groups.

[0062] If the brightness of the first screen is greater than that of the second screen, and at least one color has a first brightness lower than the second brightness, then a brightness inversion has occurred. In this case, the second color calibration map can be corrected based on the target brightness group with the smallest brightness difference. Because the target brightness group has the smallest brightness difference, it means that the interval between the first and second brightness in the target brightness group is the largest, i.e., the brightness inversion situation in this target brightness group is the most severe. Therefore, correcting the second color calibration map based on this target brightness group can correct the second color calibration mapping relationship corresponding to all colors to be corrected (where the colors to be corrected refer to colors whose corresponding first brightness is lower than their corresponding second brightness), thereby ensuring the accuracy of the corrected second color calibration map. Referring to Table 1, assuming Y1 < Y2, Y3 < Y4, Y5 > Y6, and the brightness difference y a Minimum. Therefore, the second color calibration map can be corrected based on the first brightness Y1 and the second brightness Y2. The correction principle can be found in the following formula (1):

[0063]

[0064] In formula (1), Lut2 ′ The modified second color calibration map is represented by Lut2, Lv_1 represents the first luminance contained in the target luminance group, and Lv_2 represents the second luminance contained in the target luminance group.

[0065] Of course, if the screening results indicate that there is no target brightness group with the smallest brightness difference and the first brightness being less than the second brightness, it means that both the first color calibration map and the second color calibration map are accurate, and in this case, there is no need to correct them.

[0066] Please see Figure 3 The following example illustrates a scenario where the brightness of the first screen is greater than that of the second screen, and the candidate image is a white image (i.e., an image containing only white): The white image is mapped using the first color calibration mapping table Lut1 corresponding to the brightness of the first screen and the second color calibration mapping table Lut2 corresponding to the brightness of the second screen, respectively, to obtain the first mapped image and the second mapped image. The first brightness Lv_high corresponding to white in the first mapped image and the second brightness Lv_low corresponding to white in the second mapped image are determined by the RGB-XYZ transformation matrix. Then, it is determined whether the first brightness Lv_high is less than the second brightness Lv_low. If it is determined that the first brightness Lv_high is greater than or equal to the second brightness Lv_low, no correction is required. If it is determined that the first brightness Lv_high is less than the second brightness Lv_low, the corrected second color calibration mapping table is obtained according to the following formula (2):

[0067]

[0068] In formula (2), Lut2 ′ The modified second color calibration map is represented by Lut2, where Lv_high represents the first brightness corresponding to white and Lv_low represents the second brightness corresponding to white. Figure 3 In the embodiment shown, since the candidate image has only one color, it is only necessary to compare the magnitude of the first brightness and the second brightness corresponding to the single color, without having to calculate the brightness difference between the first brightness and the second brightness, which can further improve the correction efficiency.

[0069] In this embodiment, by verifying the obtained second color calibration map and correcting the second color calibration map that has brightness inversion, the accuracy of the corrected second color calibration map is further ensured. This allows for the generation of an accurate target color calibration map based on the corrected second color calibration map, thereby avoiding brightness inversion during color calibration based on the accurate target color calibration map and ensuring the user's visual experience.

[0070] S202: Determine the relationship between screen color and screen brightness changes from the second screen brightness to the first screen brightness.

[0071] The change relationship can be understood as how the screen color changes with the change in screen brightness from the second screen brightness to the first screen brightness. There are many ways to present this change relationship, such as as a curve or a table, and this disclosure does not limit this. It should be noted that this disclosure does not limit the execution order of steps S201 and S202.

[0072] In one embodiment, the relationship between screen color and screen brightness may include a curve showing the change in screen color from a second screen brightness to a first screen brightness. When the first screen brightness is greater than the second screen brightness, this curve refers to the curve showing the change in screen color as the screen brightness increases. When the first screen brightness is less than the second screen brightness, this curve refers to the curve showing the change in screen color as the screen brightness decreases. Presenting the relationship between screen color and screen brightness as a curve allows for a clearer and more intuitive determination of the trend in screen color change with screen brightness.

[0073] The aforementioned variation curves can be generated based on relevant data from the reference screen (golden screen). The reference screen can be understood as a display screen that has undergone rigorous selection and calibration to meet the highest standards. It should be noted that, to avoid performance differences caused by screen hardware, a reference screen of the same model as the target screen can be selected. The target screen refers to the screen used in obtaining the first and second color calibration maps.

[0074] For example, at least one reference screen can be selected, and the same candidate image can be displayed on each reference screen. For any reference screen, reference color parameters of the candidate image at various reference screen brightness levels are obtained. The reference screen brightness includes the aforementioned first screen brightness, second screen brightness, and at least one preset screen brightness, each preset screen brightness falling between the first and second screen brightness. For instance, a preset screen brightness is defined by every 5 nits from the second screen brightness to the first screen brightness. Of course, the brightness interval between two adjacent preset screen brightness levels can also be unequal. For the specific process of obtaining the reference color parameters of the candidate image at any reference screen brightness, please refer to the relevant content on determining screen color parameters in related technologies; details will not be elaborated here.

[0075] Furthermore, taking a scenario where the brightness of the first screen is greater than that of the second screen (i.e., the brightness of the first screen is the maximum reference screen brightness) as an example, for multiple reference color parameters corresponding to any reference screen, the color difference value (Just Noticeable Color Difference, JNCD) corresponding to each reference screen brightness is calculated based on the reference color parameter corresponding to each reference screen brightness and the reference color parameter corresponding to the first screen brightness. Each color difference value is used to characterize the color difference interval between the color parameter corresponding to the corresponding reference screen brightness and the color parameter corresponding to the first screen brightness. It should be noted that if the candidate image used in this embodiment contains multiple colors, then it is necessary to determine the color difference value corresponding to each color at each reference screen brightness separately. Table 2 shows the color difference values ​​corresponding to three colors at each reference screen brightness in an exemplary embodiment:

[0076] Table 2

[0077]

[0078] When there are multiple reference screens, the average color difference corresponding to the brightness of each reference screen can be calculated based on the color difference values ​​obtained from each reference screen. Then, a variation curve is generated based on the brightness of each reference screen and its corresponding color difference value (or average color difference).

[0079] Taking a reference screen and a white image as the candidate image as an example, the white image is displayed on the reference screen, and the reference color parameters of the white image are obtained at reference screen brightness levels 1 to 5. Here, reference screen brightness 1 is the second screen brightness, reference screen brightness 5 is the first screen brightness, and reference screen brightness 1 to 5 increase sequentially. Based on the reference color parameters corresponding to reference screen brightness 1 to 5 and the reference color parameters corresponding to the first screen brightness, the color difference values ​​corresponding to reference screen brightness 1 to 5 are calculated. Clearly, the color difference value corresponding to reference screen brightness 5 is 0. Furthermore, a variation curve is generated based on reference screen brightness 1 to 5 and their corresponding color difference values. A schematic diagram of this variation curve can be found in [reference needed]. Figure 4 .

[0080] In this embodiment, a variation curve is generated using multiple known values ​​of reference screen brightness and their corresponding color difference values. This allows the variation curve to be represented by quantitative indicators, significantly improving its accuracy. Furthermore, since the reference screen achieves the highest display quality, obtaining the reference color parameters corresponding to the reference screen brightness effectively ensures the accuracy of the reference color parameters, thereby further ensuring the accuracy of the generated variation curve.

[0081] In one embodiment, when the brightness of the first screen is greater than the brightness of the second screen, for the color difference values ​​corresponding to the brightness of each reference screen, if there are two adjacent reference screen brightness values ​​where the color difference value corresponding to the larger reference screen brightness is greater than the color difference value corresponding to the smaller reference screen brightness, then the color difference value corresponding to the smaller reference screen brightness needs to be modified to the color difference value corresponding to the larger reference screen brightness.

[0082] Since any color difference value represents the color difference interval between the color parameter corresponding to the brightness of the reference screen and the color parameter corresponding to the brightness of the first screen, the smaller the color difference value, the larger the color parameter corresponding to the brightness of the reference screen. Furthermore, since the actual brightness of an image is positively correlated with its color parameters, a smaller color difference value indicates a larger actual brightness of the image. Figure 4 If, when reference screen brightness 2 is less than reference screen brightness 3, the color difference value corresponding to reference screen brightness 2 is less than the color difference value corresponding to reference screen brightness 3, this indicates a brightness inversion has occurred. In this case, the color difference value corresponding to reference screen brightness 2 can be modified to the color difference value corresponding to reference screen brightness 3.

[0083] By employing the above method, it can be ensured that the overall trend of the brightness change curve decreases as the screen brightness increases, thus avoiding brightness reversal. In other words, during the process of generating a target color calibration map based on the overall decreasing trend of the brightness change curve and using this target color calibration map for color calibration, brightness reversal can be avoided, ensuring a superior visual experience for the user.

[0084] In one embodiment, during the process of generating change curves based on the brightness of each reference screen and its corresponding color difference value, the color difference value corresponding to the brightness of each reference screen can be normalized to obtain the normalized color difference value corresponding to the brightness of each reference screen. The principle of this process can be referred to the following formula (3):

[0085] JNCD_n=JNCD / JNCD_low (3)

[0086] In formula (3), JNCD_n represents the normalized color difference value corresponding to any reference screen brightness, JNCD represents the color difference value corresponding to any reference screen brightness, and JNCD_low represents the second screen brightness. Specifically, the normalized color difference value corresponding to the first screen brightness is 0, and the normalized color difference value corresponding to the second screen brightness is 1, with the first screen brightness being greater than the second screen brightness. Then, based on the brightness of each reference screen and its corresponding normalized color difference value, a curve showing the change in screen color with screen brightness is generated. The above method uses normalization processing, which can significantly reduce the computational load and data complexity in the subsequent generation of the target color calibration map, avoid errors in the generation process, and improve the generation efficiency and accuracy of the target color calibration map.

[0087] S203: Based on the change relationship, determine the target screen color corresponding to the target screen brightness, and perform interpolation operation on the target screen color according to the first color calibration mapping table and the second color calibration mapping table to obtain the target color calibration mapping table corresponding to the target screen brightness.

[0088] The target screen brightness can be any screen brightness. During operation, electronic devices may experience screen brightness changes due to user operation, automatic adjustments based on ambient light, or performance degradation over time. This disclosure provides a solution that generates color calibration maps for different screen brightness levels, ensuring color calibration under varying screen brightness. The method for determining the target screen brightness is detailed in relevant technical documents and will not be elaborated here. Further, the change relationship matching the screen model is invoked based on the target screen brightness, and the target screen color corresponding to that brightness is determined. Then, interpolation is performed on the target screen color using the first and second color calibration maps to obtain the target color calibration map corresponding to the target screen brightness. Interpolation algorithms can be used to estimate the value of unknown data points between two known data points, including but not limited to linear interpolation, polynomial interpolation, and spline interpolation. Those skilled in the art can choose the appropriate interpolation algorithm based on actual needs; this disclosure does not limit this choice.

[0089] In the above embodiments, a color calibration map corresponding to any screen brightness is generated through an interpolation algorithm. Compared to generating a color calibration map for each screen brightness sequentially using screen calibration technology, this method significantly reduces the generation cost and complexity of the color calibration map, and improves generation efficiency. Furthermore, by establishing a color calibration map corresponding to each screen brightness, screen color calibration based on the corresponding color calibration map ensures that the screen color does not deviate under different brightness levels, maintaining accurate color display and improving the user's visual experience.

[0090] In one embodiment, in conjunction with the foregoing embodiments, if a curve showing the change of screen color with screen brightness is generated based on the brightness of each reference screen and its corresponding normalized color difference value, then in the process of generating the target color calibration mapping table corresponding to the target screen brightness, the target color difference value corresponding to the target screen brightness on the curve can be determined first, and then the target color difference value can be interpolated based on the first color calibration mapping table and the second color calibration mapping table to obtain the target color calibration mapping table. Taking the first screen brightness being greater than the second screen brightness as an example, the generation principle of the target color calibration mapping table can be referred to the following formula (4):

[0091] Lut_n=Lut_high-JNCD_n*(Lut_high-Lut_low) (4)

[0092] In formula (4), Lut_n represents the target color calibration map, JNCD_n represents the target color difference value, Lut_high represents the first color calibration map corresponding to the first screen brightness, and Lut_low represents the second color calibration map corresponding to the second screen brightness.

[0093] In this embodiment, the screen color is characterized by a quantitative representation of color difference value, and a corresponding color calibration map is generated based on the color difference value. This can effectively improve the accuracy of the generated color calibration map, thereby improving the effect of color calibration using the color calibration map.

[0094] In one embodiment, taking a scenario where the brightness of the first screen is greater than that of the second screen as an example, there may be situations where the brightness of the target screen is greater than the brightness of the first screen or less than the brightness of the second screen. In such cases, it becomes difficult to determine the target screen color corresponding to the target screen brightness. Therefore, to achieve color calibration at the target screen brightness, the following method can be used: If the target screen brightness is greater than the first screen brightness, a first color calibration map can be determined as the target color calibration map corresponding to the target screen brightness. If the target screen brightness is less than the second screen brightness, a second color calibration map can be determined as the target color calibration map corresponding to the target screen brightness. This method can achieve a certain degree of color calibration even when the target screen brightness is greater than the first screen brightness or less than the second screen brightness, thus improving the user's visual experience.

[0095] Furthermore, color calibration maps corresponding to the brightness of each reference screen can be generated. Because the color difference values ​​corresponding to the brightness variations of each reference screen are known and definite, corresponding color calibration maps can be quickly generated based on these definite color difference values. When the target screen brightness is between any two adjacent reference screen brightnesses, the color calibration map corresponding to the larger of these two adjacent reference screen brightnesses can be used as the target color calibration map for the target screen brightness.

[0096] Please see Figure 5 , Figure 5This is a schematic diagram illustrating a color calibration mapping table corresponding to different brightness ranges, as shown in an exemplary embodiment. It is assumed that the reference screen brightness includes a first screen brightness Lv_high, a second screen brightness Lv_low (the second screen brightness is less than the first screen brightness), and multiple preset screen brightness Lv_1 to Lv_n (n is a natural number greater than or equal to 1). The target screen brightness Lv is determined, and the brightness range in which the target screen brightness Lv falls is determined. If the target screen brightness Lv is less than or equal to the second screen brightness Lv_low, then the second color calibration mapping table Lut_low corresponding to the second screen brightness is determined as the target color calibration mapping table. If the target screen brightness Lv is greater than the second screen brightness Lv_low and less than or equal to the preset screen brightness Lv_1, then the color calibration mapping table Lut1 corresponding to the preset screen brightness Lv_1 is determined as the target color calibration mapping table. If the target screen brightness Lv is greater than the preset screen brightness Lv_1 and less than or equal to the preset screen brightness Lv_2, then the color calibration mapping table Lut2 corresponding to the preset screen brightness Lv_2 is determined as the target color calibration mapping table. Similarly, if the target screen brightness Lv is greater than the preset screen brightness Lv_n (which is adjacent to the first screen brightness Lv_high), then the first color calibration mapping table Lut_high corresponding to the first screen brightness Lv_high is determined as the target color calibration mapping table.

[0097] The above method does not require determining the target color parameters corresponding to the target screen brightness. It can determine the target color calibration mapping table based on the brightness range of the target screen brightness, which effectively improves the efficiency of determining the target color calibration mapping table.

[0098] Color calibration can be performed using the target color calibration table obtained according to any of the above embodiments. In view of this, this disclosure proposes a screen color calibration method. In one illustrated embodiment, this screen color calibration method can be applied to an electronic device carrying a display screen, which may include, but is not limited to, smartphones, desktop computers, tablets, laptops, e-book readers, smartwatches, smart bracelets, etc. One or more embodiments of this disclosure are not limited in this respect. During operation, the electronic device can run a screen color calibration system to calibrate the screen color under different screen brightness levels. The application for the screen color calibration system can be pre-installed on the electronic device, allowing the screen color calibration system to be started and run on the electronic device; of course, when using technologies such as HTML5, it is not necessary to install the corresponding application on the electronic device to obtain and run the screen color calibration system.

[0099] In another embodiment, the screen color calibration system may include, for example, Figure 1The diagram shows a server 11, a network 12, and an electronic device 13. During operation, the server 11 runs the server-side program of the screen color calibration system to perform related data processing functions. Meanwhile, the electronic device 13 runs the client-side program of the screen color calibration system to perform related color calibration, human-computer interaction, and other functions. Thus, the server 11 and electronic device 13 work together to implement the screen color calibration scheme. It should be noted that the server 11 can also communicate with multiple electronic devices to perform screen color calibration on multiple devices.

[0100] The following description uses an electronic device to execute the screen color calibration method provided in this disclosure as an example. Please refer to... Figure 6 , Figure 6 This is a schematic flowchart illustrating a screen color calibration method according to an embodiment of the present disclosure. Figure 6 As shown, the process may include the following steps:

[0101] S601: Determine the current screen brightness.

[0102] The methods used by electronic devices to determine the current screen brightness can be found in relevant technical documents, which will not be elaborated here.

[0103] S602: Obtain the target color calibration mapping table corresponding to the current screen brightness, the target color calibration mapping table is obtained through... Figure 2 The method described in any of the embodiments is used to generate it.

[0104] Electronic devices can be based on Figure 2 The method described in any of the embodiments generates a target color calibration mapping table corresponding to the current screen brightness in real time; it can also be based on... Figure 2 The method described in any embodiment pre-generates multiple color calibration mapping tables corresponding to different screen brightness levels, and then searches for the target color calibration mapping table corresponding to the current screen brightness from these color calibration mapping tables. This disclosure does not limit this process.

[0105] S603: Determine the target color parameters corresponding to the current screen brightness according to the target color calibration mapping table, and control the screen to display the image according to the target color parameters.

[0106] The method shown in this embodiment can ensure that the screen color does not deviate under different screen brightness, meet the requirements for screen color accuracy under various screen brightness, and improve the user's visual experience.

[0107] Corresponding to the aforementioned embodiments of the screen color calibration map generation method, this disclosure also provides embodiments of the screen color calibration map generation apparatus.

[0108] Please see Figure 7 , Figure 7 This is a schematic block diagram of an apparatus for generating a screen color calibration map, provided in an exemplary embodiment. The apparatus may include: an acquisition unit 701, a determination unit 702, and an interpolation unit 703.

[0109] The acquisition unit 701 is configured to acquire a first color calibration mapping table corresponding to the first screen brightness and a second color calibration mapping table corresponding to the second screen brightness.

[0110] The determining unit 702 is configured to determine the relationship between screen color and screen brightness changes from the second screen brightness to the first screen brightness.

[0111] The interpolation unit 703 is configured to determine the target screen color corresponding to the target screen brightness based on the change relationship, and to perform interpolation operation on the target screen color according to the first color calibration mapping table and the second color calibration mapping table to obtain the target color calibration mapping table corresponding to the target screen brightness.

[0112] Optionally, the acquisition unit 701 is specifically used to: determine the first actual color parameter of the sample image under the first screen brightness and the second actual color parameter under the second screen brightness; establish the first color calibration mapping table according to the standard color parameter of the sample image and the first actual color parameter, and establish the second color calibration mapping table according to the standard color parameter of the sample image and the second actual color parameter.

[0113] Optionally, the brightness of the first screen is greater than the brightness of the second screen, and the device further includes:

[0114] The correction unit 704 is configured to map candidate images based on the first color calibration mapping table to obtain a first mapped image, and to map candidate images based on the second color calibration mapping table to obtain a second mapped image; to determine the brightness groups corresponding to each color contained in the candidate images, wherein each brightness group corresponding to a color includes a first brightness corresponding to that color in the first mapped image and a second brightness corresponding to that color in the second mapped image; to select a target brightness group with the smallest brightness difference and a first brightness less than a second brightness from the brightness groups corresponding to each color, and to correct the second color calibration mapping table according to the target brightness group, so as to generate the target color calibration mapping table based on the corrected second color calibration mapping table; wherein the brightness difference of any brightness group is the difference between the first brightness and the second brightness contained in that brightness group.

[0115] Optionally, the relationship between screen color and screen brightness includes: a curve showing the change of screen color with screen brightness. The determining unit 702 is specifically used to: obtain reference color parameters of the candidate image at each reference screen brightness, wherein the reference screen brightness includes the first screen brightness, the second screen brightness, and at least one preset screen brightness, wherein the preset screen brightness is between the first screen brightness and the second screen brightness, and the first screen brightness is greater than the second screen brightness; calculate the color difference value corresponding to each reference screen brightness based on the reference color parameters corresponding to each reference screen brightness and the reference color parameters corresponding to the first screen brightness; and generate the change curve based on each reference screen brightness and its corresponding color difference value.

[0116] Optionally, the device further includes:

[0117] The color difference value modification unit 705 is configured to modify the color difference value corresponding to the smaller reference screen brightness to the color difference value corresponding to the larger reference screen brightness when the calculated color difference value indicates that there are two adjacent reference screen brightnesses and the color difference value corresponding to the larger reference screen brightness is greater than the color difference value corresponding to the smaller reference screen brightness.

[0118] Optionally, generating the variation curve based on the brightness of each reference screen and its corresponding color difference value includes: normalizing the color difference value corresponding to the brightness of each reference screen, and generating the variation curve based on the brightness of each reference screen and its corresponding normalized color difference value, wherein the normalized color difference value corresponding to the brightness of the first screen is 0, and the normalized color difference value corresponding to the brightness of the second screen is 1.

[0119] The interpolation unit 703 is specifically used to: determine the target color difference value corresponding to the target screen brightness on the change curve, and perform interpolation operation on the target color difference value according to the first color calibration mapping table and the second color calibration mapping table to obtain the target color calibration mapping table.

[0120] Optionally, the interpolation unit 703 is specifically used to: determine the second color calibration map as the target color calibration map when the target screen brightness is less than the second screen brightness; determine the first color calibration map as the target color calibration map when the target screen brightness is greater than the first screen brightness; and determine the color calibration map corresponding to the larger of the two adjacent reference screen brightnesses as the target color calibration map when the target screen brightness is between any two adjacent reference screen brightnesses.

[0121] Corresponding to the aforementioned embodiments of the screen color calibration method, this disclosure also provides embodiments of a screen color calibration apparatus.

[0122] Please see Figure 8 , Figure 8 This is a schematic block diagram of a screen color calibration device provided in an exemplary embodiment. The device includes: a brightness determination unit 801, an acquisition unit 802, and a control unit 803. Wherein:

[0123] The brightness determination unit 801 is configured to determine the current screen brightness.

[0124] The acquisition unit 802 is configured to acquire the target color calibration mapping table corresponding to the current screen brightness, and the target color calibration mapping table is generated by the screen color calibration mapping table generation method described in any of the foregoing embodiments.

[0125] The control unit 803 is configured to determine the target color parameters corresponding to the current screen brightness according to the target color calibration mapping table, and control the screen to display images according to the target color parameters.

[0126] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments of the relevant methods, and will not be elaborated upon here.

[0127] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this disclosure according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0128] Figure 9 This is a schematic block diagram illustrating an electronic device according to embodiments of the present disclosure. For example, the electronic device 900 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0129] Reference Figure 9 The electronic device 900 may include one or more of the following components: a processing component 902, a memory 904, a power supply component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.

[0130] Processing component 902 typically controls the overall operation of electronic device 900, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 902 may include one or more modules to facilitate interaction between processing component 902 and other components. For example, processing component 902 may include a multimedia module to facilitate interaction between multimedia component 908 and processing component 902.

[0131] Memory 904 is configured to store various types of data to support the operation of electronic device 900. Examples of this data include instructions for any application or method operating on electronic device 900, contact data, phonebook data, messages, pictures, videos, etc. Memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0132] Power supply component 906 provides power to various components of electronic device 900. Power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 900.

[0133] Multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 908 includes a front-facing camera and / or a rear-facing camera. When the electronic device 900 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0134] Audio component 910 is configured to output and / or input audio signals. For example, audio component 910 includes a microphone (MIC) configured to receive external audio signals when electronic device 900 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 904 or transmitted via communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.

[0135] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0136] Sensor assembly 914 includes one or more sensors for providing state assessments of various aspects of electronic device 900. For example, sensor assembly 914 can detect the on / off state of electronic device 900, the relative positioning of components such as the display and keypad of electronic device 900, changes in position of electronic device 900 or a component of electronic device 900, the presence or absence of user contact with electronic device 900, orientation or acceleration / deceleration of electronic device 900, and temperature changes of electronic device 900. Sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 914 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0137] Communication component 916 is configured to facilitate wired or wireless communication between electronic device 900 and other devices. Electronic device 900 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, 4G LTE, 9G NR, or combinations thereof. In one exemplary embodiment, communication component 916 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 916 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0138] In an exemplary embodiment, the electronic device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described in any of the above embodiments.

[0139] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, which can be executed by a processor 920 of an electronic device 900 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0140] In an exemplary embodiment, this disclosure also provides a computer program product including a computer program / instructions that, when executed by a processor, implement the steps of the method as described in any of the above embodiments.

[0141] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0142] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A method for generating a screen color calibration mapping table, characterized in that, include: Obtain the first color calibration mapping table corresponding to the first screen brightness and the second color calibration mapping table corresponding to the second screen brightness; Determine the relationship between screen color and screen brightness changes from the second screen brightness to the first screen brightness. Based on the change relationship, the target screen color corresponding to the target screen brightness is determined, and interpolation is performed on the target screen color according to the first color calibration mapping table and the second color calibration mapping table to obtain the target color calibration mapping table corresponding to the target screen brightness.

2. The method according to claim 1, characterized in that, The step of obtaining the first color calibration mapping table corresponding to the first screen brightness and the second color calibration mapping table corresponding to the second screen brightness includes: The first actual color parameter of the sample image under the first screen brightness and the second actual color parameter under the second screen brightness are determined respectively. A first color calibration mapping table is established based on the standard color parameters of the sample image and the first actual color parameters, and a second color calibration mapping table is established based on the standard color parameters of the sample image and the second actual color parameters.

3. The method according to claim 1, characterized in that, The method further includes: The brightness of the first screen is greater than the brightness of the second screen. The candidate images are mapped based on the first color calibration mapping table to obtain a first mapped image, and the candidate images are mapped based on the second color calibration mapping table to obtain a second mapped image; Each color in the candidate image is determined to have a corresponding brightness group. The brightness group corresponding to any color includes the first brightness of the color in the first mapped image and the second brightness of the color in the second mapped image. From the brightness groups corresponding to each color, the target brightness group with the smallest brightness difference and the first brightness being less than the second brightness is selected, and the second color calibration map is corrected according to the target brightness group to generate the target color calibration map based on the corrected second color calibration map; wherein, the brightness difference of any brightness group is the difference between the first brightness and the second brightness contained in the brightness group.

4. The method according to claim 1, characterized in that, The relationship between screen color and screen brightness includes: a curve showing the change in screen color with screen brightness; determining the relationship between screen color and screen brightness from the second screen brightness to the first screen brightness includes: The reference color parameters of the candidate image are obtained at each reference screen brightness. The reference screen brightness includes the first screen brightness, the second screen brightness, and at least one preset screen brightness. The preset screen brightness is between the first screen brightness and the second screen brightness, and the first screen brightness is greater than the second screen brightness. The color difference value corresponding to each reference screen brightness is calculated based on the reference color parameters corresponding to each reference screen brightness and the reference color parameters corresponding to the first screen brightness. The variation curve is generated based on the brightness of each reference screen and its corresponding color difference value.

5. The method according to claim 4, characterized in that, Also includes: If the calculated color difference value indicates that the color difference value corresponding to the larger reference screen brightness is greater than the color difference value corresponding to the smaller reference screen brightness among two adjacent reference screen brightnesses, then the color difference value corresponding to the smaller reference screen brightness will be modified to the color difference value corresponding to the larger reference screen brightness.

6. The method according to claim 4, characterized in that, The step of generating the change curve based on the brightness of each reference screen and its corresponding color difference value includes: normalizing the color difference value corresponding to the brightness of each reference screen, and generating the change curve based on the brightness of each reference screen and its corresponding normalized color difference value, wherein the normalized color difference value corresponding to the brightness of the first screen is 0, and the normalized color difference value corresponding to the brightness of the second screen is 1. The step of determining the target screen color corresponding to the target screen brightness based on the change relationship includes: determining the target color difference value corresponding to the target screen brightness on the change curve, and performing interpolation operation on the target color difference value according to the first color calibration mapping table and the second color calibration mapping table to obtain the target color calibration mapping table.

7. The method according to claim 4, characterized in that, The step of interpolating the target screen color based on the first color calibration mapping table and the second color calibration mapping table to obtain the target color calibration mapping table corresponding to the target screen brightness includes: If the target screen brightness is less than the second screen brightness, the second color calibration mapping table is determined as the target color calibration mapping table; If the target screen brightness is greater than the first screen brightness, the first color calibration mapping table is determined as the target color calibration mapping table; When the target screen brightness is between any two adjacent reference screen brightnesses, the color calibration mapping table corresponding to the larger of the two adjacent reference screen brightnesses is determined as the target color calibration mapping table.

8. A screen color calibration method, characterized in that, include: Determine the current screen brightness; Obtain the target color calibration mapping table corresponding to the current screen brightness, wherein the target color calibration mapping table is generated by the method of any one of claims 1-7; The target color parameters corresponding to the current screen brightness are determined according to the target color calibration mapping table, and the screen is controlled to display images according to the target color parameters.

9. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor implements the method as described in any one of claims 1 to 8 by executing the executable instructions.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method described in any one of claims 1 to 8.

11. A computer program product, characterized in that, Includes a computer program / instructions that, when executed by a processor, implement the steps of the method as described in any one of claims 1 to 8.