Method and device for determining ambient brightness, equipment, medium and program product

By obtaining the brightness values ​​and pixel colors of the light sensor and display screen, combining preset calibration data, calculating the backlight brightness ratio and actual light leakage value, and determining the target brightness value of the OLED screen, the problem of inaccurate brightness determination in the prior art OLED screen environment is solved, and the user experience is improved.

CN119993048APending Publication Date: 2025-05-13XIAN WINGTECH INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510017505.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-06
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The prior art cannot accurately determine the ambient brightness of the OLED screen, mainly because the brightness value collected by the light sensor sensor is inaccurate, and the traditional light leakage compensation scheme cannot be applied to the OLED screen.

Method used

By obtaining the first brightness value collected by the light sensor, the second brightness value of the display screen, and the pixel colors of each pixel in the preset area of ​​the display screen, combining the standard light leakage value and brightness level in the preset calibration data, the backlight brightness ratio and the actual light leakage value are calculated, and finally the target brightness value is determined.

Benefits of technology

It improves the accuracy of the target brightness value, enhances the user experience, and is suitable for the determination of the ambient brightness of OLED screens.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119993048A_ABST
    Figure CN119993048A_ABST
Patent Text Reader

Abstract

The invention relates to the field of mobile terminal application, in particular to an ambient brightness determination method and device, equipment, a medium and a program product, and the method comprises the steps: obtaining a first brightness value collected by a light sensor, a second brightness value of a display screen, and the pixel color of each pixel in a preset region of the display screen; obtaining a standard light leakage value corresponding to the pixel color and a brightness level corresponding to the second brightness value from a preset calibration data set; determining a ratio of the brightness level to a preset maximum brightness level as a backlight brightness ratio; determining a first actual light leakage value according to the standard light leakage value and the backlight brightness ratio; determining the difference between the first brightness value and the first actual light leakage value as a target brightness value; according to the scheme, the influence of the actual brightness of the display screen on the light leakage brightness is considered, and the influence of the pixel color of the preset area of the display screen on the light leakage brightness is also considered, so that the accuracy of the target brightness value is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of mobile terminal applications, and in particular to a method, device, equipment, medium and program product for determining ambient brightness. Background Art

[0002] It is very common for mobile terminals on the market (including but not limited to tablets, mobile phones, laptops, etc.) to use organic electroluminescence displays (OLED) and light sensors (also known as brightness sensors or light sensors). In actual use, the ambient brightness is collected by the light sensor, and the brightness of the OLED screen is automatically adjusted according to the ambient brightness. However, since the light sensor is usually set below the screen, the light on the screen is easy to leak to the light sensor, resulting in inaccurate brightness values ​​collected by the light sensor.

[0003] The traditional light leakage compensation solution is to perform a dark light calibration on the production line, and then determine the actual brightness value based on the brightness value collected by the light sensor and the calibration value.

[0004] However, the traditional light leakage compensation solution is only for liquid crystal display (LCD) screens. Since the structure and light-emitting principle of OLED screens are different from those of LCD screens, if the traditional light leakage compensation solution is directly applied to the application scenarios corresponding to OLED screens, the accuracy of light leakage compensation cannot be guaranteed. Summary of the invention

[0005] Based on this, it is necessary to provide a method, device, equipment, medium and program product for determining ambient brightness in response to the above technical problems.

[0006] The present disclosure provides a method for determining ambient brightness, including:

[0007] Obtain a first brightness value collected by the light sensor, a second brightness value of the display screen, and a pixel color of each pixel in a preset area of ​​the display screen, wherein the preset area is adjacent to the light sensor; obtain a standard light leakage value corresponding to the pixel color and a brightness level corresponding to the second brightness value from a preset calibration data set; determine a ratio of the brightness level to a preset maximum brightness level as a backlight brightness ratio; determine a first actual light leakage value based on the standard light leakage value and the backlight brightness ratio; and determine a difference between the first brightness value and the first actual light leakage value as a target brightness value.

[0008] The present disclosure provides a device for determining ambient brightness, including:

[0009] The first acquisition module is used to acquire a first brightness value collected by the light sensor, a second brightness value of the display screen and a pixel color of each pixel in a preset area of ​​the display screen, wherein the preset area is adjacent to the light sensor; the second acquisition module is used to acquire a standard light leakage value corresponding to the pixel color and a brightness level corresponding to the second brightness value from a preset calibration data set; the first determination module is used to determine a ratio of the brightness level to a preset maximum brightness level as a backlight brightness ratio; the second determination module is used to determine a first actual light leakage value based on the standard light leakage value and the backlight brightness ratio; the third determination module is used to determine a difference between the first brightness value and the first actual light leakage value as a target brightness value.

[0010] An embodiment of the present disclosure provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method for determining ambient brightness provided by any embodiment of the present disclosure is implemented.

[0011] An embodiment of the present disclosure provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for determining ambient brightness provided by any embodiment of the present disclosure is implemented.

[0012] An embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method for determining ambient brightness provided by any embodiment of the present disclosure.

[0013] The technical solution provided by the embodiments of the present disclosure is as follows:

[0014] The method for determining ambient brightness provided in the present embodiment, after obtaining the first brightness value collected by the light sensor, the second brightness value of the display screen and the pixel color of each pixel in the preset area of ​​the display screen, obtains the standard light leakage value corresponding to the pixel color and the brightness level corresponding to the second brightness value from the preset calibration data set; first, the ratio of the brightness level to the preset maximum brightness level is determined as the backlight brightness ratio; then, according to the standard light leakage value and the backlight brightness ratio, the first actual light leakage value is determined; finally, the difference between the first brightness value and the first actual light leakage value is determined as the target brightness value; the scheme provided in the present embodiment, combined with the self-luminous characteristics of the OLED screen, in the process of determining the first actual light leakage value, not only the influence of the actual brightness of the display screen on the leakage brightness is considered, but also the influence of the pixel color of the preset area of ​​the display screen on the leakage brightness is considered, thereby improving the accuracy of the target brightness value, and then improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A schematic diagram of a flow chart of a method for determining ambient brightness provided by an embodiment of the present disclosure;

[0016] Figure 2A schematic diagram of a process for determining a standard light leakage value provided in an embodiment of the present disclosure;

[0017] Figure 3 A structural block diagram of a device for determining ambient brightness provided by an embodiment of the present disclosure;

[0018] Figure 4 An internal structure diagram of a computer device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solution and advantages of the present disclosure more clear, the present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not used to limit the present disclosure.

[0020] The following describes the method for determining the ambient brightness of the embodiment of the present disclosure with reference to the accompanying drawings. The method can be applied to an ambient brightness determination device, such as Figure 1 As shown, the method for determining the ambient brightness includes:

[0021] S101, obtaining a first brightness value collected by a light sensor, a second brightness value of a display screen, and a pixel color of each pixel in a preset area of ​​the display screen, where the preset area is adjacent to the light sensor.

[0022] Among them, the first brightness value is the brightness value collected by the light sensor. Due to the existence of light leakage, the first brightness value can be understood as the superposition of the actual brightness of the environment in which the mobile device is located and the leakage brightness. The second brightness value is the actual brightness value of the display screen. The preset area of ​​the display screen is the area of ​​the display screen that is adjacent to the light sensor and whose color and brightness will have a greater impact on the light sensor. The preset area is set by the staff according to the actual situation. For example, the preset area can be the display screen area outside the light sensor and within 3 pixels from the boundary of the light sensor.

[0023] Specifically, a first brightness value collected by a light sensor is obtained, a second brightness value of a display screen detected by a brightness detection device is obtained, and the pixel color of each pixel contained in a preset area of ​​the display screen is obtained. The pixel color acquisition method includes but is not limited to reading the RGB value of each pixel and determining the pixel color according to the RGB value. It should be noted here that the pixel color in the preset area may be one or more.

[0024] S102: Acquire a standard light leakage value corresponding to the pixel color and a brightness level corresponding to the second brightness value from a preset calibration data set.

[0025] The preset calibration data set includes data generated when light leakage calibration is performed on the product line and a mapping relationship between brightness values ​​and brightness levels.

[0026] The light leakage calibration process is completed before S101. The number of light leakage calibrations corresponds to the type of color, and the data generated by the light leakage calibration is the standard light leakage value corresponding to the color. In this embodiment, the preset calibration data set may include standard light leakage values ​​of multiple common colors. When performing light leakage calibration, the mobile device is placed in a preset ambient brightness (such as a completely dark environment with a brightness of 0), the colors of all pixels covering the preset area of ​​the display screen are set to a preset color (such as yellow), the colors of all pixels in the display screen except the preset area are set to white, and the brightness of the display screen is set to the maximum value. At this time, the brightness value collected by the light sensor is the standard light leakage value corresponding to the preset color (that is, the standard light leakage value corresponding to yellow). It can be understood that the standard light leakage value is the maximum brightness of the light leakage of the display screen when the preset area is the preset color. In actual use, the light leakage brightness will change with the brightness of the display screen and the brightness and darkness of the pixel colors in the preset area.

[0027] The mapping relationship between the brightness value and the brightness level is obtained by the staff based on multiple experiments, and the mapping relationship between the brightness value and the brightness level can be presented through the screen brightness curve.

[0028] Specifically, when there is only one pixel color in the preset area, the standard light leakage value corresponding to the pixel color is obtained from the preset calibration data set. When there are multiple pixel colors in the preset area, the standard light leakage value corresponding to each pixel color is obtained from the preset calibration data set. In addition, the brightness level corresponding to the second brightness value needs to be obtained from the preset calibration data set.

[0029] S103: Determine the ratio of the brightness level to the preset maximum brightness level as the backlight brightness ratio.

[0030] Specifically, the ratio of the brightness level corresponding to the second brightness value to the preset maximum brightness level is used as the backlight brightness ratio. For example, if the brightness level corresponding to the second brightness value is 300 and the preset maximum brightness level is 2048, then the backlight brightness ratio is 300 / 2048.

[0031] S104: Determine a first actual light leakage value according to the standard light leakage value and the backlight brightness ratio.

[0032] The first actual light leakage value indicates that the preset area is a pixel color, and when the brightness of the display screen is a second brightness value, the brightness value collected by the light sensor and missed by the display screen. It is easy to understand that the first brightness value includes the first actual light leakage value.

[0033] Specifically, when there is only one pixel color in the preset area, the product of the standard light leakage value corresponding to the pixel color and the backlight brightness ratio is directly used as the first actual light leakage value. When there are multiple pixel colors in the preset area, it is first necessary to calculate the first average light leakage value based on the standard light leakage values ​​corresponding to all pixel colors; then the product of the first average light leakage value and the backlight brightness ratio is used as the first actual light leakage value.

[0034] For example, there is only one pixel color in the preset area, that is, yellow. The standard light leakage value Lux-Yellow corresponding to yellow is obtained in S102, and the first actual light leakage value=Lux-Yellow×backlight brightness ratio.

[0035] For example, there are 10 pixel blocks in the preset area, including 3 pixel blocks with yellow pixel color, 3 pixel blocks with blue pixel color and 4 pixel blocks with white pixel color. The standard light leakage value Lux-Yellow corresponding to yellow, the standard light leakage value Lux-Blue corresponding to blue, and the standard light leakage value Lux-White corresponding to white are obtained through S102. First, according to the standard light leakage values ​​of the pixel colors corresponding to all pixel blocks in the 10 pixel blocks, the first average light leakage value is calculated. In this embodiment, the first average light leakage value = (Lux-Yellow×3+Lux-Blue×3+Lux-White×4) / 10; the first actual light leakage value = the first average light leakage value × backlight brightness ratio.

[0036] S105: Determine the difference between the first brightness value and the first actual light leakage value as the target brightness value.

[0037] The target brightness value is the brightness value corresponding to the environment where the mobile terminal is located.

[0038] Specifically, due to the light leakage problem of the display screen, the first brightness value collected by the light sensor disposed under the display screen includes both the ambient brightness and the brightness of the leakage light. Therefore, after obtaining the first actual light leakage value through S104, the difference between the first brightness value and the first actual light leakage value is determined as the target brightness value. The adjustment device in the mobile device automatically adjusts the brightness of the display screen according to the target brightness value, so that the adjusted screen brightness achieves the best visual effect.

[0039] The method for determining ambient brightness provided in the present embodiment, after obtaining the first brightness value collected by the light sensor, the second brightness value of the display screen and the pixel color of each pixel in the preset area of ​​the display screen, obtains the standard light leakage value corresponding to the pixel color and the brightness level corresponding to the second brightness value from the preset calibration data set; first, the ratio of the brightness level to the preset maximum brightness level is determined as the backlight brightness ratio; then, according to the standard light leakage value and the backlight brightness ratio, the first actual light leakage value is determined; finally, the difference between the first brightness value and the first actual light leakage value is determined as the target brightness value; the scheme provided in the present embodiment, combined with the self-luminous characteristics of the OLED screen, in the process of determining the first actual light leakage value, not only the influence of the actual brightness of the display screen on the leakage brightness is considered, but also the influence of the pixel color of the preset area of ​​the display screen on the leakage brightness is considered, thereby improving the accuracy of the target brightness value, and then improving the user experience.

[0040] In some optional embodiments, when the first brightness value is greater than or equal to a preset brightness threshold, the method further includes: obtaining a standard light leakage value corresponding to white from a preset calibration data set; determining a second actual light leakage value based on the standard light leakage value corresponding to white and the backlight brightness ratio; and determining the difference between the first brightness value and the second actual light leakage value as the target brightness value.

[0041] Exemplarily, under high brightness, the pixel color of the preset area has little effect on the actual light perception of the display screen and hardly affects the user experience. Therefore, when the first brightness value is greater than or equal to the preset brightness threshold, the effect of the pixel color on the leakage brightness can be directly ignored, and only the effect of the actual brightness of the display screen on the leakage brightness can be considered. Specifically, after obtaining the first brightness value collected by the light sensor and the second brightness value of the display screen, the standard light leakage value corresponding to white can be directly obtained from the preset calibration data set. Then, after the ratio of the brightness level to the preset maximum brightness level is determined as the backlight brightness ratio, the second actual light leakage value can be determined by multiplying the standard light leakage value corresponding to white and the backlight brightness ratio; finally, the difference between the first brightness value and the second actual light leakage value is determined as the target brightness value.

[0042] The method for determining ambient brightness provided in the present embodiment does not need to consider the influence of the pixel color in the preset area on the leakage brightness when the first brightness value is greater than or equal to the preset brightness threshold. The second actual light leakage value is directly determined based on the product of the standard light leakage value corresponding to white and the backlight brightness ratio, and the difference between the first brightness value and the second actual light leakage value is determined as the target brightness value. This process does not need to obtain the standard light leakage value corresponding to the pixel color in the preset area, thereby reducing the amount of calculation and improving the calculation efficiency while ensuring the accuracy of the ambient brightness.

[0043] In this embodiment, a method for determining ambient brightness is provided, and a specific limitation is made on the case where the standard light leakage value corresponding to the pixel color does not exist in the preset calibration data set, such as Figure 2 As shown, the steps include:

[0044] S201, determining whether there is a standard light leakage value corresponding to a target color in a preset calibration data set, where the target color is a color belonging to the same color system as the pixel color.

[0045] Specifically, when there is only one pixel color in the preset area and the standard light leakage value corresponding to the pixel color does not exist in the preset calibration data set, at least one target color belonging to the same color system as the pixel color can be found in the color wheel, and it is determined whether there is a standard light leakage value corresponding to the target color in the preset calibration data set. In the following, the pixel color corresponding to the standard light leakage value that does not exist in the preset calibration data set is determined as the missing pixel color.

[0046] When there are multiple pixel colors in the preset area and the standard light leakage values ​​corresponding to at least two of the multiple pixel colors do not exist in the preset calibration data set, the target color belonging to the same color system as each missing pixel color is searched from the color wheel respectively, and it is determined whether there is a standard light leakage value corresponding to the target color in the preset calibration data set.

[0047] In an optional embodiment, when there is no standard light leakage value corresponding to the target color in the preset calibration data set, the standard light leakage value corresponding to white and the standard light leakage value corresponding to black are obtained from the preset calibration data set; a third average light leakage value is calculated based on the standard light leakage value corresponding to white and the standard light leakage value corresponding to black; and the third average light leakage value is determined as the standard light leakage value of the pixel color.

[0048] Exemplarily, if the standard light leakage value corresponding to the target color does not exist in the preset calibration data set, it means that the standard light leakage value corresponding to the missing pixel color cannot be estimated using the standard light leakage value of the target color of the same color system. At this time, the standard light leakage value Lux-White corresponding to white and the standard light leakage value Lux-Black corresponding to black can be obtained from the preset calibration data set, and then the standard light leakage value corresponding to white and the standard light leakage value corresponding to black are used to estimate the standard light leakage value corresponding to the missing pixel color. The specific estimation method is to calculate the third average light leakage value according to the standard light leakage value corresponding to white and the standard light leakage value corresponding to black, that is, the third average light leakage value = (Lux-White + Lux-Black) / 2, and determine the calculated third average light leakage value as the standard light leakage value of the pixel color. In still other examples, the third average light leakage value may also be obtained by setting weights for Lux-White and Lux-Black respectively according to the proximity of the missing pixel color to white and black in the hue wheel, and recalculating the third average light leakage value by combining the weights, Lux-White and Lux-Black. In this embodiment, the third average light leakage value = (α·Lux-White+β·Lux-Black) / 2.

[0049] S202: When there is a standard light leakage value corresponding to a target color in the preset calibration data set, directly determine the standard light leakage value corresponding to the target color as the standard light leakage value of the pixel color.

[0050] Specifically, when there are multiple target colors belonging to the same color system as the missing pixel color, but there is only a standard light leakage value corresponding to one of the target colors in the preset calibration data set, the standard light leakage value corresponding to the target color can be directly determined as the standard light leakage value of the pixel color.

[0051] S203, when there are multiple standard light leakage values ​​corresponding to the target colors in the preset calibration data set, a second average light leakage value is calculated according to the standard light leakage values ​​corresponding to all the target colors, and the second average light leakage value is determined as the standard light leakage value of the pixel color.

[0052] Specifically, when there are multiple target colors that belong to the same color system as the missing pixel color, and there are standard light leakage values ​​corresponding to at least two of the multiple target colors in the preset calibration data set, the average value of the standard light leakage values ​​corresponding to all target colors, that is, the second average light leakage value, can be calculated, and the second average light leakage value can be determined as the standard light leakage value of the pixel color.

[0053] The method for determining ambient brightness provided in this embodiment, when the standard light leakage value corresponding to the pixel color does not exist in the preset calibration data set, uses the standard light leakage value of the target color belonging to the same color system as the missing pixel color to estimate the standard light leakage value of the missing pixel color, thereby improving the acquisition efficiency and ensuring the accuracy of the data.

[0054] In order to implement the above embodiment, the present disclosure also proposes a device for determining ambient brightness. Figure 3 is a schematic diagram of the structure of an apparatus for determining ambient brightness according to an embodiment of the present disclosure. Figure 3 As shown, the device includes: a first acquisition module 301, a second acquisition module 302, a first determination module 303, a second determination module 304, and a third determination module 305, wherein:

[0055] The first acquisition module 301 is used to acquire a first brightness value collected by the light sensor, a second brightness value of the display screen, and a pixel color of each pixel in a preset area of ​​the display screen, where the preset area is adjacent to the light sensor.

[0056] The second acquisition module 302 is used to acquire a standard light leakage value corresponding to the pixel color and a brightness level corresponding to the second brightness value from a preset calibration data set.

[0057] The first determining module 303 is used to determine the ratio of the brightness level to the preset maximum brightness level as the backlight brightness ratio.

[0058] The second determining module 304 is configured to determine a first actual light leakage value according to a standard light leakage value and a backlight brightness ratio.

[0059] The third determination module 305 is configured to determine the difference between the first brightness value and the first actual light leakage value as a target brightness value.

[0060] In some optional embodiments, the device further comprises:

[0061] The third acquisition module is used to obtain the standard light leakage value corresponding to white from the preset calibration data set when the first brightness value is greater than or equal to the preset brightness threshold; the fourth determination module is used to determine the second actual light leakage value according to the standard light leakage value corresponding to white and the backlight brightness ratio; the fifth determination module determines the difference between the first brightness value and the second actual light leakage value as the target brightness value.

[0062] In some optional implementations, the second acquisition module 302 includes:

[0063] An acquisition submodule, used for acquiring the standard light leakage value corresponding to each pixel color from a preset calibration data set when there are multiple pixel colors in each pixel in a preset area of ​​the display screen;

[0064] The second determination module 304 includes:

[0065] The calculation submodule is used to calculate a first average light leakage value according to standard light leakage values ​​corresponding to all pixel colors; the determination submodule is used to determine a first actual light leakage value according to the first average light leakage value and the backlight brightness ratio.

[0066] In some optional embodiments, the device further comprises:

[0067] A judgment module is used to judge whether there is a standard light leakage value corresponding to the target color in the preset calibration data set when the standard light leakage value corresponding to the pixel color does not exist in the preset calibration data set, and the target color is a color belonging to the same color system as the pixel color; a sixth determination module is used to directly determine the standard light leakage value corresponding to the target color as the standard light leakage value of the pixel color when there is a standard light leakage value corresponding to the target color in the preset calibration data set; a seventh determination module is used to calculate a second average light leakage value based on the standard light leakage values ​​corresponding to all target colors when there are multiple standard light leakage values ​​corresponding to the target colors in the preset calibration data set, and determine the second average light leakage value as the standard light leakage value of the pixel color.

[0068] In some optional embodiments, the device further comprises:

[0069] The fourth acquisition module is used to obtain the standard light leakage value corresponding to white and the standard light leakage value corresponding to black from the preset calibration data set when there is no standard light leakage value corresponding to the target color in the preset calibration data set; the calculation module is used to calculate the third average light leakage value according to the standard light leakage value corresponding to white and the standard light leakage value corresponding to black; the eighth determination module is used to determine the third average light leakage value as the standard light leakage value of the pixel color.

[0070] In some optional embodiments, the standard light leakage value is the brightness value collected by the light sensor when the preset ambient brightness, the preset area is a preset color, the other areas of the display screen except the preset area are white, and the screen brightness of the display screen is adjusted to the maximum value.

[0071] This embodiment combines the self-luminous characteristics of the OLED screen. In the process of determining the first actual light leakage value, not only the influence of the actual brightness of the display screen on the leakage brightness is considered, but also the influence of the pixel color of the preset area of ​​the display screen on the leakage brightness is considered, thereby improving the accuracy of the target brightness value and further improving the user experience.

[0072] For the specific definition of the device for determining the ambient brightness, please refer to the definition of the method for determining the ambient brightness above, which will not be repeated here. Each module in the above-mentioned device for determining the ambient brightness can be implemented in whole or in part by software, hardware, and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0073] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store relevant data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for determining ambient brightness is implemented.

[0074] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present disclosure, and does not constitute a limitation on the computer device to which the scheme of the present disclosure is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0075] In one embodiment, the device for determining the ambient brightness provided by the present disclosure may be implemented in the form of a computer program, which may be used in a computer program such as Figure 4 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the device for determining the ambient brightness, for example, Figure 3 The computer program composed of the various program modules enables the processor to execute the steps of the method for determining the ambient brightness of each embodiment of the present disclosure described in this specification.

[0076] For example, Figure 4 The computer device shown can be Figure 3The first acquisition module shown executes the steps of: acquiring the first brightness value collected by the light sensor, the second brightness value of the display screen, and the pixel color of each pixel in a preset area of ​​the display screen, and the preset area is adjacent to the light sensor. The computer device can execute the steps of: acquiring the standard light leakage value corresponding to the pixel color and the brightness level corresponding to the second brightness value from a preset calibration data set through the second acquisition module. The computer device can execute the steps of: determining the ratio of the brightness level to the preset maximum brightness level as the backlight brightness ratio through the first determination module. The computer device can execute the steps of: determining the first actual light leakage value according to the standard light leakage value and the backlight brightness ratio through the second determination module. The computer device can execute the steps of: determining the difference between the first brightness value and the first actual light leakage value as the target brightness value through the third determination module.

[0077] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0078] Obtain a first brightness value collected by the light sensor, a second brightness value of the display screen, and a pixel color of each pixel in a preset area of ​​the display screen, wherein the preset area is adjacent to the light sensor; obtain a standard light leakage value corresponding to the pixel color and a brightness level corresponding to the second brightness value from a preset calibration data set; determine a ratio of the brightness level to a preset maximum brightness level as a backlight brightness ratio; determine a first actual light leakage value based on the standard light leakage value and the backlight brightness ratio; and determine a difference between the first brightness value and the first actual light leakage value as a target brightness value.

[0079] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0080] When the first brightness value is greater than or equal to a preset brightness threshold, a standard light leakage value corresponding to white is obtained from a preset calibration data set; a second actual light leakage value is determined based on the standard light leakage value corresponding to white and the backlight brightness ratio; and the difference between the first brightness value and the second actual light leakage value is determined as the target brightness value.

[0081] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0082] When there are multiple pixel colors for each pixel in a preset area of ​​the display screen, the standard light leakage value corresponding to each pixel color is obtained from a preset calibration data set; the first average light leakage value is calculated based on the standard light leakage values ​​corresponding to all pixel colors; and the first actual light leakage value is determined based on the first average light leakage value and the backlight brightness ratio.

[0083] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0084] When the standard light leakage value corresponding to the pixel color does not exist in the preset calibration data set, determine whether there is a standard light leakage value corresponding to the target color in the preset calibration data set, where the target color is a color belonging to the same color system as the pixel color; when there is a standard light leakage value corresponding to the target color in the preset calibration data set, directly determine the standard light leakage value corresponding to the target color as the standard light leakage value of the pixel color; when there are multiple standard light leakage values ​​corresponding to the target colors in the preset calibration data set, calculate a second average light leakage value based on the standard light leakage values ​​corresponding to all target colors, and determine the second average light leakage value as the standard light leakage value of the pixel color.

[0085] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0086] When there is no standard light leakage value corresponding to the target color in the preset calibration data set, the standard light leakage value corresponding to white and the standard light leakage value corresponding to black are obtained from the preset calibration data set; a third average light leakage value is calculated based on the standard light leakage value corresponding to white and the standard light leakage value corresponding to black; and the third average light leakage value is determined as the standard light leakage value of the pixel color.

[0087] This embodiment combines the self-luminous characteristics of the OLED screen. In the process of determining the first actual light leakage value, not only the influence of the actual brightness of the display screen on the leakage brightness is considered, but also the influence of the pixel color of the preset area of ​​the display screen on the leakage brightness is considered, thereby improving the accuracy of the target brightness value and further improving the user experience.

[0088] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0089] Obtain a first brightness value collected by the light sensor, a second brightness value of the display screen, and a pixel color of each pixel in a preset area of ​​the display screen, wherein the preset area is adjacent to the light sensor; obtain a standard light leakage value corresponding to the pixel color and a brightness level corresponding to the second brightness value from a preset calibration data set; determine a ratio of the brightness level to a preset maximum brightness level as a backlight brightness ratio; determine a first actual light leakage value based on the standard light leakage value and the backlight brightness ratio; and determine a difference between the first brightness value and the first actual light leakage value as a target brightness value.

[0090] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0091] When the first brightness value is greater than or equal to a preset brightness threshold, a standard light leakage value corresponding to white is obtained from a preset calibration data set; a second actual light leakage value is determined based on the standard light leakage value corresponding to white and the backlight brightness ratio; and the difference between the first brightness value and the second actual light leakage value is determined as the target brightness value.

[0092] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0093] When there are multiple pixel colors for each pixel in a preset area of ​​the display screen, the standard light leakage value corresponding to each pixel color is obtained from a preset calibration data set; the first average light leakage value is calculated based on the standard light leakage values ​​corresponding to all pixel colors; and the first actual light leakage value is determined based on the first average light leakage value and the backlight brightness ratio.

[0094] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0095] When the standard light leakage value corresponding to the pixel color does not exist in the preset calibration data set, determine whether there is a standard light leakage value corresponding to the target color in the preset calibration data set, where the target color is a color belonging to the same color system as the pixel color; when there is a standard light leakage value corresponding to the target color in the preset calibration data set, directly determine the standard light leakage value corresponding to the target color as the standard light leakage value of the pixel color; when there are multiple standard light leakage values ​​corresponding to the target colors in the preset calibration data set, calculate a second average light leakage value based on the standard light leakage values ​​corresponding to all target colors, and determine the second average light leakage value as the standard light leakage value of the pixel color.

[0096] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0097] When there is no standard light leakage value corresponding to the target color in the preset calibration data set, the standard light leakage value corresponding to white and the standard light leakage value corresponding to black are obtained from the preset calibration data set; a third average light leakage value is calculated based on the standard light leakage value corresponding to white and the standard light leakage value corresponding to black; and the third average light leakage value is determined as the standard light leakage value of the pixel color.

[0098] This embodiment combines the self-luminous characteristics of the OLED screen. In the process of determining the first actual light leakage value, not only the influence of the actual brightness of the display screen on the leakage brightness is considered, but also the influence of the pixel color of the preset area of ​​the display screen on the leakage brightness is considered, thereby improving the accuracy of the target brightness value and further improving the user experience.

[0099] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static random access memory (SRAM) and dynamic random access memory (DRAM).

[0100] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0101] In addition to the above-mentioned computer device and computer-readable storage medium, the embodiments of the present application may also be a computer program product, which includes computer program instructions. When the computer program instructions are executed by a processor, the processor executes the steps of the sound source localization method provided by any embodiment of the present application.

[0102] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0103] The above embodiments only express several implementation methods of the present disclosure, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present disclosure, and these all belong to the protection scope of the present disclosure. Therefore, the protection scope of the patent of the present disclosure shall be subject to the attached claims.

Claims

1. A method for determining ambient brightness, characterized in that: include: Acquire a first brightness value collected by the light sensor, a second brightness value of the display screen, and a pixel color of each pixel in a preset area of ​​the display screen, where the preset area is adjacent to the light sensor; Acquire a standard light leakage value corresponding to the pixel color and a brightness level corresponding to the second brightness value from a preset calibration data set; Determine the ratio of the brightness level to the preset maximum brightness level as the backlight brightness ratio; Determining a first actual light leakage value according to the standard light leakage value and the backlight brightness ratio; The difference between the first brightness value and the first actual light leakage value is determined as a target brightness value.

2. The method according to claim 1, characterized in that When the first brightness value is greater than or equal to a preset brightness threshold, the method further includes: Acquire a standard light leakage value corresponding to white from the preset calibration data set; determining a second actual light leakage value according to the standard light leakage value corresponding to the white color and the backlight brightness ratio; The difference between the first brightness value and the second actual light leakage value is determined as the target brightness value.

3. The method according to claim 1, characterized in that When there are multiple pixel colors for each pixel in the preset area of ​​the display screen, obtaining the standard light leakage value corresponding to the pixel color from the preset calibration data set includes: Acquire the standard light leakage value corresponding to each pixel color from the preset calibration data set; The determining a first actual light leakage value according to the standard light leakage value and the backlight brightness ratio comprises: Calculating a first average light leakage value according to the standard light leakage values ​​corresponding to all the pixel colors; The first actual light leakage value is determined according to the first average light leakage value and the backlight brightness ratio.

4. The method according to any one of claims 1 to 3, characterized in that When the standard light leakage value corresponding to the pixel color does not exist in the preset calibration data set, the method further includes: Determine whether there is a standard light leakage value corresponding to a target color in the preset calibration data set, wherein the target color is a color belonging to the same color system as the pixel color; When there is a standard light leakage value corresponding to the target color in the preset calibration data set, directly determining the standard light leakage value corresponding to the target color as the standard light leakage value of the pixel color; When there are multiple standard light leakage values ​​corresponding to the target color in the preset calibration data set, a second average light leakage value is calculated according to the standard light leakage values ​​corresponding to all the target colors, and the second average light leakage value is determined as the standard light leakage value of the pixel color.

5. The method according to claim 4, characterized in that When the preset calibration data set does not contain a standard light leakage value corresponding to the target color, the method further includes: Acquire a standard light leakage value corresponding to white and a standard light leakage value corresponding to black from the preset calibration data set; Calculating a third average light leakage value according to the standard light leakage value corresponding to the white color and the standard light leakage value corresponding to the black color; The third average light leakage value is determined as a standard light leakage value of the pixel color.

6. The method according to claim 1, characterized in that The standard light leakage value is the brightness value collected by the light sensor when the preset ambient brightness, the preset area is a preset color, the other areas of the display screen except the preset area are white, and the screen brightness of the display screen is adjusted to the maximum value.

7. A device for determining ambient brightness, characterized in that: include: A first acquisition module, used to acquire a first brightness value collected by the light sensor, a second brightness value of the display screen, and a pixel color of each pixel in a preset area of ​​the display screen, wherein the preset area is adjacent to the light sensor; A second acquisition module, used for acquiring a standard light leakage value corresponding to the pixel color and a brightness level corresponding to the second brightness value from a preset calibration data set; A first determining module, configured to determine a ratio of the brightness level to a preset maximum brightness level as a backlight brightness ratio; A second determining module, configured to determine a first actual light leakage value according to the standard light leakage value and the backlight brightness ratio; The third determining module is used to determine the difference between the first brightness value and the first actual light leakage value as a target brightness value.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the processor implements the steps of the method for determining the ambient brightness according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for determining ambient brightness according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for determining ambient brightness according to any one of claims 1 to 6 are implemented.