Electronic device, ambient light measurement method, measurement device and storage medium

By setting up a light-shading component at the receiving end of the under-screen ambient light sensor, the difference in light information in the light shading and transmissive states is used to remove the screen light interference, which solves the problem of inaccurate reading of the under-screen ambient light sensor and improves the accuracy of the reading Sex and reliability.

CN115148170BActive Publication Date: 2025-01-14VIVO MOBILE COMM CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210983343.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-16
Publication Date
2025-01-14
Estimated Expiration
2042-08-16

AI Technical Summary

Technical Problem

In the prior art, the under-screen ambient light sensor has inaccurate reading due to interference from screen light, and the preset algorithm cannot effectively eliminate the uneven impact of screen light, and the debug accuracy is difficult to ensure.

Method used

By setting a light shielding component at the receiving end of the light sensor, the component has a light shielding state and a light transmitting state. The controller removes screen light interference according to the difference in light information in different states, and only retains ambient light information.

Benefits of technology

It improves the reading accuracy of the under-screen ambient light sensor, avoids the impact of screen light on the reading of ambient light sensor, and enhances the reliability of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115148170B_ABST
    Figure CN115148170B_ABST
Patent Text Reader

Abstract

The present application discloses an electronic device, an ambient light measurement method, a measurement device and a storage medium, and belongs to the technical field of electronic devices. The electronic device includes: a display screen; a light sensor, including a receiving end, the position of the receiving end is opposite to the position of a preset display area of ​​the display screen; a shading component, the position of the shading component is opposite to the position of the preset display area, and the shading component has a shading state and a light-transmitting state; a controller, the shading component and the light sensor are both connected to the controller, wherein when the shading component is in the shading state, the controller collects first light information through the light sensor; when the shading component is in the light-transmitting state, the controller collects second light information through the light sensor; the controller is used to determine the ambient light information according to the first light information and the second light information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to an electronic equipment, an ambient light measurement method, a measurement device and a storage medium. Background Art

[0002] In the related art, in order to increase the screen-to-body ratio of a smartphone, an ambient light sensor is generally disposed below the screen to reduce the black edge of the screen. Since the ambient light sensor is disposed below the screen, the light from the screen will interfere with the reading of the ambient light sensor.

[0003] The current way to solve the problem of the under-screen ambient light sensor being affected by screen light is to compensate the sensor readings through an algorithm based on the screen display content. That is, the amount of screen light interference is calculated through a pre-set software algorithm to correct the ambient light sensor readings.

[0004] However, the preset algorithm cannot eliminate the impact of uneven screen light caused by the consistency of the screen itself, and the accuracy of algorithm debugging is difficult to guarantee, resulting in inaccurate readings of the ambient light sensor. Summary of the invention

[0005] The present application aims to provide an electronic device, an ambient light measurement method, a measuring device and a storage medium, which can solve the problem of inaccurate readings of under-screen ambient light sensors in related technologies.

[0006] In a first aspect, an embodiment of the present application provides an electronic device, including:

[0007] Display screen;

[0008] The optical sensor includes a receiving end, wherein the receiving end is located opposite to the position of the preset display area of ​​the display screen;

[0009] A shading component, the position of the shading component is opposite to the position of the preset display area, and the shading component has a shading state and a light-transmitting state;

[0010] The controller, the shading component and the light sensor are all connected to the controller, wherein when the shading component is in a shading state, the controller collects first light information through the light sensor, and when the shading component is in a light transmitting state, the controller collects second light information through the light sensor, and the controller is used to determine the ambient light information based on the first light information and the second light information.

[0011] In a second aspect, an embodiment of the present application provides an ambient light measurement method for controlling the electronic device as provided in the first aspect, the ambient light measurement method comprising:

[0012] Determine the first light information collected by the light sensor when the controller outputs a first level signal, and the second light information collected by the light sensor when the controller outputs a second level signal;

[0013] The ambient light information is determined according to the difference between the second light information and the first light information.

[0014] In a third aspect, an embodiment of the present application provides an ambient light measuring device for controlling the electronic device as provided in the first aspect, the ambient light measuring device comprising:

[0015] A first determination module, used to determine the first light information collected by the light sensor when the controller outputs a first level signal, and the second light information collected by the light sensor when the controller outputs a second level signal;

[0016] The second determining module is used to determine the ambient light information according to the difference between the second light information and the first light information.

[0017] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the ambient light measurement method of the second aspect are implemented.

[0018] In an embodiment of the present application, a light sensor is arranged below the screen, and a shading component is arranged at a position corresponding to the receiving end of the light sensor. The shading component can switch between a shading state and a light-transmitting state. In the shading state, external ambient light cannot reach the light sensor. At this time, the first light information collected by the light sensor is the screen light information. In the light-transmitting state, external ambient light can pass through the shading component. At this time, the second light information collected by the light sensor is the combination of the screen light information and the ambient light information. Therefore, based on the difference between the second light information and the first light information, data containing only ambient light information can be obtained, thereby avoiding the influence of screen light on the reading of the ambient light sensor under the screen, and improving the accuracy of the reading of the ambient light sensor under the screen.

[0019] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0021] Figure 1 One of the structural schematic diagrams of an electronic device according to an embodiment of the present application is shown;

[0022] Figure 2 A second structural schematic diagram of an electronic device according to an embodiment of the present application is shown;

[0023] Figure 3 A schematic structural diagram of a light shielding assembly according to an embodiment of the present application is shown;

[0024] Figure 4 A third structural schematic diagram of an electronic device according to an embodiment of the present application is shown;

[0025] Figure 5 A flow chart of an ambient light measurement method according to an embodiment of the present application is shown;

[0026] Figure 6 A structural block diagram of an ambient light measuring device according to an embodiment of the present application is shown.

[0027] Reference numerals:

[0028] 100 electronic device, 102 display screen, 1022 display panel, 1024 light-transmitting protection panel, 104 light sensor, 1042 receiving end, 1044 transmitting end, 106 shading component, 1062 liquid crystal sheet, 1064 first polarizer, 1066 second polarizer, 108 controller, 110 middle frame, 112 battery cover. DETAILED DESCRIPTION

[0029] The embodiments of the present application will be described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and should not be construed as limitations on the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0030] The term "first" or "second" in the specification and claims of this application may include one or more of the features explicitly or implicitly. In the description of this application, unless otherwise specified, "plurality" means two or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally means that the objects connected before and after are in an "or" relationship.

[0031] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0032] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0033] Combine the following Figures 1 to 6 An electronic device, an ambient light measurement method, a measurement device, and a storage medium according to embodiments of the present application are described.

[0034] In some embodiments of the present application, an electronic device is provided. Figure 1 shows one of the structural schematic diagrams of an electronic device according to an embodiment of the present application, Figure 2 FIG. 2 shows a second structural diagram of an electronic device according to an embodiment of the present application. Figure 1 and Figure 2 As shown, the electronic device 100 includes:

[0035] Display screen 102;

[0036] The optical sensor 104 includes a receiving end 1042 , and the receiving end 1042 is located opposite to the position of the preset display area of ​​the display screen 102 ;

[0037] A light shielding component 106, the position of the light shielding component 106 is opposite to the position of the preset display area, and the light shielding component 106 has a light shielding state and a light transmitting state;

[0038] The controller 108, the shading component 106 and the light sensor 104 are all connected to the controller 108, wherein when the shading component 106 is in the shading state, the controller 108 collects the first light information through the light sensor 104; when the shading component 106 is in the light transmitting state, the controller 108 collects the second light information through the light sensor 104; the controller 108 is used to determine the ambient light information based on the first light information and the second light information.

[0039] In the embodiment of the present application, the electronic device 100 includes a display screen 102, a light sensor 104 and a light shielding component 106. The display screen 102 includes a liquid crystal display screen 102, such as an organic light-emitting diode (OLED) display screen 102, etc. The light sensor 104 is arranged on the inner side of the display screen 102, thereby reducing the black border of the screen of the electronic device 100 and improving the screen-to-body ratio.

[0040] The optical sensor 104 specifically includes a transmitting end 1044 and a receiving end 1042, wherein the transmitting end 1044 is used to transmit infrared signals to achieve infrared ranging to determine whether the mobile phone is close to the user's ear, that is, whether the user is in a posture of using the receiver to make a call, and when it is determined that the mobile phone is close to the user's ear, the display screen 102 is controlled to turn off the screen to save power.

[0041] The receiving end 1042 is used to collect ambient light information, and the screen brightness can be dynamically adjusted according to the ambient light information. When the ambient light is strong, the screen brightness is increased to ensure clear screen display. When the ambient light is dark, the screen brightness is lowered to prevent the screen from being dazzling and reduce screen power consumption.

[0042] Since the light sensor 104 is disposed below the screen, the light actually received by the receiving end 1042 includes two parts, one part is the external ambient light, and the other part is the light emitted by the screen. Therefore, there is a deviation between the reading of the light sensor 104 and the actual ambient light intensity.

[0043] To address this problem, an embodiment of the present application provides a shading component 106, which is disposed at a position relative to the receiving end 1042 of the light sensor 104. Specifically, the vertical projections of the shading component 106 and the receiving end 1042 of the sensor on the screen both cover the preset display area of ​​the screen.

[0044] The shading component 106 specifically includes a light-transmitting state and a light-shielding state. In the light-transmitting state, ambient light can pass through the shading component 106 and illuminate the receiving end 1042 of the light sensor 104. In the light-shielding state, ambient light will be blocked by the shading component 106. At this time, the light received by the receiving end 1042 of the light sensor 104 only comes from the screen light.

[0045] The shading state of the shading component 106 is obtained through the controller 108. When the shading component 106 is in the shading state, the reading of the light sensor 104 is determined to be the first light information. When the shading component 106 is in the light transmitting state, the reading of the light sensor 104 is determined to be the second light information, wherein the second light information includes ambient light information and screen light information, and the first light information only includes screen light information. Therefore, based on the difference between the second light information and the first light information, part of the screen light information can be removed, and only the ambient light information is retained, thereby removing the screen light interference.

[0046] The present application adjusts the shading state of the shading component 106 and calculates data containing only ambient light information based on the light information collected by the light sensor 104 under different shading states, thereby avoiding the influence of screen light on the reading of the under-screen ambient light sensor 104 and improving the accuracy of the reading of the under-screen ambient light sensor 104.

[0047] In some embodiments of the present application, the display screen 102 includes:

[0048] A display panel 1022 , wherein the light sensor 104 is located on a first side of the display panel 1022 ;

[0049] The light-transmitting protection panel 1024 is disposed on the second side of the display panel 1022 and is attached to the display panel 1022 . The light-transmitting protection panel 1024 includes a through hole, the position of the through hole is opposite to the preset display area, and the shading component 106 is embedded in the through hole.

[0050] In the embodiment of the present application, the display screen 102 specifically includes a display panel 1022 and a light-transmitting protective panel 1024, wherein the display panel 1022 is used to display images, and the light-transmitting protective panel 1024 can be a glass panel or a flexible organic protective panel, and the light-transmitting protective panel 1024 is laminated on the outer side of the display panel 1022 to protect the display panel 1022.

[0051] The light-transmitting protection panel 1024 includes a through hole, and the setting position of the through hole is opposite to the position of the shading component 106 and the position of the receiving end 1042 of the light sensor 104. The vertical projections of the through hole, the shading component 106 and the receiving end 1042 of the sensor on the display screen 102 all cover the preset display area.

[0052] The shading component 106 is embedded in the through hole, and is flush with the outer surface of the light-transmitting protection panel 1024, so that the outer surface of the light-transmitting protection panel 1024 remains smooth as a whole, ensuring the overall appearance of the display screen 102 of the electronic device 100 and reducing the thickness of the display screen 102 component.

[0053] In some embodiments of the present application, Figure 3 FIG. 4 shows a schematic structural diagram of a shading assembly according to an embodiment of the present application. Figure 3 As shown, the shading component 106 includes:

[0054] Liquid crystal sheet 1062;

[0055] A first polarizing plate 1064 is disposed on a first side of the liquid crystal plate 1062 and is attached to the liquid crystal plate 1062;

[0056] The second polarizer 1066 is disposed on the second side of the liquid crystal film 1062 . The position of the second polarizer 1066 is opposite to the position of the first polarizer 1064 .

[0057] In the embodiment of the present application, the shading component 106 includes a first polarizer 1064, a second polarizer 1066 and a liquid crystal film 1062, wherein the first polarizer 1064 and the second polarizer 1066 are respectively located on the upper and lower sides of the liquid crystal film 1062, the first polarizer 1064 is specifically facing the outside of the display screen 102, and the second polarizer 1066 is specifically facing the receiving end 1042 of the light sensor 104. The external ambient light passes through the first polarizer 1064, the liquid crystal film 1062 and the second polarizer 1066 in sequence, and then is projected onto the receiving end 1042 of the light sensor 104.

[0058] The first polarizer 1064 polarizes the ambient light. After the light polarized by the first polarizer 1064 passes through the liquid crystal film 1062, the second polarizer 1066 analyzes the polarized light. When the polarization angle of the light polarized by the first polarizer 1064 is the same as the analyzer angle of the second polarizer 1066, the shading component 106 is in a light-transmitting state, and the light can pass through the shading component 106. When the polarization angle of the light polarized by the first polarizer 1064 is different from the analyzer angle of the second polarizer 1066, the shading component 106 is in a light-shielding state, and the light cannot pass through the shading component 106.

[0059] The present application uses two polarizing films and a liquid crystal film 1062 as a shading component 106 to achieve switching between a shading state and a light-transmitting state of the shading component 106, so that the light sensor 104 can determine the ambient light information based on the first light information collected in the shading state and the second light information collected in the light-transmitting state, thereby improving the reliability of ambient light detection.

[0060] In some embodiments of the present application, the liquid crystal sheet 1062 includes a plurality of liquid crystal units, and the liquid crystal units can be rotated or restored to enable the shading component 106 to switch between a light-shielding state and a light-transmitting state.

[0061] In the embodiment of the present application, the liquid crystal sheet 1062 includes a plurality of liquid crystal units, which are arranged in a distributed manner. The liquid crystal units can rotate under the action of an external voltage and produce optical rotation on the light polarized by the first polarizer 1064 .

[0062] Specifically, when the liquid crystal unit rotates, the light polarized by the first polarizer 1064 undergoes the optical rotation of the liquid crystal unit, so that the polarization angle of the light is different from the analysis angle of the second polarizer 1066. At this time, the shading component 106 is in a shading state.

[0063] When the liquid crystal unit is restored, the light polarized by the first polarizer 1064 directly passes through the liquid crystal film 1062. At this time, the polarization angle of the light is the same as the analysis angle of the second polarizer 1066, and the shading component 106 is in a light-transmitting state.

[0064] The embodiment of the present application uses the liquid crystal panel 1062 to achieve rapid switching between the light-shielding state and the light-transmitting state of the light-shielding component 106, thereby improving the efficiency of ambient light detection.

[0065] In some embodiments of the present application, the liquid crystal unit is connected to the controller 108, and the liquid crystal sheet 1062 includes a plurality of liquid crystal units;

[0066] The polarization angle of the second polarizer 1066 is the same as that of the first polarizer 1064. When the controller 108 outputs a first level signal, the liquid crystal unit rotates and the light shielding component 106 is in a light shielding state. When the controller 108 outputs a second level signal, the liquid crystal unit recovers and the light shielding component 106 is in a light transmitting state.

[0067] The rotation angle of the liquid crystal unit is positively correlated with the voltage value of the first level signal.

[0068] In the embodiment of the present application, the controller 108 may specifically be an electronic arithmetic processor (AP) of the electronic device 100, such as Figure 2 As shown, the controller 108 is connected to the liquid crystal panel 1062 and can apply a level signal to the liquid crystal unit in the liquid crystal panel 1062 .

[0069] For example, Figure 3 As shown in the figure, the synchronization signal is used to distinguish the difference in data collected before and after the state of the liquid crystal panel changes. The refraction angle of the liquid crystal panel is controlled by the high and low level output of the AP end GPIO. The AP and the light receiving IC transmit data through I2C communication.

[0070] The first level signal is a high level signal, and the second level signal is a low level signal. When the controller 108 outputs the first level signal, the liquid crystal unit rotates under the action of the high level signal, and the shading component 106 is in a shading state. When the controller 108 outputs the second level signal, the liquid crystal unit is in a recovery state, and the shading component 106 is in a light-transmitting state.

[0071] At the same time, the controller 108 can also adjust the rotation angle of the liquid crystal panel 1062 by adjusting the voltage value of the first level signal, so as to accurately control the shading effect of the shading component 106 .

[0072] In some embodiments of the present application, the controller 108 is also used to: output a first level signal when a refresh signal of a preset display area is detected; or output a second level signal when no refresh signal is detected or the duration of outputting the first level signal is greater than or equal to a duration threshold.

[0073] In the embodiment of the present application, the display screen 102 of the electronic device 100 is refreshed at a certain refresh rate, such as a display screen 102 with a refresh rate of 60 Hz, which is refreshed 60 times per second, and a display screen 102 with a refresh rate of 120 Hz, which is refreshed 120 times per second.

[0074] Some display screens 102 are refreshed line by line, so when the preset display area is refreshed, specifically when a refresh signal of the preset display area is received, the controller 108 outputs a first level signal to put the shading component 106 into a shading state, and when there is no refresh signal, that is, when the preset display area is not refreshed, or when the shading time of the shading component 106 is greater than the time threshold, a second level signal is output to allow the shading component 106 to transmit light, so that the shading / transmitting switching of the shading component 106 is synchronized with the refresh of the display screen 102, thereby reducing the influence of the shading / transmitting switching process of the shading component 106 on the display effect.

[0075] It can be understood that the duration threshold is negatively correlated with the refresh rate of the display screen 102, that is, the faster the refresh rate of the display screen 102, the shorter the duration threshold, so that the switching of the shading / transmitting state of the shading component 106 is synchronized with the display refresh of the preset display area.

[0076] In some embodiments of the present application, Figure 1 As shown, the second polarizer 1066 is attached to the liquid crystal film 1062, and the liquid crystal film 1062, the first polarizer 1064 and the second polarizer 1066 are integrated.

[0077] In the embodiment of the present application, the shading component 106 is an integrally arranged component, that is, the first polarizer 1064, the second polarizer 1066 and the liquid crystal film 1062 are fixed together, wherein the first polarizer 1064 is attached to one side of the liquid crystal film 1062, and the second polarizer 1066 is attached to the other side of the liquid crystal film 1062, thereby forming a "sandwich"-like structure.

[0078] By arranging the shading component 106 as an integrated whole component, the difficulty of assembling the electronic device 100 during production can be reduced and the production yield rate can be improved.

[0079] In some embodiments of the present application, Figure 4 FIG. 3 shows a third structural diagram of an electronic device 100 according to an embodiment of the present application. Figure 4 As shown, the second polarizer 1066 is attached to the receiving end 1042 , and the second polarizer 1066 and the liquid crystal film 1062 are respectively located on two sides of the display screen 102 .

[0080] In some embodiments of the present application, the second polarizer 1066 is disposed at the receiving end 1042 of the light sensor 104. Therefore, in the direction in which the human eye observes the screen, the light emitted by the screen will only pass through the first polarizer 1064 but not through the second polarizer 1066. Therefore, when the user watches the screen, he will not be affected by the switching between the shading state / transmitting state of the shading component 106 and will always be able to receive the screen light.

[0081] The ambient light received by the light sensor 104 will still pass through the first polarizer 1064 and the second polarizer 1066, while the screen light only passes through the second polarizer 1066. Therefore, when the shading component 106 is in the shading state, the receiving end 1042 of the light sensor 104 only receives the screen light, and the ambient light is blocked. When the shading component 106 is in the light transmitting state, the receiving end 1042 of the light sensor 104 receives both the screen light and the ambient light, so that the light sensor 104 can determine the ambient light information based on the first light information collected in the shading state and the second light information collected in the light transmitting state, thereby improving the reliability of ambient light detection.

[0082] In some embodiments of the present application, Figure 1 and Figure 3 As shown, the electronic device 100 further includes:

[0083] The middle frame 110, the display screen 102 is disposed at one end of the middle frame 110;

[0084] The battery cover 112 is disposed at the other end of the middle frame 110 . A cavity is formed between the middle frame 110 , the battery cover 112 and the display screen 102 . The light sensor 104 and the controller 108 are disposed in the cavity.

[0085] In the embodiment of the present application, the middle frame 110 of the electronic device 100 is an annular structure, which can be a metal middle frame or a non-metal middle frame. A display screen 102 is provided at one end of the terminal, and a battery cover 112 is provided at the other end. A cavity is formed between the display screen 102 and the battery cover 112. The functional structures of the electronic device 100, including the mainboard, battery, speaker, microphone, vibration motor and other structures, are all provided in the cavity to protect these functional structures.

[0086] The light sensor 104 is disposed in the cavity, specifically below the preset display area of ​​the display screen 102. The ambient light passes through the display screen 102 and is projected onto the receiving end 1042 of the light sensor 104. By providing the shading component 106, when the shading component 106 is in the shading state, the ambient light cannot pass through the shading component 106 and the preset display area, and at this time, the receiving end 1042 of the light sensor 104 can only receive the screen light. When the shading component 106 is in the light-transmitting state, the ambient light can pass through the shading component 106 and the preset display area, and at this time, the receiving end 1042 of the light sensor 104 receives both the ambient light and the screen light.

[0087] Based on the light information received in different states of the shading component 106, the influence of the screen light on the ambient light collection can be accurately removed, thereby improving the accuracy and reliability of the ambient light collection.

[0088] In some embodiments of the present application, an ambient light measurement method is provided, and the method is used to control an electronic device as provided in any of the above embodiments. Figure 5 FIG. 4 shows a flow chart of an ambient light measurement method according to an embodiment of the present application. Figure 5 As shown, the method includes:

[0089] Step 502, determining first light information collected by the light sensor when the controller outputs a first level signal, and second light information collected by the light sensor when the controller outputs a second level signal;

[0090] Step 504: determine the ambient light information according to the difference between the second light information and the first light information.

[0091] In an embodiment of the present application, the shading component is arranged at a position opposite to the receiving end of the light sensor. Specifically, the vertical projections of the shading component and the receiving end of the sensor on the screen both cover a preset display area of ​​the screen.

[0092] The shading component specifically includes a light-transmitting state and a light-shielding state. Specifically, the shading component includes a first polarizer, a second polarizer and a liquid crystal film, wherein the first polarizer and the second polarizer are respectively located on the upper and lower sides of the liquid crystal film, the first polarizer specifically faces the outside of the display screen, and the second polarizer specifically faces the receiving end of the light sensor. The external ambient light passes through the first polarizer, the liquid crystal film and the second polarizer in sequence, and then is projected onto the receiving end of the light sensor.

[0093] The first polarizer plays a polarizing role on the ambient light. After the light polarized by the first polarizer passes through the liquid crystal film, the second polarizer plays a polarizing role on the polarized light. When the polarization angle of the light polarized by the first polarizer is the same as the polarizing angle of the second polarizer, the shading component is in a light-transmitting state, and the light can pass through the shading component. When the polarization angle of the light polarized by the first polarizer is different from the polarizing angle of the second polarizer, the shading component is in a light-shielding state, and the light cannot pass through the shading component.

[0094] The liquid crystal sheet includes a plurality of liquid crystal units which are distributed and can rotate under the action of an external voltage and produce an optical rotation effect on the light polarized by the first polarizer.

[0095] Specifically, when the controller outputs a first level signal, the liquid crystal unit rotates, and the light polarized by the first polarizer undergoes optical rotation by the liquid crystal unit, so that the polarization angle of the light is different from the analysis angle of the second polarizer, and the shading component is in a shading state.

[0096] When the controller outputs the second level signal, the light polarized by the first polarizer directly passes through the liquid crystal unit when the liquid crystal unit is restored. At this time, the polarization angle of the light is the same as the analysis angle of the second polarizer, and the shading component is in a light-transmitting state.

[0097] When the shading component is in the shading state, the reading of the light sensor is determined to be the first light information, and when the shading component is in the light transmitting state, the reading of the light sensor is determined to be the second light information, wherein the second light information includes ambient light information and screen light information, and the first light information only includes screen light information. Therefore, based on the difference between the second light information and the first light information, part of the screen light information can be removed, and only the ambient light information is retained, thereby achieving the removal of screen light interference.

[0098] The present application adjusts the shading state of the shading component and calculates data containing only ambient light information based on the light information collected by the light sensor under different shading states, thereby avoiding the influence of screen light on the reading of the under-screen ambient light sensor and improving the accuracy of the reading of the under-screen ambient light sensor.

[0099] In some embodiments of the present application, an ambient light measuring device is provided, and the ambient light measuring device is used to control the electronic device provided in any of the above embodiments. Figure 6 FIG. 4 shows a structural block diagram of an ambient light measuring device according to an embodiment of the present application. Figure 6 As shown, the ambient light measuring device 600 includes:

[0100] A first determining module 602, configured to determine first light information collected by the light sensor when the controller outputs a first level signal, and second light information collected by the light sensor when the controller outputs a second level signal;

[0101] The second determining module 604 is configured to determine the ambient light information according to the difference between the second light information and the first light information.

[0102] The present application adjusts the shading state of the shading component and calculates data containing only ambient light information based on the light information collected by the light sensor under different shading states, thereby avoiding the influence of screen light on the reading of the under-screen ambient light sensor and improving the accuracy of the reading of the under-screen ambient light sensor.

[0103] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0104] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0105] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0106] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.

Claims

1. An electronic device, characterized in that: include: Display screen; A light sensor, comprising a receiving end, wherein the position of the receiving end is opposite to the position of a preset display area of ​​the display screen; A shading component, the position of the shading component is opposite to the position of the preset display area, and the shading component has a shading state and a light-transmitting state; A controller, wherein the shading component and the light sensor are both connected to the controller, wherein when the shading component is in the shading state, the controller collects first light information through the light sensor; When the shading component is in the light-transmitting state, the controller collects second light information through the light sensor; the second light information includes ambient light information and screen light information, the first light information only includes the screen light information, and the controller is used to determine the ambient light information based on the first light information and the second light information.

2. The electronic device according to claim 1, characterized in that: The display screen comprises: a display panel, wherein the light sensor is located on a first side of the display panel; The light-transmitting protection panel is arranged on the second side of the display panel and is attached to the display panel. The light-transmitting protection panel includes a through hole, the position of the through hole is opposite to the preset display area, and the shading component is embedded in the through hole.

3. The electronic device according to claim 1, characterized in that: The shading component comprises: Liquid crystal film; A first polarizing plate, disposed on a first side of the liquid crystal plate and attached to the liquid crystal plate; The second polarizer is disposed on the second side of the liquid crystal panel, and the position of the second polarizer is opposite to the position of the first polarizer.

4. The electronic device according to claim 3, characterized in that: The liquid crystal panel is connected to the controller, and the liquid crystal panel includes a plurality of liquid crystal units; The polarization angle of the second polarizer is the same as that of the first polarizer. When the controller outputs a first level signal, the liquid crystal unit rotates and the shading component is in a light-shielding state. When the controller outputs a second level signal, the liquid crystal unit is restored and the shading component is in a light-transmitting state. Wherein, the rotation angle of the liquid crystal unit is positively correlated with the voltage value of the first level signal.

5. The electronic device according to claim 4, characterized in that: The controller is also used for: When a refresh signal of the preset display area is detected, outputting the first level signal; or When the refresh signal is not detected or the duration of outputting the first level signal is greater than or equal to a duration threshold, the second level signal is output.

6. The electronic device according to claim 3, characterized in that: The second polarizer is attached to the liquid crystal panel, and the liquid crystal panel, the first polarizer and the second polarizer are integrated.

7. The electronic device according to claim 3, characterized in that: The second polarizing plate is attached to the receiving end, and the second polarizing plate and the liquid crystal plate are respectively located on two sides of the display screen.

8. The electronic device according to any one of claims 1 to 7, characterized in that: Also includes: A middle frame, wherein the display screen is arranged at one end of the middle frame; The battery cover is arranged at the other end of the middle frame. A cavity is included between the middle frame, the battery cover and the display screen. The light sensor and the controller are arranged in the cavity.

9. An ambient light measurement method, applied to the electronic device according to any one of claims 1 to 8, characterized in that: The ambient light measurement method comprises: Determine first light information collected by the light sensor when the controller outputs a first level signal, and second light information collected by the light sensor when the controller outputs a second level signal; Ambient light information is determined according to a difference between the second light information and the first light information.

10. An ambient light measuring device, applied to the electronic device according to any one of claims 1 to 8, characterized in that: The ambient light measuring device comprises: A first determining module, used to determine the first light information collected by the light sensor when the controller outputs a first level signal, and the second light information collected by the light sensor when the controller outputs a second level signal; The second determining module is used to determine the ambient light information according to the difference between the second light information and the first light information.

Citation Information

Patent Citations

  • Fingerprint identification device, equipment and method

    CN111241882A

  • Ambient light detection method and device, storage medium and mobile terminal

    CN112229507A

  • Display module and display device

    CN113433732A