Screen color adjustment method, device, terminal and computer-readable storage medium

By adjusting the degree of black and white on the mobile phone screen according to user operation and environmental parameters, and using the 3D-LUT table to generate the third mode, the problem of single color adjustment method in the existing technology is solved, and the refinement of the color of the mobile phone screen is realized and the improvement of the color of the mobile phone screen is improved. The user experience and the comfort of the reading environment.

CN114518828BActive Publication Date: 2024-11-22HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202011282363.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-16
Publication Date
2024-11-22
Estimated Expiration
2040-11-16

AI Technical Summary

Technical Problem

In the prior art, the color adjustment method of mobile phone screens is single, which cannot meet the user's refined adjustment of the color display effect, resulting in distraction and being unfavorable to the eyes when reading a large amount of text.

Method used

By determining the black and white degree of the terminal screen based on user operation or environmental parameters, weighting the standard mode and black and white mode using the 3D-LUT table to generate a third mode to achieve flexible adjustment of the color display effect.

Benefits of technology

Users can adjust the color mode in a detailed manner by adjusting the black and white degree parameters, which improves the user experience, reduces eye fatigue, and provides a more satisfactory reading environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114518828B_ABST
    Figure CN114518828B_ABST
Patent Text Reader

Abstract

A screen color adjustment method, device, terminal and computer-readable storage medium relate to the field of display technology. The method comprises: determining the black and white degree of a terminal screen according to a first operation of a user or an environmental parameter, wherein the black and white degree is used to characterize a parameter value of the proportion of the color of the screen between a first mode and a second mode, the first mode being a standard mode of screen display, and the second mode being a black and white mode of screen display; synthesizing the first mode and the second mode according to the black and white degree to obtain a third mode; converting the color of the synthesized picture according to the third mode to obtain a first display picture; and controlling the screen to display the first display picture, 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] The embodiments of the present application relate to the field of display technology, and in particular to a screen color adjustment method, device, terminal and computer-readable storage medium. Background Art

[0002] When users read a lot of text on their mobile phone screens (for example, novels or discussion posts), colors with too high color saturation may distract users and prevent them from immersing themselves in the reading scene. Colors with too high color saturation may also cause some damage to the eyes. In the related art, mobile phones usually have a relatively eye-friendly reading mode preset, such as Figure 1a and Figure 1b As shown in the reading mode setting page, two modes, reading mode and standard mode, are provided, and a preview image is provided, such as Figure 1a As shown in the figure, when the reading mode is selected, the pure grayscale color display effect is displayed through the preview image, such as Figure 1b As shown, when the standard mode is selected, the normal display effect is displayed through the preview image. However, the adjustment method of the above display effect is single. Summary of the invention

[0003] The embodiments of the present application provide a screen color adjustment method, device, terminal and computer-readable storage medium. The embodiments of the present application also provide 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, an embodiment of the present application provides a screen color adjustment method, including: determining the black and white degree of the terminal screen according to a first operation of the user or an environmental parameter, wherein the black and white degree is a parameter value used to characterize the proportion of the screen color between a first mode and a second mode, the first mode being a standard mode of the screen display, and the second mode being a black and white mode of the screen display; synthesizing the first mode and the second mode according to the black and white degree to obtain a third mode; converting the color of the synthesized picture according to the third mode to obtain a first display picture; and controlling the screen to display the first display picture.

[0005] The screen color adjustment method provided in the embodiment of the present application adjusts the specific parameter values ​​of the black and white levels, determines the proportion of the first mode and the second mode according to the black and white levels, and thus synthesizes the third mode. The picture is displayed on the screen through the color management method of the third mode, so that the user can flexibly adjust the color display effect of the terminal. Compared with the prior art that only provides several candidate color modes, the embodiment of the present application can make more refined adjustments to the color performance through the adjustment of parameter values, so that the user can achieve a more satisfactory color mode through adjustment, thereby improving the user experience.

[0006] In one optional implementation, the black and white degree of the terminal screen is determined according to the first operation of the user, including: detecting the second operation of the user; in response to the second operation, entering the adjustment interface, wherein the adjustment interface displays an adjustment control for adjusting the black and white degree; detecting the third operation of the user on the adjustment control, wherein the adjustment control includes a sliding bar and an adjustment button, and the third operation is an operation of dragging the adjustment button on the sliding bar; determining the parameter value of the black and white degree according to the position of the adjustment button on the sliding bar. By providing the adjustment control, a convenient operation method for adjusting the black and white degree parameter value is provided to the user, and the user can slide the adjustment button to adjust the screen color. Optionally, the effect after adjustment can also be displayed in the image in the adjustment interface, so that the user can view the color adjustment effect corresponding to the user's current setting of the adjustment button in real time when operating in the adjustment interface.

[0007] In one of the optional implementations, the standard mode is used to convert the color of the image synthesized by the terminal's operating system to the color gamut of the screen according to the first three-dimensional display lookup table 3D-LUT; the black and white mode is used to convert the synthesized image into a grayscale image according to the second 3D-LUT.

[0008] In one optional implementation, the first mode and the second mode are synthesized according to the degree of black and white, including: performing weighted calculation on the first 3D-LUT and the second 3D-LUT according to the degree of black and white to obtain a third 3D-LUT, wherein the third mode is used to change the synthesized picture to a display effect corresponding to the degree of black and white according to the third 3D-LUT. By synthesizing the first mode and the second mode, the effect of the first mode and the effect of the second mode can be linearly added.

[0009] In one of the optional implementations, the first 3D-LUT and the second 3D-LUT include a mapping relationship between multiple sampling points in the synthetic color gamut space of the operating system, and weighted calculation is performed on the first 3D-LUT and the second 3D-LUT according to the degree of black and white to obtain a third 3D-LUT, including: for each sampling point in the synthetic color gamut space of the operating system, 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 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 according to the degree of black and white, performing weighted calculation to obtain the three-dimensional color value corresponding to the third 3D-LUT for each sampling point in the synthetic color gamut space; and obtaining the third 3D-LUT according to the calculation result. Since the 3D-LUT table includes a one-to-one mapping of multiple sets of input three-dimensional color values ​​and output three-dimensional color values, the synthesis processing can be to find the corresponding two output color values ​​according to the first 3D-LUT and the second 3D-LUT respectively for the same input color value, and perform linear weighted calculation to obtain a synthesized color value.

[0010] In one of the optional implementations, the color of the composite picture is converted according to the third mode to obtain the first display picture, 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; inputting the electrical signal of the composite picture into the target chip, so that the hardware circuit logic maps the electrical signal of the composite picture into the electrical signal of the first display picture according to the mapping relationship of the configuration file.

[0011] In one of the optional implementations, generating a configuration file based on the third 3D-LUT includes: obtaining 3D-LUTs corresponding to other configured color modes; compounding the mapping relationship of the third 3D-LUT with the mapping relationships of the 3D-LUTs corresponding to all other configured color modes to obtain a 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. It should be noted that the compounding of the mapping relationship of the two 3D-LUTs and the synthesis processing of the two modes are different processing methods. The compounding of the mapping relationship of the two 3D-LUTs is to compound the conversion relationship of the mapping. Taking the compounding 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 optional implementation, controlling the screen to display the first display picture includes: inputting an electrical signal of the first display picture to a display driver integrated circuit of the screen, so that the screen displays the first display picture.

[0013] In one optional implementation, the environmental parameter is ambient light brightness or current time.

[0014] In one of the optional implementations, after synthesizing 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 synthesized image according to the third mode to obtain the first display image, the method also includes: detecting a fourth operation of the user; and enabling the third mode in response to the fourth operation.

[0015] In a second aspect, an embodiment of the present application provides a screen color adjustment device, which is used to execute the screen color adjustment method as in the first aspect and any optional implementation method thereof, and the screen color adjustment device includes: a first determination module, used to determine the black and white degree of the terminal screen according to the user's first operation or environmental parameters, wherein the black and white degree is used to characterize the parameter value of the proportion of the screen color between the first mode and the second mode, the first mode is the standard mode of the screen display, and the second mode is the black and white mode of the screen display; a first execution module, used to synthesize the first mode and the second mode according to the black and white degree to obtain a third mode; a second execution module, used to convert the color of the synthesized picture according to the third mode to obtain a first display picture; and a control module, used to control the screen to display the first display picture.

[0016] In one of the optional implementations, the standard mode is used to convert the color of the image synthesized by the terminal's operating system to the color gamut of the screen according to the first three-dimensional display lookup table 3D-LUT; the black and white mode is used to convert the synthesized image into 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 calculation 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 picture to a display effect corresponding to the degree of black and white according to the third 3D-LUT.

[0018] In one of the optional implementations, the first 3D-LUT and the second 3D-LUT include a mapping relationship between multiple sampling points in the synthetic color gamut space of the operating system, and 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 in the synthetic color gamut space of the operating system, 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 according to 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 in the synthetic color gamut space; and a second calculation module, used to obtain a 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 based on a third 3D-LUT, wherein the configuration file is used to configure a mapping relationship of hardware circuit logic in a 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 synthesized picture into the target chip, so that the hardware circuit logic maps the electrical signal of the synthesized picture into the electrical signal of the first display picture according to the mapping relationship of the configuration file.

[0020] In one of the optional implementations, the first generation module includes: an acquisition module, used to acquire 3D-LUTs corresponding to other configured color modes; a second execution module, used to compound the mapping relationship of the third 3D-LUT with the mapping relationships of the 3D-LUTs corresponding to all other configured color modes to obtain a fourth 3D-LUT; and a second generation module, used to generate 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 to be the mapping relationship of the fourth 3D-LUT.

[0021] In one optional implementation, the control module includes: a second input module, configured to input the electrical signal of the first display picture to a display driver integrated circuit of the screen, so that the screen displays the first display picture.

[0022] In one of the optional implementations, the first determination module includes: a first detection module, used to detect a second operation of the user; a third execution module, used to enter an adjustment interface in response to the second operation, wherein the adjustment interface displays an adjustment control for adjusting the black and white degree; a second detection module, used to detect a third operation of the user on the adjustment control, wherein the adjustment control includes a sliding bar and an adjustment button, and the third operation is an operation of dragging the adjustment button on the sliding bar; and a third determination module, used to determine the parameter value of the black and white degree according to the position of the adjustment button on the sliding bar.

[0023] In one optional implementation, the environmental parameter is ambient light brightness or current time.

[0024] In one of the optional implementations, the device also includes: a third detection module, which is used to detect a fourth operation of the user after synthesizing 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 synthesized picture according to the third mode to obtain the first display picture; and a fourth execution module, which is used to enable the third mode in response to the fourth operation.

[0025] In a third aspect, an embodiment of the present application provides a 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, which, when executed by the terminal, enable the terminal to execute the screen color adjustment method as in the first aspect and any optional implementation thereof.

[0026] Specifically, when the instruction is executed by the terminal, the terminal executes the following steps:

[0027] Determine the black and white degree of the terminal screen according to a first operation of the user or an environmental parameter, wherein the black and white degree is a parameter value used to characterize the proportion of the screen color between a first mode and a second mode, the first mode being a standard mode of screen display, and the second mode being a black and white mode of screen display; synthesize the first mode and the second mode according to the black and white degree to obtain a third mode; convert the color of the synthesized picture according to the third mode to obtain a first display picture; and control the screen to display the first display picture.

[0028] The terminal provided in the embodiment of the present application adjusts the specific parameter values ​​of the black and white levels, determines the proportion of the first mode and the second mode according to the black and white levels, thereby synthesizing the third mode, and displays the picture on the screen through the color management method of the third mode, so that the user can flexibly adjust the color display effect of the terminal. Compared with the prior art that only provides several candidate color modes, the embodiment of the present application can make more refined adjustments to the color performance through the adjustment of parameter values, so that the user can achieve a more satisfactory color mode through adjustment, thereby improving the user experience.

[0029] In one of the optional implementations, when the instruction is executed by the terminal, the terminal determines the black and white degree of the terminal screen according to the user's first operation. When the black and white degree of the terminal screen is determined according to the user's first operation, the following steps are performed: a second operation of the user is detected; in response to the second operation, an adjustment interface is entered, wherein the adjustment interface displays an adjustment control for adjusting the black and white degree; a third operation of the user on the adjustment control is detected, wherein the adjustment control includes a sliding bar and an adjustment button, and the third operation is an operation of dragging the adjustment button on the sliding bar; and a parameter value of the black and white degree is determined according to the position of the adjustment button on the sliding bar.

[0030] In one of the optional implementations, the standard mode is used to convert the color of the image synthesized by the terminal's operating system to the color gamut of the screen according to the first three-dimensional display lookup table 3D-LUT; the black and white mode is used to convert the synthesized image into a grayscale image according to the second 3D-LUT.

[0031] In one of the optional implementations, when the instruction is executed by the terminal, the terminal performs the following steps when performing a synthesis process on the first mode and the second mode according to the degree of black and white: 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 synthesized picture to a display effect corresponding to the degree of black and white according to the third 3D-LUT. By synthesizing the first mode and the second mode, the effect of the first mode and the effect of the second mode can be linearly added.

[0032] In one of the optional implementations, the first 3D-LUT and the second 3D-LUT include a mapping relationship between multiple sampling points in the synthetic color gamut space of the operating system. When the instruction is executed by the terminal, the terminal performs a weighted calculation on the first 3D-LUT and the second 3D-LUT according to the degree of black and white determined by the first operation to obtain a third 3D-LUT, and performs the following steps: for each sampling point in the synthetic color gamut space of the operating system, 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 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 according to 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 in the synthetic color gamut space; and obtain the third 3D-LUT according to the calculation result.

[0033] In one of the optional implementations, when the instruction is executed by the terminal, so that the terminal converts the color of the composite picture according to the third mode to obtain the first display picture, the following steps are performed: a configuration file is generated 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; the configuration of the target chip is updated according to the configuration file; the electrical signal of the composite picture is input into the target chip, so that the hardware circuit logic maps the electrical signal of the composite picture into the electrical signal of the first display picture according to the mapping relationship of the configuration file.

[0034] In one of the optional implementations, when the instruction is executed by the terminal, the terminal generates a configuration file based on the third 3D-LUT and performs the following steps: obtaining 3D-LUTs corresponding to other configured color modes; compounding the mapping relationship of the third 3D-LUT with the mapping relationships of the 3D-LUTs corresponding to 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 to be the mapping relationship of the fourth 3D-LUT.

[0035] In one optional implementation, when the instruction is executed by the terminal, so that the terminal controls the screen to display the first display picture, the following steps are performed: the electrical signal of the first display picture is input to the display driver integrated circuit of the screen so that the screen displays the first display picture.

[0036] In one optional implementation, the environmental parameter is ambient light brightness or current time.

[0037] In one of the optional implementations, when the instruction is executed by the terminal, after the terminal performs a synthesis process on 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 synthesized picture according to the third mode to obtain the first display picture, the terminal performs the following steps: detecting a fourth operation of the user; and enabling the third mode in response to the fourth operation.

[0038] In a fourth aspect, an embodiment of the present application provides a terminal, comprising: a touch screen, comprising 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, which, when executed by the terminal, enable the terminal to execute the screen color adjustment method as in the first aspect and any optional implementation thereof.

[0039] In a fifth aspect, an embodiment of the present application provides a screen color adjustment device, which is used to execute the screen color adjustment method in the first aspect and any optional implementation method thereof, and the screen color adjustment device includes: a first determination module, used to determine the black and white degree of the terminal screen according to a first operation of the user or an environmental parameter, wherein the black and white degree is used to characterize a parameter value of the proportion of the color of the screen between a first mode and a second mode, the first mode being a standard mode of screen display, and the second mode being a black and white mode of screen display; a first execution module, used to synthesize the first mode and the second mode according to the black and white degree to obtain a third mode; a second execution module, used to convert the color of the synthesized picture according to the third mode to obtain a first display picture; and a control module, used to control the screen to display the first display picture.

[0040] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising computer instructions. When the computer instructions are executed on a terminal, the terminal executes a screen color adjustment method as provided in the first aspect and any optional implementation thereof.

[0041] In a seventh aspect, an embodiment of the present application provides a computer program product comprising instructions. When the computer program product is run on a terminal, the terminal executes a screen color adjustment method as provided in the first aspect and any one of its optional implementations.

[0042] In one possible design, the program in the seventh aspect may be stored in whole or in part on a storage medium packaged together with the processor, or may be stored in whole or in part on a memory not packaged together with the processor.

[0043] In an eighth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement a screen color adjustment method as provided in the first aspect and any one of its optional implementation methods.

[0044] It should be understood that the second to sixth aspects of the embodiments of the present application are consistent with the technical solutions of the first aspect of the embodiments of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1a An interactive schematic diagram of a screen color adjustment method in the related art;

[0046] Figure 1b An interactive diagram of a screen color adjustment method in the related art Figure 2 ;

[0047] Figure 2 A flowchart of a screen color adjustment method according to an embodiment of the present application;

[0048] Figure 3 An interactive schematic diagram 1 of a screen color adjustment method according to an embodiment of the present application;

[0049] Figure 4 An interactive diagram of a screen color adjustment method according to an embodiment of the present application Figure 2 ;

[0050] Figure 5 An interactive diagram of a screen color adjustment method according to an embodiment of the present application Figure 3 ;

[0051] Figure 6 An interactive diagram of a screen color adjustment method according to an embodiment of the present application Figure 4 ;

[0052] Figure 7 An interactive diagram of a screen color adjustment method according to an embodiment of the present application Figure 5 ;

[0053] Figure 8 An interactive diagram of a screen color adjustment method according to an embodiment of the present application Figure 6 ;

[0054] Fig. 9 An interactive diagram of a screen color adjustment method according to an embodiment of the present application Figure 7 ;

[0055] Fig.10 An interactive diagram of a screen color adjustment method according to an embodiment of the present application Figure 8 ;

[0056] Fig.11 An interactive diagram of a screen color adjustment method according to an embodiment of the present application Figure 9 ;

[0057] Fig.12 This is a structural block diagram of a screen color adjustment device according to an embodiment of the present application;

[0058] Fig.13 A structural block diagram of a terminal according to an embodiment of the present application. DETAILED DESCRIPTION

[0059] The terms used in the implementation method section of this application are only used to explain the specific embodiments of this application, and are not intended to limit the embodiments of this application.

[0060] The embodiment of the present application provides a screen color adjustment method, which enables a user to adjust the black and white degree of the terminal screen color display, thereby improving the user experience.

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

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

[0063] 201. Determine the black and white degree of a terminal screen according to a first operation of a user or an environmental parameter.

[0064] The black and white degree is a parameter value, which is used to represent the numerical value of the weight of the influence of the first mode or the second mode on the change of the screen color saturation. Accordingly, the first operation is an operation of setting a specific parameter value of the black and white degree.

[0065] For example, the first operation may be that the user enters a specific value of the black and white degree in an input box for setting the black and white degree, or the first operation may be that the user slides an adjustment button for setting the black and white degree to determine the specific value of the black and white degree according to the position of the adjustment button in the progress bar. The environmental parameter is a parameter related to the environment in which the terminal is located. For example, the environmental parameter may be the brightness of the ambient light, or the current time.

[0066] Among them, the weight coefficients of the two modes are added to a fixed value. Therefore, after determining the influence weight of one mode, the influence weight of the other mode can be determined. The parameters of the black and white degree can use a preset measurement unit. For example, the black and white degree can be expressed by a percentage value between 0% and 100%. The weight coefficients of the two modes add up to 1, or the black and white degree can be expressed by any value between 0 and 1, and the weight coefficients of the two modes add up to 1. The following takes the black and white degree as the influence weight of the first mode on the change of screen color saturation as an example. Similarly, when the black and white degree is the influence weight of the second mode on the change of screen color saturation, the implementation method can be obtained in the same way.

[0067] Since the degree of black and white can determine the degree of bias of the screen color between the first mode and the second mode, for example, if the degree of black and white is set to 0.2, it means that the screen color presentation mode is 20% biased towards the first mode and 80% biased towards the second mode.

[0068] The first mode is the standard mode of screen display, and the second mode is the black and white mode of screen display. The standard mode can be a superposition of other color adjustment modes that have been enabled in the operating system. For example, if a color filter (such as green) is added to the screen in the operating system, then the standard mode is the mode corresponding to the display effect of adding a green filter. The black and white mode is a mode for converting the screen image into a grayscale image. The grayscale image is an image with only one sampled color per pixel. The grayscale image is displayed as multiple levels of gray from the darkest black to the brightest white and in between.

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

[0070] Specifically, the first mapping table may be a first three-dimensional display lookup table 3D-LUT (three-dimension look-up-table). 3D-LUT is a mapping relationship table between input color values ​​and output color values, including one-to-one mappings of multiple groups of input color values ​​and output color values. If the composite picture is converted according to the standard mode, the standard mode is used to use the color value of each pixel in the composite picture as the input color value of the first 3D-LUT, and to find the corresponding output color value to obtain the color value obtained after the color value of each pixel in the composite picture is converted (mapped), thereby realizing the color conversion of the composite picture. Similarly, if the composite picture is converted according to the grayscale mode, the grayscale mode is used to use the color value of each pixel in the composite picture as the input color value of the second 3D-LUT, and to find the corresponding output color value to obtain the color value obtained after the color value of each pixel in the composite picture is converted (mapped), thereby realizing the color conversion of the composite picture.

[0071] Among them, the color value in the 3D-LUT is a three-dimensional color value, and the three-dimensional color value represents the color value through a three-dimensional data sequence. The elements of the three dimensions of the three-dimensional color value are used to represent the intensity of red, the intensity of green, and the intensity of blue, respectively. If a color is given, its mapped three-dimensional color value can be found according to the given color, that is, the given color can be converted into the target color according to the mapping relationship. Specifically, the three-dimensional color value of the color corresponding to the converted output can be determined according to the three-dimensional color value of the given color. An example of an optional 3D-LUT is shown in Table 1. The 3D-LUT shown in Table 1 can convert pixel values ​​in the input color gamut space into pixel values ​​in the output color gamut space.

[0072] Table 1 Partial mapping relationship of a 3D-LUT table of an example

[0073] Table 1 shows a one-to-one mapping of multiple groups of input color values ​​and output color values ​​in a 3D-LUT. When a first picture (such as a composite picture of an operating system) needs to be mapped, the first picture includes multiple pixels. The color value of each pixel is searched in the input color value of the 3D-LUT, and then the corresponding output color value is determined. After completing the conversion of each pixel, the obtained second picture is an image obtained by color conversion through the 3D-LUT table, that is, the color value of each pixel in the second picture is converted according to the color value of the corresponding pixel in the first picture through the mapping relationship found in the 3D-LUT table.

[0074] An example of an optional 3D-LUT is shown in Table 2. The 3D-LUT shown in Table 2 can convert color pixel values ​​into pure grayscale pixel values, so as to be used for converting an image into a pure grayscale image.

[0075] Table 2 Partial mapping relationship of a 3D-LUT table of an example

[0076] Among them, the gray value can be any positive integer between 0 and 255 (including the end value), which is used to represent the intensity of the grayscale. Since it is a pure grayscale color, two dimensions can be specified as 0 in the output color value. For example, in the example shown in Table 2, the first two dimensions remain 0, and the grayscale value is represented by the value of the third dimension. In some optional embodiments, the first mode can also be a black and white mode with a certain 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, in order to make the black and white mode with a green color, a configuration method is to set the first two dimensions of each output color value to 204 and 232, and reflect the change in the strength of the grayscale by the change in the value of the last dimension. Since the table can only store the mapping relationship of discrete values, it is impossible to list all the mapping relationships of continuous values. Therefore, the 3D-LUT table stores the mapping relationship of some sampling points of the input color value, and the mapping relationship of other colors of non-sampling points can be calculated by interpolation. Table 1 is an example of a 3D-LUT table, and is not used to limit the values ​​of the sampling points of the input color value.

[0077] Similar to the first mode, the second mode is used to perform color conversion on the picture according to a second mapping table, and the second mapping table may be a second 3D-LUT different from the first 3D-LUT.

[0078] Optionally, the second mode can be used to convert the picture displayed by the terminal into a black and white effect so that the terminal displays a pure grayscale picture; further, the range of the pixel grayscale value after the first 3D-LUT conversion can be set to a preset range, for example, the range of the grayscale value can be 0~255, or 50~200. Alternatively, in other optional implementations, the screen color display effect obtained after the second mode conversion can also be a color gamut with other colors besides black and white. For example, the second mode can convert an ordinary color image into a grayscale image with a green bias (the first mode can be regarded as a half-color mode). No matter which color the grayscale image is biased, it can be obtained through the preset first 3D-LUT. After the second mode conversion, a picture with a smaller color gamut will be obtained. The first mode is the display effect of the terminal when the black and white effect is not superimposed.

[0079] In an optional implementation, the black and white degree may be determined by receiving a first operation of the user to adjust the black and white degree of the terminal screen. For example, the user may adjust the parameter value of the black and white degree by adjusting the interactive control provided by the software module.

[0080] In another optional implementation, the degree of black and white can be determined by environmental parameters. Environmental parameters are parameters related to the environment in which the terminal is located. For example, the environmental parameter can be the brightness of the ambient light. In a possible implementation, the mobile phone is provided with a photosensitive element for sensing the brightness of the ambient light. Optionally, the photosensitive element can be arranged next to the camera above the front display screen of the mobile phone. The above-mentioned photosensitive element can detect the brightness of the environment and adjust the degree of black and white according to the brightness. For example, the lower the brightness, the darker the environment, the more it can be biased towards the first mode (such as reading mode, black and white mode, grayscale mode, half-color mode, etc.), and the black and white degree parameter can be increased, and vice versa. Alternatively, the environmental parameter can also be the current time, which is biased towards the second mode during the daytime period and the first mode during the night time period.

[0081] 202. Perform synthesis processing on the first mode and the second mode according to the degree of black and white to obtain a third mode.

[0082] When performing synthesis processing, the influence weight of the first mode on the third mode and the influence weight of the second mode on the third mode are determined respectively according to the specific value of the vividness. For example, the vividness is configured by the user to be 0.6, and the value of the vividness is pre-configured to represent the proportion of the first mode. Then, when superimposing, the third mode can be synthesized based on 0.6 times the first mode and 0.4 times the second mode.

[0083] Specifically, in an 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 weighted calculation on the first 3D-LUT and the second 3D-LUT according to the degree of black and white to obtain a third 3D-LUT.

[0084] After the black-and-white degree is determined, the weights of the first 3D-LUT and the second 3D-LUT may be determined according to the parameter values ​​of the black-and-white degree, and the third 3D-LUT may be obtained by weighted calculation.

[0085] The first 3D-LUT is a mapping relationship table in which the terminal operating system converts the composite picture from the color gamut of the composite picture to the third color gamut in the standard mode of normal display of color effects. The second 3D-LUT is used to map the screen from a color effect to a black and white mode of a grayscale effect or a half-color effect. The third color gamut is a specified color gamut, for example, it can be a screen color gamut, or optionally, it can be another user-specified or pre-set color gamut. The third 3D-LUT is a mapping table obtained by weighted calculation of the first 3D-LUT and the second 3D-LUT according to the black and white degree set by the user, that is, the third 3D-LUT is a mapping table determined according to the user's adjustment of the black and white degree, and is used to convert the screen display effect into the black and white degree required by the user.

[0086] In an example, in the mapping tables of the first 3D-LUT and the second 3D-LUT, only some sampling points in the color gamut space may be mapped. For any sampling point p (p1, p2, p3) in the color gamut space, the weighted calculation formula used to calculate the pixel value after the third 3D-LUT mapping can be expressed as:

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

[0088] Among them, z is the pixel value z (z1, z2, z3) after mapping by the third 3D-LUT, a is the parameter value of the degree of black and white, and a value is determined between 0 and 1 according to the user's setting, x is the pixel value x (x1, x2, x3) after mapping by the first 3D-LUT for p, and y is the pixel value y (y1, y2, y3) after mapping by the second 3D-LUT for p. Specifically, for the formula z=a*x+(1-a)*y, z1=a*x1+(1-a)*y1, z2=a*x2+(1-a)*y2, and z3=a*x3+(1-a)*y3 are calculated respectively.

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

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

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

[0092] For example, for the 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”.

[0093] 2022. 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 according to the degree of black and white, and perform weighted calculation to obtain the three-dimensional color value mapped by each sampling point of the third 3D-LUT;

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

[0095] 2023. Obtain a third 3D-LUT according to the calculation result.

[0096] After the calculations of step 2021 and step 2022 are performed for all sampling points, the three-dimensional color value corresponding to each sampling point of the third 3D-LUT can be obtained.

[0097] 203. Convert the color of the synthesized picture according to the third mode to obtain a first display picture.

[0098] After obtaining the third 3D-LUT, the third 3D-LUT can be used to map the synthesized picture. In essence, the corresponding color value is found for the three-dimensional color value of each pixel in the synthesized picture according to the mapping relationship in the third 3D-LUT. Since the third 3D-LUT is a mapping of sampling points, if the three-dimensional color value of any pixel in the synthesized picture is not in the input color value (color value before mapping) of the third 3D-LUT, the third 3D-LUT can be interpolated to determine the three-dimensional color value mapped to the three-dimensional color value of the pixel in the synthesized picture.

[0099] Optionally, the composite picture may be mapped not only through the third 3D-LUT, but may also be further mapped through other 3D-LUTs. The above-mentioned mapping of the composite picture according to the third 3D-LUT means that the terminal may use the corresponding 3D-LUT for further mapping according to other settings that affect the screen display color effect to obtain the first display picture. Whether to further map is not limited in this embodiment of the application.

[0100] It should be noted that if other 3D-LUTs need to be used for mapping after the third 3D-LUT, the third 3D-LUT and other 3D-LUTs may be superimposed on each other to obtain a total 3D-LUT (fourth 3D-LUT).

[0101] Tables 3 to 5 are provided below to illustrate specific implementations of overlaying 3D-LUT.

[0102] Table 3 Partial mapping relationship of the third 3D-LUT table of an example

[0103]

[0104] Table 4 Partial mapping relationship of the fifth 3D-LUT table to be superimposed in an example

[0105]

[0106] Table 5 Partial mapping relationship of the fourth 3D-LUT table obtained after superposition of an example

[0107] Taking the superposition of the third 3D-LUT and the fifth 3D-LUT (other 3D-LUT) as an example, Table 3 shows a partial mapping relationship of the third 3D-LUT, and Table 4 shows a partial mapping relationship of the fifth 3D-LUT to be superimposed with the third 3D-LUT. Accordingly, 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, a partial mapping relationship of the fourth 3D-LUT shown in Table 5 is obtained. According to the principle of the implementation method shown in Tables 3 to 5, when superimposing two 3D-LUTs, first, in the second 3D-LUT (corresponding to Table 4: the fifth 3D-LUT in the implementation method shown in Tables 3 to 5), the color value corresponding to the color value mapped by the first 3D-LUT (corresponding to Table 3: the third 3D-LUT in the implementation method shown in Tables 3 to 5) is searched. For example, for an input color value (sampling point) in Table 3 of (50,50,60), according to the mapping relationship shown in Table 3, the corresponding output color value is (20,20,52); and for the color value (20,20,52), according to the mapping relationship shown in Table 4, the output color value corresponding to the color value (20,20,52) is found in the input color value to be (21,22,53); then, after superposition (compounding) of Table 3 and Table 4, it can be determined that the output color value of the fourth 3D-LUT for the sampling point (50,50,60) is (21,22,53), and so on, to obtain the fourth 3D-LUT shown in Table 5. Among them, the color value that cannot be found in the sampling point (that is, the input color value) can be obtained by interpolation calculation.

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

[0109] 2031. Obtain 3D-LUTs corresponding to other configured color modes.

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

[0111] 2033. After obtaining the overall fourth 3D-LUT, generate a configuration file of the fourth 3D-LUT.

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

[0113] 2034. Use the configuration file corresponding to the fourth 3D-LUT to configure the target chip, so that the configuration of the target chip is updated.

[0114] 2035. After each synthetic image is generated, the operating system inputs the electrical signal of the synthetic image to the target chip, so that the hardware circuit logic of the target chip maps the electrical signal of the synthetic image to the electrical signal of the first display image according to the mapping relationship of the configuration file.

[0115] 204. Control the screen to display a first display image.

[0116] The first display image is the image to be transmitted to the DDIC (display driver integrated circuit) of the screen. The DDIC is the driving circuit of the screen. After receiving the electrical signal of the first display image, the screen is driven to display the first display image through the hardware circuit logic. The above steps 201 to 203 can be executed by the processor of the terminal, for example, the AP chip of the mobile phone. After obtaining the first display image, step 204 can be that the AP chip inputs the electrical signal of the first display image to the DDIC of the screen to control the screen to display the first display image.

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

[0118] First, users can touch and click the "Settings" icon on the mobile phone desktop (such as Figure 3 ), enter the "Settings" page of the phone, and then click the "Reading Mode Settings" option displayed on the phone screen (as shown Figure 4 ), enter the adjustment interface for adjusting the mobile phone reading mode (as shown Figures 5 to 9 any schematic diagram).

[0119] The above adjustment interface can display the interactive controls provided by the adjustment software module, and the user can set the specific parameters of the black and white degree in the reading mode by adjusting the interactive controls provided by the adjustment software module. Figure 5 As shown, the interactive control 301 includes an adjustment button 302 and a slide bar 304. The user can drag the adjustment button 302 to make the adjustment button 302 be at different positions on the slide bar of the progress bar adjustment control 301, and the user can intuitively see the color display effect of the preview image 303 when the adjustment button 302 is at different positions, so as to predict the screen color display effect of the current setting.

[0120] Figure 5 It is shown that the adjustment button 302 is dragged to the left end of the slide bar 304, and accordingly, the effect displayed in the preview image 303 is the color effect of the leftmost black and white mode (first mode). Figure 6 The adjustment button 302 is dragged to the right end of the slide bar 304, and accordingly, the effect displayed in the preview image 303 is the color effect of the normal mode (second mode) at the far right end. Figure 7 When the adjustment button 302 is dragged to a position in the middle of the slide bar 304, the preview image 303 shows the color effect of the black and white degree corresponding to the position of the adjustment button 302. An optional implementation is that when the adjustment button 302 is dragged to any position, the adjustment software module can determine the corresponding value according to the position of the adjustment button 302 on the slide bar 304 as the black and white degree. In an example, the black and white degree represents a weight coefficient biased towards the black and white mode, and the black and white degree is the ratio of the first length to the length of the slide bar 304, wherein the first length refers to the distance between the adjustment button 302 and the left end.

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

[0122] Optional, such as Figures 5 to 9 As shown in any of the schematic diagrams, the adjustment interface can also provide several optional single-color superimposed on the black and white effect, such as Fig. 9 As shown, if the user sets the selection box 306 of "Effect 1" to a selected state, the interactive control 301 and the switch 305 become gray and are disabled, and the screen is set to superimpose a monochrome color display effect on the black and white mode, and the effect is displayed through the preview image 303.

[0123] After the user has set the above reading mode (third mode) settings, the reading mode can be turned on or off in a simple way, such as Fig.10 and Fig.11 An optional implementation is shown. Fig.10 As shown, when the user slides down a certain distance from the top of the screen when any page is displayed on the screen, the following Fig.11 In the drop-down menu shown, the user can click the "reading mode" icon to turn on or off the reading mode. That is, after executing step 202 to synthesize the first mode and the second mode according to the degree of black and white to obtain the third mode, before executing step 203 to convert the color of the synthesized picture according to the third mode to obtain the first display picture, the screen color adjustment method provided in the embodiment of the present application also includes:

[0124] Detecting a fourth operation of the user;

[0125] In response to the fourth operation, the third mode is enabled.

[0126] In order to further illustrate the screen color adjustment method provided in an embodiment of the present application, an exemplary implementation in an application scenario is provided as follows.

[0127] First, the user clicks on Figure 3 Click the "Settings" icon shown in the figure to enter the application interface of system settings. Figure 4 Click Figure 4 After selecting the "Reading Mode Settings" option in the Figure 5 The adjustment interface shown. In the adjustment interface, the user can drag the position of the adjustment button 302 in the progress bar 304, so that the operating system determines the black and white degree according to the position of the adjustment button 302, and determines the proportion of the black and white mode and the color mode (that is, the standard mode described in the embodiment of the present application) according to the black and white degree. Then, the black and white mode and the color mode are linearly synthesized according to the proportion to obtain the third mode, and the color display effect of the third mode according to the current setting is displayed to the user through the color change of the preview image 303.

[0128] If the user adjusts the adjustment knob 302 to Figure 6 As shown, the current adjustment interface is exited. 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 operation to return to the desktop, for example, the user slides a finger upward from the middle point of the lower end of the screen by a preset distance. After exiting the current interface, the reading mode setting is determined.

[0129] In this application scenario, after the user sets the reading mode, it may not take effect immediately. It is necessary to determine whether the reading mode is currently turned on. An optional method is, for example, Fig.10As shown, when the user slides down a certain distance from the top of the screen when any page is displayed on the screen, the following Fig.11 In the drop-down menu shown, after the user clicks the "Reading Mode" icon to turn on the reading mode, the reading mode is enabled, the adjustment of the screen color by the reading mode takes effect, and the screen image is processed according to the third mode before the user exits the adjustment interface.

[0130] 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, so that the 3D-LUT chip will perform color conversion on the input picture according to the third 3D-LUT, and output the converted picture. Then, the data of the converted picture is sent to the DDIC of the screen, so that the DDIC of the screen drives the screen to display according to the data of the converted picture.

[0131] The picture input to the 3D-LUT chip is a composite picture 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 synthesizing all layers, a frame of composite picture to be displayed is obtained. Each frame of composite picture is sent to the 3D-LUT chip, so that the 3D-LUT chip converts the color value of each pixel in the picture according to the mapping relationship of the 3D-LUT in the configuration file through the logic of the hardware circuit to obtain the output picture.

[0132] The screen color adjustment method provided in the embodiment of the present application adjusts the specific parameter values ​​of the black and white levels, determines the proportion of the first mode and the second mode according to the black and white levels, and thus synthesizes the third mode. The picture is displayed on the screen through the color management method of the third mode, so that the user can flexibly adjust the color display effect of the terminal. Compared with the prior art that only provides several candidate color modes, the embodiment of the present application can make more refined adjustments to the color performance through the adjustment of parameter values, so that the user can achieve a more satisfactory color mode through adjustment, thereby improving the user experience.

[0133] It is to be understood that some or all of the steps or operations in the above embodiments are merely examples, and the present application embodiments may also perform other operations or variations of various operations. In addition, the various steps may be performed in different orders presented in the above embodiments, and it is possible that not all of the operations in the above embodiments need to be performed.

[0134] Fig.12 This is a schematic diagram of the structure of an embodiment of the screen color adjustment device of the present application, which can be used to implement the present application. Figure 2~Figure 11 The technical solution of the method embodiment shown, Fig.12 The screen color adjustment device shown comprises:

[0135] A first determining module 41 is used to determine the black and white degree of the terminal screen according to a first operation of the user or an environmental parameter, wherein the black and white degree is a parameter value used to characterize the proportion of the color of the screen between a first mode and a second mode, the first mode is a standard mode of the screen display, and the second mode is a black and white mode of the screen display;

[0136] A first execution module 42, configured to synthesize the first mode and the second mode according to the degree of black and white, so as to obtain a third mode;

[0137] A first conversion module 43, configured to convert the color of the synthesized picture according to the third mode to obtain a first display picture;

[0138] The control module 44 is used to control the screen to display a first display image.

[0139] Optionally, the standard mode is used to convert the color of the picture synthesized by the terminal's operating system to the color gamut of the screen according to the first three-dimensional display lookup table 3D-LUT; the black and white mode is used to convert the synthesized picture into a grayscale image according to the second 3D-LUT.

[0140] Optionally, the first execution module 42 includes: a first calculation module, used to perform weighted calculation 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 picture to a display effect corresponding to the black and white degree according to the third 3D-LUT.

[0141] Optionally, the first 3D-LUT and the second 3D-LUT include a mapping relationship between multiple sampling points in the synthetic color gamut space of the operating system, and 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 in the synthetic color gamut space of the operating system; 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 according to 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 in the synthetic color gamut space; and a second calculation module, used to obtain a third 3D-LUT based on the calculation results.

[0142] Optionally, the first conversion module 43 includes: a first generation module, used to generate a configuration file based on 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 synthesized picture into the target chip, so that the hardware circuit logic maps the electrical signal of the synthesized picture into the electrical signal of the first display picture according to the mapping relationship of the configuration file.

[0143] Optionally, the first generation module includes: an acquisition module, used to acquire 3D-LUTs corresponding to other configured color modes; a second execution module, used to superimpose the third 3D-LUT with the 3D-LUTs corresponding to all other configured color modes to obtain a fourth 3D-LUT; and a second generation module, used to generate 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 to the mapping relationship of the fourth 3D-LUT.

[0144] Optionally, the control module 44 includes: a second input module, used to input the electrical signal of the first display picture to the display driver integrated circuit of the screen, so that the screen displays the first display picture.

[0145] Optionally, the first determination module 41 includes: a first detection module, used to detect a second operation of the user; a third execution module, used to enter an adjustment interface in response to the second operation, wherein the adjustment interface displays an adjustment control for adjusting the black and white degree; a second detection module, used to detect a third operation of the user on the adjustment control, wherein the adjustment control includes a sliding bar and an adjustment button, and the third operation is an operation of dragging the adjustment button on the sliding bar; and a third determination module, used to determine the parameter value of the black and white degree according to the position of the adjustment button on the sliding bar.

[0146] Optionally, the environmental parameter is the ambient light brightness or the current time.

[0147] Optionally, the device also includes: a third detection module, used to detect a fourth operation of the user after synthesizing 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 synthesized picture according to the third mode to obtain the first display picture; a fourth execution module, used to enable the third mode in response to the fourth operation.

[0148] The screen color adjustment device provided in the embodiment of the present application adjusts the specific parameter values ​​of the black and white levels, determines the proportion of the first mode and the second mode according to the black and white levels, and thus synthesizes the third mode. The picture is displayed on the screen through the color management method of the third mode, so that the user can flexibly adjust the color display effect of the terminal. Compared with the prior art that only provides several candidate color modes, the embodiment of the present application can make more refined adjustments to the color performance through the adjustment of parameter values, so that the user can achieve a more satisfactory color mode through adjustment, thereby improving the user experience.

[0149] Fig.12 The screen color adjustment device provided in the embodiment shown can be used to implement the present application Figure 2~Figure 11 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.

[0150] It should be understood that the above Fig.12 The division of the various modules of the screen color adjustment device shown is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. For example, the detection module can be a separately established processing element, or it can be integrated in a chip of an electronic device. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, or they can be implemented independently. In the implementation process, each step of the above method or each of the above modules can be completed by the hardware integrated logic circuit in the processor element or the instructions in the form of software.

[0151] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0152] The present application also provides a terminal that can execute the screen color adjustment method provided in the present application. For the contents not described in detail in the embodiment of the terminal provided in the present application, reference can be made to the relevant description in the screen color adjustment method provided in the present application.

[0153] like Fig.13 As shown, the terminal provided by the embodiment of the present application 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 via 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. When the instructions are executed by the terminal, the terminal can execute the screen color adjustment method provided by the embodiment of the present application and any optional implementation method thereof.

[0154] An embodiment of the present 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, in which a computer executable program is stored. The central processing unit is connected to the non-volatile storage medium and executes the computer executable program to implement the method provided in the embodiment of the present application.

[0155] In the above embodiments, the processor involved may include, for example, a CPU, a DSP, a microcontroller or a digital signal processor, and may also include a GPU, an embedded neural network processor (Neural-network Process Units; hereinafter referred to as: NPU) and an image signal processor (Image Signal Processing; hereinafter referred to as: ISP). The processor may also include necessary hardware accelerators or logic processing hardware circuits, such as ASIC, or one or more integrated circuits for controlling the execution of the program of the technical solution of the embodiment of the present application. In addition, the processor may have the function of operating one or more software programs, and the software programs may be stored in a storage medium.

[0156] The embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer-readable storage medium is run on a computer, the computer executes the screen color adjustment method provided by the embodiment of the present application.

[0157] The embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is run on a computer, it enables the computer to execute the screen color adjustment method provided by the embodiment of the present application.

[0158] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned screen color adjustment method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0159] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and next associated 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 single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.

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

[0161] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0162] In several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk and other media that can store program codes.

[0163] The above is only a specific implementation of the embodiment of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the embodiment of the present application, which should be included in the protection scope of the embodiment of the present application. The protection scope of the embodiment of the present application shall be based on the protection scope of the claims.

Claims

1. A screen color adjustment method, characterized in that: include: Determine the black and white degree of the terminal screen according to a first operation of the user or an environmental parameter, wherein the black and white degree is used to characterize a parameter value of the proportion of the color of the screen between a first mode and a second mode, the first mode is a standard mode of screen display, and the second mode is a black and white mode of screen display; According to the black and white degree, the first mode and the second mode are synthesized to obtain a third mode; Converting the color of the synthesized picture according to the third mode to obtain a first display picture; The screen is controlled to display the first display picture.

2. The method according to claim 1, characterized in that The step of determining the black and white degree of the terminal screen according to the first operation of the user comprises: Detecting a second operation of the user; In response to the second operation, entering an adjustment interface, wherein the adjustment interface displays an adjustment control for adjusting the black and white degree; Detecting a third operation of the user on the adjustment control, wherein the adjustment control includes a sliding bar and an adjustment button, and the third operation is an operation of dragging the adjustment button on the sliding bar; The parameter value of the black and white degree is determined according to the position of the adjustment button on the sliding bar.

3. The method according to claim 1, characterized in that The standard mode is used to convert the color of the picture synthesized by the operating system of the terminal to the color gamut of the screen according to a first three-dimensional display lookup table 3D-LUT; The black and white mode is used to convert the synthesized picture into a grayscale image according to a second 3D-LUT.

4. The method according to claim 3, characterized in that: The synthesizing process of the first mode and the second mode according to the black and white degree includes: According to the black and white degree, 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 synthesized picture to a display effect corresponding to the black and white degree according to the third 3D-LUT.

5. The method according to claim 4, characterized in that The first 3D-LUT and the second 3D-LUT include a mapping relationship between a plurality of sampling points in the synthetic color gamut space of the operating system, and the first 3D-LUT and the second 3D-LUT are weighted calculated according to the black and white degree to obtain a third 3D-LUT, including: For each sampling point in the synthetic color gamut space of the operating system, determine a three-dimensional color value corresponding to the first 3D-LUT and a 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 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 according to the black and white degree, and perform weighted calculation 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 according to the calculation result.

6. The method according to any one of claims 3 to 5, characterized in that: Converting the color of the composite picture according to the third mode to obtain the first display picture includes: Generate a configuration file according to the third 3D-LUT, wherein the configuration file is used to configure a mapping relationship of hardware circuit logic in a target chip; Updating the configuration of the target chip according to the configuration file; The electrical signal of the synthesized image is input to the target chip, so that the hardware circuit logic maps the electrical signal of the synthesized image into the electrical signal of the first display image according to the mapping relationship of the configuration file.

7. The method according to claim 6, characterized in that The generating a configuration file according to the third 3D-LUT comprises: Get the 3D-LUT corresponding to other configured color modes; Compounding the mapping relationship of the third 3D-LUT with the mapping relationships of all other 3D-LUTs corresponding to the configured color modes to obtain a fourth 3D-LUT; The configuration file is generated according to the fourth 3D-LUT, wherein the configuration file is used to configure the mapping relationship of the hardware circuit logic to be the mapping relationship of the fourth 3D-LUT.

8. The method according to claim 1, characterized in that The controlling the screen to display the first display picture includes: The electric signal of the first display picture is input to a display driver integrated circuit of the screen, so that the screen displays the first display picture.

9. The method according to claim 1, characterized in that: The environmental parameter is the ambient light brightness or the current time.

10. The method according to claim 1, characterized in that After synthesizing the first mode and the second mode according to the black and white degree to obtain a third mode, and before converting the color of the synthesized picture according to the third mode to obtain a first display picture, the method further includes: Detecting a fourth operation of the user; In response to the fourth operation, the third mode is enabled.

11. A terminal, characterized in that: The terminal comprises: A touch screen, comprising a touch sensor and a display screen; one or more processors; a memory; a plurality of 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, which, when executed by the terminal, enable the terminal to execute the screen color adjustment method described in any one of claims 1 to 10.

12. A screen color adjustment device, characterized in that: The screen color adjustment device is used to perform the screen color adjustment method according to any one of claims 1 to 10, and the screen color adjustment device comprises: A first determination module is used to determine the black and white degree of the terminal screen according to a first operation of the user or an environmental parameter, wherein the black and white degree is used to characterize a parameter value of the proportion of the color of the screen between a first mode and a second mode, the first mode is a standard mode of screen display, and the second mode is a black and white mode of screen display; A first execution module, configured to synthesize the first mode and the second mode according to the black and white degree to obtain a third mode; A second execution module, configured to convert the color of the composite picture according to the third mode to obtain a first display picture; A control module is used to control the screen to display the first display image.

13. A computer-readable storage medium, characterized in that: The method comprises computer instructions, and when the computer instructions are executed on a terminal, the terminal is caused to execute the method according to any one of claims 1 to 10.

Citation Information

Cited By

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

    CN119690310A

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

    CN119690310B