Screen color adjusting method and device, terminal and computer readable storage medium

By determining the black and white level on the mobile phone screen based on user operation and environmental parameters, and using 3D-LUT for weighted calculation to synthesize a third-mode color mapping table, the problem of the single color adjustment method in the existing technology is solved, enabling users to finely adjust the screen color and achieve a better user experience.

CN119690310BActive Publication Date: 2026-06-02HUAWEI TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2020-11-16
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

In existing technologies, mobile phone screens have a single method for color adjustment in reading mode, which may lead to excessively high color saturation, potentially distracting users and causing eye damage. Furthermore, users cannot flexibly adjust the color display effect.

Method used

By determining the black and white level of the terminal screen based on user operation or environmental parameters, a third-mode color mapping table is synthesized using a 3D display lookup table (3D-LUT) for weighted calculation, and then applied to the screen display, providing adjustment controls for convenient adjustment of screen colors.

Benefits of technology

It enables users to finely adjust screen colors, improves user experience, reduces the impact of color saturation on the eyes, and provides a more satisfactory display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690310B_ABST
    Figure CN119690310B_ABST
Patent Text Reader

Abstract

A screen color adjustment method, apparatus, terminal, and computer-readable storage medium are disclosed, relating to the field of display technology. The method includes: determining the black-and-white level of the terminal screen based on a user's first operation or environmental parameters, wherein the black-and-white level is a parameter value used to characterize the proportion of screen colors between a first mode and a second mode, the first mode being a standard mode for screen display, and the second mode being a black-and-white mode for screen display; synthesizing the first mode and the second mode according to the black-and-white level to obtain a third mode; converting the colors of the synthesized image according to the third mode to obtain a first display image; and controlling the screen to display the first display image, so that the user can flexibly adjust the color display effect of the terminal, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of display technology, and in particular to a screen color adjustment method, apparatus, terminal, and computer-readable storage medium. Background Technology

[0002] When users read large amounts of text on a mobile phone screen (e.g., novels, discussion threads), overly saturated colors may distract them, making it difficult to immerse themselves in the reading experience. Furthermore, overly saturated colors may also cause eye strain. Related technologies typically include pre-installed eye-friendly reading modes on mobile phones, such as… Figure 1a and Figure 1b As shown, the reading mode settings page offers two modes: reading mode and standard mode, and provides preview images, such as... Figure 1a As shown, when selecting reading mode, the preview image displays a pure grayscale color display effect, such as... Figure 1b As shown, when the standard mode is selected, the preview image displays the normal display effect. However, the adjustment method for the above display effect is limited. Summary of the Invention

[0003] This application provides a screen color adjustment method, apparatus, terminal, and computer-readable storage medium. This application also provides a computer-readable storage medium to enable users to flexibly adjust the color display effect of the terminal, thereby improving the user experience.

[0004] In a first aspect, embodiments of this application provide a screen color adjustment method, comprising: determining the black-and-white level of a terminal screen based on a user's first operation or environmental parameters, wherein the black-and-white level is a parameter value used to characterize the proportion of screen colors between a first mode and a second mode, the first mode being a standard mode for screen display, and the second mode being a black-and-white mode for screen display; performing a composite processing on the first mode and the second mode based on the black-and-white level to obtain a third mode; converting the colors of the composite image based on the third mode to obtain a first display image; and controlling the screen to display the first display image.

[0005] The screen color adjustment method provided in this application adjusts specific parameter values ​​of black and white levels, determines the proportion of the first mode and the second mode based on the black and white levels, and then synthesizes a third mode. The image is displayed on the screen through the color management method of the third mode. This allows users to flexibly adjust the color display effect of the terminal. Compared with the prior art which only provides a few candidate color modes, this application embodiment can make more refined adjustments to the color performance by adjusting the parameter values, so that users can achieve a more satisfactory color mode and improve the user experience.

[0006] In one optional implementation, determining the black-and-white level of the terminal screen based on the user's first operation includes: detecting the user's second operation; responding to the second operation, entering an adjustment interface, wherein the adjustment interface displays adjustment controls for adjusting the black-and-white level; detecting the user's third operation on the adjustment controls, wherein the adjustment controls include a slider and a knob, and the third operation is dragging the knob on the slider; and determining the parameter value of the black-and-white level based on the position of the knob on the slider. By providing adjustment controls, a convenient way for the user to adjust the black-and-white level parameter value is provided, and the user can adjust the screen color by sliding the knob. Optionally, the adjusted effect can also be displayed in the image on the adjustment interface, so that the user can see the color adjustment effect corresponding to the currently set adjustment knob in real time while operating in the adjustment interface.

[0007] In one of the alternative implementations, the standard mode is used to convert the colors of the composite image of the terminal's operating system to the screen's color gamut according to the first 3D-LUT; the black and white mode is used to convert the composite image to a grayscale image according to the second 3D-LUT.

[0008] In one optional implementation, the first mode and the second mode are composited based on their black-and-white levels. This includes weighting the first and second 3D-LUTs according to their black-and-white levels to obtain a third 3D-LUT. The third mode is used to change the composited image to a display effect corresponding to the black-and-white level according to the third 3D-LUT. The composited processing of the first and second modes can be a linear addition of the effects of the first and second modes.

[0009] In one optional implementation, the first 3D-LUT and the second 3D-LUT include the mapping relationship of multiple sampling points within the operating system's synthesized color gamut. A weighted calculation is performed on the first 3D-LUT and the second 3D-LUT based on their black-and-white levels to obtain a third 3D-LUT. This includes: for each sampling point within the operating system's synthesized color gamut, determining the three-dimensional color value corresponding to the first 3D-LUT and the three-dimensional color value corresponding to the second 3D-LUT, wherein the three-dimensional color value is a color value represented by a three-dimensional data sequence; determining the weights of the three-dimensional color values ​​corresponding to the first 3D-LUT and the second 3D-LUT based on their black-and-white levels, and performing a weighted calculation to obtain the three-dimensional color value corresponding to the third 3D-LUT for each sampling point within the synthesized color gamut; and obtaining the third 3D-LUT based on the calculation result. Since the 3D-LUT table includes a one-to-one mapping between multiple sets of input 3D color values ​​and output 3D color values, the compositing process can be performed by linearly weighting the corresponding two output color values ​​found in the first 3D-LUT and the second 3D-LUT for the same input color value, and then obtaining the composite color value.

[0010] In one of the alternative implementations, the color of the composite image is converted according to the third mode to obtain the first display image, including: generating a configuration file according to the third 3D-LUT, wherein the configuration file is used to configure the mapping relationship of the hardware circuit logic in the target chip; updating the configuration of the target chip according to the configuration file; and inputting the electrical signal of the composite image to the target chip so that the hardware circuit logic maps the electrical signal of the composite image to the electrical signal of the first display image according to the mapping relationship of the configuration file.

[0011] In one optional implementation, a configuration file is generated based on the third 3D-LUT, including: obtaining the 3D-LUTs corresponding to other configured color modes; combining the mapping relationship of the third 3D-LUT with the mapping relationships of all other configured color modes to obtain a fourth 3D-LUT; and generating a configuration file based on the fourth 3D-LUT, wherein the configuration file is used to configure the mapping relationship of the hardware circuit logic as the mapping relationship of the fourth 3D-LUT. It should be noted that the combination of mapping relationships of two 3D-LUTs is a different processing method than the synthesis of two modes. The combination of mapping relationships of two 3D-LUTs involves combining the mapping transformation relationship. Taking the combination of the third 3D-LUT and the fifth 3D-LUT as an example, the output color value of the third 3D-LUT is used as the input color value of the fifth 3D-LUT to find the output color value in the fifth 3D-LUT corresponding to the input color value of the third 3D-LUT.

[0012] In one of the alternative implementations, controlling the screen to display a first display image includes: inputting an electrical signal of the first display image to the display driver integrated circuit of the screen to cause the screen to display the first display image.

[0013] In one of the alternative implementations, the environmental parameter is either ambient light level or the current time.

[0014] In one alternative implementation, after compositing the first mode and the second mode according to the degree of black and white to obtain the third mode, and before converting the color of the composite image according to the third mode to obtain the first display image, the method further includes: detecting a fourth operation by the user; and enabling the third mode in response to the fourth operation.

[0015] Secondly, embodiments of this application provide a screen color adjustment device for executing the screen color adjustment method as described in the first aspect and any of its optional implementations. The screen color adjustment device includes: a first determining module, configured to determine the black-and-white level of the terminal screen based on a user's first operation or environmental parameters, wherein the black-and-white level is a parameter value representing the proportion of the screen's color between a first mode and a second mode, the first mode being a standard mode for screen display, and the second mode being a black-and-white mode for screen display; a first execution module, configured to perform a synthesis process on the first mode and the second mode based on the black-and-white level to obtain a third mode; a second execution module, configured to convert the color of the synthesized image based on the third mode to obtain a first display image; and a control module, configured to control the screen to display the first display image.

[0016] In one of the alternative implementations, the standard mode is used to convert the colors of the composite image of the terminal's operating system to the screen's color gamut according to the first 3D-LUT; the black and white mode is used to convert the composite image to a grayscale image according to the second 3D-LUT.

[0017] In one of the optional implementations, the first execution module includes: a first calculation module, used to perform weighted calculations on the first 3D-LUT and the second 3D-LUT to obtain a third 3D-LUT, wherein the third mode is used to change the composite image to a display effect corresponding to the degree of black and white according to the third 3D-LUT.

[0018] In one optional implementation, the first 3D-LUT and the second 3D-LUT include a mapping relationship of multiple sampling points within the operating system's synthesized color gamut space. The first calculation module includes: a second determination module, used to determine the three-dimensional color value corresponding to the first 3D-LUT and the three-dimensional color value corresponding to the second 3D-LUT for each sampling point within the operating system's synthesized color gamut space, wherein the three-dimensional color value is a color value represented by a three-dimensional data sequence; a third determination module, used to determine the weight of the three-dimensional color value corresponding to the first 3D-LUT and the weight of the three-dimensional color value corresponding to the second 3D-LUT based on the degree of black and white, and perform a weighted calculation to obtain the three-dimensional color value corresponding to the third 3D-LUT for each sampling point within the synthesized color gamut space; and a second calculation module, used to obtain the third 3D-LUT based on the calculation result.

[0019] In one of the optional implementations, the first conversion module includes: a first generation module, used to generate a configuration file according to a third 3D-LUT, wherein the configuration file is used to configure the mapping relationship of the hardware circuit logic in the target chip; an update module, used to update the configuration of the target chip according to the configuration file; and a first input module, used to input the electrical signal of the composite image to the target chip, so that the hardware circuit logic maps the electrical signal of the composite image to the electrical signal of the first display image according to the mapping relationship of the configuration file.

[0020] In one of the optional implementations, the first generation module includes: an acquisition module for acquiring 3D-LUTs corresponding to other configured color modes; a second execution module for combining the mapping relationship of the third 3D-LUT with the mapping relationships of all other configured 3D-LUTs corresponding to color modes to obtain a fourth 3D-LUT; and a second generation module for generating a configuration file based on the fourth 3D-LUT, wherein the configuration file is used to configure the mapping relationship of the hardware circuit logic as the mapping relationship of the fourth 3D-LUT.

[0021] In one of the alternative implementations, the control module includes: a second input module for inputting the electrical signal of the first display image to the display driver integrated circuit of the screen, so that the screen displays the first display image.

[0022] In one of the optional implementations, the first determining module includes: a first detection module for detecting a second user operation; a third execution module for responding to the second operation and entering an adjustment interface, wherein the adjustment interface displays adjustment controls for adjusting the black and white level; a second detection module for detecting a third user operation on the adjustment controls, wherein the adjustment controls include a slider and an adjustment button, and the third operation is dragging the adjustment button on the slider; and a third determining module for determining a parameter value for the black and white level based on the position of the adjustment button on the slider.

[0023] In one of the alternative implementations, the environmental parameter is either ambient light level or the current time.

[0024] In one alternative implementation, the device further includes: a third detection module, configured to detect a fourth user operation after the first mode and the second mode are synthesized according to the black-and-white level to obtain a third mode, and before the color of the synthesized image is converted according to the third mode to obtain a first display image; and a fourth execution module, configured to enable the third mode in response to the fourth operation.

[0025] Thirdly, embodiments of this application provide a terminal, including: a touch screen, including a touch sensor and a display screen; one or more processors; a memory; multiple applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the terminal, cause the terminal to perform a screen color adjustment method as described in the first aspect and any of its alternative implementations.

[0026] Specifically, when the instruction is executed by the terminal, it causes the terminal to perform the following steps:

[0027] Based on the user's first operation or environmental parameters, the black-and-white level of the terminal screen is determined. The black-and-white level is a parameter value used to characterize the proportion of the screen's colors between the first mode and the second mode. The first mode is the standard mode for screen display, and the second mode is the black-and-white mode for screen display. Based on the black-and-white level, the first mode and the second mode are combined to obtain a third mode. Based on the third mode, the colors of the combined image are converted to obtain the first display image. The screen is then controlled to display the first display image.

[0028] The terminal provided in this application adjusts specific parameter values ​​for the black-and-white level, determines the proportion of the first mode and the second mode based on the black-and-white level, and then synthesizes a third mode. The image is displayed on the screen through the color management method of the third mode. This allows users to flexibly adjust the color display effect of the terminal. Compared with the prior art which only provides a few candidate color modes, this application embodiment can make more refined adjustments to the color performance by adjusting the parameter values, so that users can achieve a more satisfactory color mode and improve the user experience.

[0029] In one alternative implementation, when the instruction is executed by the terminal, causing the terminal to determine the black-and-white level of the terminal screen based on the user's first operation, the following steps are performed: detecting the user's second operation; in response to the second operation, entering the adjustment interface, wherein the adjustment interface displays adjustment controls for adjusting the black-and-white level; detecting the user's third operation on the adjustment controls, wherein the adjustment controls include a slider and an adjustment button, and the third operation is the operation of dragging the adjustment button on the slider; determining the parameter value of the black-and-white level based on the position of the adjustment button on the slider.

[0030] In one of the alternative implementations, the standard mode is used to convert the colors of the composite image of the terminal's operating system to the screen's color gamut according to the first 3D-LUT; the black and white mode is used to convert the composite image to a grayscale image according to the second 3D-LUT.

[0031] In one optional implementation, when the instruction is executed by the terminal, causing the terminal to perform a composite processing of the first mode and the second mode according to the black-and-white level, the following steps are performed: a weighted calculation is performed on the first 3D-LUT and the second 3D-LUT to obtain a third 3D-LUT, wherein the third mode is used to change the composite image to a display effect corresponding to the black-and-white level according to the third 3D-LUT. By performing a composite processing of the first mode and the second mode, the effects of the first mode and the second mode can be linearly added together.

[0032] In one optional implementation, the first 3D-LUT and the second 3D-LUT include a mapping relationship of multiple sampling points within the operating system's synthesized color gamut. When the instruction is executed by the terminal, causing the terminal to perform a weighted calculation on the first 3D-LUT and the second 3D-LUT based on the black-and-white level determined by the first operation to obtain the third 3D-LUT, the following steps are performed: For each sampling point within the operating system's synthesized color gamut, determine the three-dimensional color value corresponding to the first 3D-LUT and the three-dimensional color value corresponding to the second 3D-LUT, wherein the three-dimensional color value is a color value represented by a three-dimensional data sequence; determine the weights of the three-dimensional color values ​​corresponding to the first 3D-LUT and the second 3D-LUT based on the black-and-white level, and perform a weighted calculation to obtain the three-dimensional color value corresponding to the third 3D-LUT for each sampling point within the synthesized color gamut; obtain the third 3D-LUT based on the calculation result.

[0033] In one of the alternative implementations, when the instruction is executed by the terminal, causing the terminal to convert the color of the composite image according to the third mode to obtain the first display image, the following steps are performed: generating a configuration file according to the third 3D-LUT, wherein the configuration file is used to configure the mapping relationship of the hardware circuit logic in the target chip; updating the configuration of the target chip according to the configuration file; and inputting the electrical signal of the composite image to the target chip so that the hardware circuit logic maps the electrical signal of the composite image to the electrical signal of the first display image according to the mapping relationship of the configuration file.

[0034] In one of the alternative implementations, when the instruction is executed by the terminal, causing the terminal to generate a configuration file based on the third 3D-LUT, the following steps are performed: obtaining the 3D-LUTs corresponding to other configured color modes; combining the mapping relationship of the third 3D-LUT with the mapping relationships of all other configured color modes to obtain the fourth 3D-LUT; generating a configuration file based on the fourth 3D-LUT, wherein the configuration file is used to configure the mapping relationship of the hardware circuit logic as the mapping relationship of the fourth 3D-LUT.

[0035] In one of the alternative implementations, when the instruction is executed by the terminal, causing the terminal to control the screen to display the first display image, the following steps are performed: the electrical signal of the first display image is input to the display driver integrated circuit of the screen, so that the screen displays the first display image.

[0036] In one of the alternative implementations, the environmental parameter is either ambient light level or the current time.

[0037] In one of the alternative implementations, when the instruction is executed by the terminal, after the terminal performs the composite processing of the first mode and the second mode according to the black and white level to obtain the third mode, and before performing the conversion of the composite screen color according to the third mode to obtain the first display screen, the terminal performs the following steps: detects the user's fourth operation; in response to the fourth operation, enables the third mode.

[0038] Fourthly, embodiments of this application provide a terminal, the terminal comprising: a touch screen including a touch sensor and a display screen; one or more processors; a memory; multiple applications; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the terminal, cause the terminal to perform a screen color adjustment method as described in the first aspect and any alternative implementation thereof.

[0039] Fifthly, embodiments of this application provide a screen color adjustment device, which is used to execute the screen color adjustment method as described in the first aspect and any of its optional implementations. The screen color adjustment device includes: a first determining module, used to determine the black-and-white level of the terminal screen based on a user's first operation or environmental parameters, wherein the black-and-white level is a parameter value used to characterize the proportion of the screen's color between a first mode and a second mode, the first mode being a standard mode for screen display, and the second mode being a black-and-white mode for screen display; a first execution module, used to perform a synthesis process on the first mode and the second mode based on the black-and-white level to obtain a third mode; a second execution module, used to convert the color of the synthesized image based on the third mode to obtain a first display image; and a control module, used to control the screen to display the first display image.

[0040] In a sixth aspect, embodiments of this application provide a computer-readable storage medium including computer instructions that, when executed on a terminal, cause the terminal to perform a screen color adjustment method as provided in the first aspect and any of its optional implementations.

[0041] In a seventh aspect, embodiments of this application provide a computer program product containing instructions that, when the computer program product is run on a terminal, cause the terminal to execute the screen color adjustment method provided by the first aspect and any of its optional implementations.

[0042] In one possible design, the program in aspect seven can be stored wholly or partially on a storage medium packaged with the processor, or it can be stored wholly or partially on a memory not packaged with the processor.

[0043] Eighthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the screen color adjustment method provided by the first aspect and any of its optional implementations.

[0044] It should be understood that the second to sixth aspects of the embodiments of this application are consistent with the technical solutions of the first aspect of the embodiments of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be described again. Attached Figure Description

[0045] Figure 1a This is an interactive schematic diagram of a screen color adjustment method in related technologies;

[0046] Figure 1b This is an interactive illustration of a screen color adjustment method in related technologies. Figure 2 ;

[0047] Figure 2 This is a flowchart of a screen color adjustment method according to an embodiment of this application;

[0048] Figure 3 This is an interactive schematic diagram of a screen color adjustment method according to an embodiment of this application;

[0049] Figure 4 This is an interactive illustration of a screen color adjustment method according to an embodiment of this application. Figure 2 ;

[0050] Figure 5 This is an interactive illustration of a screen color adjustment method according to an embodiment of this application. Figure 3 ;

[0051] Figure 6 This is an interactive illustration of a screen color adjustment method according to an embodiment of this application. Figure 4 ;

[0052] Figure 7 This is an interactive illustration of a screen color adjustment method according to an embodiment of this application. Figure 5 ;

[0053] Figure 8 This is an interactive illustration of a screen color adjustment method according to an embodiment of this application. Figure 6 ;

[0054] Figure 9 This is an interactive illustration of a screen color adjustment method according to an embodiment of this application. Figure 7 ;

[0055] Figure 10 This is an interactive illustration of a screen color adjustment method according to an embodiment of this application. Figure 8 ;

[0056] Figure 11 This is an interactive illustration of a screen color adjustment method according to an embodiment of this application. Figure 9 ;

[0057] Figure 12 This is a structural block diagram of a screen color adjustment device according to an embodiment of this application;

[0058] Figure 13 This is a structural block diagram of a terminal according to an embodiment of this application. Detailed Implementation

[0059] The terminology used in the implementation section of this application is only for explaining specific embodiments of this application and is not intended to limit the embodiments of this application.

[0060] This application provides a screen color adjustment method that allows users to adjust the black and white level of the terminal screen color display, thereby improving the user experience.

[0061] The screen color adjustment method provided in this application can be applied to terminals including screens to adjust the color display effect of the terminal screen. Terminal types include, but are not limited to, (smart) phones, tablets, laptops, monitors, and televisions. The terminal screen can be any type of display device, including but not limited to LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode) displays, MicroLED (micro-Light-Emitting Diode) displays, quantum dot display devices, etc.

[0062] Figure 2 A flowchart of one embodiment of a screen color adjustment method provided in this application is shown below. Figure 2 As shown, the above screen color adjustment method may include the following steps:

[0063] 201. Determine the black-and-white level of the terminal screen based on the user's first operation or environmental parameters.

[0064] Black-white level is a parameter value used to represent the weight of the influence of the first mode or the second mode on changes in screen color saturation. Accordingly, the first operation is the operation of setting the specific parameter value of the black-white level.

[0065] For example, the first operation could be that the user enters a specific value for the black and white level in the input box used to set the black and white level, or the user could slide an adjustment knob to set the black and white level, and determine the specific value based on the knob's position on the progress bar. Environmental parameters are parameters related to the environment in which the terminal is located. For example, environmental parameters could be the brightness of the ambient light or the current time.

[0066] In this model, the weighting coefficients of the two modes are added together to a fixed value. Therefore, once the influence weight of one mode is determined, the influence weight of the other mode can be determined. The black-and-white level parameter can use a preset unit of measurement. For example, the black-and-white level can be represented by a percentage value between 0% and 100%, with the weighting coefficients of the two modes added together to 1. Alternatively, the black-and-white level can also be represented by any value between 0 and 1, with the weighting coefficients of the two modes added together to 1. The following example uses the influence weight of the black-and-white level as the first mode on the change in screen color saturation. Similarly, the implementation method can be derived in the same way when the black-and-white level is the influence weight of the second mode on the change in screen color saturation.

[0067] Since the black-and-white level can determine the degree of bias of the screen's colors between the first mode and the second mode, for example, if the black-and-white level is set to 0.2, it means that the way the screen colors are presented is biased 20% towards the first mode and 80% towards the second mode.

[0068] The first mode described above is the standard screen display mode, and the second mode described above is the black-and-white screen display mode. The standard mode can be an overlay of other color adjustment modes enabled in the operating system. For example, if the operating system adds a color filter (such as green) to the screen, then the standard mode is the mode corresponding to the display effect of adding the green filter. The black-and-white mode is used to convert the screen image into a grayscale image. A grayscale image is an image where each pixel has only one sampled color, and grayscale images are displayed from the darkest black to the brightest white, as well as multiple levels of gray in between.

[0069] The first mode described above is used to perform color conversion on the image according to a first mapping table, mapping the input color to the output color. The first mapping table is a mapping table between different input color values ​​and their corresponding output color values. Optionally, the color values ​​can be three-dimensional, that is, three-dimensional color values. The three-dimensional color values ​​are represented by a three-dimensional data sequence. Further, the three-dimensional color values ​​can be RGB (Red-Green-Blue) color values, that is, the three dimensions of the three-dimensional data sequence represent the intensity of red, green, and blue, respectively. When performing color conversion on the image using the first mode, for each pixel value in the image, the corresponding output color value is determined according to the first mapping table to obtain the color-converted image. In an optional example, the first mode can be used to convert color values ​​in a first color gamut space to color values ​​in a second color gamut space.

[0070] Specifically, the first mapping table can be a first three-dimensional display lookup table (3D-LUT). A 3D-LUT is a mapping table between input color values ​​and output color values, including multiple sets of one-to-one mappings between input and output color values. If the composite image is converted according to the standard mode, then the standard mode uses the color value of each pixel in the composite image as the input color value of the first 3D-LUT, looks up the corresponding output color value, and obtains the color value of each pixel in the composite image after color conversion (mapping), thereby achieving color conversion of the composite image. Similarly, if the composite image is converted according to the grayscale mode, then the grayscale mode uses the color value of each pixel in the composite image as the input color value of the second 3D-LUT, looks up the corresponding output color value, and obtains the color value of each pixel in the composite image after color conversion (mapping), thereby achieving color conversion of the composite image.

[0071] In a 3D-LUT, the color values ​​are three-dimensional. These three-dimensional color values ​​are represented by a three-dimensional data sequence, with the three dimensions representing the intensity of red, green, and blue, respectively. Given a color, its mapped three-dimensional color value can be found; that is, the given color can be converted to the target color based on the mapping relationship. Specifically, the three-dimensional color value of the corresponding output color can be determined based on the given color's three-dimensional color value. Table 1 shows an example of an optional 3D-LUT. The 3D-LUT in Table 1 can convert pixel values ​​in the input color gamut space to pixel values ​​in the output color gamut space.

[0072]

[0073] Table 1 shows a partial mapping of an example 3D-LUT table.

[0074] Table 1 shows a one-to-one mapping of multiple sets of input color values ​​and output color values ​​in a 3D-LUT. When mapping a first screen (such as a composite screen of an operating system) is required, the first screen includes multiple pixels. The color value of each pixel is found in the input color values ​​of the 3D-LUT, and then the corresponding output color value is determined. After the conversion of each pixel is completed, the second screen is the image obtained by color conversion through the 3D-LUT table. That is, the color value of each pixel in the second screen is obtained by conversion based on the color value of the corresponding pixel in the first screen through the mapping relationship found in the 3D-LUT table.

[0075] Table 2 shows an example of an optional 3D-LUT. The 3D-LUT in the example in Table 2 can convert color pixel values ​​to pure grayscale pixel values, which can be used to convert an image into a pure grayscale image.

[0076]

[0077] Table 2 shows a partial mapping of an example 3D-LUT table.

[0078] The grayscale value can be any positive integer between 0 and 255 (inclusive), used to represent the intensity of grayscale. Since it is a pure grayscale color, two dimensions can be specified as 0 in the output color value. For example, as shown in Table 2, the first two dimensions are kept at 0, and the grayscale value is represented by the value of the third dimension. In some optional implementations, the first mode can also be a black and white mode with some color. In this case, the values ​​of the first two dimensions of each output color value can be set to fixed values ​​so that the output color value carries the corresponding color. For example, to make the black and white mode have a green tint, one configuration is to set the first two dimensions of each output color value to 204 and 232, and the change in the value of the last dimension reflects the change in grayscale intensity.

[0079] Since tables can only store mappings for discrete values ​​and cannot list all mappings for continuous values, 3D-LUT tables store mappings for a subset of sampled points of the input color value. Mappings for other colors (excluding sampled points) can be calculated using interpolation. Table 1 is an example of a 3D-LUT table and is not used to limit the values ​​of the sampled points for the input color value.

[0080] Similar to the first mode, the second mode is used to perform color conversion on the image according to a second mapping table, which can be a second 3D-LUT that is different from the first 3D-LUT.

[0081] Optionally, the second mode can be used to convert the screen displayed on the terminal to a black and white effect, so that the terminal displays a pure grayscale image. Further, the range of pixel grayscale values ​​after the first 3D-LUT conversion can be set to a preset range, for example, the grayscale value range can be 0-255, or 50-200. Alternatively, in other optional embodiments, the screen color display effect obtained after the second mode conversion can also be a color gamut containing colors other than black and white. For example, the second mode can convert a normal color image into a greenish grayscale image (the first mode can be considered a half-color mode). Regardless of the color bias of the grayscale image, it can be obtained through the preset first 3D-LUT. After the second mode conversion, a smaller color gamut image will be obtained. The first mode is the display effect of the terminal without superimposing a black and white effect.

[0082] In one alternative implementation, the black-and-white level can be determined by receiving a first operation from the user adjusting the black-and-white level of the terminal's screen. For example, the user can adjust the parameter value of the black-and-white level by adjusting the interactive controls provided by the software module.

[0083] In another alternative implementation, the black-and-white level can be determined by environmental parameters. Environmental parameters are those related to the environment in which the terminal is located. For example, an environmental parameter could be the brightness of ambient light. In one possible implementation, the phone is equipped with a photosensitive element for sensing ambient light brightness; optionally, this photosensitive element can be located next to the camera above the front display screen of the phone. This photosensitive element can detect the ambient brightness and adjust the black-and-white level accordingly. For example, lower brightness indicates a darker environment, which can lean more towards a first mode (such as reading mode, black-and-white mode, grayscale mode, half-color mode, etc.), and the black-and-white level parameter can be increased, and vice versa. Alternatively, the environmental parameter could also be the current time, leaning towards a second mode during daytime and a first mode during nighttime.

[0084] 202. Based on the degree of black and white, the first mode and the second mode are synthesized to obtain the third mode.

[0085] During the compositing process, the influence weights of the first mode on the third mode and the second mode on the third mode are determined according to the specific values ​​of the vividness. For example, if the vividness is configured by the user to be 0.6 and the vividness value is pre-configured to represent the proportion of the first mode, then during the superposition, the third mode can be synthesized based on 0.6 times the first mode and 0.4 times the second mode.

[0086] Specifically, in one optional example, the first mapping table corresponding to the first mode is the first 3D-LUT, and the second mapping table corresponding to the second mode is the second 3D-LUT. Accordingly, step 202 may specifically include: performing a weighted calculation on the first 3D-LUT and the second 3D-LUT according to the black and white level to obtain the third 3D-LUT.

[0087] After determining the black and white level, the weights of the first and second 3D-LUTs can be determined based on the parameter values ​​of the black and white level, and the third 3D-LUT can be obtained by weighted calculation.

[0088] The first 3D-LUT is a mapping table used by the terminal operating system to convert the composite image from its color gamut to the third color gamut in the standard mode of normal color display. The second 3D-LUT is used to map the screen from a color effect to a grayscale or half-color black-and-white mode. The third color gamut is a specified color gamut, for example, it can be the screen color gamut, optional, or other user-specified or pre-set color gamut. The third 3D-LUT is a mapping table obtained by weighting the first and second 3D-LUTs according to the user-defined black-and-white level. In other words, the third 3D-LUT is a mapping table determined based on the user's adjustment of the black-and-white level, used to convert the screen display effect to the black-and-white level required by the user.

[0089] In one example, the mapping tables of the first and second 3D-LUTs can map only a subset of sampled points within the color gamut. For any sampled point p(p1, p2, p3) within the color gamut, the weighted calculation formula used to calculate the pixel value mapped by the third 3D-LUT can be expressed as:

[0090] z = a*x + (1-a)*y,

[0091] Where z is the pixel value z(z1, z2, z3) after mapping by the third 3D-LUT, a is the parameter value of black and white level, which is determined by the user setting between 0 and 1, x is the pixel value x(x1, x2, x3) after mapping by the first 3D-LUT to p, and y is the pixel value y(y1, y2, y3) after mapping by the second 3D-LUT to p. Specifically, for the formula z = a*x + (1-a)*y, calculate z1 = a*x1 + (1-a)*y1, z2 = a*x2 + (1-a)*y2, z3 = a*x3 + (1-a)*y3 respectively.

[0092] After calculating the mapped pixel value of the third 3D-LUT for each sampling point, the third 3D-LUT is obtained.

[0093] Accordingly, step 202 may include the following steps:

[0094] 2021. For each sampling point in the color gamut space, determine the three-dimensional color value corresponding to the first 3D-LUT and the three-dimensional color value corresponding to the second 3D-LUT;

[0095] For example, for sampling point “50,60,60”, the three-dimensional color value corresponding to the first 3D-LUT is “55,55,55”, and the three-dimensional color value corresponding to the second 3D-LUT is “55,65,60”.

[0096] 2022. Determine the weights of the three-dimensional color values ​​corresponding to the first 3D-LUT and the second 3D-LUT based on the degree of black and white, and perform weighted calculations to obtain the three-dimensional color values ​​mapped to each sampling point of the third 3D-LUT.

[0097] For example, if the black-and-white level is 0.3, the weight of the 3D color value corresponding to the first 3D-LUT is 0.3, and the weight of the 3D color value corresponding to the second 3D-LUT is (1-0.3) = 0.7. After weighted calculation, the 3D color value corresponding to the sampling point "50,60,60" for the third 3D-LUT is 0.3*(55,55,55) + 0.7*(55,65,60) = (55, 62, 58.5).

[0098] 2023. The third 3D-LUT was obtained based on the calculation results.

[0099] After performing the calculations in steps 2021 and 2022 above for all sampling points, the three-dimensional color value corresponding to each sampling point of the third 3D-LUT can be obtained.

[0100] 203. Convert the colors of the composite image according to the third mode to obtain the first display image.

[0101] After obtaining the third 3D-LUT, it can be used to map the composite image. Essentially, this involves finding the corresponding color value for each pixel's 3D color value in the composite image according to the mapping relationship within the third 3D-LUT. Since the third 3D-LUT maps sampling points, if the 3D color value of any pixel in the composite image is not among the input color values ​​(color values ​​before mapping) of the third 3D-LUT, interpolation calculations can be performed on the third 3D-LUT to determine the 3D color value mapped to that pixel in the composite image.

[0102] Optionally, the composite image may be mapped not only through the third 3D-LUT, but also through other 3D-LUTs. The aforementioned mapping of the composite image using the third 3D-LUT refers to the terminal using a corresponding 3D-LUT for further mapping based on other settings that affect the screen's color display effect, to obtain the first display image. Whether further mapping is performed is not limited in this embodiment.

[0103] It should be noted that if further mapping is required after the third 3D-LUT, the mapping tables of the third 3D-LUT and the other 3D-LUTs can be superimposed to obtain a total 3D-LUT (the fourth 3D-LUT).

[0104] Tables 3 to 5 are provided below to illustrate specific implementation methods of overlaying 3D-LUTs.

[0105]

[0106] Table 3 shows a partial mapping of the third 3D-LUT table in an example.

[0107]

[0108] Table 4 shows a partial mapping of the fifth 3D-LUT table to be overlaid in an example.

[0109]

[0110]

[0111] Table 5 shows the partial mapping of the fourth 3D-LUT table obtained after overlaying an example.

[0112] Taking the superposition of the third 3D-LUT and the fifth 3D-LUT (other 3D-LUTs) as an example, Table 3 shows the partial mapping relationship of the third 3D-LUT, and Table 4 shows the partial mapping relationship of the fifth 3D-LUT to be superimposed with the third 3D-LUT. Correspondingly, after superimposing the partial mapping relationship of the third 3D-LUT shown in Table 3 and the partial mapping relationship of the fifth 3D-LUT shown in Table 4, the partial mapping relationship of the fourth 3D-LUT shown in Table 5 is obtained.

[0113] As shown in Tables 3 to 5, when two 3D-LUTs are superimposed, the color value corresponding to the color value mapped by the first 3D-LUT (corresponding to Table 4 in the embodiments shown in Tables 3 to 5: the fifth 3D-LUT) is first searched in the second 3D-LUT (corresponding to Table 3 in the embodiments shown in Tables 3 to 5: the third 3D-LUT). For example, for an input color value (sampling point) of (50, 50, 60) in Table 3, according to the mapping relationship shown in Table 3, the corresponding output color value is (20, 20, 52). For this color value (20, 20, 52), according to the mapping relationship shown in Table 4, the corresponding output color value for the input color value (20, 20, 52) is (21, 22, 53). Therefore, by superimposing (combining) Tables 3 and 4, it can be determined that the fourth 3D-LUT outputs (21, 22, 53) for the sampling point (50, 50, 60), and so on, to obtain the fourth 3D-LUT shown in Table 5. Color values ​​that cannot be found in the sampling points (i.e., input color values) can be calculated through interpolation.

[0114] Optionally, step 203 may include the following steps 2031 to 2035:

[0115] 2031. Obtain the 3D-LUT corresponding to other configured color modes.

[0116] 2032. Overlay the third 3D-LUT with all other 3D-LUTs corresponding to the configured color modes to obtain the fourth 3D-LUT.

[0117] 2033. After obtaining the total fourth 3D-LUT, generate the configuration file for the fourth 3D-LUT.

[0118] The configuration file mentioned above is used to configure the mapping relationship of the hardware circuit logic in the target chip. The target chip is the chip in the terminal that uses its hardware circuit logic to map the input screen to the output screen according to the configured 3D-LUT. For example, the target chip can be the 3D-LUT chip configured on the AP chip (application process) in the mobile phone.

[0119] 2034. Configure the target chip using the configuration file corresponding to the fourth 3D-LUT to update the configuration of the target chip.

[0120] 2035. After the operating system generates each composite screen, it inputs the electrical signal of the composite screen to the target chip so that the hardware circuit logic of the target chip maps the electrical signal of the composite screen to the electrical signal of the first display screen according to the mapping relationship in the configuration file.

[0121] 204. Control the screen to display the first display screen.

[0122] The first display image is the image to be transmitted to the DDIC (Display Driver Integrated Circuit) of the screen. The DDIC is the screen's driving circuit. After receiving the electrical signal of the first display image, it drives the screen to display the first display image through hardware circuit logic. Steps 201 to 203 can be executed by the terminal's processor, such as the AP chip in a mobile phone. After receiving the first display image, step 204 can involve the AP chip inputting the electrical signal of the first display image to the DDIC of the screen to control the screen to display the first display image.

[0123] As an optional implementation, the process for determining the degree of black and white in a specific application scenario is further described in detail below:

[0124] First, users can tap the "Settings" icon on their phone's home screen (e.g., ...). Figure 3(As shown), enter the phone's "Settings" page, and then click the "Reading Mode Settings" option displayed on the phone screen (as shown). Figure 4 As shown), enter the adjustment interface for adjusting the phone's reading mode (as shown). Figures 5 to 9 (As shown in any of the schematic diagrams).

[0125] The aforementioned adjustment interface displays interactive controls provided by the adjustment software module. Users can use these controls to set specific parameters such as the black-and-white level in reading mode. Figure 5 As shown, the interactive control 301 includes an adjustment button 302 and a slider 304. The user can drag the adjustment button 302 to different positions on the slider of the progress bar adjustment control 301. The user can also see the color display effect of the preview figure 303 when the adjustment button 302 is in different positions, so as to predict the current screen color display effect.

[0126] Figure 5 As shown, the adjustment knob 302 is dragged to the left end of the slider 304. Correspondingly, the preview image 303 shows the color effect of the leftmost black and white mode (first mode). Figure 6 When the adjustment knob 302 is dragged to the right end of the slider 304, the preview image 303 displays the color effect of the rightmost normal mode (second mode). Figure 7 When the adjustment knob 302 is dragged to the middle position of the slider 304, the preview image 303 shows the color effect of the black and white level corresponding to that position. One optional implementation is that when the adjustment knob 302 is dragged to any position, the adjustment software module can determine the corresponding value based on the position of the adjustment knob 302 on the slider 304, as the black and white level. In one example, the black and white level represents the weighting coefficient of the black and white mode; therefore, the black and white level is the ratio of the first length to the length of the slider 304, where the first length refers to the distance between the adjustment knob 302 and the left end.

[0127] Optional, such as Figures 5 to 9 As shown in any of the diagrams, the adjustment interface may also include an "automatic adjustment" setting, such as... Figure 8 As shown, if the user sets the "Auto Adjustment" switch 305 to the on state, the interactive control 301 turns gray and is disabled. Under this setting, the black and white level can be determined according to the intensity of ambient light or the current time, based on a preset correspondence.

[0128] Optional, such as Figures 5 to 9 As shown in any of the illustrations, the adjustment interface also offers several options for overlaying monochrome effects onto the black and white effect, such as... Figure 9As shown, if the user sets the "Effect 1" checkbox 306 to the selected state, the interactive control 301 and switch 305 turn gray and are disabled. The screen is set to display a monochrome color effect overlaid on the black and white mode, and the effect is displayed through preview image 303.

[0129] After the user has configured the reading mode (third mode) settings as described above, the reading mode can be easily turned on or off, such as... Figure 10 and Figure 11 The illustration shows one possible implementation, such as... Figure 10 As shown, when a user swipes down a certain distance from the top of the screen while any page is displayed on the screen, the following will appear: Figure 11 The drop-down menu shown allows users to click the "Reading Mode" icon to turn reading mode on or off. That is, after performing step 202, which combines the first and second modes based on their black-and-white levels to obtain the third mode, and before performing step 203, which converts the colors of the combined image based on the third mode to obtain the first display image, the screen color adjustment method provided in this application embodiment further includes:

[0130] The user's fourth action was detected;

[0131] In response to the fourth action, the third mode is activated.

[0132] To further illustrate the screen color adjustment method provided in the embodiments of this application, an exemplary implementation in an application scenario is provided below.

[0133] First, the user clicks on such Figure 3 The "Settings" icon shown leads to the system settings application interface, as follows: Figure 4 As shown. Click as... Figure 4 After selecting the "Reading Mode Settings" option, proceed to... Figure 5 The adjustment interface is shown. In this interface, the user can drag the adjustment knob 302 on the progress bar 304, causing the operating system to determine the black and white level based on the position of the knob 302, and then determine the weight of the black and white mode and the color mode (i.e., the standard mode described in this embodiment) based on the black and white level. Subsequently, the black and white mode and the color mode are linearly synthesized according to their weights to obtain a third mode. The color display effect of the currently set third mode is then shown to the user through the color changes in the preview figure 303.

[0134] If the user adjusts the adjustment knob 302 to the following position... Figure 6As shown, the user can exit the current adjustment interface. For example, the user can click the left arrow in the upper left corner of the interface to return to the previous menu; or, the user can directly perform a gesture to return to the desktop, such as swiping their finger upwards a preset distance from near the bottom center of the screen. After exiting the current interface, the reading mode settings are confirmed.

[0135] In this application scenario, the reading mode setting by the user does not necessarily take effect immediately. It is necessary to determine whether reading mode is currently enabled. One possible approach is, as follows: Figure 10 As shown, when a user swipes down a certain distance from the top of the screen while any page is displayed on the screen, the following will appear: Figure 11 As shown in the drop-down menu, after the user clicks the "Reading Mode" icon to activate Reading Mode, Reading Mode is enabled and its effects on screen color adjustment take effect, processing the screen image according to the third mode before the user exits the adjustment interface.

[0136] Specifically, the operating system can generate a configuration file based on the third 3D-LUT corresponding to the third mode, and configure the configuration file to the 3D-LUT chip configured on the AP chip in the mobile phone. This allows the 3D-LUT chip to perform color conversion on the input image according to the third 3D-LUT, output the converted image, and then send the converted image data to the screen's DDIC so that the screen's DDIC can drive the screen to display the converted image data.

[0137] The image input to the 3D-LUT chip is a composite image synthesized by the operating system. Specifically, the operating system can obtain all layers of each APP / system component displayed on the front end, and after compositing all layers, it obtains a composite frame to be displayed. Each composite frame is sent to the 3D-LUT chip, so that the 3D-LUT chip can use hardware circuit logic to convert the color value of each pixel in the image according to the 3D-LUT mapping relationship in the configuration file, and obtain the output image.

[0138] The screen color adjustment method provided in this application adjusts specific parameter values ​​of black and white levels, determines the proportion of the first mode and the second mode based on the black and white levels, and then synthesizes a third mode. The image is displayed on the screen through the color management method of the third mode. This allows users to flexibly adjust the color display effect of the terminal. Compared with the prior art which only provides a few candidate color modes, this application embodiment can make more refined adjustments to the color performance by adjusting the parameter values, so that users can achieve a more satisfactory color mode and improve the user experience.

[0139] It is understood that some or all of the steps or operations in the above embodiments are merely examples, and other operations or variations thereof can be performed in the embodiments of this application. Furthermore, the steps may be performed in different orders as presented in the above embodiments, and it is not necessary to perform all the operations in the above embodiments.

[0140] Figure 12 This is a schematic diagram of the structure of one embodiment of the screen color adjustment device of this application, which can be used to execute this application. Figures 2 to 11 The technical solution of the method embodiment shown is as follows: Figure 12 The screen color adjustment device shown includes:

[0141] The first determining module 41 is used to determine the black-and-white level of the terminal screen based on the user's first operation or environmental parameters. The black-and-white level is a parameter value used to characterize the proportion of the screen's colors between the first mode and the second mode. The first mode is the standard mode for screen display, and the second mode is the black-and-white mode for screen display.

[0142] The first execution module 42 is used to synthesize the first mode and the second mode according to the black and white level to obtain the third mode;

[0143] The first conversion module 43 is used to convert the colors of the composite image according to the third mode to obtain the first display image;

[0144] The control module 44 is used to control the screen to display the first display screen.

[0145] Optionally, the standard mode is used to convert the colors of the composite image of the terminal's operating system to the color gamut of the screen according to the first 3D display lookup table 3D-LUT; the black and white mode is used to convert the composite image to a grayscale image according to the second 3D-LUT.

[0146] Optionally, the first execution module 42 includes: a first calculation module, used to perform weighted calculations on the first 3D-LUT and the second 3D-LUT to obtain a third 3D-LUT, wherein the third mode is used to change the composite image to a display effect corresponding to the degree of black and white according to the third 3D-LUT.

[0147] Optionally, the first 3D-LUT and the second 3D-LUT include the mapping relationship of multiple sampling points within the operating system's synthesized color gamut space. The first calculation module includes: a second determining module, used to determine the three-dimensional color value corresponding to the first 3D-LUT and the three-dimensional color value corresponding to the second 3D-LUT for each sampling point within the operating system's synthesized color gamut space; a third determining module, used to determine the weight of the three-dimensional color value corresponding to the first 3D-LUT and the weight of the three-dimensional color value corresponding to the second 3D-LUT based on the degree of black and white, and perform weighted calculation to obtain the three-dimensional color value corresponding to the third 3D-LUT for each sampling point within the synthesized color gamut space; and a second calculation module, used to obtain the third 3D-LUT based on the calculation results.

[0148] Optionally, the first conversion module 43 includes: a first generation module, used to generate a configuration file according to the third 3D-LUT, wherein the configuration file is used to configure the mapping relationship of the hardware circuit logic in the target chip; an update module, used to update the configuration of the target chip according to the configuration file; and a first input module, used to input the electrical signal of the composite image to the target chip, so that the hardware circuit logic maps the electrical signal of the composite image to the electrical signal of the first display image according to the mapping relationship of the configuration file.

[0149] Optionally, the first generation module includes: an acquisition module for acquiring 3D-LUTs corresponding to other configured color modes; a second execution module for superimposing the third 3D-LUT with all other 3D-LUTs corresponding to the configured color modes to obtain a fourth 3D-LUT; and a second generation module for generating a configuration file based on the fourth 3D-LUT, wherein the configuration file is used to configure the mapping relationship of the hardware circuit logic as the mapping relationship of the fourth 3D-LUT.

[0150] Optionally, the control module 44 includes: a second input module for inputting the electrical signal of the first display image to the display driver integrated circuit of the screen, so that the screen displays the first display image.

[0151] Optionally, the first determining module 41 includes: a first detection module for detecting a second user operation; a third execution module for responding to the second operation and entering an adjustment interface, wherein the adjustment interface displays adjustment controls for adjusting the black and white level; a second detection module for detecting a third user operation on the adjustment controls, wherein the adjustment controls include a slider and an adjustment button, and the third operation is dragging the adjustment button on the slider; and a third determining module for determining a parameter value of the black and white level based on the position of the adjustment button on the slider.

[0152] Optionally, the environmental parameter can be either ambient light level or current time.

[0153] Optionally, the device further includes: a third detection module, used to detect a fourth user operation after the first mode and the second mode are synthesized according to the black-and-white level to obtain a third mode, and before the color of the synthesized image is converted according to the third mode to obtain a first display image; and a fourth execution module, used to enable the third mode in response to the fourth operation.

[0154] The screen color adjustment device provided in this application adjusts specific parameter values ​​of black and white levels, determines the proportion of the first mode and the second mode based on the black and white levels, and then synthesizes a third mode. The image is displayed on the screen through the color management method of the third mode. This allows users to flexibly adjust the color display effect of the terminal. Compared with the prior art which only provides a few candidate color modes, this application embodiment can make more refined adjustments to the color performance by adjusting the parameter values, so that users can achieve a more satisfactory color mode and improve the user experience.

[0155] Figure 12 The screen color adjustment device provided in the illustrated embodiment can be used to execute this application. Figures 2 to 11 The implementation principle and technical effects of the method embodiment shown can be further referred to the relevant description in the method embodiment.

[0156] The above should be understood Figure 12 The division of the various modules in the screen color adjustment device shown is merely a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, these modules can be implemented entirely in software via processing elements; they can be fully implemented in hardware; or some modules can be implemented in software via processing elements, while others are implemented in hardware. For example, the detection module can be a separate processing element or integrated into a chip in the electronic device. The implementation of other modules is similar. Moreover, these modules can be fully or partially integrated together, or implemented independently. During implementation, each step of the above method or each of the above modules can be completed through integrated logic circuits in the hardware of the processor element or through software instructions.

[0157] For example, these modules can be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs). Alternatively, these modules can be integrated together as a system-on-a-chip (SoC).

[0158] This application also provides a terminal that can execute the screen color adjustment method provided in this application. For details not described in the embodiments of the terminal provided in this application, please refer to the relevant descriptions in the screen color adjustment method provided in this application.

[0159] like Figure 13 As shown, the terminal provided in this application embodiment may include: a touch screen 601, wherein the touch screen 601 includes a touch sensor 602 and a display screen 603; one or more processors 604; a memory 605; the above multiple modules are connected through a communication bus 607 to communicate with each other; multiple applications; and one or more computer programs 606, wherein the one or more computer programs 606 are stored in the memory 605, and the one or more computer programs 606 include instructions, which, when executed by the terminal, enable the terminal to execute the screen color adjustment method provided in this application embodiment and any of its optional implementations.

[0160] This application also provides an electronic device, which includes a storage medium and a central processing unit. The storage medium may be a non-volatile storage medium, and a computer-executable program is stored in the storage medium. The central processing unit is connected to the non-volatile storage medium and executes the computer-executable program to implement the method provided in this application.

[0161] In the above embodiments, the processor may include, for example, a CPU, DSP, microcontroller, or digital signal processor, and may also include a GPU, embedded neural network processing unit (NPU), and image signal processor (ISP). The processor may also include necessary hardware accelerators or logic processing hardware circuits, such as an ASIC, or one or more integrated circuits for controlling the execution of programs in the technical solutions of this application. Furthermore, the processor may have the function of operating one or more software programs, which may be stored in a storage medium.

[0162] This application also provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to execute the screen color adjustment method provided in this application.

[0163] This application also provides a computer program product, which includes a computer program that, when run on a computer, causes the computer to execute the screen color adjustment method provided in this application.

[0164] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described screen color adjustment method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0165] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, A and B simultaneously, or B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.

[0166] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this application.

[0167] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0168] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or parts of the technical solutions, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0169] The above description is merely a specific implementation of the embodiments of this application. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the embodiments of this application should be included within the protection scope of the embodiments of this application. The protection scope of the embodiments of this application should be determined by the protection scope of the claims.

Claims

1. An electronic device, comprising: The electronic device includes: A touchscreen includes a touch sensor and a display screen; Memory; One or more processors and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the processor, cause the electronic device to perform the following steps: The user's first operation or environmental parameter is detected, and the black-and-white level of the display screen is determined. The black-and-white level is a parameter value used to characterize the proportion of the screen's colors between a first mode and a second mode. The first mode is the standard mode for screen display, and the second mode is the black-and-white mode for screen display. Based on the black and white levels, the first mode and the second mode are synthesized to obtain the third mode; The colors of the composite image are converted according to the third mode to obtain the first display image; The display screen shows the first display image.

2. The electronic device of claim 1, wherein, The standard mode is used to convert the colors of the composite image to the color gamut of the screen according to the first 3D-LUT; the black and white mode is used to convert the composite image into a grayscale image according to the second 3D-LUT.

3. The electronic device of claim 2, wherein, The step of compositing the first mode and the second mode based on the black-and-white level includes: Based on the black and white level, the first 3D-LUT and the second 3D-LUT are weighted and calculated to obtain a third 3D-LUT, wherein the third mode is used to change the composite image to the display effect corresponding to the black and white level according to the third 3D-LUT.

4. The electronic device according to claim 3, characterized in that, The first 3D-LUT and the second 3D-LUT include the mapping relationship of multiple sampling points within the synthesized color gamut space. The step of weighting the first 3D-LUT and the second 3D-LUT according to the black-and-white level to obtain the third 3D-LUT includes: For each sampling point in the synthetic color gamut space, the three-dimensional color value corresponding to the first 3D-LUT and the three-dimensional color value corresponding to the second 3D-LUT are determined, wherein the three-dimensional color value is a color value represented by a three-dimensional data sequence; Based on the black and white level, determine the weights of the three-dimensional color values ​​corresponding to the first 3D-LUT and the second 3D-LUT, and perform weighted calculations to obtain the three-dimensional color value corresponding to the third 3D-LUT for each sampling point in the synthetic color gamut space. The third 3D-LUT is obtained based on the calculation results.

5. The electronic device according to claim 3, characterized in that, The step of converting the colors of the composite image according to the third mode to obtain the first display image includes: A configuration file is generated based on the third 3D-LUT, wherein the configuration file is used to configure the mapping relationship of hardware circuit logic in the target chip; Update the configuration of the target chip according to the configuration file; The electrical signal of the composite image is input to the target chip so that the hardware circuit logic maps the electrical signal of the composite image to the electrical signal of the first display image according to the mapping relationship of the configuration file.

6. The electronic device according to claim 5, characterized in that, The step of generating a configuration file based on the third 3D-LUT includes: Obtain the 3D-LUT corresponding to other configured color modes; The mapping relationship of the third 3D-LUT is combined with the mapping relationships of all other 3D-LUTs corresponding to the configured color modes to obtain the fourth 3D-LUT; The configuration file is generated based on the fourth 3D-LUT, wherein the configuration file is used to configure the mapping relationship of the hardware circuit logic as the mapping relationship of the fourth 3D-LUT.

7. The electronic device of any of claims 1-6, wherein, Determining the black-and-white level of the terminal screen based on the user's first operation includes: The user's second action was detected; In response to the second operation, an adjustment interface is entered, wherein the adjustment interface displays adjustment controls for adjusting the black and white level; A third user action on the adjustment control is detected, wherein the adjustment control includes a slider and an adjustment button, and the third action is an action of dragging the adjustment button on the slider; The parameter value of the black and white level is determined based on the position of the adjustment knob on the slider.

8. The electronic device according to any one of claims 1-6, characterized in that, The display screen displays the first display image, including: The display screen receives the electrical signal input of the first display image to the display driver integrated circuit of the screen, so that the display screen displays the first display image.

9. The electronic device according to any one of claims 1-6, characterized in that, The environmental parameters are ambient light intensity or current time.

10. The electronic device according to any one of claims 1-6, characterized in that, After combining the first mode and the second mode according to the black-and-white level to obtain the third mode, and before converting the color of the combined image according to the third mode to obtain the first display image, when the instruction is executed by the processor, the electronic device performs the following steps: The user's fourth action was detected; In response to the fourth operation, the third mode is enabled.