Method and device for estimating ambient light
By estimating the display screen color directly above the display screen sensor and utilizing prior information, the problem of the ambient light sensor being difficult to distinguish between ambient light and display screen light is solved, achieving more accurate ambient light measurement.
Patent Information
- Application Number
- CN202080009760.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-01-18
- Filing Date
- 2020-01-17
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-01-17
AI Technical Summary
In devices with display screens, it is difficult for the ambient light sensor to accurately measure ambient light because its readings include the light signal of the display screen itself, making it impossible to effectively distinguish ambient light from the light output by the display screen.
The ambient light is estimated by estimating the color of the display screen directly above the ambient light sensor and using a priori information, such as clean measurements of the red, green, and blue vectors obtained during calibration, to determine the expected color output of the display screen. Contribution, calculated as the difference in ambient light.
This method allows for a more accurate estimation of ambient light, reduces interference from display screen light, and improves the accuracy of ambient light measurements over methods that do not consider individual colors.
Smart Images

Figure CN113316711B_ABST
Abstract
Description
Background Art
[0001] The present disclosure relates to a method and apparatus for estimating ambient light, and in particular, but not exclusively, to estimating ambient light at a display screen of a device having a sensor located behind the display screen.
[0002] In a device with a display screen, ambient light generally has an effect on the visibility of the content displayed on the display screen. Under high ambient light conditions, such as when sunlight shines directly on the display screen, it may be difficult for the user to view the content on the display screen. Conversely, under low ambient light conditions, such as at night, the display screen may appear too bright for the user. In order to mitigate the effects of high or low ambient light conditions, the brightness level of the display screen can be adjusted (e.g., increased or decreased). The brightness level can be adjusted manually by the user, or automatically adjusted in response to one or more readings of the ambient light sensor of the device. The ambient light sensor can be located behind the display screen of the device. In this case, the signal picked up by the ambient light sensor is the sum of ambient light from the surrounding environment (e.g., light incident on and passing through the display screen to hit the sensor) and the light generated by the display screen itself. Therefore, the reading of the ambient light sensor is not a true measurement of ambient light, but includes both ambient light and light output by the display screen. In order to obtain a reliable measurement of ambient light, it is necessary to estimate the contribution of the screen brightness and subtract it from the total light measurement.
[0003] An object of the present disclosure is to provide a method and apparatus for estimating ambient light which solves one or more of the above problems, or at least provides a useful alternative. Summary of the invention
[0004] In general, the present disclosure proposes to overcome the above-mentioned problems by finding an estimate of the display screen color displayed on the display screen directly above the ambient light sensor, and estimating the illuminance contribution of the display screen by using the display screen brightness setting and prior information of the illuminance (lux) contribution due to the estimated color on the screen.
[0005] The prior information may be, for example, clean measurements of the red, green, and blue vectors of the display screen obtained during calibration (i.e., under controlled conditions without any ambient light). Thus, when an ambient light measurement is made using a sensor placed behind the display screen, the projection of the measured light vector along the known, previously measured red, green, and blue vectors may be determined. The color of the display screen directly above the ambient light sensor may then be estimated based on the projection coefficients of the measured light vector on each of the red, green, and blue vectors. Once the color is estimated, the above-described prior information (e.g., stored in a memory of the device to which the screen belongs) and the display brightness setting may be used to estimate the illumination contribution of the screen.
[0006] In other words, the present disclosure proposes to overcome the above problems by determining the expected color output of the display screen, determining how much the light measurement behind the display screen differs from the expected color value of the output screen light, and using the difference to estimate how much of the measurement is from the display screen light and how much is from the ambient light. In this way, the ambient light can be estimated.
[0007] The disclosed method is superior to methods that do not consider individual colors when determining the contribution of screen brightness to ambient light measurements.
[0008] The term color value as used herein may refer to, for example, the relative intensities of different primary colors in a given color space.
[0009] According to one aspect of the present disclosure, a method for estimating ambient light at a display screen of a device is provided, the method comprising: determining one or more expected color values of light output by the display screen; detecting light using a sensor located behind the display screen; determining one or more color values of the detected light; determining a difference between one or more expected color values of light output by the display screen and one or more color values of the detected light; and estimating a first portion of the detected light corresponding to the light output by the display screen and a second portion of the detected light corresponding to the ambient light based on the determined difference.
[0010] Thus, the present disclosure at least partially addresses the above-mentioned problem of estimating ambient light at a display screen.
[0011] The method may include determining an output color gamut of the display screen for one or more output brightness levels, the color gamut defining an expected set of color values for light output by the display screen at the corresponding brightness level.
[0012] Determining one or more expected color values of the display screen output light may include using an output color gamut corresponding to output brightness levels.
[0013] The set of expected color values for the output color gamut may include a subset of a color space having red (R), green (G), blue (B) principal vectors, and one or more of the expected color values may include RGB values in the color space.
[0014] Determining one or more expected color values of the display screen output light may include determining one or more display screen output light RGB vectors in a color space for corresponding output brightness levels.
[0015] Determining one or more color values of the detected light may include estimating a detected light vector in a color space by determining RGB values of the detected light.
[0016] Determining the difference between one or more color values of the detected light and one or more expected color values of the display screen output light may include: projecting the detected light vector onto the display screen output light RGB vector in the color space; and estimating the corresponding difference between the projected and display screen output light RGB vectors.
[0017] Estimating the second portion of the detected light may include estimating an ambient light vector in color space having vector components including respective differences between the projected and display screen output light RGB vectors.
[0018] The color space can be one of the following: RGB color space or XYZ color space.
[0019] The display screen may include an organic light emitting diode (OLED) display screen.
[0020] The sensor can be located inside the device, behind the display screen.
[0021] According to a second aspect of the present disclosure, there is provided a data processing apparatus comprising means for executing the steps of any of the above methods.
[0022] According to a third aspect of the present disclosure, there is provided a computer program comprising instructions, which, when executed by a computer, cause the computer to perform the steps of any of the above methods.
[0023] According to a fourth aspect of the present disclosure, there is provided a computer-readable storage medium having the above-mentioned computer program stored thereon.
[0024] According to a fifth aspect of the present invention, there is provided a device comprising: a display screen; a sensor located behind the display screen; a processor; and a computer-readable storage medium on which is stored a computer program comprising instructions, which, when executed by the processor, causes the processor to perform the following steps: determining one or more expected color values of the display screen output light; determining one or more color values of the light detected by the sensor; determining a difference between one or more expected color values of the display screen output light and one or more color values of the detected light; and estimating a first portion of the detected light corresponding to the display screen output light and a second portion of the detected light corresponding to the ambient light based on the determined difference.
[0025] The sensor can be located inside the device, behind the display screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Some embodiments of the present disclosure will now be described, by way of example only, and with reference to the accompanying drawings, in which:
[0027] Figure 1A graph showing the sensitivity of the human eye to different wavelengths of light.
[0028] Figure 2 A graph showing the relative red, green, and blue intensities required to evoke the perception of a given wavelength of light in the human eye.
[0029] Figure 3 A diagram showing a curve traced by a color vector of a spectral color in a color space defined by RGB primary color axes.
[0030] Figure 4 A chromaticity diagram is shown.
[0031] Figure 5 A chromaticity diagram with different brightness levels is shown.
[0032] Figure 6 A flow chart according to the present disclosure is shown.
[0033] Figure 7 A chromaticity diagram according to the present disclosure is shown.
[0034] Figure 8 A chromaticity diagram according to the present disclosure is shown.
[0035] Fig. 9 An apparatus according to the present disclosure is shown.
[0036] Fig.10 A data processing apparatus according to the present disclosure is shown. DETAILED DESCRIPTION
[0037] In general, the present disclosure provides a method for estimating ambient light using a sensor located behind a device display screen by estimating the color of the display screen directly above the sensor and using that knowledge to subtract the contribution of screen offset to ambient illumination. This method allows the device to better estimate and subtract the contribution of different screen colors.
[0038] Some examples of solutions are given in the attached figures.
[0039] Figure 1A graph 100 showing the sensitivity of the human eye to different wavelengths of light. The human eye has three types of cone photoreceptor cells: long, medium, and short, which together determine the overall human perception of color. Each type of cell has a different sensitivity to different wavelengths of light. Specifically, short cone photoreceptors 101 are most sensitive to bluer wavelengths, thus defining the human eye's sensitivity to blue light, medium cone photoreceptors 102 are most sensitive to greener wavelengths, thus defining green sensitivity, and long cone photoreceptors 103 are most sensitive to redder wavelengths, thus defining red sensitivity. For example, it is apparent from the sensitivity graph that humans are less sensitive to 400 nanometer light (blue) than to light around 550 nanometers (green). Therefore, light with a wavelength of about 400 nanometers needs to be much brighter than light at 550 nanometers to give the impression of the same brightness or intensity. In other words, if green and blue light appear equally bright or intense to humans, the blue light will be brighter (i.e., have a higher radiance - an objective unit of light). Similar relationships between the intensities of light of different wavelengths are meant to apply throughout human color perception.One skilled in the art will appreciate that chromaticity models may be used to model human color perception.
[0040] According to known chromaticity models, the way humans perceive color (i.e., the entire color space of human perception) can be modeled by determining how many of the long, medium, and short cone photoreceptors of the human eye need to be stimulated in order for the human eye to perceive a given color. The amount of short, medium, and long cone receptor stimulation is called the tristimulus value. The tristimulus values can be used to establish how much red (R), green (G), and blue (B) light (i.e., the primary colors) is needed to stimulate the corresponding photoreceptor cones in the human eye to evoke a given color (i.e., a given wavelength) in the color space of human perception. Therefore, each of these RGB values can be considered as a component of a color vector in the human perception color space, each of which has a corresponding wavelength associated with it.
[0041] Figure 2 Shows from Figure 1 , which shows the relative relationship of the components of the color vector (blue 201, green 202, red 203) to evoke light of a selected wavelength. For example, to evoke a color 204 corresponding to a 500 nanometer wavelength of light, the blue 201 and green 202 components are approximately the same 205, while the red 203 component is close to or zero. Similarly, for a color vector corresponding to a 575 nanometer wavelength, the red 203 and green 202 components are approximately the same 205, while the blue 201 component is close to or zero. Each wavelength of light (i.e., Figure 2 Each wavelength of light along the wavelength axis in is called a spectral color and has a corresponding color vector whose components are the corresponding RGB values of that color.
[0042] Figure 3A graph 300 is shown of a curve 301 traced out by color vectors of spectral colors in a color space defined by the RGB primary color axes. The curve 301 can be projected into a 2D plane of the color space, for example by taking out the intensity information. In this example, the plane is the RG plane. A curve 302 in the 2D plane defines a chromaticity diagram. Each point on the curve 302 defines the chromaticity coordinates, also called chromaticity, of a spectral color. Each point inside the curve is a chromaticity of a non-spectral color (i.e., a color that can only be produced by mixing spectral colors). Each point outside the curve is a hypothetical chromaticity for which there is no achievable color. Although Figure 3 The examples have been described in terms of RGB primary color axes, but it will be appreciated that chromaticity diagrams may also be defined in color spaces having other axes, such as an XYZ color space (e.g., CIE XYZ color space), and / or mapped between them, as will be appreciated by those skilled in the art. The space enclosed by curve 302 is referred to as a color gamut.
[0043] Figure 4 A chromaticity diagram 400 is shown. The axes may be, for example, one or more of the X, Y, and Z axes of an XYZ chromaticity space, or, for example, one or more of the R, G, and B axes of an RGB chromaticity space. The present disclosure is not limited to any particular one chromaticity space, and it will be appreciated that known transformations may be used to map between different chromaticity spaces, as will be appreciated by those skilled in the art.
[0044] exist Figure 4 Shown on the chromaticity diagram 400 is a first color gamut 401 that represents a first color space corresponding to the entire human color perception of light wavelengths from about 380 nanometers to about 700 nanometers, as described above with reference to Figure 1-3 described. Figure 4 Also shown is a second color gamut 402 representing a second color space corresponding to a subset of the first color space, and a third color gamut 403 representing a third color space corresponding to the third subset. There may also be any number of other color gamuts that differently define subsets of the first color space corresponding to the entire human color perception. The second, third, and other color spaces may be, for example, known color spaces such as sRGB, Adobe RGB, ProPhoto RGB, Colormatch RGB, SWOP CMYK, CIEXYZ, ICtCp, Real World, and / or others.
[0045] Typically, a display screen will not be able to output light of every color in a color space corresponding to the entire human color perception. Rather, the colors that a given display screen can output will be determined by the technology used by the display screen, and will be corresponding to, for example, the colors described above with reference to Figure 4A subset of a subset of the second, third, or other color gamut definitions described. For example, a color gamut representing the color space that can be emitted by an organic light emitting diode (OLED) display technology will be different from a color gamut representing the color space that can be emitted by a light emitting diode backlit liquid crystal display (LED LCD) technology. If a display screen is instructed to emit light of a color outside of its gamut in a chromaticity diagram, it will typically capture the closest color within the gamut that it is capable of emitting. In other words, each display screen technology has its own accessible gamut of colors that it is capable of emitting.
[0046] Furthermore, in order to model the full accessible color gamut for a given display screen, it is also necessary to determine the accessible color gamut at different brightness settings. This is in part because for a given input instruction, increasing or decreasing the screen brightness will have an impact on what light the display screen ultimately outputs. For example, lowering the brightness of a pixel that emits red light will result in a darker shade of red light. Therefore, while the instruction to emit red has not changed, changing the brightness will change the color. Conversely, increasing the brightness to near the maximum value may cause the display screen to emit light close to white light, even if the input instruction is to emit red light. By estimating the color gamut of the screen at multiple brightness levels, the expected color of the output light for a given input instruction can be estimated at each brightness level.
[0047] Figure 5 An illustrative graph 500 is shown showing the color gamut of output light for different brightness settings. Figure 5 In the example of , at the highest illustrated brightness setting, the accessible colors 501 are more restricted than those accessible colors 502 at the lowest illustrated brightness setting. The multiple color gamuts together provide an entire accessible color space of colors that a display screen can output in response to an instruction to emit a given color.
[0048] As described above, determining the color gamut of the output light of a display screen at one or more brightness settings may be performed during calibration of the display screen, such as during manufacturing. This information may then be stored in a memory of a device to which the screen belongs. When it is desired to estimate the contribution of the display screen to the illuminance measured at an ambient light sensor (i.e., the contribution to the measured illuminance due to the estimated color on the screen), the brightness setting of the above-described screen and the corresponding color gamut may be used to estimate the expected color of the screen output light. If the measurement of the ambient light sensor differs from the expected color, it may be inferred that ambient light contributes to the light picked up by the sensor. The difference between the expected color and the measured color provides an estimate of the ambient light at the display screen.
[0049] Figure 6A flow chart illustrating method steps according to the present disclosure is shown. Method 600 is used to estimate ambient light at a device display screen. For example, during display screen calibration, during manufacturing as described above, one or more expected color values of the display screen output light are determined 601. A sensor located behind the display screen detects 602 light incident on the screen. The detected light may include both an ambient light portion and a display screen light portion. One or more color values of the detected light are determined 603, and a difference between one or more expected color values of the display screen output light and one or more color values of the detected light is determined 604. Based on the determined difference, the corresponding first and second parts of the detected light are estimated 605. The first part corresponds to the display screen light output, and the second part corresponds to the ambient light detected by the sensor. Estimating ambient light in this way is superior to known techniques because it allows better estimation of the contribution of different screen colors. As described above, the term color value can refer to, for example, the relative intensity of different primary colors in a given color space. For example, the intensity of red, green, or blue light output by one or more pixels of the display screen.
[0050] Therefore, reference Figure 1 and Figure 2 As mentioned above, despite the different sensitivities of the human eye, to ensure that users perceive different colors on the screen with the same intensity, colors that the human eye is less sensitive to are typically brighter in the screen output light. Conversely, colors that the human eye is more sensitive to can be less bright. Similarly, in an attempt to match the ambient light level perceived by humans, ambient light sensors typically attempt to do so by having a similar Figure 1 The color sensitivity distribution shown is designed to mimic the human eye. Therefore, even if the screen is set to a given brightness, some colors may be output brighter than others (as determined at calibration), and this can bias the ambient light measurement to be brighter or darker depending on the color of the screen, even if the overall screen brightness setting is known.
[0051] In other words, the present disclosure takes into account that different colors may be brighter or dimmer, and may be detected more or less sensitively, at a given screen brightness setting, and uses this to more accurately estimate how much of the ambient light sensor measurement is due to screen output light and how much is actually ambient light.
[0052] According to the present disclosure, the method may further include determining an output color gamut of the display screen for one or more output brightness levels. The determined color gamut defines a set of expected color values of light output by the display at different brightness levels, as described above in conjunction with Figure 1-5As described. For example, depending on the display screen technology used, the color gamut can represent which colors the display screen can output (i.e., the colors it can access). The set of expected color values of the output color gamut together constitutes a subset of the color space. The color space can be a color space with red (R), green (G), and blue (B) primary vectors (i.e., an RGB color space), and one or more expected color values can include RGB values in the RGB color space. As described above, it is contemplated that the present disclosure can be used for any color space (including, for example, an XYZ color space) and / or for multiple color spaces. As will be appreciated by those skilled in the art, appropriate transformations or mappings between different color spaces can be used.
[0053] Determining one or more expected color values of the display screen output light may include determining one or more display screen output light RGB vectors in a color space for a corresponding output brightness level. For example, a color with a screen display chromaticity of R=50, G=50, B=25 set at a given brightness may be indicated. Expressed in terms of the primary colors R, G, and B of the color space, these RGB values may be defined in vector form as: a red-only vector (50, 0, 0); a blue-only vector (0, 50, 0); and a green-only vector (0, 0, 25). When added, these RGB vectors define an output color vector of (50, 50, 25) in the color space.
[0054] Determining one or more color values of the detected light may include estimating a detected light vector, which may similarly include RGB vector components in a color space. Thus, the detected light vector may be estimated by determining R, G, B values of the detected light.
[0055] Using the expected color value of the display screen output light and the color value of the detected light represented in a vector format in a common color space, the difference between them can be determined. This can be achieved by, for example, projecting the detected light vector onto the display screen output light RGB vector in the color space and estimating the corresponding difference between the projection and the display screen output light RGB vector. Using the example given above, the display screen output light RGB vector can be, for example, R(50,0,0), G(0,50,0) and B(0,0,25). For illustration, the ambient light sensor may have detected light with a detected light vector of (75,75,50) in the color space. The first part of the detected light vector is due to the display screen light near the sensor (e.g., directly above the sensor), and the second part is due to the actual ambient light. Therefore, the projection coefficients of the detected light vector on each display screen output light RGB vector are 1.5R+1.5G+2B, respectively, and the R, G and B vector components of the detected light vector are R(75,0,0), G(0,75,0) and B(0,0,50), respectively. The difference between the projection and the corresponding display screen output light RGB vector can be determined, for example, by subtracting the display screen output light RGB vector from the corresponding projection of the detected light vector, for example, R((75-50), 0, 0), G(0, (75-50), 0), and B(0, 0, (50-25)). The RGB values remaining after the subtraction correspond to the contribution of the ambient light: R(25, 0, 0), G(0, 25, 0), B(0, 0, 25). From this, it can be determined that the ambient light portion of the detected light corresponds to the vector (25, 25, 25) in the color space. In other words, the ambient light portion in this example is composed of equal parts of red light, green light, and blue light. In this example, the difference is determined by subtraction, but other mathematical operations can also and / or in addition be used.
[0056] A comparative example is now provided in which individual color values are not used to determine the screen contribution. This example illustrates that not using individual colors may result in less accurate measurements. Typically, the overall brightness setting technique assumes that the brightness values of all expected colors in the color space are the same. For example, in the example above, for a given brightness setting, the expected screen output vector (50, 50, 25) is assumed to have the same expected value for all colors because no distinction is made between them. For example, it may have a relative brightness setting of 40, which would correspond to (40, 40, 40) if the individual color values were considered separately, rather than the more accurate (50, 50, 25) representing the relative intensity of each color. Therefore, when the ambient light measurement has a measurement vector of (75, 75, 50) and the expected contribution of the screen (40, 40, 40) is subtracted, the ambient light contribution of different colors that can be considered separately is estimated to be (35, 35, 15), even though, as described above, the ambient light in this example scene consists of equal portions of red, green, and blue light and should therefore be estimated to be (25, 25, 25). Therefore, ambient light measurements that do not take into account the various expected color values of the screen output light cannot provide an accurate measurement of the ambient light.
[0057] Figure 7 It is shown that according to the present disclosure (for example, Figure 1-5 ) and shows a chromaticity diagram 700 of the type described in Figure 6 Steps. Figure 4 In the case of , the axis may be, for example, one or more of the X-axis, Y-axis, and Z-axis of an XYZ chromaticity space, or, for example, one or more of the R-axis, G-axis, and B-axis of an RGB chromaticity space. The present disclosure is not limited to any particular one chromaticity space, and it will be appreciated that known transformations may be used to map different chromaticity spaces to one another, as would be appreciated by those skilled in the art. A first color gamut 701 representing a first color space corresponding to the entire human color perception and a second color gamut 702 representing a subset thereof corresponding to accessible colors that can be output by a given display screen are shown. Alternatively, if the sensor does not have a color sensitivity distribution that exactly matches the human eye, the first color gamut may alternatively be determined based on the sensitivity distribution of the sensor rather than the human eye, as described with reference to FIG. Figure 1-5 The second color gamut 702 can be estimated, for example, during calibration by instructing the display screen to emit only red light, only green light, and only blue light in sequence under controlled conditions without any ambient light. In each case, the output light can be measured by the ambient light sensor of the screen, and the corresponding red 703, green 704, and blue 705 vectors are determined. The curve between the endpoints of these primary color vectors 703, 704, 705 defines the color gamut 702 of accessible colors of the display screen.
[0058] Thus, after calibration, and after clean measurements of the red 703, green 704, and blue 705 vectors have been made and stored, for example, in a memory of a device to which the display screen belongs, an ambient light measurement can be captured using a sensor placed behind a display screen (e.g., an OLED display screen). In the chromaticity diagram 700, the measurement will have a corresponding measurement vector 706, which is the sum of the screen brightness and any ambient light, whose projection along the three known red 703, green 704, and blue 705 vectors can be found, for example, by using known mapping or transformation techniques. The projection coefficients of the measurement vector onto each of the red 703, green 704, and blue 705 vectors provide an estimate of the color of the display screen directly above the ambient light sensor. Once the color is estimated, prior knowledge (e.g., the color gamut established during calibration and stored in the memory of the device) and the display brightness setting can be used to estimate the illumination contribution of the screen, as described above with reference to FIG. Figure 6 Each of the above steps may be implemented at least in part by a system including one or more processors (eg, microcontrollers and / or other data processing devices).
[0059] Figure 8 is a chromaticity diagram 800 of the type described in the present disclosure. Chromaticity diagram 800 is similar to that of reference Figure 7 The chromaticity diagram described, but Figure 8 It also shows Figure 7 The chromaticity diagram is not shown in some further details. Figure 8 The first color field 801 in FIG. 8 shows the dividing lines indicating different wavelengths of light, which are represented as described above with reference to FIG. Figure 1-5 The entire human color perception (or the color perception of the sensor, if it does not match the color sensitivity of the human eye) is described. Figure 8 The color space shown corresponds to the XYZ color space. The second color gamut 802 corresponds to the sRGB color gamut. Figure 8 A third color gamut 803 corresponding to the Adobe RGB color gamut is also shown. In addition, points at the center of the red, green, blue, and measurement vectors are provided corresponding to the standard D65 white point in color space, as will be appreciated by those skilled in the art.
[0060] Fig. 9 A device 900 according to the present disclosure is shown. The device includes a display screen 901, a sensor 902 located behind the display screen (e.g., inside the device, behind the display screen), a processor, and a computer-readable storage medium having a computer program stored thereon, the computer program including instructions that, when executed by the processor, cause the processor to perform a Figure 1-8The steps of the present disclosure described herein. For example, the instructions may cause the processor to determine one or more expected color values of the display screen 901, determine one or more color values of the light detected by the sensor, determine a difference between one or more expected color values of the display screen output light and one or more color values of the detected light, and estimate a first portion of the detected light corresponding to the display screen output light and a second portion of the detected light corresponding to the ambient light based on the determined difference. The device 900 may be, for example, a smartphone, a tablet computer, a television, or other computer device with a display screen, as understood by those skilled in the art.
[0061] Fig.10 A data processing device according to the present invention is shown, which can be used as a processor and / or a reference Fig. 9 The data processing apparatus may include a processor 1000 that communicates with a storage device including an auxiliary storage 1001 (e.g., a disk drive), a read-only memory (ROM) 1002, and a random access memory (RAM) 1003. The processor 1000 may be implemented as one or more CPU chips that are cheaper than a GPU. The data processing apparatus may also include an input / output (I / O) device 1004 and a network connection device 1005.
[0062] Secondary storage 1001 is typically comprised of one or more disk drives or tape drives and is used for non-volatile storage of data and as an overflow data storage device if random access memory 1003 is not large enough to hold all the working data. Secondary storage 1001 may be used to store programs that are loaded into RAM 1003 when those programs are selected for execution.
[0063] In this embodiment, the secondary storage 1001 has an order processing component 1001a, which includes non-transitory instructions operated by the processor 1000 to perform various operations of the method of the present disclosure. ROM 1002 is used to store instructions and possible data read during program execution. Secondary storage 1001, RAM 1003 and / or ROM 1002 may be referred to as computer-readable storage media and / or non-transitory computer-readable media in some cases.
[0064] I / O devices 1004 may include a printer, video monitor, liquid crystal display (LCD), plasma display, touch screen display, keyboard, keypad, switches, dials, mouse, trackball, voice recognizer, card reader, paper tape reader, or other well-known input devices.
[0065] The network connection device 1005 can take the form of a modem, a modem bank, an Ethernet card, a universal serial bus (USB) interface card, a serial interface, a token ring card, a fiber distributed data interface (FDDI) card, a wireless local area network (WLAN) card, a radio transceiver card that facilitates radio communication using protocols such as code division multiple access (CDMA), global mobile communication system (GSM), long term evolution (LTE), global interoperability for microwave access (WiMAX), near field communication (NFC), radio frequency identification (RFID), and / or other air interface protocol radio transceiver cards and other known network devices. These network connection devices 1005 can enable the processor 1000 to communicate with the Internet or one or more intranets. With this network connection, it is conceivable that the processor 1000 can receive information from the network, or can output information to the network during the execution of the above-mentioned method operations. This information is usually represented as a sequence of instructions to be executed using the processor 1000, which can be received from the network and output to the network, for example, in the form of a computer data signal contained in a carrier wave.
[0066] The processor 1000 executes instructions, codes, computer programs, scripts, which it accesses from a hard disk, floppy disk, optical disk (these various disk-based systems can all be considered secondary storage 1001), flash drive, ROM 1002, RAM 1003, or network connection device 1005. Although only one processor 1000 is shown, multiple processors may be present. Thus, although instructions may be discussed as being executed by a processor, the instructions may be executed simultaneously, serially, or by one or more processors.
[0067] Although the technical architecture is described with reference to a computer, it should be understood that the technical architecture can be formed by two or more computers communicating with each other that collaborate to perform tasks. For example, but not by way of limitation, an application can be divided in a manner that allows concurrent and / or parallel processing of application instructions. Alternatively, the data processed by the application can be divided in a manner that allows different parts of the data set to be processed concurrently and / or in parallel by two or more computers. In an embodiment, virtualization software can be used by the technical architecture to provide the functionality of multiple servers that are not directly bound to multiple computers in the technical architecture. In an embodiment, the functionality disclosed above can be provided by executing an application and / or multiple applications in a cloud computing environment. Cloud computing can include providing computing services via a network connection using dynamically scalable computing resources. A cloud computing environment can be established by an enterprise and / or can be rented from a third-party provider as needed.
[0068] It should be understood that by programming and / or loading executable instructions onto the technical architecture, at least one of the CPU 1000, RAM 1003, and ROM 1002 is changed, and the technical architecture is partially converted into a special-purpose machine or device having novel functions taught by the present disclosure. Functions that can be implemented by loading executable software into a computer can be converted into hardware implementations by well-known design rules, which are the basis of the fields of electrical engineering and software engineering.
[0069] A computer program and a computer-readable storage medium for storing the computer program are also provided herein. The computer program includes instructions. When the program is executed by a computer, the instructions enable the computer to execute the steps of any one of the methods in the above embodiments.
[0070] Embodiments of the present disclosure can be used in many different applications, including ambient light measurement, for example, in mobile devices, smart devices, computing devices, optical sensor systems, automotive systems, industrial lighting systems, consumer electronics, and other industries that use display screens. In addition, when the display screen intensity is high relative to the low ambient light intensity, the method according to the present disclosure is particularly effective in estimating the ambient light intensity. For example, when the ambient light intensity is less than 75% of the screen intensity, preferably less than 50% of the screen intensity, and more preferably less than or equal to 30% of the screen intensity. Within these relative intensity level ranges, especially when less than or equal to 30%, the screen contributes a significantly larger proportion of light to the sensor reading, and therefore the accuracy of the estimate of the screen contribution disproportionately affects the accuracy of the ambient light estimate to a greater extent than when both the ambient light and screen intensity levels are high. Therefore, the present invention provides surprising advantages when the screen intensity is high and the ambient intensity is low.
[0071] List of reference numerals:
[0072] 100 Human Eye Sensitivity Chart
[0073] 101 Short cone photoreceptor sensitivity
[0074] 102 Middle cone photoreceptor sensitivity
[0075] 103 Long cone photoreceptor sensitivity
[0076] 200 Relative Color Intensity Plot
[0077] 201 blue component
[0078] 202 Green Component
[0079] 203 Red component
[0080] 204 corresponds to the color of light with a wavelength of 500 nanometers
[0081] 205 corresponds to the color of light with a wavelength of 575 nanometers
[0082] 300 Graph drawn by color vector
[0083] 301 3D Curve
[0084] 302 Curves in the 2D plane
[0085] 400 Chromaticity Diagram
[0086] 401 First Color Gamut
[0087] 402 Second Color Gamut
[0088] 403 Third Color Gamut
[0089] 500 Output light color gamut diagram
[0090] 501 High brightness accessible colors
[0091] 502 Low-light accessible colors
[0092] 600 Methods
[0093] 601 Determine one or more expected color values
[0094] 602 Detecting Light
[0095] 603 Determine or more color values
[0096] 604 Determine the difference
[0097] 605 Estimating the first part and the second part of the detected light
[0098] 700 Chromaticity Diagram
[0099] 701 First Color Gamut
[0100] 702 Second color space
[0101] 703 Red Vector
[0102] 704 Green Vector
[0103] 705 Blue Vector
[0104] 706 Measurement Vector
[0105] 800 Chromaticity Diagram
[0106] 801 First Color Gamut
[0107] 802 Second color space
[0108] 803 Third color space
[0109] 900 devices
[0110] 901 Display Screen
[0111] 902 Sensor
[0112] 1000 processors
[0113] 1001 Auxiliary Storage
[0114] 1002 Read-only memory
[0115] 1003 Random Access Memory
[0116] 1004 Input / Output Devices
[0117] 1005 Network connection devices
[0118] Those skilled in the art will appreciate that in the foregoing description and the appended claims, positional terms such as "at", "above", "along", "side", etc., are made with reference to conceptual descriptions (such as those shown in the accompanying drawings). These terms are used for ease of reference and are not limiting. Therefore, these terms should be understood to refer to objects when in the orientation shown in the accompanying drawings. For example, the ambient light sensor has been described above as being located behind the display screen, and it will be understood that the sensor can be located inside the device, such as behind the display screen, below, covered by the display screen, surrounded by the display screen, near the display screen, and / or have other positional relationships with the display screen, regardless of the orientation of the sensor, the screen, and the device. In addition, in the term "at" the display screen, the estimation of ambient light is directly above, near the sensor position, or, depending on its field of view, a wider area of the display screen is envisioned. Therefore, depending on the position and field of view of the sensor, the terms "at" the display screen and "directly above" the sensor can cover an area or volume as small as one pixel of the display screen, as large as a larger area or volume on the order of many pixels of the entire display screen size.
[0119] Although the present disclosure has been described in terms of the preferred embodiments described above, it should be understood that these embodiments are illustrative only and that the claims are not limited to these embodiments. In view of this disclosure, those skilled in the art will be able to make modifications and substitutions that fall within the scope of the appended claims. Each feature disclosed or shown in this specification may be incorporated into any embodiment, either alone or in any appropriate combination with any other features disclosed or shown herein. For example, the sensor may be any known photodetector, such as a photodiode and / or a phototransistor, etc.
Claims
1. A method for estimating ambient light at a display screen of a device, the method comprising: determining one or more expected color values of light output from the display screen; Detecting light using a sensor located behind the display screen, where the light picked up by the sensor is the sum of ambient light from the surrounding environment and light generated by the display screen itself; determining one or more color values of the detected light; determining a difference between one or more expected color values of the display screen output light and one or more color values of the detected light; as well as estimating a first portion of the detected light corresponding to the display screen output light and a second portion of the detected light corresponding to ambient light based on the determined difference, wherein an output color gamut of the display screen is determined for one or more output brightness levels, the color gamut defining a set of expected color values of light output by the display screen at the corresponding brightness level, The color value refers to the relative intensity of different primary colors in a given color space.
2. The method according to claim 1, wherein Determining one or more expected color values of the display screen output light includes using an output color gamut corresponding to an output brightness level.
3. The method according to claim 2, wherein the set of expected color values of the output color gamut includes a subset of a color space having red (R), green (G), and blue (B) primary vectors, and The one or more expected color values include RGB values in a color space.
4. The method of claim 3, wherein determining one or more expected color values of the display screen output light comprises: One or more display screen output light RGB vectors in a color space are determined for corresponding output brightness levels.
5. The method of claim 3, wherein determining one or more color values of the detected light comprises: A detected light vector in color space is estimated by determining RGB values of the detected light.
6. The method of claim 5, wherein determining a difference between one or more color values of the detected light and one or more expected color values of the display screen output light comprises: Projecting the detected light vector onto the display screen output light RGB vector in the color space; as well as Estimate the corresponding difference between the projection and display screen output light RGB vectors.
7. The method of claim 6, wherein estimating the second portion of the detected light comprises: An ambient light vector in color space is estimated, the ambient light vector having vector components including the corresponding differences between the projection and the display screen output light RGB vectors.
8. The method of claim 3, wherein the color space is one of: RGB space; and XYZ color space.
9. The method of claim 1, wherein the display screen comprises an organic light emitting diode (OLED) display screen.
10. The method of claim 1, wherein the sensor is located inside the device, behind the display screen.
11. A data processing apparatus comprising means for performing the steps of the method according to claim 1.
12. A computer program comprising instructions which, when said program is executed by a computer, cause said computer to perform the steps of the method according to claim 1.
13. A computer readable storage medium having stored thereon a computer program according to claim 12.
14. A device for estimating ambient light, the device comprising: Display screen; Sensors located behind the display screen; processor; and A computer readable storage medium having stored thereon a computer program including instructions, which, when executed by the processor, cause the processor to perform the following steps: determining one or more expected color values of light output from the display screen; determining one or more color values of light detected by the sensor, wherein the light picked up by the sensor is a sum of ambient light from the surrounding environment and light generated by the display screen itself; determining a difference between one or more expected color values of the display screen output light and one or more color values of the detected light; as well as estimating a first portion of the detected light corresponding to the display screen output light and a second portion of the detected light corresponding to ambient light based on the determined difference, wherein an output color gamut of the display screen is determined for one or more output brightness levels, the color gamut defining a set of expected color values of light output by the display screen at the corresponding brightness level, The color value refers to the relative intensity of different primary colors in a given color space.
15. The device of claim 14, wherein the sensor is located inside the device, behind the display screen.
