Method for adjusting display parameters and computer equipment

文档序号:1116330 发布日期:2020-09-29 浏览:16次 中文

阅读说明:本技术 一种调整显示参数的方法和计算机设备 (Method for adjusting display parameters and computer equipment ) 是由 余明火 侯亚荣 张光宇 王德闯 洪文生 于 2020-06-02 设计创作,主要内容包括:本发明公开了一种调整显示参数的方法和计算机设备,所述方法包括:获取环境光感值,并确定与所述环境光感值对应的预设的参考输出值;确定目标传感器的目标类型,并根据所述目标类型对所述参考输出值进行调整;基于调整后的参考输出值调整显示设备的显示参数。本发明中,根据目标类型对参考输出值进行调整,当目标传感器与参考输出值对应参考传感器不同时,避免了直接采用参考输出值调节显示参数,导致显示效果不好的情况;也就是说,当显示设备采用的目标传感器不是参考传感器时,可以对参考输出值进行调整,使用调整后的参考输出值调整显示设备的显示参数,以提高显示设备的显示效果。(The invention discloses a method and computer equipment for adjusting display parameters, wherein the method comprises the following steps: acquiring an ambient light sensitivity value, and determining a preset reference output value corresponding to the ambient light sensitivity value; determining a target type of a target sensor, and adjusting the reference output value according to the target type; and adjusting the display parameters of the display device based on the adjusted reference output value. According to the method and the device, the reference output value is adjusted according to the target type, and when the target sensor is different from the reference sensor corresponding to the reference output value, the situation that the display effect is poor due to the fact that the reference output value is directly adopted to adjust the display parameters is avoided; that is, when the target sensor adopted by the display device is not the reference sensor, the reference output value may be adjusted, and the adjusted reference output value may be used to adjust the display parameter of the display device, so as to improve the display effect of the display device.)

1. A method of adjusting display parameters, the method comprising:

acquiring an ambient light sensitivity value, and determining a preset reference output value corresponding to the ambient light sensitivity value;

determining a target type of a target sensor, and adjusting the reference output value according to the target type;

and adjusting the display parameters of the display device based on the adjusted reference output value.

2. The method of claim 1, wherein determining the preset reference output value corresponding to the ambient light sensation value comprises:

acquiring a preset corresponding relation table, wherein the corresponding relation table comprises a plurality of light source light sensation values and a plurality of preset candidate output values respectively corresponding to the light source light sensation values;

and determining a light source light sensation value consistent with the environment light sensation value in the corresponding relation table, and taking a candidate output value corresponding to the light source light sensation value consistent with the environment light sensation value as the reference output value.

3. The method of claim 2, wherein determining a preset reference output value corresponding to the ambient light sensation value further comprises:

if no light source light sensation value consistent with the ambient light sensation value exists in the corresponding relation table, determining a first light source light sensation value and a second light source light sensation value which have the smallest difference with the ambient light sensation value, wherein the ambient light sensation value is between the first light source light sensation value and the second light source light sensation value;

determining a first candidate output value corresponding to the first source light sensation value and a second candidate output value corresponding to the second source light sensation value in the correspondence table;

determining the reference output value based on the first source light sensation value, the first candidate output value, the second source light sensation value, and the second candidate output value.

4. The method according to claim 2, wherein the plurality of light source luminance values are sorted by size in the correspondence table, and a difference between any two consecutive light source luminance values in the correspondence table is equal.

5. The method of claim 2, wherein determining a target type for a target sensor and adjusting the reference output value based on the target type comprises:

acquiring a target identifier of the target sensor, and determining the target type according to the target identifier;

and if the target type is not consistent with the preset reference type, adjusting the reference output value according to the corresponding relation table to obtain a target reference value, and taking the target reference value as the adjusted reference output value.

6. The method of claim 5, wherein determining a target type for a target sensor and adjusting the reference output value based on the target type further comprises:

and if the target type is consistent with the preset reference type, the reference output value is not adjusted, and the reference output value is used as the adjusted reference value.

7. The method according to claim 5, wherein the correspondence table further comprises a plurality of correspondence sub-tables respectively corresponding to a plurality of types of different sensors, the correspondence sub-tables comprising a plurality of light source light sensation values, a plurality of preset candidate output values respectively corresponding to the plurality of light source light sensation values, and a plurality of target output values respectively corresponding to the plurality of preset candidate output values; if so, adjusting the reference output value according to the corresponding relation table to obtain a target reference value, and taking the target reference value as the adjusted reference output value, including:

determining a target corresponding relation sub-table corresponding to the target identification in a plurality of corresponding relation sub-tables;

and determining a target output value corresponding to the reference output value according to the target corresponding relation sub-table, and taking the target reference value as the adjusted reference output value.

8. The method of claim 6, wherein the display parameters comprise a display brightness value and a display color temperature value, and the target output values comprise a target output brightness value and a target output color temperature value; the adjusting the display parameter of the display device based on the adjusted reference output value includes:

adjusting the display brightness value based on the target output brightness value, and adjusting the display color temperature value based on the target output color temperature value.

9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 8 when executing the computer program.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.

Technical Field

The present invention relates to the field of display technologies, and in particular, to a method and a computer device for adjusting display parameters.

Background

In order to meet the requirement of consumers on the viewing effect, the ambient light sensor and the color temperature value sensor are gradually applied to the television technology, the ambient light sensor technology is used on the television, the display equipment can automatically adjust the screen brightness value according to the brightness value of the environment and adjust the color temperature value of the television according to the color temperature value of the environment, for example, under the bright light environment, the display of the display equipment is adjusted to be bright, and under the dark light environment, the display of the display equipment is adjusted to be bright; under the warmer light environment, the display of the display device is adjusted to be warmer, which brings a comfortable and healthy viewing experience to the user.

In practical applications, for the same model of display device, depending on the material supply resource situation, it may happen that a plurality of display devices of the same model use different types of sensors, and there are differences in sensitivity, accuracy and sensing curve of the different types of sensors, for example, for a sensor a with an accuracy of 8 bits, the accuracy is only 256, and for a sensor B with an accuracy of 10 bits, the accuracy is 1024. When one display device uses the sensor a, 256 represents the maximum brightness value or the color temperature value, and the other device uses the sensor B, the read value 256 does not actually represent the maximum brightness value or the color temperature value, so that the actual display effect is not in the best state when the mapping relation of the sensor a is directly followed to the sensor B.

Accordingly, the prior art is yet to be improved and developed.

Disclosure of Invention

The invention mainly aims to provide a method and computer equipment for adjusting display parameters, wherein when a target sensor is different from a reference sensor corresponding to a reference output value, the reference output value is adjusted according to a target type, and the adjusted reference output value is used for adjusting the display parameters of display equipment so as to improve the display effect of the display equipment.

In a first aspect, the present invention provides a method for adjusting display parameters, the method comprising:

acquiring an ambient light sensitivity value, and determining a preset reference output value corresponding to the ambient light sensitivity value;

determining a target type of a target sensor, and adjusting the reference output value according to the target type;

and adjusting the display parameters of the display device based on the adjusted reference output value.

As a further improved technical solution, the determining a preset reference output value corresponding to the ambient light sensation value includes:

acquiring a preset corresponding relation table, wherein the corresponding relation table comprises a plurality of light source light sensation values and a plurality of preset candidate output values respectively corresponding to the light source light sensation values;

and determining a light source light sensation value consistent with the environment light sensation value in the corresponding relation table, and taking a candidate output value corresponding to the light source light sensation value consistent with the environment light sensation value as the reference output value.

As a further improved technical solution, the determining a preset reference output value corresponding to the ambient light sensation value further includes:

if no light source light sensation value consistent with the ambient light sensation value exists in the corresponding relation table, determining a first light source light sensation value and a second light source light sensation value which have the smallest difference with the ambient light sensation value, wherein the ambient light sensation value is between the first light source light sensation value and the second light source light sensation value;

determining a first candidate output value corresponding to the first source light sensation value and a second candidate output value corresponding to the second source light sensation value in the correspondence table;

determining the reference output value based on the first source light sensation value, the first candidate output value, the second source light sensation value, and the second candidate output value.

As a further improved technical solution, in the correspondence table, the light sensation values of the plurality of light sources are sorted according to size, and the difference values between any two consecutive light sensation values in the correspondence table are all equal.

As a further improved technical solution, the determining a target type of a target sensor and adjusting the reference output value according to the target type includes:

acquiring a target identifier of the target sensor, and determining the target type according to the target identifier;

and if the target type is not consistent with the preset reference type, adjusting the reference output value according to the corresponding relation table to obtain a target reference value, and taking the target reference value as the adjusted reference output value.

As a further improved technical solution, the determining a target type of a target sensor and adjusting the reference output value according to the target type further includes:

and if the target type is consistent with the preset reference type, the reference output value is not adjusted, and the reference output value is used as the adjusted reference value.

As a further improved technical solution, the corresponding relationship table further includes a plurality of corresponding relationship sub-tables, the plurality of corresponding relationship sub-tables respectively correspond to a plurality of types of different sensors, and the corresponding relationship sub-tables include a plurality of light source light sensation values, a plurality of preset candidate output values respectively corresponding to the plurality of light source light sensation values, and a plurality of target output values respectively corresponding to the plurality of preset candidate output values; if so, adjusting the reference output value according to the corresponding relation table to obtain a target reference value, and taking the target reference value as the adjusted reference output value, including:

determining a target corresponding relation sub-table corresponding to the target identification in a plurality of corresponding relation sub-tables;

and determining a target output value corresponding to the reference output value according to the target corresponding relation sub-table, and taking the target reference value as the adjusted reference output value.

As a further improved technical solution, the display parameter includes a display brightness value and a display color temperature value, and the target output value includes a target output brightness value and a target output color temperature value; the adjusting the display parameter of the display device based on the adjusted reference output value includes:

adjusting the display brightness value based on the target output brightness value, and adjusting the display color temperature value based on the target output color temperature value.

In a second aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the following steps when executing the computer program:

acquiring an ambient light sensitivity value, and determining a preset reference output value corresponding to the ambient light sensitivity value;

determining a target type of a target sensor, and adjusting the reference output value according to the target type;

and adjusting the display parameters of the display device based on the adjusted reference output value.

In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps:

acquiring an ambient light sensitivity value, and determining a preset reference output value corresponding to the ambient light sensitivity value;

determining a target type of a target sensor, and adjusting the reference output value according to the target type;

and adjusting the display parameters of the display device based on the adjusted reference output value.

In the embodiment of the invention, an ambient light sensitivity value is obtained, and a preset reference output value corresponding to the ambient light sensitivity value is determined; determining a target type of a target sensor, and adjusting the reference output value according to the target type; and adjusting the display parameters of the display device based on the adjusted reference output value. According to the method and the device, the reference output value is adjusted according to the target type, and when the target sensor and the reference sensor corresponding to the reference output value have different accuracies, the situation that the display effect is poor due to the fact that the reference output value is directly adopted to adjust the display parameters is avoided; that is, when the target sensor adopted by the display device is not the reference sensor, the reference output value may be adjusted, and the adjusted reference output value may be used to adjust the display parameter of the display device, so as to improve the display effect of the display device.

Drawings

FIG. 1 is a diagram illustrating a method for adjusting display parameters according to an embodiment of the present invention;

FIG. 2 is a graph showing the response of the reference sensor SA at 31 illuminant intensities and the response of the target sensor SB at 31 illuminant intensities according to the embodiment of the present invention;

FIG. 3 is a schematic diagram of the connection of the target sensor, the MCU and the display module in terms of hardware in an embodiment of the present invention;

FIG. 4 is a diagram illustrating a method for adjusting display parameters according to an embodiment of the present invention;

fig. 5 is an internal structural diagram of a computer device in an embodiment of the present invention.

Detailed Description

In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 inventor has found that in practical application, for the same model of display device, depending on the material supply resource, it may happen that a plurality of display devices of the same model use different types of sensors, and the sensitivity, accuracy and sensing curve of the different types of sensors are different, for example, for sensor a with an accuracy of 8 bits, the accuracy is only 256, and for sensor B with an accuracy of 10 bits, the accuracy is 1024. When one display device uses the sensor a, 256 represents the maximum brightness value or the color temperature value, and the other device uses the sensor B, the read value 256 does not actually represent the maximum brightness value or the color temperature value, so that the actual display effect is not in the best state when the mapping relation of the sensor a is directly followed to the sensor B.

In order to solve the above problem, in the embodiment of the present invention, an ambient light sensitivity value is obtained, and a preset reference output value corresponding to the ambient light sensitivity value is determined; determining a target type of a target sensor, and adjusting the reference output value according to the target type; and adjusting the display parameters of the display device based on the adjusted reference output value. According to the method and the device, the reference output value is adjusted according to the target type, and when the target sensor is different from the reference sensor corresponding to the reference output value, the situation that the display effect is poor due to the fact that the reference output value is directly adopted to adjust the display parameters is avoided; that is, when the target sensor adopted by the display device is not the reference sensor, the reference output value may be adjusted, and the adjusted reference output value may be used to adjust the display parameter of the display device, so as to improve the display effect of the display device.

The method for adjusting the display parameters provided by the embodiment of the invention can be applied to display equipment, wherein the display equipment comprises but is not limited to television equipment, a computer display screen, a mobile phone display screen and the like.

Various non-limiting embodiments of the present invention are described in detail below with reference to the accompanying drawings.

Referring to fig. 1, a method for adjusting display parameters in an embodiment of the present invention is shown, where the method includes:

and S1, acquiring an ambient light sensitivity value, and determining a preset reference output value corresponding to the ambient light sensitivity value.

In the embodiment of the present invention, the ambient light sensing value includes an ambient brightness value and an ambient color temperature value, the reference output value is an output value corresponding to a reference sensor, the reference output value includes a reference brightness output value and a reference color temperature output value, and the reference sensor is preset; the reference sensor may output the reference luminance output value directly according to the ambient luminance and the reference color temperature output value directly according to the ambient color temperature, or obtain R, G, B color temperature according to the ambient color temperature and output the reference color temperature output value according to R, G, B color temperature.

For the same type of display device, due to insufficient supply of materials, a situation may occur that a plurality of display devices of the same type employ different types of sensors, and the sensors may collect a brightness value and a color temperature value of ambient light, which is light of an environment in which the display device is located. The sensor can adjust display parameters of the display device according to the brightness value and the color temperature value of the ambient light, wherein the display parameters comprise the brightness value and the color temperature value of the display device. Multiple display devices of the same model may employ different types of sensors, which differ in sensitivity, accuracy, and sensing curve. For example, for sensor a with an accuracy of 8 bits, the accuracy is only 256, while for sensor B with an accuracy of 10 bits, the accuracy is 1024. When one display device uses sensor a, 256 represents the maximum brightness value or color temperature value of the bright environment, and when another display device uses sensor B, the read value 256 does not actually represent the maximum brightness value or color temperature value. One type of sensor is preset as a reference sensor that will output different reference output values depending on different ambient light.

Specifically, step S1 includes:

s11, obtaining a preset corresponding relation table, wherein the corresponding relation table comprises a plurality of light source light sensation values and a plurality of preset candidate output values respectively corresponding to the light source light sensation values.

In the embodiment of the present invention, before the display device leaves the factory, the correspondence table needs to be placed in the display device in advance, and the correspondence table is established by detecting output values of different types of sensors under a plurality of light sources with different light sensation values, respectively. For the reference sensor, the output values of the reference sensor under different light sensation values are tested, and the output values of the reference sensor under different light sensation values are called candidate output values.

In the embodiment of the present invention, candidate output values of the reference sensor are determined using different light sources (different light sensation values), where the light sensation value of the light source includes a light source color temperature value and a light source brightness value, and accordingly, the candidate output values include a candidate color temperature output value and a candidate brightness output value, the correspondence table includes a plurality of light source color temperature values, and a plurality of candidate color temperature output values corresponding to the light source color temperature values, and also includes a plurality of light source brightness values, and a plurality of candidate brightness output values corresponding to the light source brightness values.

The light sources are sorted according to the magnitude of the light source light sensation values, that is, the light source light sensation values in the corresponding relation table are sorted according to the magnitude of the light source light sensation values, and the sorted light source light sensation values form an equal difference array, that is, the difference between any two consecutive light source light sensation values in the corresponding relation table is equal (the difference between any two consecutive light source brightness values is equal, and the difference between any two consecutive light source color temperature values is equal).

For example, the brightness value of the light source 1 is 0, and the color temperature value is 0; the brightness value of the light source 2 is 100, and the color temperature value is 10; the light source 3 has a brightness value of 200 and a color temperature value of 20. The candidate output value of the reference sensor is 0 under the light source 1; the candidate output value of the reference sensor under the light source 2 is 8; the reference sensor is under the light source 3 and the candidate output value is 16.

S12A, determining the light source sensitivity value consistent with the ambient light sensitivity value in the correspondence table, and using the candidate output value corresponding to the light source sensitivity value consistent with the ambient light sensitivity value as the reference output value.

In the embodiment of the invention, if the corresponding relation table has a light source sensitivity value consistent with the ambient light sensitivity value, the candidate output value corresponding to the light source sensitivity value is used as the reference output value. The environment light sensitivity value comprises an environment brightness value and an environment color temperature value, the light source light sensitivity value comprises a light source brightness value and a light source color temperature value, and the reference output value comprises a reference brightness output value and a reference color temperature output value; if the corresponding relation comprises a light source brightness value consistent with the environment brightness value and a light source color temperature value consistent with the environment color temperature value, the candidate brightness output value corresponding to the light source brightness value is used as a reference brightness output value, and the first level uses the light source color temperature value as a reference color temperature output value.

Since the light source sensitivity values in the correspondence table are the set light source sensitivity values, it is impossible to fully cover all the possible ambient light sensitivity values, when there is no light source sensitivity value consistent with the ambient light sensitivity value in the correspondence table (there is no light source brightness value consistent with the ambient brightness value or no light source color temperature value consistent with the ambient color temperature value in the correspondence table), a reference output value corresponding to the ambient light sensitivity value is determined according to two light source sensitivity values adjacent to the ambient light sensitivity value, the two light source sensitivity values adjacent to the ambient light sensitivity value obtain a minimum interval in which the ambient light sensitivity value is included, if there is no light source brightness value consistent with the ambient brightness value in the correspondence table, a reference brightness output value corresponding to the ambient brightness value is determined according to the two light source brightness values adjacent to the ambient brightness value, and similarly, if there is no light source color value consistent with the ambient color temperature value in the correspondence table, and determining a reference color temperature output value corresponding to the environment color temperature value according to the two adjacent light source color temperature values of the environment color temperature value.

Specifically, step S1 further includes:

S12B, if no light source light sensation value consistent with the ambient light sensation value exists in the corresponding relation table, determining a first light source light sensation value and a second light source light sensation value which have the smallest difference with the ambient light sensation value, wherein the ambient light sensation value is between the first light source light sensation value and the second light source light sensation value.

In the embodiment of the present invention, a light source light sensation value which is smaller than the ambient light sensation value and closest to the ambient light sensation value among the plurality of light source light sensation values may be used as the first light source light sensation value, and a light source light sensation value which is larger than the ambient light sensation value and closest to the ambient light sensation value among the plurality of light source light sensation values may be used as the second light source light sensation value, that is, the ambient light sensation value is included in the interval formed by the first light source light sensation value and the second light source light sensation value.

In an embodiment of the present invention, the ambient light sensitivity value includes an ambient brightness value and an ambient color temperature value, the light source light sensitivity value includes a light source brightness value and a light source color temperature value, the first light source light sensitivity value includes a first light source brightness value and a first light source color temperature value, and the second light source light sensitivity value includes a second light source brightness value and a second light source color temperature value.

S13B, determining a first candidate output value corresponding to the first light source light sensation value and a second candidate output value corresponding to the second light source light sensation value in the correspondence table.

In the embodiment of the invention, if there is no source light sensation value consistent with the ambient light sensation value in the correspondence table, the first candidate output value corresponding to the first source light sensation value adjacent to the ambient light sensation value and the second candidate output value corresponding to the second source light sensation value are determined.

In actual use, there are several cases as follows:

in the first case, if there is no light source color temperature value in the correspondence relationship that is consistent with the ambient color temperature value, but there is a light source brightness value in the correspondence relationship that is consistent with the ambient brightness value, a first candidate color temperature output value is determined according to the first light source color temperature value, and a second candidate color temperature output value is determined according to the second light source color temperature value.

In the second case, if there is a light source color temperature value that matches the ambient color temperature value in the correspondence, but there is no light source luminance value that matches the ambient luminance value in the correspondence, a first candidate luminance output value is determined based on the first light source luminance value, and a second candidate luminance output value is determined based on the second light source luminance value.

In a third case, if there is no light source color temperature value consistent with the ambient color temperature value or no light source brightness value consistent with the ambient brightness value in the correspondence, determining a first candidate color temperature output value according to the first light source color temperature value, determining a second candidate color temperature output value according to the second light source color temperature value, determining a first candidate brightness output value according to the first light source brightness value, and determining a reference output value corresponding to the ambient light sensation value according to the second light source brightness value.

S14B, determining the reference output value according to the first source light sensation value, the first candidate output value, the second source light sensation value and the second candidate output value.

In an embodiment of the invention, a linear relationship between a source light sensation value and a candidate output value within a range of the first source light sensation value and the second source light sensation value is determined based on the first source light sensation value, the first candidate output value, the second source light sensation value and the second candidate output value, and the reference output value is determined based on the linear relationship and the ambient light sensation value.

In an embodiment of the present invention, in the first case, according to the first light source color temperature value, the first candidate color temperature output value, the second light source color temperature value, and the second candidate color temperature output value, a linear relationship between the light source color temperature value and the candidate color temperature output value within a range of the first light source color temperature value and the second light source color temperature value is determined, and then the reference color temperature output value is determined according to the linear relationship and the ambient color temperature value.

For example, if the ambient color temperature value is 55, the first light source color temperature value is 50, the second light source color temperature value is 60, the first candidate color temperature output value is 100, and the second candidate color temperature output value is 120, it may be determined that a linear relationship between the light source color temperature value and the candidate color temperature output value within a range of the first light source color temperature value and the second light source color temperature value, specifically, a point corresponding to the first light source color temperature value is (50,100), a point corresponding to the second light source color temperature value is (60,120), a point corresponding to the ambient color temperature value is (55, y), where y is a reference color temperature value to be required, and the linear relationship may be calculated according to (50,100) and (60,120) as follows: and y is 2x, wherein x is the ambient color temperature value, and when x is 55, y is 110, i.e. the reference color temperature output value is 110.

In the second case, a linear relationship between the light source luminance value and the candidate luminance output value within a range of the first light source luminance value and the second light source luminance value is determined according to the first light source luminance value, the first candidate color temperature value luminance value, the second light source luminance value, and the second candidate luminance output value, and then the reference luminance output value is determined according to the linear relationship and the environment luminance value.

For the third case, the reference output value includes a reference luminance output value and a reference color temperature output value, and the reference luminance output value and the reference color temperature output value can be obtained by combining the first case and the second case.

And S2, determining the target type of the target sensor, and adjusting the reference output value according to the target type.

In the embodiment of the present invention, it is necessary to determine the target type of the target sensor, and determine whether the reference output value can be directly used according to the target type, that is, determine whether the target sensor is consistent with the reference sensor (determined according to the target type), and if the target sensor is consistent with the reference sensor (actually, the target sensor is the reference sensor), the display device may directly adjust the display parameter using the reference output value; and if the target sensor is inconsistent with the reference sensor, adjusting the reference output value so as to enable the adjusted reference output value to be adaptive to the type of the target sensor.

In the prior art, only one scheme for adjusting the display parameters in the display device is provided, that is, when only the reference sensor is used, the display parameters of the display device are adjusted according to the candidate output values of the reference sensor. Therefore, in the embodiment of the present invention, if the target sensor used in the display device is not the reference sensor, the reference output value corresponding to the acquired reference sensor is adjusted.

Specifically, step S2 includes:

s21, acquiring a target identifier of the target sensor, and determining the target type according to the target identifier.

In the embodiment of the invention, for the display equipment of the same model, due to insufficient material supply, the types of the sensors adopted in the display equipment of the same model may be different; the sensor used in each display device has a corresponding type, and for the currently used display device, the target type of the target sensor used in the display device is acquired.

In the embodiment of the present invention, the target identifier is an ID number of a target sensor, and the same ID number is used by the same type of sensor, for example, the target identifier of a target sensor is 0X 05. The target type comprises a reference type and a non-reference type, after the reference sensor is determined, a reference identifier (ID number of the reference sensor) of the determined reference sensor is stored in a correlation mode with the reference type, after the target identifier of the target sensor used by the display equipment is determined, the target identifier is compared with the reference identifier, and if the target identifier is consistent with the reference identifier, the target type of the target sensor is the reference type, namely, the target sensor is consistent with the reference sensor; and if the target identifier is not consistent with the reference identifier, the target type of the target sensor is a non-reference type.

In another implementation, the target type is determined by target identification and target address, for example, target identification of target sensor is 0X06, target address is 0X 2B; the reference identifier of the reference sensor is 0X05, the reference address is 0X1C, and the target type of the target sensor is a non-reference type.

And S21A, if the target type is inconsistent with a preset reference type, adjusting the reference output value according to the corresponding relation table to obtain a target reference value, and taking the target reference value as the adjusted reference output value.

In the embodiment of the present invention, if the target type is a non-reference type, it indicates that the target type is not consistent with a preset reference type, and the reference output value is adjusted according to the correspondence table, where the characteristic of the reference sensor is different from the characteristic of the target sensor, and the correspondence table may be determined in advance according to the reference sensor and the target sensor. The corresponding relation table further comprises a plurality of corresponding relation sub-tables, the corresponding relation sub-tables correspond to different sensors of different types respectively, and the corresponding relation sub-tables comprise a plurality of light source light sensation values, a plurality of preset candidate output values corresponding to the light source light sensation values respectively, and a plurality of target output values corresponding to the preset candidate output values respectively.

That is, the correspondence table includes correspondence sub-tables between a plurality of types of sensors and the reference sensor, one correspondence sub-table corresponds to one sensor, and the correspondence word table includes a plurality of photosensitive source values and a plurality of preset candidate output values corresponding to the plurality of light source photosensitive values, respectively, for a first correspondence sub-table and a second correspondence sub-table in any two correspondence sub-tables, a plurality of photosensitive source values included in the first correspondence sub-table and a plurality of preset candidate output values corresponding to the plurality of light source photosensitive values, respectively, are consistent with a plurality of photosensitive source values included in the second correspondence sub-table and a plurality of preset candidate output values corresponding to the plurality of light source photosensitive values, respectively; since the two types of sensors have different accuracies, the first correspondence sub-table includes a plurality of target output values corresponding to the plurality of preset candidate output values, respectively, and the second correspondence sub-table includes a plurality of target output values corresponding to the plurality of preset candidate output values, respectively, that are not consistent.

Next, a specific process of obtaining the correspondence table will be described.

In one particular implementation, different light sources (different light sensation values) are used to determine candidate output values for the reference sensor, as well as output values for different types of sensors (including corresponding output values for the target sensor).

For the reference sensor SA, standard light sources of different brightness and different color temperatures are set within the detection range of SA (the range of brightness or color temperature that can be detected). The light source can be made into an adjustable closed light box, the SA is arranged in the light box, and the standard light sources with different brightness and different color temperatures comprise: light source 1: the brightness is 0, the color temperature is 0, the light source 1, i.e. the light source, is in an off state (minimum brightness value), the candidate output value is 0 at this time, taking the brightness as an example, i.e. the candidate brightness output value LAmin is 0; and adjusting the brightness of the light source, wherein when the brightness is adjusted to be the maximum brightness value, the candidate brightness output value is LAmax, that is, LAmin and LAmax are the minimum candidate brightness output value and the maximum candidate brightness output value fed back after the SA senses the light source, and similarly, the color temperature of the light source is adjusted, when the light source is in an off state, the color temperature of the light source is minimum, and when the brightness of the light source is adjusted to be the maximum value, the color temperature of the light source is maximum. Then, light sources between the minimum brightness value and the maximum brightness value are determined, for example, 9 equal divisions are performed between the minimum brightness value and the maximum brightness value, that is, 10 light sources are obtained, and then 10 candidate output values corresponding to the 10 light sources are determined. The luminances of the 10 light sources are different, and the color temperatures of the 10 light sources are different, so that the obtained 10 candidate color temperature output values are different, and the 10 candidate luminance output values are different. According to the 10 light sources and the candidate output values respectively corresponding to the 10 light sources, the induction curve corresponding to the reference sensor can be drawn. It should be noted here that the finer the light source is divided, the more accurately the relationship between the light source and the candidate output value can be reflected, but in the practical application, there are limited sampling points for various luminances or color temperatures of the standard light source.

Similarly, the target sensor SB can obtain 10 output values corresponding to 10 light sources by placing SB in the light source box. According to the 10 light sources and the output values respectively corresponding to the 10 light sources, the induction curve corresponding to the target sensor can be drawn. For other types of sensors, such as SC or SD, output values can be determined in the same way, and a corresponding relation table is obtained according to a plurality of light sources and a plurality of types of sensors (at least comprising a reference sensor and a target sensor); obtaining a corresponding relation sub-table according to a plurality of light sources, a reference sensor and a non-reference sensor; and then the corresponding relation table is stored in the display device.

Referring to fig. 2, a graph of the sensing curve of the reference sensor SA at 31 light source luminances and a graph of the sensing curve of the target sensor SB at 31 light source luminances in actual settings are shown, where a graph 1 is the sensing curve of the reference sensor SA at 31 light source luminances and a graph 2 is the sensing curve of the target sensor SB at 31 light source luminances.

Specifically, step S21A includes:

S21A1, determining a target corresponding relation sub-table corresponding to the target identification in a plurality of corresponding relation sub-tables.

In the embodiment of the present invention, a sensor of a non-reference type may correspond to different target identifiers, a plurality of correspondence word tables respectively correspond to a plurality of target identifiers, a correspondence sub-table corresponding to a target sensor is recorded as a target correspondence sub-table, and after a target identifier of a target sensor is determined, a target correspondence sub-table corresponding to a target identifier is determined in the plurality of correspondence sub-tables.

And S21A2, determining a target output value corresponding to the reference output value according to the target corresponding relation sub-table, and adjusting the reference output value to obtain the target output value.

In the embodiment of the invention, when the corresponding relation sub-table has the light source light sensation value consistent with the ambient light sensation value, the target output value can be directly determined according to the corresponding relation sub-table. The target output value includes a target luminance output value and a target reference output value.

In the embodiment of the present invention, when there is no source light sensation value consistent with the ambient light sensation value in the correspondence word table, a specific procedure for determining the reference output value based on the first source light sensation value, the first candidate output value, the second source light sensation value and the second candidate output value is introduced in step S14B, and then, a first target output value corresponding to the first source light sensation value and a second target output value corresponding to the second source light sensation value are determined in the correspondence sub-table, and a target output value is determined based on the first candidate output value, the first target output value, the second candidate output value and the second target output value. The first target output value includes a first target luminance output value and a first target color temperature output value, and the second target output value includes a second target luminance output value and a second target color temperature output value.

Specifically, for an environment brightness value, a first target brightness value output and a second target brightness value output corresponding to the light source brightness value are determined in a corresponding relation sub-table, wherein in the corresponding relation sub-table, the first target brightness value output corresponds to the first light source brightness value, and the second target brightness value output corresponds to the second light source brightness value; the reference brightness output value corresponding to the environment brightness value is contained in an interval formed by a first candidate brightness output value and a second candidate brightness output value, the first candidate brightness output value corresponds to a first target brightness output value, and the second candidate brightness output value corresponds to a second target brightness output value; and determining a target brightness output value according to the first target brightness output value, the first candidate brightness output value, the second target brightness output value, the second candidate brightness output value and the reference brightness output value. For an environment color temperature value, a target color temperature output value corresponding to the environment color temperature value can be determined by the same method.

For example, if the ambient brightness value is 55, the first light source brightness value is 50, the second light source brightness value is 60, the first candidate brightness output value is 100, the second candidate brightness output value is 120, the reference brightness output value is 110, the first target brightness output value is 200 and the second target brightness output value is 240 according to the correspondence sub-table, the target output linear relationship is determined according to the first target brightness output value, the first candidate brightness output value, the second target brightness output value and the second candidate brightness output value, specifically, the ratio between the first candidate brightness output value 100 and the first target brightness output value 200 is 1/2, the ratio between the second candidate brightness output value 100 and the second target brightness output value 200 is 1/2, it can be concluded that the ratio between the reference brightness output value and the target brightness output value is also 1/2, further, the linear relation of the target output is obtained as follows: and z is 2y, wherein y is the reference brightness output value, and z is the target brightness output value.

In another implementation, step S2 further includes:

and S21B, if the target type is consistent with a preset reference type, not adjusting the reference output value, and taking the reference output value as an adjusted reference value.

In the embodiment of the present invention, if the target type is consistent with the preset reference type, the target type is the reference type, and the target sensor and the reference sensor are substantially the same, that is, in this case, the target sensor may directly adjust the display parameter according to the reference output value.

And S3, adjusting the display parameters of the display device based on the adjusted reference output value.

In the embodiment of the invention, when the target type is a non-reference type, the adjusted reference output value is a target output value, and the display parameter of the display device is adjusted according to the target output value. The target output value comprises a target output brightness value and a target output color temperature value, and the display parameter comprises a display brightness value and a display color temperature value.

Specifically, step S3 includes:

s31, adjusting the display brightness value based on the target output brightness value, and adjusting the display color temperature value based on the target output color temperature value.

In the embodiment of the invention, when the target sensor used in the display device is not the reference sensor, the brightness of the display device is adjusted according to the target output brightness value, and the color temperature of the display device is adjusted according to the target output color temperature value. The manner of adjusting the brightness of the display device according to the target output brightness value and adjusting the color temperature of the display device according to the target output color temperature value is the prior art, and is not described herein again.

When the target sensor used in the display device is essentially a reference sensor, the display parameters of the display device are adjusted directly according to the reference output value.

In the embodiment of the present invention, referring to fig. 3, in terms of hardware, the target sensor is connected to a controller unit (MCU) and the MCU is connected to a display module; the target sensor senses ambient light to obtain an ambient light sensing value, the target sensor is communicated with a controller (MCU) in an I2C communication mode, the MCU reads an ID number of the target sensor, the target type of the target sensor is determined according to the ID number of the target sensor, and if the target type is a reference type, the MCU directly adjusts display parameters of the display device according to a reference output value corresponding to the ambient light sensing value; if the target type is a non-reference type, the MCU adjusts the reference output value according to a pre-stored corresponding relation table, and then controls the display module to adjust the display parameters according to the adjusted reference output value.

Referring to fig. 4, in a specific implementation, the method for adjusting the display parameter includes:

step a1, the target sensor acquires an ambient light sensitivity value and sends the ambient light sensitivity value to the MCU;

step a2, determining a reference output value corresponding to the ambient light sensation value by the MCU;

step a3, the MCU acquires a target identifier of the target sensor to determine a target type corresponding to the target sensor;

step a4, the MCU judges whether the target type is inconsistent with the reference type, if so, the step a5 is carried out, and if not, the step a7 is carried out;

step a5, the MCU adjusts the reference output value to obtain a target output value;

and step a6, the MCU adjusts the display parameters according to the target output value.

And step a7, the MCU adjusts the display parameters according to the reference output value.

In the embodiment of the invention, an ambient light sensitivity value is obtained, and a preset reference output value corresponding to the ambient light sensitivity value is determined; determining a target type of a target sensor, and adjusting the reference output value according to the target type; and adjusting the display parameters of the display device based on the adjusted reference output value. According to the method and the device, the reference output value is adjusted according to the target type, and when the target sensor is different from the reference sensor corresponding to the reference output value, the situation that the display effect is poor due to the fact that the reference output value is directly adopted to adjust the display parameters is avoided; that is, when the target sensor adopted by the display device is not the reference sensor, the reference output value may be adjusted, and the adjusted reference output value may be used to adjust the display parameter of the display device, so as to improve the display effect of the display device.

Based on the above method for testing a device, an embodiment of the present invention further provides a computer device, where the device may be a terminal, and an internal structure of the computer device is shown in fig. 5. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of adjusting display parameters. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.

Those skilled in the art will appreciate that fig. 5 is a block diagram of only a portion of the structure associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

The embodiment of the invention provides computer equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the computer equipment is characterized in that the processor executes the computer program and realizes the following steps:

acquiring an ambient light sensitivity value, and determining a preset reference output value corresponding to the ambient light sensitivity value;

determining a target type of a target sensor, and adjusting the reference output value according to the target type;

and adjusting the display parameters of the display device based on the adjusted reference output value.

An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps:

acquiring an ambient light sensitivity value, and determining a preset reference output value corresponding to the ambient light sensitivity value;

determining a target type of a target sensor, and adjusting the reference output value according to the target type;

and adjusting the display parameters of the display device based on the adjusted reference output value.

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:视频录制方法、终端及存储介质

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类