CN115219032A - Ambient light detection method, ambient light detection device, and storage medium - Google Patents
Ambient light detection method, ambient light detection device, and storage medium Download PDFInfo
- Publication number
- CN115219032A CN115219032A CN202110425362.5A CN202110425362A CN115219032A CN 115219032 A CN115219032 A CN 115219032A CN 202110425362 A CN202110425362 A CN 202110425362A CN 115219032 A CN115219032 A CN 115219032A
- Authority
- CN
- China
- Prior art keywords
- color
- ambient light
- screen
- data
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 145
- 238000000034 method Methods 0.000 description 19
- 230000001960 triggered effect Effects 0.000 description 17
- 239000011521 glass Substances 0.000 description 14
- 238000004891 communication Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 10
- 239000003086 colorant Substances 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 238000002310 reflectometry Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 238000013461 design Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000011002 quantification Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J3/00—Spectrometry; Spectrophotometry; Monochromators; Measuring colours
- G01J3/46—Measurement of colour; Colour measuring devices, e.g. colorimeters
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J3/00—Spectrometry; Spectrophotometry; Monochromators; Measuring colours
- G01J3/02—Details
- G01J3/0297—Constructional arrangements for removing other types of optical noise or for performing calibration
Landscapes
- Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The present disclosure relates to an ambient light detection method, an ambient light detection device, and a storage medium. The ambient light detection method is applied to a terminal, the terminal is provided with an off-screen color sensor, and the ambient light detection method comprises the following steps: responding to the triggering of the under-screen color sensor to perform ambient light detection, acquiring ambient light color detection data detected by the under-screen color sensor, and acquiring screen color display data of the terminal display screen; and calibrating the ambient light color detection data based on the screen color display data to obtain calibrated ambient light color data. Through this disclosed embodiment, get rid of the screen display and to the influence of the ambient light color data that the color sensor detected under the screen, obtain accurate ambient light color data after the calibration to utilize accurate ambient light color data to provide the assurance for the terminal.
Description
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to an ambient light detection method, an ambient light detection apparatus, and a storage medium.
Background
Along with the development of electronic technology, the functions of mobile terminal equipment are increasingly abundant, great convenience is brought to work and life of people, and the use requirements of various aspects are met through various functions which can be realized by the terminal. With the increasing demand on mobile terminal equipment, in order to increase the effective display area of the display screen of the terminal equipment, the screen occupation ratio in the design of the terminal equipment is higher and higher, namely the relative ratio of the area of the display screen and the area of the front panel of the terminal equipment. With the increase of the screen occupation ratio, most of the area at the panel of the representative terminal equipment is occupied by the display screen.
The screen side of the mobile terminal needs to be provided with a color sensor, ambient light color information is detected, and terminal screen color display is adjusted, so that a user can obtain a better screen color display effect under the display matched with the ambient conditions. In order to further improve the screen occupation ratio of the terminal, a color sensor is arranged below the display screen. When the color sensor is arranged under the screen, the display screen corresponding to the setting area of the color sensor displays images, and the detection value of the color sensor is interfered by the display content of the screen to influence the detection result of the color sensor on the ambient light.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an ambient light detection method, an ambient light detection apparatus, and a storage medium.
According to an aspect of the embodiments of the present disclosure, there is provided an ambient light detection method applied to a terminal, where the terminal is provided with an off-screen color sensor, the ambient light detection method including: responding to the triggering of the under-screen color sensor to perform ambient light detection, acquiring ambient light color detection data detected by the under-screen color sensor, and acquiring screen color display data of the terminal display screen; and calibrating the ambient light color detection data based on the screen color display data to obtain calibrated ambient light color data.
In one embodiment, acquiring screen color display data of the terminal display screen includes: and acquiring screen color display data in a screen color calibration area, wherein the screen color calibration area is a projection area of the terminal display screen determined based on a plane figure enclosed by the outer edge of the color sensor under the screen.
In an embodiment, the projection area is a projection area obtained by projecting the plane figure to the terminal display screen by using a geometric center of the plane figure surrounded by the outer edges of the off-screen color sensors as a center and using the effective view field angle of the off-screen color sensors as the angle.
In an embodiment, calibrating the ambient light color detection data based on the screen color display data to obtain calibrated ambient light color data includes: determining screen color reflection interference data reflected to the off-screen color sensor based on the screen color display data; and removing the screen color reflection interference data from the ambient light color detection data to obtain calibrated ambient light color data.
In an embodiment, removing the screen color reflection interference data from the ambient light color detection data to obtain calibrated ambient light color data includes: fitting each color channel value of the ambient light color detection data to obtain a first color fitting value, and fitting each color channel value of the screen color reflection interference data to obtain a second color fitting value; and determining the absolute value of the difference value between the first color fitting value and the second color fitting value as a color fitting value corresponding to the calibrated ambient light color data.
According to still another aspect of the embodiments of the present disclosure, there is provided an ambient light detection apparatus applied to a terminal provided with an off-screen color sensor, the ambient light detection apparatus including: the acquisition module is used for responding to the triggering of the under-screen color sensor to perform ambient light detection, acquiring ambient light color detection data detected by the under-screen color sensor and acquiring screen color display data of the terminal display screen; and the determining module is used for calibrating the ambient light color detection data based on the screen color display data to obtain calibrated ambient light color data.
In an embodiment, the obtaining module obtains the screen color display data of the terminal display screen in the following manner: and acquiring screen color display data in a screen color calibration area, wherein the screen color calibration area is a projection area of the terminal display screen determined based on a plane figure surrounded by the outer edge of the under-screen color sensor.
In an embodiment, the projection area is a projection area obtained by projecting the plane figure to the terminal display screen by using a geometric center of the plane figure surrounded by the outer edges of the off-screen color sensors as a center and using the effective view field angle of the off-screen color sensors as the angle.
In an embodiment, the determining module calibrates the ambient light color detection data based on the screen color display data in the following manner to obtain calibrated ambient light color data: determining screen color reflection interference data reflected to the under-screen color sensor based on the screen color display data; and removing the screen color reflection interference data from the ambient light color detection data to obtain calibrated ambient light color data.
In an embodiment, the determining module removes the screen color reflection interference data from the ambient light color detection data to obtain calibrated ambient light color data by the following method: fitting each color channel value of the ambient light color detection data to obtain a first color fitting value, and fitting each color channel value of the screen color reflection interference data to obtain a second color fitting value; and determining the absolute value of the difference between the first color fitting value and the second color fitting value as a color fitting value corresponding to the calibrated ambient light color data.
According to still another aspect of the embodiments of the present disclosure, there is provided an ambient light detection apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: performing the ambient light detection method of any one of the preceding claims.
According to yet another aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having instructions stored thereon which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the ambient light detection method of any one of the preceding claims.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: through set up the color sensor under the terminal screen, color sensor carries out the ambient light and detects under the screen, the ambient light colour that color sensor detected under the screen is detected based on terminal display screen colour display data that acquire calibrates, obtains the ambient light colour data after the calibration, gets rid of the screen and shows the influence to the ambient light colour data that color sensor detected under the screen, obtains the accurate ambient light colour data after the calibration to utilize accurate ambient light colour data to provide the assurance for the terminal.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a schematic diagram illustrating terminal ray propagation according to an exemplary embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating an ambient light detection method according to an exemplary embodiment of the present disclosure.
FIG. 3 is a flowchart illustrating a method of ambient light detection according to an exemplary embodiment of the present disclosure.
Fig. 4 is a schematic diagram illustrating a positional relationship between an off-screen color sensor and a screen color calibration area of a terminal according to an exemplary embodiment of the present disclosure.
FIG. 5 is a flow chart illustrating a method of ambient light detection according to an exemplary embodiment of the present disclosure.
FIG. 6 is a flowchart illustrating a method of obtaining calibrated ambient light color data according to an exemplary embodiment of the present disclosure.
FIG. 7 is a flow chart illustrating a method of ambient light detection according to an exemplary embodiment of the present disclosure.
FIG. 8 is a block diagram illustrating an ambient light detection arrangement according to an exemplary embodiment of the present disclosure.
FIG. 9 illustrates a block diagram of an apparatus for ambient light detection according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
With the continuous development and maturity of science and technology, in the intelligent terminal that is popularized day by day, the demand that the user used intelligent terminal is more and more. However, as the mobile operating system and the hardware platform become unified, the software functions become more and more homogeneous, and the improvement of the terminal performance becomes one of the important ways to maintain the competitiveness of the terminal product.
In order to increase the effective display area of the display screen of the terminal equipment, the screen occupation ratio in the design of the terminal equipment is higher and higher, and the screen occupation ratio is the relative ratio of the area of the display screen and the area of the front panel of the terminal equipment. With the increase of the screen occupation ratio, most of the area at the panel of the representative terminal equipment is occupied by the display screen.
The colors in the environment can be described by combining RGB, i.e. three primary colors of red, green and blue, the human eye is most sensitive to red, green and blue, and most colors can be generated by combining the three colors of red, green and blue according to different proportions. Most monochromatic lights can also be decomposed into three colors of red, green and blue. A color sensor is required to be arranged on one side of a screen of the mobile terminal, receives ambient light emitted by an ambient light source, obtains numerical values of three basic colors of RGB of the ambient light, further obtains original color data of the ambient light, and can realize color detection of color light by measuring the reflection ratio of three primary colors forming object colors. To setting up in the color sensor at terminal, the ambient light colour data that detect can provide the adjustment basis to terminal camera shooting for can more accurate regulation during the shooting, the color reproduction is more accurate, and picture effect is more lively, can also be used for the adjustment to screen color demonstration.
In order to further improve the screen occupation ratio of the terminal, a color sensor is arranged below the display screen. When the color sensor is arranged under the screen, the image display of the terminal display screen can be received by the color sensor, so that the detection of the color sensor on the color data of the ambient light is interfered, and the detection result is incorrect.
Fig. 1 is a schematic diagram illustrating a terminal light propagation according to an exemplary embodiment of the present disclosure, as shown in fig. 1, an off-screen color sensor is disposed below a display screen of the terminal, and luminescent display color pixels are disposed below a glass cover plate of the display screen for displaying a screen image. When the terminal is used, the display screen displays, the display color pixels below the glass cover plate emit light, and the emitted light rays are reflected by the glass cover plate, namely, the screen light rays are reflected to the lower portion of the display screen and enter the color sensor under the screen. That is, when the color sensor works under the screen to detect the ambient light color data, the light entering the color sensor under the screen includes two parts of ambient light and screen light, the part of the ambient light really needs to be collected by the color sensor, and the screen light of the terminal display screen causes interference when the color sensor detects the ambient light.
Therefore, the ambient light detection method provided by the disclosure can be used for removing the influence of screen display on the ambient light color data detected by the color sensor under the screen to obtain the calibrated accurate ambient light color data.
Fig. 2 is a flowchart illustrating an ambient light detection method applied to a terminal provided with an off-screen color sensor according to an exemplary embodiment of the present disclosure, and the ambient light detection method includes the following steps, as shown in fig. 2.
In step S101, ambient light detection is performed in response to the off-screen color sensor being triggered, ambient light color detection data detected by the off-screen color sensor is acquired, and screen color display data of the terminal display screen is acquired.
In step S102, the ambient light color detection data is calibrated based on the screen color display data, so as to obtain calibrated ambient light color data.
In the embodiment of the disclosure, a color sensor under a screen is arranged under a display screen of the terminal to detect ambient light color data, and the ambient light color data can provide an adjustment basis for shooting of a front camera of the terminal or is used for assisting adjustment of color display of the screen. In the process of using the terminal, the under-screen color sensor is triggered to perform ambient light detection, and ambient light color detection data detected by the under-screen color sensor is acquired.
When the screen of terminal display screen shows, the light that shows that the colour pixel below the glass apron sent sees through the glass apron, and partial light is incided under the display screen through the reflection of glass apron, gets into under the screen color sensor, has caused the interference light when color sensor detects ambient light. Therefore, the color sensor under the screen is triggered to detect the ambient light, and the detected ambient light color detection data comprises partial data corresponding to the interference light, so that accurate ambient light color data cannot be represented.
In the embodiment of the disclosure, when the terminal display screen is obtained for displaying, the screen color display data. And calibrating the ambient light color detection data based on the screen color display data to obtain calibrated ambient light color data.
According to the embodiment of the disclosure, the terminal is provided with the under-screen color sensor, the under-screen color sensor is triggered to perform ambient light detection, the ambient light color detection data detected by the under-screen color sensor is calibrated based on the acquired terminal display screen color display data to obtain the calibrated ambient light color data, the influence of screen display on the ambient light color data detected by the under-screen color sensor is removed, the calibrated accurate ambient light color data is obtained, and therefore the terminal is guaranteed to utilize the accurate ambient light color data.
Fig. 3 is a flowchart illustrating an ambient light detection method according to an exemplary embodiment of the present disclosure, and as shown in fig. 3, the ambient light detection method includes the following steps.
In step S201, in response to the off-screen color sensor being triggered to perform ambient light detection, ambient light color detection data detected by the off-screen color sensor is acquired.
In step S202, screen color display data in a screen color calibration area, which is a projection area on the display screen of the terminal determined based on a planar pattern surrounded by the outer edges of the color sensors under the screen, is obtained.
In step S203, the ambient light color detection data is calibrated based on the screen color display data, and calibrated ambient light color data is obtained.
In the embodiment of the disclosure, in the process of using the terminal, the under-screen color sensor set by the terminal is triggered to perform ambient light detection, ambient light color detection data detected by the under-screen color sensor is acquired, and when the terminal display screen is acquired to display, screen color display data is acquired.
When the screen of the terminal display screen displays, light rays emitted by display color pixels below the glass cover plate penetrate through the glass cover plate, partial light rays are reflected by the glass cover plate and enter the lower portion of the display screen to enter the color sensor under the screen, the display of the terminal part screen has obvious influence on the detection result, and the terminal part screen is a screen color calibration area.
Fig. 4 is a schematic diagram illustrating a positional relationship between an off-screen color sensor and a screen color calibration area of a terminal according to an exemplary embodiment of the present disclosure, and referring to fig. 4, for the off-screen color sensor disposed under a display screen of the terminal, the screen color calibration area is determined based on a disposed position of the off-screen color sensor, a plane figure enclosed by outer edges of the off-screen color sensor is projected toward the terminal display screen, and a projection area formed on the terminal display screen is the screen color calibration area. It will be appreciated that the area of the screen color calibration area is greater than or equal to the area of the planar pattern defined by the outer edges of the off-screen color sensor.
According to the embodiment of the disclosure, the terminal is provided with the color sensor under the screen, the color sensor under the screen is triggered to perform ambient light detection, the ambient light color detection data detected by the color sensor under the screen is calibrated based on the display screen color display data in the terminal color calibration area, the display screen color display data is more accurate, the more accurate ambient light color data after calibration is obtained, the influence of screen display on the ambient light color data detected by the color sensor under the screen is removed, and the accurate ambient light color data after calibration is obtained.
In an embodiment of the disclosure, the projection area is a projection area obtained by projecting the plane figure to the terminal display screen by using a geometric center of the plane figure surrounded by the outer edges of the color sensors under the screen as a center and using the effective view field angle of the color sensors under the screen. The color sensor under the screen corresponds to an effective field angle, namely, the effective field angle is a space included angle formed by the edges of the screen light with the maximum range, which can be detected by the color sensor under the screen, by taking the outer edge of the color sensor under the screen as a vertex, and the effective field angle determines the field range of the color sensor under the screen. Referring to fig. 1, the effective field angle is the angle sandwiched between the dotted lines above the off-screen color sensor. That is, the color sensor under the screen only detects the color data within the effective field angle range, and ignores the color data outside the effective field angle range. It is understood that the effective field angle of the under-screen color sensor may be determined according to its model, configuration, etc., and may be, for example, 60 degrees, 70 degrees, or other values. When the screen color calibration area is determined, the geometric center of the plane figure formed by the outer edge of the color sensor under the screen is used as the center, and the plane figure formed by the outer edge of the color sensor under the screen is projected to the terminal display screen by the effective view field angle of the color sensor under the screen to obtain a projection area, namely the screen color calibration area. It will be appreciated that the size of the screen color calibration area is related to the structural stack of the terminal display screen when the effective field of view is determined. The larger the distance between the off-screen color sensor and the screen emissive display pixels, the larger the screen color calibration area. Conversely, the smaller the distance between the off-screen color sensor and the screen emissive display pixels, the smaller the screen color calibration area.
According to the embodiment of the disclosure, the terminal is provided with the color sensor under the screen, the color sensor under the screen is triggered to perform ambient light detection, the ambient light color detection data detected by the color sensor under the screen is calibrated based on the display screen color display data in the terminal color calibration area, the display screen color display data is more accurate, more accurate ambient light color data after calibration is obtained, the influence of screen display on the ambient light color data detected by the color sensor under the screen is removed, and accurate ambient light color data after calibration is obtained.
Fig. 5 is a flowchart illustrating an ambient light detection method according to an exemplary embodiment of the present disclosure, and as shown in fig. 5, the ambient light detection method includes the following steps.
In step S301, ambient light detection is performed in response to the off-screen color sensor being triggered, ambient light color detection data detected by the off-screen color sensor is acquired, and screen color display data of the terminal display screen is acquired.
In step S302, screen color reflection interference data reflected to the off-screen color sensor is determined based on the screen color display data.
In step S303, the screen color reflection interference data is removed from the ambient light color detection data, so as to obtain calibrated ambient light color data.
In the embodiment of the disclosure, in the process of using the terminal, the under-screen color sensor set by the terminal is triggered to perform ambient light detection, ambient light color detection data detected by the under-screen color sensor is acquired, and screen color display data is acquired when the display screen of the terminal displays the ambient light color detection data.
When the screen of terminal display screen shows, because the non-light tight characteristic of screen, most light that the demonstration colour pixel of glass apron below sent sees through the glass apron, and the light of part proportion is through the reflection of glass apron, and under inciting to the display screen, get into under the screen color sensor, interference light when having caused color sensor to detect ambient light. And determining the screen color reflection interference data reflected to the under-screen color sensor based on the screen color display data, wherein the screen color reflection interference data can be determined by the reflectivity of a glass cover plate of the terminal display screen. The screen light is reflected to the color sensor under the screen according to the reflectivity of the glass cover plate, and the screen color display data is determined as screen color reflection interference data according to the proportion of the reflectivity. In ambient light color detection dataAnd removing the color reflection interference data of the screen to obtain the calibrated ambient light color data. For example, the ambient light color detection data C e Displaying data as C for screen color s The screen reflectivity is n, and the screen color reflection interference data can be expressed as C d =C s X n, and the color data of the collimated ambient light is C e ′=C e -C d 。
According to the embodiment of the disclosure, the terminal is provided with the under-screen color sensor, the under-screen color sensor is triggered to perform ambient light detection, screen color reflection interference data reflected to the under-screen color sensor is determined based on the acquired screen color display data of the terminal display screen, the screen color reflection interference data is removed from the ambient light color detection data to obtain calibrated ambient light color data, the influence of screen display on the ambient light color data detected by the under-screen color sensor is effectively removed, and the calibrated accurate ambient light color data is obtained.
Fig. 6 is a flowchart illustrating a method of obtaining calibrated ambient light color data according to an exemplary embodiment of the present disclosure, where the method of obtaining calibrated ambient light color data, as shown in fig. 6, includes the following steps.
In step S401, fitting each color channel value of the ambient light color detection data to obtain a first color fitting value, and fitting each color channel value of the screen color reflection interference data to obtain a second color fitting value.
In step S402, an absolute value of a difference between the first color fitting value and the second color fitting value is determined as a color fitting value corresponding to the calibrated ambient light color data.
In the embodiment of the disclosure, in the process of using the terminal, the under-screen color sensor set by the terminal is triggered to perform ambient light detection, ambient light color detection data detected by the under-screen color sensor is acquired, and screen color display data is acquired when the display screen of the terminal displays the ambient light color detection data. It can be understood that the detection data of the ambient light color detected by the under-screen color sensor are respectively determined by three channels R, G and B, and the display data of the screen color are also represented by three channels R, G and B, that is, the reflection interference data of the screen color are also represented by three channels R, G and B. When the ambient light color detection data is calibrated based on the screen color reflection interference data, the screen color reflection interference data and the ambient light color detection data may be quantized separately. Quantification within a certain numerical range can be performed under the same specification, that is, R, G, and B color channel values in the ambient light color detection data are fitted to obtain a first color fitting value, and the first color fitting value is used for representing the ambient light color detection data. And fitting the color reflection interference data R, G and B color channel values of the screen to obtain a second color fitting value, wherein the second color fitting value is used for representing the color reflection interference data of the screen. And determining the absolute value of the difference between the first color fitting value and the second color fitting value as a color fitting value corresponding to the calibrated ambient light color data. And the difference value between the first color fitting value and the second color fitting value is used for removing the interference brought by screen color display in the ambient light color detection data, so that the calibration of the ambient light color accurate data is realized.
According to the embodiment of the disclosure, the terminal is provided with the under-screen color sensor, the under-screen color sensor is triggered to perform ambient light detection, screen color reflection interference data reflected to the under-screen color sensor is determined based on the acquired screen color display data of the terminal display screen, the screen color reflection interference data is removed from the ambient light color detection data, calibrated ambient light color data is obtained, the influence of screen display on the ambient light color data detected by the under-screen color sensor is effectively removed, and the calibrated accurate ambient light color data is obtained.
Fig. 7 is a flowchart illustrating an ambient light detection method according to an exemplary embodiment of the present disclosure, and as shown in fig. 7, the ambient light detection method includes the following steps.
In step S501, the off-screen color sensor is triggered to perform ambient light detection.
In step S502, ambient light color detection data detected by the off-screen color sensor is acquired.
In step S503, screen color display data within the screen color calibration area is acquired.
In step S504, screen color reflection interference data reflected to the off-screen color sensor is determined based on the screen color display data within the screen color calibration area.
In step S505, the screen color reflection interference data is removed from the ambient light color detection data, and calibrated ambient light color data is obtained.
In the embodiment of the disclosure, a color sensor under the screen is arranged under the display screen of the terminal to detect color data of ambient light, and in the process of using the terminal, the color sensor under the screen is triggered to detect the ambient light, so as to acquire the color detection data of the ambient light detected by the color sensor under the screen. And acquiring screen color display data in the screen color calibration area, and determining screen color reflection interference data reflected to the under-screen color sensor based on the screen color display data in the screen color calibration area. The interference data of the color reflection of the screen brings interference to the color data of the ambient light detected by the color sensor under the screen, and the accuracy of the result is influenced. And removing the screen color reflection interference data from the ambient light color detection data to obtain calibrated ambient light color data.
According to the embodiment of the disclosure, the terminal is provided with the under-screen color sensor, the under-screen color sensor is triggered to perform ambient light detection, screen color reflection interference data reflected to the under-screen color sensor is determined based on screen color display data in the screen color calibration area, the screen color reflection interference data is removed from the ambient light color detection data, and calibrated ambient light color data is obtained, so that a guarantee is provided for the terminal to utilize accurate ambient light color data.
Based on the same concept, the embodiment of the disclosure also provides an ambient light detection device.
It is understood that the apparatus provided by the embodiments of the present disclosure includes hardware structures and/or software modules for performing the functions described above. The disclosed embodiments can be implemented in hardware or a combination of hardware and computer software, in combination with the exemplary elements and algorithm steps disclosed in the disclosed embodiments. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the subject matter of the embodiments of the present disclosure.
Fig. 8 is a block diagram illustrating an ambient light detection device according to an exemplary embodiment of the present disclosure. The ambient light detection device is applied to a terminal, and referring to fig. 8, the ambient light detection device 100 includes: the method comprises an acquisition module 101 and a determination module 102.
The obtaining module 101 is configured to perform ambient light detection in response to the off-screen color sensor being triggered, obtain ambient light color detection data detected by the off-screen color sensor, and obtain screen color display data of the terminal display screen.
The determining module 102 is configured to calibrate the ambient light color detection data based on the screen color display data, so as to obtain calibrated ambient light color data.
In an embodiment, the obtaining module 101 obtains the screen color display data of the terminal display screen in the following manner:
and acquiring screen color display data in a screen color calibration area, wherein the screen color calibration area is a projection area of the terminal display screen determined based on a plane figure enclosed by the outer edge of the color sensor under the screen.
In an embodiment, the projection area is a projection area obtained by taking a geometric center of a plane figure surrounded by outer edges of the off-screen color sensor as a center and projecting the plane figure to the terminal display screen by taking an effective view field angle of the off-screen color sensor.
In an embodiment, the determining module 102 calibrates the ambient light color detection data based on the screen color display data in the following manner to obtain calibrated ambient light color data:
determining screen color reflection interference data reflected to an off-screen color sensor based on the screen color display data;
and removing the screen color reflection interference data from the ambient light color detection data to obtain calibrated ambient light color data.
In an embodiment, the determining module 102 removes the screen color reflection interference data from the ambient light color detection data to obtain the calibrated ambient light color data as follows:
fitting each color channel value of the ambient light color detection data to obtain a first color fitting value, and fitting each color channel value of the screen color reflection interference data to obtain a second color fitting value;
and determining the absolute value of the difference between the first color fitting value and the second color fitting value as a color fitting value corresponding to the calibrated ambient light color data.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Fig. 9 is a block diagram illustrating an apparatus 200 for ambient light detection according to an exemplary embodiment of the present disclosure. For example, the apparatus 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 9, the apparatus 200 may include one or more of the following components: a processing component 202, a memory 204, a power component 206, a multimedia component 208, an audio component 210, an input/output (I/O) interface 212, a sensor component 214, and a communication component 216.
The processing component 202 generally controls overall operation of the device 200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 202 can include one or more modules that facilitate interaction between the processing component 202 and other components. For example, the processing component 202 can include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.
The memory 204 is configured to store various types of data to support operations at the apparatus 200. Examples of such data include instructions for any application or method operating on device 200, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 204 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power components 206 provide power to the various components of the device 200. Power components 206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 200.
The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 200 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 210 is configured to output and/or input audio signals. For example, audio component 210 includes a Microphone (MIC) configured to receive external audio signals when apparatus 200 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 204 or transmitted via the communication component 216. In some embodiments, audio component 210 also includes a speaker for outputting audio signals.
The I/O interface 212 provides an interface between the processing component 202 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 214 includes one or more sensors for providing various aspects of status assessment for the device 200. For example, the sensor assembly 214 may detect an open/closed state of the device 200, the relative positioning of components, such as a display and keypad of the device 200, the sensor assembly 214 may also detect a change in the position of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration/deceleration of the device 200, and a change in the temperature of the device 200. The sensor assembly 214 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 216 is configured to facilitate wired or wireless communication between the apparatus 200 and other devices. The device 200 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 200 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as memory 204, comprising instructions executable by processor 220 of device 200 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It is understood that "a plurality" in this disclosure means two or more, and other words are analogous. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. The singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It will be further understood that the terms "first," "second," and the like are used to describe various information and that such information should not be limited by these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the terms "first," "second," etc. are used interchangeably throughout. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
It will be further understood that, unless otherwise specified, "connected" includes direct connections between the two without the presence of other elements, as well as indirect connections between the two with the presence of other elements.
It will be further appreciated that while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in serial order, or that all illustrated operations be performed, to achieve desirable results. In certain environments, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (12)
1. An ambient light detection method is applied to a terminal, the terminal is provided with an off-screen color sensor, and the ambient light detection method comprises the following steps:
responding to the triggering of the under-screen color sensor to perform ambient light detection, acquiring ambient light color detection data detected by the under-screen color sensor, and acquiring screen color display data of the terminal display screen;
and calibrating the ambient light color detection data based on the screen color display data to obtain calibrated ambient light color data.
2. The ambient light detection method according to claim 1, wherein acquiring screen color display data of the display screen of the terminal includes:
and acquiring screen color display data in a screen color calibration area, wherein the screen color calibration area is a projection area of the terminal display screen determined based on a plane figure surrounded by the outer edge of the under-screen color sensor.
3. The ambient light detection method according to claim 2, wherein the projection area is a projection area obtained by projecting the planar pattern toward the terminal display screen with an effective viewing angle of the off-screen color sensor, with a geometric center of the planar pattern defined by outer edges of the off-screen color sensor as a center.
4. The ambient light detection method according to any one of claims 1 to 3, wherein calibrating the ambient light color detection data based on the screen color display data to obtain calibrated ambient light color data comprises:
determining screen color reflection interference data reflected to the off-screen color sensor based on the screen color display data;
and removing the screen color reflection interference data from the ambient light color detection data to obtain calibrated ambient light color data.
5. The ambient light detection method of claim 4, wherein removing the screen color reflection interference data from the ambient light color detection data to obtain calibrated ambient light color data comprises:
fitting each color channel value of the ambient light color detection data to obtain a first color fitting value, and fitting each color channel value of the screen color reflection interference data to obtain a second color fitting value;
and determining the absolute value of the difference between the first color fitting value and the second color fitting value as a color fitting value corresponding to the calibrated ambient light color data.
6. The utility model provides an ambient light detection device which characterized in that is applied to the terminal, the terminal is provided with under the screen color sensor, ambient light detection device includes:
the acquisition module is used for responding to the triggering of the under-screen color sensor to perform ambient light detection, acquiring ambient light color detection data detected by the under-screen color sensor and acquiring screen color display data of the terminal display screen;
and the determining module is used for calibrating the ambient light color detection data based on the screen color display data to obtain calibrated ambient light color data.
7. The ambient light detection device according to claim 6, wherein the obtaining module obtains the screen color display data of the display screen of the terminal by:
and acquiring screen color display data in a screen color calibration area, wherein the screen color calibration area is a projection area of the terminal display screen determined based on a plane figure enclosed by the outer edge of the color sensor under the screen.
8. The ambient light detection device according to claim 7, wherein the projection area is a projection area obtained by projecting the planar pattern toward the terminal display screen with an effective viewing angle of the off-screen color sensor centered on a geometric center of the planar pattern defined by outer edges of the off-screen color sensor.
9. The ambient light detection device according to any one of claims 6 to 8, wherein the determining module calibrates the ambient light color detection data based on the screen color display data in such a way that calibrated ambient light color data is obtained:
determining screen color reflection interference data reflected to the off-screen color sensor based on the screen color display data;
and removing the screen color reflection interference data from the ambient light color detection data to obtain calibrated ambient light color data.
10. The ambient light detection device of claim 9, wherein the determination module removes the screen color reflection interference data from the ambient light color detection data to obtain calibrated ambient light color data by:
fitting each color channel value of the ambient light color detection data to obtain a first color fitting value, and fitting each color channel value of the screen color reflection interference data to obtain a second color fitting value;
and determining the absolute value of the difference between the first color fitting value and the second color fitting value as a color fitting value corresponding to the calibrated ambient light color data.
11. An ambient light detection device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: performing the ambient light detection method of any one of claims 1 to 5.
12. A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the ambient light detection method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110425362.5A CN115219032A (en) | 2021-04-20 | 2021-04-20 | Ambient light detection method, ambient light detection device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110425362.5A CN115219032A (en) | 2021-04-20 | 2021-04-20 | Ambient light detection method, ambient light detection device, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115219032A true CN115219032A (en) | 2022-10-21 |
Family
ID=83605138
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110425362.5A Pending CN115219032A (en) | 2021-04-20 | 2021-04-20 | Ambient light detection method, ambient light detection device, and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115219032A (en) |
-
2021
- 2021-04-20 CN CN202110425362.5A patent/CN115219032A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11015973B2 (en) | Method and apparatus for acquiring ambient light brightness based on the luminance value of the screen of a terminal device | |
US9858885B2 (en) | Method and device for reducing display brightness | |
US11698297B2 (en) | Methods and devices for detecting ambient light based on different states of flexible screen, and storage medium | |
EP3336602A1 (en) | Method and apparatus for controlling screen to emit light | |
US10109248B2 (en) | Method and device for adjusting liquid crystal display | |
US10204403B2 (en) | Method, device and medium for enhancing saturation | |
CN107808626B (en) | Method and device for adjusting color temperature of display screen and computer readable storage medium | |
US10951816B2 (en) | Method and apparatus for processing image, electronic device and storage medium | |
US10930217B2 (en) | Method and apparatus for compensating operating parameter of display circuit | |
CN112905135A (en) | Screen brightness processing method, electronic device and storage medium | |
CN113542869A (en) | Display control method, display control device, and storage medium | |
CN115526774A (en) | Image interpolation method, device, storage medium and electronic equipment | |
CN108847199B (en) | Brightness determination method and device | |
US11749228B2 (en) | Method and device for adjusting display brightness of screen, and storage medium | |
EP3975548B1 (en) | Photographing method and apparatus, terminal, and storage medium | |
CN115706750B (en) | Color temperature calibration method, color temperature calibration device and storage medium | |
CN110891131A (en) | Camera module, processing method and device, electronic equipment and storage medium | |
CN116453459A (en) | Screen display method and device, readable storage medium and electronic equipment | |
CN115219032A (en) | Ambient light detection method, ambient light detection device, and storage medium | |
CN112905141B (en) | Screen display method and device and computer storage medium | |
CN112114450A (en) | Display method, display device and storage medium | |
CN116939072A (en) | Terminal, light sensation detection method, device and storage medium | |
CN116593009A (en) | Color temperature detection method, device and storage medium | |
CN118072667A (en) | Display brightness adjustment method, device and storage medium | |
CN114095672A (en) | Imaging system, method and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |