Color adjustment method and device, storage medium and display equipment

文档序号:189848 发布日期:2021-11-02 浏览:16次 中文

阅读说明:本技术 一种色彩调整方法、装置、存储介质和显示设备 (Color adjustment method and device, storage medium and display equipment ) 是由 李薇 于 2021-07-28 设计创作,主要内容包括:本发明实施例提供了一种色彩调整方法、装置、存储介质和显示设备。该方法包括:接收用户输入的色彩值设置操作;响应于所述色彩值设置操作,确定出第一色彩值,所述第一色彩值包括饱和度值和明度值;根据所述饱和度值生成色温呈现值,并根据所述明度值生成亮度呈现值;根据所述色温呈现值和所述亮度呈现值,生成第二色彩值;根据所述第二色彩值,调整自身的色彩。本发明实施例提供的技术方案中,根据生成的第二色彩值来调整显示设备的色彩,能够使用户不会因长时间注视显示设备而产生视疲劳。(The embodiment of the invention provides a color adjusting method, a color adjusting device, a storage medium and display equipment. The method comprises the following steps: receiving color value setting operation input by a user; determining a first color value in response to the color value setting operation, the first color value comprising a saturation value and a brightness value; generating a color temperature presenting value according to the saturation value, and generating a brightness presenting value according to the brightness value; generating a second color value according to the color temperature presenting value and the brightness presenting value; and adjusting the color of the user according to the second color value. In the technical scheme provided by the embodiment of the invention, the color of the display equipment is adjusted according to the generated second color value, so that the user can not generate visual fatigue due to watching the display equipment for a long time.)

1. A color adjustment method, comprising:

receiving color value setting operation input by a user;

determining a first color value in response to the color value setting operation, the first color value comprising a saturation value and a brightness value;

generating a color temperature presenting value according to the saturation value, and generating a brightness presenting value according to the brightness value;

generating a second color value according to the color temperature presenting value and the brightness presenting value;

and adjusting the color of the user according to the second color value.

2. The method of claim 1, wherein generating a color temperature rendering value from the saturation value comprises:

setting the saturation value to the color temperature rendering value.

3. The method of claim 1, wherein generating a luminance rendering value from the luminance value comprises:

receiving an ambient light brightness value acquired by a sensor of the user;

inquiring a brightness value corresponding to the ambient light brightness value according to the stored corresponding relation between the ambient light brightness value and the brightness value;

setting the brightness value as a brightness value corresponding to the ambient light brightness value;

and taking the brightness value corresponding to the ambient light brightness value as the brightness presenting value.

4. The method of claim 3, wherein the ambient light brightness value is positively correlated with the brightness presence value.

5. The method of claim 1, wherein receiving a user-entered color value setting operation comprises:

and receiving a color value setting operation input by a user on the acquired color adjustment and color temperature interface.

6. The method of claim 5, wherein the receiving the user input prior to the color value setting operation of the obtained color adjustment and color temperature interface comprises:

receiving a first interface display operation input by a user, and displaying a setting interface;

receiving a second interface display operation input by a user on the setting interface, and displaying a display interface and a brightness interface;

and receiving a third interface display operation input by a user on the display and brightness interface, and displaying the color adjustment and color temperature interface.

7. The method of claim 3, wherein the sensor comprises an ambient light sensor.

8. A color adjustment apparatus, comprising:

the receiving module is used for receiving color value setting operation input by a user;

a determining module, configured to determine a first color value in response to the color value setting operation, where the first color value includes a saturation value and a brightness value;

the first generation module is used for generating a color temperature presentation value according to the saturation value, and the second generation module is used for generating a brightness presentation value according to the brightness value;

the third generation module is used for generating a second color value according to the color temperature presenting value and the brightness presenting value;

and the adjusting module is used for adjusting the color of the adjusting module according to the second color value.

9. A storage medium, comprising: the storage medium includes a stored program, wherein the program controls a device in which the storage medium is located to execute a color adjustment method according to any one of claims 1 to 7 when the program is executed.

10. A display device comprising a memory for storing information comprising program instructions and a processor for controlling the execution of the program instructions, characterized in that the program instructions are loaded and executed by the processor for implementing the steps of a color adjustment method as claimed in any one of claims 1 to 7.

[ technical field ] A method for producing a semiconductor device

The present invention relates to the field of color processing technologies, and in particular, to a color adjustment method, an apparatus, a storage medium, and a display device.

[ background of the invention ]

In the recent years of information development, data reading, game playing or movie watching by using display devices has been one of the main ways for general people to obtain information or leisure activities.

However, since a general display device displays display colors in the RGB color range, if a user reads or views a screen for a long time, the eyes of the user are prone to have visual fatigue.

[ summary of the invention ]

In view of this, embodiments of the present invention provide a color adjustment method, apparatus, storage medium, and display device, so as to solve the problem of asthenopia generated by the eyes of a user.

In one aspect, an embodiment of the present invention provides a color adjustment method, including:

receiving color value setting operation input by a user;

determining a first color value in response to the color value setting operation, the first color value comprising a saturation value and a brightness value;

generating a color temperature presenting value according to the saturation value, and generating a brightness presenting value according to the brightness value;

generating a second color value according to the color temperature presenting value and the brightness presenting value;

and adjusting the color of the user according to the second color value.

Optionally, the generating a color temperature presentation value according to the saturation value comprises:

setting the saturation value to the color temperature rendering value.

Optionally, the generating a luminance presentation value from the luminance value comprises:

receiving an ambient light brightness value acquired by a sensor of the user;

inquiring a brightness value corresponding to the ambient light brightness value according to the stored corresponding relation between the ambient light brightness value and the brightness value;

setting the brightness value as a brightness value corresponding to the ambient light brightness value;

and taking the brightness value corresponding to the ambient light brightness value as the brightness presenting value.

Optionally, the ambient light brightness value is positively correlated with the brightness presence value.

Optionally, the receiving a color value setting operation input by a user includes:

and receiving a color value setting operation input by a user on the acquired color adjustment and color temperature interface.

Optionally, the receiving a color value setting operation input by a user on the acquired color adjustment and color temperature interface includes:

receiving a first interface display operation input by a user, and displaying a setting interface;

receiving a second interface display operation input by a user on the setting interface, and displaying a display interface and a brightness interface;

and receiving a third interface display operation input by a user on the display and brightness interface, and displaying the color adjustment and color temperature interface.

Optionally, the sensor comprises an ambient light sensor.

In another aspect, an embodiment of the present invention provides a color adjustment apparatus, including:

the receiving module is used for receiving color value setting operation input by a user;

a determining module, configured to determine a first color value in response to the color value setting operation, where the first color value includes a saturation value and a brightness value;

the first generation module is used for generating a color temperature presentation value according to the saturation value, and the second generation module is used for generating a brightness presentation value according to the brightness value;

the third generation module is used for generating a second color value according to the color temperature presenting value and the brightness presenting value;

and the adjusting module is used for adjusting the color of the adjusting module according to the second color value.

In another aspect, an embodiment of the present invention provides a storage medium, including: the storage medium includes a stored program, wherein the device on which the storage medium is located is controlled to execute the above color adjustment method when the program runs.

In another aspect, an embodiment of the present invention provides a display device, including a memory and a processor, where the memory is used for storing information including program instructions, and the processor is used for controlling execution of the program instructions, where the program instructions are loaded and executed by the processor to implement the steps of the color adjustment method.

In the technical scheme of the color adjusting method provided by the embodiment of the invention, color value setting operation input by a user is received; determining a first color value in response to a color value setting operation, the first color value comprising a saturation value and a brightness value; generating a color temperature presenting value according to the saturation value, and generating a brightness presenting value according to the brightness value; generating a second color value according to the color temperature presenting value and the brightness presenting value; and adjusting the self color according to the second color value. In the technical scheme provided by the embodiment of the invention, the color of the display equipment is adjusted according to the generated second color value, so that the user can not generate visual fatigue due to watching the display equipment for a long time.

[ description of the drawings ]

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.

FIG. 1 is a flowchart illustrating a color adjustment method according to an embodiment of the present invention;

FIG. 2 is a schematic diagram of a color wheel provided in an embodiment of the present invention;

FIG. 3 is a flow chart of another color adjustment method according to an embodiment of the present invention;

FIG. 4 is a schematic structural diagram of a color adjustment apparatus according to an embodiment of the present invention;

FIG. 5 is a schematic structural diagram of a second generation module in FIG. 4;

fig. 6 is a schematic diagram of a display device according to an embodiment of the present invention.

[ detailed description ] embodiments

For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.

It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

It should be understood that the term "and/or" as used herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., A and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.

An embodiment of the present invention provides a color adjustment method, and fig. 1 is a flowchart of the color adjustment method provided in the embodiment of the present invention, as shown in fig. 1, the method includes:

and 102, receiving a color value setting operation input by a user.

In the embodiment of the invention, each step is executed by the display device. The display device comprises a computer, a tablet computer, a television, a mobile phone or a wearable device.

In this step, a user inputs a color value setting operation through the display device, and the display device receives the color value setting operation input by the user.

In the embodiment of the present invention, fig. 2 is a schematic view of a color wheel provided in the embodiment of the present invention, and as shown in fig. 2, the color wheel is prepared based on three primary colors of red R, green G, and blue B. For example, the user clicks on a color on the color wheel interface through the display device to input a color value setting operation.

And step 104, responding to the color value setting operation, and determining a first color value, wherein the first color value comprises a saturation value and a brightness value.

In the step, in response to the user clicking the color on the color disc interface through the display device, the input color value is set to determine the first color value. At this time, the first color value is the color clicked by the user on the color wheel interface. For example, the first color value is # ff 8080.

In an embodiment of the present invention, the first color value includes a saturation value and a brightness value. For example, when the first color value is # ff8080, the saturation value is 50 degrees and the lightness value is 100%.

And 106, generating a color temperature presenting value according to the saturation value, and generating a brightness presenting value according to the brightness value.

For example, the color temperature rendering value 15 degrees is generated from the saturation value 50 degrees, and the brightness rendering value 80% is generated from the brightness value 100%.

And 108, generating a second color value according to the color temperature presenting value and the brightness presenting value.

For example, the second color value # ffd9d9 is generated according to the color temperature rendering value of 15 degrees and the luminance rendering value of 80%.

And step 110, adjusting the color of the color sensor according to the second color value.

In this step, for example, the color of the image itself is adjusted to # ffd9d 9. At this time, the color displayed by the display device is # ffd9d 9. # ffd9d9 had a lighter color than # ff 8080.

In the technical scheme provided by the embodiment of the invention, the color value setting operation input by a user is received; determining a first color value in response to a color value setting operation, the first color value comprising a saturation value and a brightness value; generating a color temperature presenting value according to the saturation value, and generating a brightness presenting value according to the brightness value; generating a second color value according to the color temperature presenting value and the brightness presenting value; and adjusting the self color according to the second color value. In the technical scheme provided by the embodiment of the invention, the color of the display equipment is adjusted according to the generated second color value, so that the user can not generate visual fatigue due to watching the display equipment for a long time.

An embodiment of the present invention provides another color adjustment method, and fig. 2 is a flowchart of another color adjustment method provided in an embodiment of the present invention, as shown in fig. 2, the method includes:

step 202, receiving a first interface display operation input by a user, and displaying a setting interface.

In the embodiment of the invention, each step is executed by the display device. The display device comprises a computer, a tablet computer, a smart phone or a wearable device.

In this step, for example, the user inputs a first interface display operation by clicking the display device, and the display device receives the first interface display operation input by the user and displays a setting interface.

And step 204, receiving a second interface display operation input by the user on the setting interface, and displaying a display interface and a brightness interface.

In this step, for example, the user inputs a second interface display operation by clicking a setting interface displayed on the display device, and the display device receives the second interface display operation input by the user, and displays a display and a brightness interface.

And step 206, receiving a third interface display operation input by the user on the display and brightness interface, and displaying a color adjustment and color temperature interface.

In this step, for example, the user inputs a third interface display operation by clicking the display and brightness interface displayed on the display device, and the display device receives the third interface display operation input by the user and displays the color adjustment and color temperature interface.

And step 208, receiving color value setting operation input by the user on the acquired color adjustment and color temperature interface.

In this step, a user inputs a color value setting operation through a color adjustment and color temperature interface displayed on the display device, and the display device receives the color value setting operation input by the user.

In the embodiment of the invention, for example, a user clicks colors on a color wheel interface in a color adjustment and color temperature interface through a display device to input color value setting operation.

Step 210, determining a first color value in response to the color value setting operation, where the first color value includes a saturation value and a brightness value.

In the embodiment of the present invention, please refer to step 104 for a detailed description of step 208.

And 212, generating a color temperature presenting value according to the saturation value, and generating a brightness presenting value according to the brightness value.

Specifically, generating a color temperature rendering value from the saturation value includes: the saturation value is set to a color temperature rendering value.

For example, the saturation value of 50 degrees is set as the color temperature rendering value of 15 degrees.

In the embodiment of the present invention, step 212 includes:

step S1, receiving the ambient light brightness value acquired by the sensor itself.

In an embodiment of the invention, the sensor comprises an ambient light sensor.

In this step, the ambient light brightness value obtained by the sensor is received by the display device.

Step S2, querying a brightness value corresponding to the ambient light brightness value according to the stored correspondence between the ambient light brightness value and the brightness value.

In the embodiment of the invention, the display device stores the corresponding relation between the ambient light brightness value and the brightness value, and can inquire the brightness value corresponding to the ambient light brightness value according to the corresponding relation between the ambient light brightness value and the brightness value.

Step S3, the brightness value is set to the brightness value corresponding to the brightness value of the ambient light.

For example, the brightness value is set to 80% of the brightness value corresponding to the brightness value of the ambient light.

In step S4, the brightness value corresponding to the ambient light brightness value is used as the brightness presentation value.

For example, the luminance value corresponding to the ambient light luminance value of 80% is used as the luminance representing value.

In the embodiment of the invention, the ambient light brightness value and the brightness presenting value are in positive correlation.

And 214, generating a second color value according to the color temperature presenting value and the brightness presenting value.

In the embodiment of the present invention, please refer to step 108 for the detailed description of step 214.

And step 216, adjusting the self color according to the second color value.

In the embodiment of the present invention, please refer to step 110 for a detailed description of step 216.

In the technical scheme provided by the embodiment of the invention, the color value setting operation input by a user is received; determining a first color value in response to a color value setting operation, the first color value comprising a saturation value and a brightness value; generating a color temperature presenting value according to the saturation value, and generating a brightness presenting value according to the brightness value; generating a second color value according to the color temperature presenting value and the brightness presenting value; and adjusting the self color according to the second color value. In the technical scheme provided by the embodiment of the invention, the color of the display equipment is adjusted according to the generated second color value, so that the user can not generate visual fatigue due to watching the display equipment for a long time.

In the technical scheme provided by the embodiment of the invention, a user manually selects a certain color on the color disc, the color temperature of the screen is changed by the color temperature of the certain color, the actual color temperature change is not the first color value selected by the user, but the first color value is processed by an algorithm to obtain the second color value, and the second color value has softer color, so that the eyes of the user can be protected.

The embodiment of the invention provides a color adjusting device. Fig. 4 is a schematic structural diagram of a color adjustment apparatus according to an embodiment of the present invention, as shown in fig. 4, the apparatus includes: a receiving module 11, a determining module 12, a first generating module 13, a second generating module 14, a third generating module 15 and an adjusting module 16.

The receiving module 11 is used for receiving a color value setting operation input by a user.

The determining module 12 is configured to determine a first color value in response to the color value setting operation, where the first color value includes a saturation value and a brightness value.

The first generating module 13 is configured to generate a color temperature presenting value according to the saturation value, and the second generating module 14 is configured to generate a brightness presenting value according to the brightness value.

The third generating module 15 is configured to generate a second color value according to the color temperature representation value and the luminance representation value.

The adjusting module 16 is configured to adjust the color of the display device according to the second color value.

In this embodiment of the present invention, the first generating module 13 is specifically configured to set the saturation value as the color temperature presenting value.

In an embodiment of the present invention, fig. 5 is a schematic structural diagram of the second generating module 14 in fig. 4, and as shown in fig. 5, the second generating module 14 includes: a receiving sub-module 141, a query sub-module 142, a first setting sub-module 143, and a second setting sub-module 144.

The receiving submodule 141 is configured to receive the ambient light brightness value obtained by its own sensor.

The query submodule 142 is configured to query a brightness value corresponding to the ambient light brightness value according to the stored correspondence between the ambient light brightness value and the brightness value.

The first setting sub-module 143 is configured to set the brightness value to a brightness value corresponding to the ambient light brightness value.

The second setting sub-module 144 is configured to use the brightness value corresponding to the ambient light brightness value as the brightness presenting value.

In an embodiment of the present invention, the ambient light brightness value is positively correlated to the brightness presenting value.

In the embodiment of the present invention, the receiving module 11 is specifically configured to receive a color value setting operation input by a user on the acquired color adjustment and color temperature interface.

In the embodiment of the present invention, the receiving module 11 is further configured to receive a first interface display operation input by a user, and display a setting interface; receiving a second interface display operation input by a user on the setting interface, and displaying a display interface and a brightness interface; and receiving a third interface display operation input by a user on the display and brightness interface, and displaying the color adjustment and color temperature interface.

In an embodiment of the invention, the sensor comprises an ambient light sensor.

In the technical scheme provided by the embodiment of the invention, the color value setting operation input by a user is received; determining a first color value in response to a color value setting operation, the first color value comprising a saturation value and a brightness value; generating a color temperature presenting value according to the saturation value, and generating a brightness presenting value according to the brightness value; generating a second color value according to the color temperature presenting value and the brightness presenting value; and adjusting the self color according to the second color value. In the technical scheme provided by the embodiment of the invention, the color of the display equipment is adjusted according to the generated second color value, so that the user can not generate visual fatigue due to watching the display equipment for a long time.

The color adjustment apparatus provided in this embodiment can be used to implement the color adjustment method in fig. 1 and fig. 3, and for specific description, reference may be made to the embodiment of the color adjustment method described above, and a description thereof is not repeated here.

An embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, where each step of the embodiment of the color adjustment method is executed by a device in which the storage medium is controlled when the program runs, and for specific description, reference may be made to the embodiment of the color adjustment method.

An embodiment of the present invention provides a display device, including a memory and a processor, where the memory is used to store information including program instructions, and the processor is used to control execution of the program instructions, and the program instructions are loaded and executed by the processor to implement the steps of the embodiment of the color adjustment method.

Fig. 6 is a schematic diagram of a display device according to an embodiment of the present invention. As shown in fig. 6, the display device 20 of this embodiment includes: the processor 21, the memory 22, and the computer program 23 stored in the memory 22 and capable of running on the processor 21, wherein the computer program 23 is implemented by the processor 21 to implement the color adjustment method applied in the embodiment, and therefore, for avoiding repetition, the details are not repeated herein. Alternatively, the computer program is executed by the processor 21 to implement the functions of the models/units applied to the color adjusting apparatus in the embodiments, which are not repeated herein to avoid redundancy.

The display device 20 includes, but is not limited to, a processor 21, a memory 22. Those skilled in the art will appreciate that fig. 6 is merely an example of a display device 20 and does not constitute a limitation of display device 20 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the display device may also include input output devices, network access devices, buses, etc.

The Processor 21 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

The storage 22 may be an internal storage unit of the display device 20, such as a hard disk or a memory of the display device 20. The memory 22 may also be an external storage device of the display device 20, such as a plug-in hard disk provided on the display device 20, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 22 may also include both an internal storage unit of the display device 20 and an external storage device. The memory 22 is used for storing computer programs and other programs and data required by the display device. The memory 22 may also be used to temporarily store data that has been output or is to be output.

It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.

In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.

The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.

The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:全自动实现多屏拼接方法、装置、设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类