An under-screen light sensing light leakage test method, device and computer readable storage medium

By collecting ambient light data before the screen turns on and calculating the light leakage compensation value, the problem of inaccurate data collection by the under-screen ambient light sensor is solved, enabling real-time adjustment and precise control of screen brightness and improving the user experience.

CN114125125BActive Publication Date: 2025-11-21NUBIA TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111416131.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-25
Publication Date
2025-11-21
Estimated Expiration
2041-11-25

AI Technical Summary

Technical Problem

In existing technologies, under-display ambient light sensors suffer from inaccurate ambient light collection due to light energy leakage from the screen, which affects the accuracy of brightness control.

Method used

Before the screen is turned on, ambient light data when the screen is off is collected as the initial value to determine the corresponding screen brightness parameters. When the screen is turned on, the first frame of ambient light data is collected to calculate the light leakage compensation value. By judging the relationship between the difference and the threshold, black frames are inserted or the brightness value is updated to achieve real-time light leakage compensation.

Benefits of technology

This improves the accuracy of the under-display ambient light sensor, enhancing the accuracy of brightness control and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114125125B_ABST
    Figure CN114125125B_ABST
Patent Text Reader

Abstract

The application discloses a kind of under-screen light sense light leakage test method, equipment and computer readable storage medium, wherein the method comprises: before screen enters bright screen display, the first ambient light data of screen off screen is collected as the initial value of ambient brightness;Determine the screen brightness parameter corresponding to the initial value of ambient brightness, and when entering bright screen display according to the screen brightness parameter, the second ambient light data of the first frame display under the screen is collected;According to the difference between the second ambient light data and the first ambient light data, the light leakage compensation value is obtained, and the third ambient light data of each frame display under the screen is collected when refreshing each frame, and the size relationship between the difference between the third ambient light data and the first ambient light data and the preset threshold value is judged.The realization of a kind of humanized under-screen light sense light leakage test scheme makes that bright screen ambient brightness value real-time refresh light leakage compensation value, improves the collection accuracy, enhances user experience.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of mobile communication, and in particular to a method and device for testing light leakage of an under-screen light sensor and a computer readable storage medium. BACKGROUND

[0002] In the prior art, with the continuous development of intelligent terminal devices, how to accurately regulate the screen brightness of the device has become an important indicator of user experience. In particular, considering that the application range of the under-screen ambient light sensor at the present stage is becoming wider, the accuracy of its regulation has a serious problem: since the under-screen ambient light sensor is located below the screen, and the screen is a light source, part of the screen light energy will leak to the ambient sensor, resulting in inaccurate collection of ambient light by the under-screen ambient light sensor.

[0003] Therefore, there is an urgent need for a technical solution that can improve the accuracy of the operation of the under-screen ambient light sensor. SUMMARY

[0004] In order to solve the above technical defects in the prior art, the present application provides a method for testing light leakage of an under-screen light sensor, which comprises:

[0005] Before the screen enters the bright screen display, the first ambient light data collected by the screen when the screen is off is taken as the initial value of the ambient brightness.

[0006] The screen brightness parameter corresponding to the initial value of the ambient brightness is determined, and the second ambient light data of the first frame of display under the screen is collected when the screen enters the bright screen display according to the screen brightness parameter.

[0007] The light leakage compensation value is obtained according to the difference between the second ambient light data and the first ambient light data, and the third ambient light data of each frame of display under the screen is collected at each frame refresh, and the size relationship between the difference between the third ambient light data and the first ambient light data and the preset threshold value is determined.

[0008] If the difference between the third ambient light data and the first ambient light data is greater than the preset threshold value, black frame insertion is performed, and the fourth ambient light data collected by the screen when the black frame is inserted is updated to the initial value of the ambient brightness, and if the difference between the third ambient light data and the first ambient light data is less than or equal to the preset threshold value, the difference between the fifth ambient light data collected by the screen when the current frame of display is performed and the light leakage compensation value is taken as the current value of the ambient brightness.

[0009] Optionally, before the screen enters the bright screen display, the first ambient light data collected by the screen when the screen is off is taken as the initial value of the ambient brightness, comprising:

[0010] When the screen of the device is about to enter a bright display, the ambient light sensor under the screen is controlled to start working by an ambient light monitoring and collecting module of the device.

[0011] First ambient light data when the screen is off is collected by the ambient light sensor, and the first ambient light data is taken as an initial value of ambient brightness when the screen is on this time.

[0012] Optionally, a screen brightness parameter corresponding to the initial value of ambient brightness is determined, and second ambient light data when a first frame of display under the screen is collected when the screen enters a bright display according to the screen brightness parameter, comprising:

[0013] The screen brightness parameter in the screen brightness instruction corresponding to the initial value of ambient brightness is sent to the screen management module of the device by the ambient light monitoring and collecting module.

[0014] The screen brightness parameter information in the screen brightness instruction is extracted by the screen management module, and the current first frame is displayed according to the brightness level corresponding to the screen brightness parameter information.

[0015] Optionally, if the difference between the third ambient light data and the first ambient light data is greater than the preset threshold, black frame insertion is performed, and fourth ambient light data collected when the black frame under the screen is inserted is updated as the initial value of ambient brightness, comprising:

[0016] The black frame insertion instruction is sent to the screen management module by the ambient light monitoring and collecting module.

[0017] When the ambient light monitoring and collecting module monitors that the synchronization signal of the screen is switched to high level or the screen enters a black frame mode, the ambient light sensor is controlled to start working by the ambient light monitoring and collecting module.

[0018] Optionally, if the difference between the third ambient light data and the first ambient light data is greater than the preset threshold, black frame insertion is performed, and fourth ambient light data collected when the black frame under the screen is inserted is updated as the initial value of ambient brightness, further comprising:

[0019] The fourth ambient light data when the black frame is displayed is collected by the ambient light sensor, and the fourth ambient light data is updated as the initial value of ambient brightness.

[0020] The screen brightness instruction is updated, and the corresponding brightness level is updated, and the subsequent frame after the black frame is displayed according to the updated brightness level.

[0021] Optionally, if the difference between the third ambient light data and the first ambient light data is less than or equal to the preset threshold, a difference between the fifth ambient light data collected under the screen during display of the current frame and the light leakage compensation value is taken as an ambient brightness current value, comprising:

[0022] When the difference between the third ambient light data and the first ambient light data is less than or equal to the preset threshold, the ambient light sensor is controlled to start working by the ambient light monitoring and collecting module.

[0023] The fifth ambient light data during display of the current frame is collected by the ambient light sensor.

[0024] Optionally, if the difference between the third ambient light data and the first ambient light data is less than or equal to the preset threshold, a difference between the fifth ambient light data collected under the screen during display of the current frame and the light leakage compensation value is taken as an ambient brightness current value, further comprising:

[0025] A difference between the fifth ambient light data and the light leakage compensation value is calculated by the ambient light monitoring and collecting module.

[0026] The difference between the fifth ambient light data and the light leakage compensation value is taken as an ambient brightness current value of the current display frame by the ambient light monitoring and collecting module.

[0027] Optionally, if the difference between the third ambient light data and the first ambient light data is less than or equal to the preset threshold, a difference between the fifth ambient light data collected under the screen during display of the current frame and the light leakage compensation value is taken as an ambient brightness current value, further comprising:

[0028] The screen brightness instruction is updated according to the ambient brightness current value, and the corresponding brightness level is updated.

[0029] The current display frame is displayed at the updated brightness level.

[0030] The present application further provides a screen-under light sensing light leakage testing device, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program implements the steps of the screen-under light sensing light leakage testing method according to any one of the above when executed by the processor.

[0031] The present application further provides a computer readable storage medium, which stores a screen-under light sensing light leakage testing program, and the screen-under light sensing light leakage testing program implements the steps of the screen-under light sensing light leakage testing method according to any one of the above when executed by a processor.

[0032] The under-screen light sensing light leakage test method, the device and the computer readable storage medium of the application are characterized in that: the first ambient light data collected by the screen under the screen when the screen is off is taken as an initial value of ambient brightness before the screen enters the bright screen display; the screen brightness parameter corresponding to the initial value of ambient brightness is determined, and the second ambient light data of the first frame of display under the screen is collected when the screen enters the bright screen display according to the screen brightness parameter; the light leakage compensation value is obtained according to the difference between the second ambient light data and the first ambient light data, and the third ambient light data of each frame of display under the screen is collected every frame refresh, and the size relationship between the difference between the third ambient light data and the first ambient light data and the preset threshold value is judged; if the difference between the third ambient light data and the first ambient light data is greater than the preset threshold value, the black frame insertion is carried out, and the fourth ambient light data collected by the screen under the black frame insertion is updated as the initial value of ambient brightness; if the difference between the third ambient light data and the first ambient light data is less than or equal to the preset threshold value, the difference between the fifth ambient light data collected by the screen under the current frame of display and the light leakage compensation value is taken as the current value of ambient brightness. A humanized under-screen light sensing light leakage test scheme is realized, the bright screen ambient brightness value is refreshed in real time, the light leakage compensation value is improved, the collection accuracy is improved, and the user experience is enhanced. BRIEF DESCRIPTION OF DRAWINGS

[0033] The application will be further described below in combination with the drawings and embodiments, and the drawings are as follows:

[0034] Figure 1 It is a hardware structure schematic diagram of a mobile terminal related to the application;

[0035] Figure 2 It is a communication network system architecture diagram provided by an embodiment of the application;

[0036] Figure 3 It is a flowchart of the first embodiment of the under-screen light sensing light leakage test method of the application;

[0037] Figure 4 It is a flowchart of the second embodiment of the under-screen light sensing light leakage test method of the application;

[0038] Figure 5 It is a flowchart of the third embodiment of the under-screen light sensing light leakage test method of the application;

[0039] Figure 6 It is a flowchart of the fourth embodiment of the under-screen light sensing light leakage test method of the application;

[0040] Figure 7 It is a flowchart of the fifth embodiment of the under-screen light sensing light leakage test method of the application;

[0041] Figure 8is a flowchart of a sixth embodiment of the under-screen light sensing light leakage test method of the present application;

[0042] Figure 9 is a flowchart of a seventh embodiment of the under-screen light sensing light leakage test method of the present application;

[0043] Figure 10 is a flowchart of an eighth embodiment of the under-screen light sensing light leakage test method of the present application. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are merely illustrative of the present application and do not limit the present application.

[0045] In the following description, the suffixes used for elements, such as "module", "part", or "unit", are merely intended for facilitating explanation of the present application, and do not have specific meanings or meanings in themselves. Therefore, "module", "part", or "unit" can be mixedly used.

[0046] A terminal can be implemented in various forms. For example, the terminal described in the present application can include a mobile terminal such as a mobile phone, a tablet, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like.

[0047] In the following description, a mobile terminal will be exemplified, and it will be understood by those skilled in the art that the configuration according to the embodiments of the present application can be applied to a stationary type terminal, except for elements particularly used for mobile purposes.

[0048] Referring to Figure 1 , which is a hardware structure diagram of a mobile terminal implementing various embodiments of the present application, the mobile terminal 100 can include an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (audio / video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a storage 109, a processor 110, and a power supply 111, etc. Those skilled in the art will appreciate that the mobile terminal structure shown in Figure 1 the drawing does not constitute a limitation on the mobile terminal, and the mobile terminal can include more or less components than those shown in the drawing, or combine certain components, or arrange the components in different arrangements.

[0049] The following will be described in detail with reference to Figure 1 each component of the mobile terminal.

[0050] The radio frequency unit 101 can be used for receiving and sending signals in the process of information or call. Specifically, after receiving the downlink information of the base station, the radio frequency unit 101 sends the downlink information to the processor 110 for processing. In addition, the radio frequency unit 101 sends the uplink data to the base station. Generally, the radio frequency unit 101 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.

[0051] The WiFi belongs to a short-range wireless transmission technology. The WiFi module 102 can help the user to send and receive e-mails, browse web pages, access streaming media, etc. It provides the user with wireless broadband Internet access. Although Figure 1 The WiFi module 102 is shown, but it can be understood that it does not belong to the necessary structure of the mobile terminal, and can be omitted according to the needs without changing the essence of the application.

[0052] The audio output unit 103 can convert audio data, which are received from the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109, into an audio signal and output the audio signal as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a record mode, a voice recognition mode, a broadcast reception mode, and the like. Moreover, the audio output unit 103 can provide a specific function related to a particular function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, and the like). The audio output unit 103 can include a speaker, a buzzer, and the like.

[0053] The A / V input unit 104 is for receiving audio or video signals. The A / V input unit 104 can include a graphic processing unit (GPU) 1041 and a microphone 1042. The graphic processing unit 1041 processes image data of a still picture or a video obtained by an image capture device (e.g., a camera) in a video call mode or an image call mode. Processed image frames can be displayed on the display unit 106. The image frames processed by the graphic processing unit 1041 can be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 receives a sound (audio data) in a phone call mode, a recording mode, a voice recognition mode, and the like via the microphone 1042, and can process such a sound into audio data. Processed audio (voice) data can be converted into a format transmittable to a mobile communication base station in a phone call mode and outputted via the radio frequency unit 101. The microphone 1042 can implement various types of noise removal (or cancellation) algorithms to remove (or cancel) noise generated in the process of receiving and transmitting audio signals.

[0054] The mobile terminal 100 further includes at least one sensor 105, such as a light sensor, a motion sensor, and the like. Specifically, the light sensor includes an ambient light sensor to adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor to turn off the display panel 1061 and / or the backlight when the mobile terminal 100 approaches an ear. As one of the motion sensor, an accelerometer sensor can detect the magnitude and direction of acceleration in each of the three axes, and can be used to identify the posture of the mobile terminal 100 (e.g., a screen rotation, a game, a magnetometer posture calibration), a vibration recognition-related function (e.g., a pedometer, a knock), and the like. The mobile terminal 100 can further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, which are not described herein.

[0055] The display unit 106 is configured to display information input by a user or information provided for the user. The display unit 106 can include a display panel 1061, which can be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.

[0056] The user input unit 107 can be configured to receive inputted digital or character information, and to generate key signal input related to user settings of the mobile terminal and control of the function. Specifically, the user input unit 107 can include a touch panel 1071 and other input devices 1072. The touch panel 1071, also called a touch screen, can collect a touch operation (such as an operation of a user using a finger, a stylus, or the like on or near the touch panel 1071) of the user on or near the touch panel 1071, and drive a corresponding connection device according to a pre-set program. The touch panel 1071 can include two parts, a touch detecting device and a touch controller. The touch detecting device detects a touch position of the user and detects a signal caused by the touch operation, and transmits the signal to the touch controller. The touch controller receives the touch information from the touch detecting device, converts it into touch coordinates, and transmits it to the processor 110, and can receive a command from the processor 110 and execute it. In addition, the touch panel 1071 can be implemented in various types such as a resistive type, a capacitive type, an infrared type, and a surface acoustic wave type. In addition to the touch panel 1071, the user input unit 107 can include other input devices 1072. Specifically, the other input devices 1072 can include one or more of a physical keyboard, a function key (such as a volume control button, a switch button, or the like), a trackball, a mouse, a joystick, or the like, without being limited thereto.

[0057] Further, the touch panel 1071 can cover the display panel 1061, and when the touch panel 1071 detects a touch operation on or near the touch panel 1071, it transmits the touch event to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in the above description, the touch panel 1071 and the display panel 1061 are implemented as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal, without being limited thereto. Figure 1

[0058] ​The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device can include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input / output (I / O) port, a video I / O port, an earphone port, etc. The interface unit 108 can be used to receive input from an external device (e.g., data, power, etc.) and to transmit received input to one or more elements within the mobile terminal 100 or can be used to transmit data between the mobile terminal 100 and the external device.

[0059] The memory 109 is operable to store software programs as well as a variety of data. The memory 109 can include a storage program area and a storage data area, where the storage program area can store an operating system, application programs required for at least one function (such as a sound play function, an image play function, etc.), etc., and the storage data area can store data created according to use of the mobile terminal (such as audio data, a phonebook, etc.), etc. In addition, the memory 109 can include a high-speed random access memory, and can further include a nonvolatile memory such as at least one of a magnetic disk storage device, a flash memory device, or other volatile solid state memory device.

[0060] The processor 110 is a control center of the mobile terminal, which connects various parts of the mobile terminal with each other using various interfaces and lines, and controls overall operations of the mobile terminal by executing or running software programs and / or modules stored in the memory 109 and by calling data stored in the memory 109, thereby performing various functions of the mobile terminal and processing data. The processor 110 can include one or more processing units; preferably, the processor 110 can integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and application programs, etc., and the modem processor mainly processes wireless communication. It is understood that the above-described modem processor can not be integrated into the processor 110.

[0061] The mobile terminal 100 can further include a power supply 111 (such as a battery) that supplies power to each of the components, and preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, thereby enabling the power management system to perform functions such as managing charging, discharging, and power consumption management, etc.

[0062] Although Figure 1 The mobile terminal 100 can further include a Bluetooth module, etc., which are not shown.

[0063] For the convenience of understanding the embodiments of the present application, a communication network system based on which the mobile terminal of the present application is implemented will be described below.

[0064] Please refer toFigure 2 , Figure 2 A communication network system architecture diagram is provided for an embodiment of the present application. The communication network system is a LTE system of general mobile communication technology. The LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203 and an operator's IP service 204 connected in sequence.

[0065] Specifically, the UE 201 can be the terminal 100 described above, which will not be described here again.

[0066] The E-UTRAN 202 includes an eNode B 2021 and other eNode Bs 2022. The eNode B 2021 can be connected with the other eNode Bs 2022 through backhaul (for example, an X2 interface), the eNode B 2021 is connected to the EPC 203, and the eNode B 2021 can provide access for the UE 201 to the EPC 203.

[0067] The EPC 203 can include a MME (Mobility Management Entity) 2031, a HSS (Home Subscriber Server) 2032, other MMEs 2033, a SGW (Serving Gate Way) 2034, a PGW (PDN Gate Way) 2035, and a PCRF (Policy and Charging Rules Function) 2036. The MME 2031 is a control node that handles signaling between the UE 201 and the EPC 203, provides bearer and connection management. The HSS 2032 is configured to provide some registers to manage functions such as a home location register (not shown in the figure), and stores some user-specific information about service features, data rates, etc. All user data can be transmitted through the SGW 2034, the PGW 2035 can provide IP address allocation for the UE 201 and other functions, and the PCRF 2036 is a policy and charging control policy decision point for service data flow and IP bearer resources, which selects and provides available policy and charging control decisions for policy and charging enforcement function units (not shown in the figure).

[0068] The IP service 204 can include the Internet, an intranet, an IMS (IP Multimedia Subsystem), or other IP services, etc.

[0069] Although the above is described by taking the LTE system as an example, those skilled in the art should know that the present application is not only applicable to the LTE system, but also applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, etc., which are not limited here.

[0070] Based on the above mobile terminal hardware structure and communication network system, various embodiments of the method of the present application are proposed.

[0071] Embodiment one

[0072] Figure 3 is a flowchart of the first embodiment of the under-screen light sensing light leakage test method of the present application. An under-screen light sensing light leakage test method, the method comprises:

[0073] S1, before the screen enters the bright screen display, the first ambient light data collected under the screen when the screen is off is taken as the initial value of the ambient brightness.

[0074] S2, determine the screen brightness parameter corresponding to the initial value of the ambient brightness, and collect the second ambient light data of the first frame of display under the screen when the screen enters the bright screen display according to the screen brightness parameter.

[0075] S3, according to the difference between the second ambient light data and the first ambient light data, the light leakage compensation value is obtained, and the third ambient light data of each frame of display under the screen is collected when each frame is refreshed, and the size relationship between the difference between the third ambient light data and the first ambient light data and the preset threshold value is judged.

[0076] S4, if the difference between the third ambient light data and the first ambient light data is greater than the preset threshold value, black frame insertion is performed, and the fourth ambient light data collected under the screen when the black frame is inserted is updated as the initial value of the ambient brightness, if the difference between the third ambient light data and the first ambient light data is less than or equal to the preset threshold value, the difference between the fifth ambient light data collected under the screen when the current frame of display and the light leakage compensation value is taken as the current value of the ambient brightness.

[0077] In the embodiment, the mobile terminal such as a mobile phone is taken as an example for illustration. When the mobile terminal is about to enter normal screen display, the mobile terminal ambient light monitoring and collecting module controls the under-screen ambient light sensor to start working. The under-screen ambient light sensor collects ambient light data Als_balck when the screen is off. The mobile terminal ambient light monitoring and collecting module takes the ambient light data Als_balck as the initial value Als_start of the ambient brightness this time, and then sends the screen brightness parameter instruction matched with the current ambient brightness to the mobile terminal screen management module. The mobile terminal screen management module extracts the screen brightness parameter information in the received screen brightness parameter instruction. The mobile terminal screen management module controls the screen to display the content of the frame normally according to the brightness level matched with the screen brightness parameter information in the screen brightness parameter instruction.

[0078] In the embodiment, when the mobile terminal is in screen display, the mobile terminal ambient light monitoring and collecting module controls the under-screen ambient light sensor to collect the first frame of ambient light data Als_frame0 again. After the under-screen ambient light sensor completes data collection, the mobile terminal ambient light monitoring and collecting module calculates the leakage compensation value Als_diff = Als_te0 - Als_black by comparing the ambient light data Als_balck when the screen is off with the first frame of ambient light data Als_te0 when the screen is on. Then, the mobile terminal ambient light monitoring and collecting module controls the under-screen ambient light sensor to collect the ambient light data Als_framen of each frame of screen refresh, and the ambient light monitoring and collecting module compares the ambient light data Als_framen of the frame when the screen is on with the ambient light data Als_balck when the screen is off.

[0079] In the embodiment, if the difference between the ambient light data Als_framen under the screen in this time and the ambient light data Als_balck when the screen is off in this time is greater than the preset threshold Als_diff_type, the ambient light monitoring and collecting module sends a black frame insertion instruction to the screen management module. After the ambient light monitoring and collecting module sends the black frame insertion instruction to the screen management module, the ambient light monitoring and collecting module monitors the tearing effect (synchronization signal) and becomes high level or monitors that the mobile terminal display enters a short black frame mode, the mobile terminal ambient light monitoring and collecting module controls the under-screen ambient light sensor to start working, the under-screen ambient light sensor collects the ambient light data Als_balck when the screen is off, the mobile terminal ambient light monitoring and collecting module takes the ambient light data Als_balck as the initial value Als_start of the ambient brightness in this time, and then the mobile terminal ambient light monitoring and collecting module sends a screen brightness parameter instruction matched with the current ambient brightness to the mobile terminal screen management module, and the mobile terminal screen management unit controls the screen to set a brightness level matched with the screen brightness parameter and normally display the frame picture content.

[0080] In the embodiment, if the difference between the ambient light data Als_framen under the screen in this time and the ambient light data Als_balck when the screen is off in this time is less than or equal to the preset threshold Als_diff_type, the mobile terminal ambient light monitoring and collecting module calculates the difference between the under-screen ambient light sensor compensation value Als_diff and the ambient light data Als_framen under the screen in this time, Als_framen=Als_framen-Als_diff, the mobile terminal ambient light monitoring and collecting module takes the calculated Als_framen in this time as the current ambient brightness value, and then the mobile terminal ambient light monitoring and collecting module sends a screen brightness parameter instruction matched with the current ambient brightness to the mobile terminal screen management unit, and the mobile terminal screen management unit controls the screen to set a brightness level matched with the screen brightness parameter and normally display the frame picture content.

[0081] It can be seen that, in the embodiment, first, the black frame environment brightness value Als_balck is acquired before the first frame of picture is displayed, the light leakage compensation value is calculated according to Als_balck, the environment brightness value Als_framen is collected every time the screen is displayed in the lighted state, and the environment light data Als_framen under the current frame in the lighted state is compared with the environment light data Als_balck in the unlighted state, and when the difference between the two is greater than a preset threshold Als_diff_type, a black frame insertion instruction is sent to the screen management module. When the screen TE signal becomes a high level or it is monitored that the mobile terminal display enters a short black frame mode, the environment light sensor under the screen re-collects the environment light data Als_balck in the unlighted state, and a new screen light leakage value is calculated according to the current black screen environment brightness value Als_balck. Thus, the light leakage compensation value is refreshed in real time according to the lighted state environment brightness value, the collection accuracy is improved, and the user experience is improved.

[0082] The embodiment has the beneficial effects that, by taking the first environment light data collected under the screen in the unlighted state of the screen as an environment brightness initial value before the screen enters the lighted state display, a screen brightness parameter corresponding to the environment brightness initial value is determined, and the second environment light data under the screen in the first frame of display is collected when the screen enters the lighted state display according to the screen brightness parameter, the light leakage compensation value is obtained according to the difference between the second environment light data and the first environment light data, the third environment light data under the screen in every frame of display is collected every time the frame is refreshed, and the size relationship between the difference between the third environment light data and the first environment light data and a preset threshold is judged, if the difference between the third environment light data and the first environment light data is greater than the preset threshold, black frame insertion is performed, and the fourth environment light data collected under the screen in the black frame insertion is updated as the environment brightness initial value, and if the difference between the third environment light data and the first environment light data is less than or equal to the preset threshold, the difference between the fifth environment light data collected under the screen in the current frame of display and the light leakage compensation value is taken as the current environment brightness value. A humanized under-screen light sensing light leakage test scheme is realized, the light leakage compensation value is refreshed in real time according to the lighted state environment brightness value, the collection accuracy is improved, and the user experience is enhanced.

[0083] Embodiment two

[0084] Figure 4 is a flowchart of the second embodiment of the under-screen light sensing light leakage test method of the application, based on the above embodiment, the first environment light data collected under the screen in the unlighted state of the screen is taken as an environment brightness initial value before the screen enters the lighted state display, which includes:

[0085] S11, when the screen of the device is about to enter the lighted state display, the environment light sensor under the screen is started to work by the environment light monitoring and collecting module of the device.

[0086] S12, collecting, by the ambient light sensor, first ambient light data when the screen is turned off, and taking the first ambient light data as an initial value of ambient brightness this time when the screen is turned on.

[0087] Optionally, in the embodiment, when the mobile terminal is about to enter normal screen display, the mobile terminal ambient light monitoring and collecting module controls the under-screen ambient light sensor to start working, the under-screen ambient light sensor collects ambient light data Als_balck when the screen is turned off, the mobile terminal ambient light monitoring and collecting module takes the ambient light data Als_balck as an initial value of ambient brightness Als_start this time, and then the mobile terminal ambient light monitoring and collecting module sends a screen brightness parameter instruction matched with the current ambient brightness to the mobile terminal screen management module.

[0088] The embodiment has the beneficial effects that, when the screen of the device is about to enter on-screen display, the ambient light monitoring and collecting module of the device controls the under-screen ambient light sensor to start working; the ambient light sensor collects first ambient light data when the screen is turned off, and takes the first ambient light data as an initial value of ambient brightness this time when the screen is turned on. A humanized under-screen light sensing light leakage test scheme is realized, the on-screen ambient brightness value is refreshed in real time to compensate for light leakage, the collection accuracy is improved, and the user experience is enhanced.

[0089] Embodiment three

[0090] Figure 5 is a flowchart of the third embodiment of the under-screen light sensing light leakage test method, based on the above-mentioned embodiments, the screen brightness parameter corresponding to the initial value of ambient brightness is determined, and when on-screen display is entered according to the screen brightness parameter, second ambient light data of the first frame of display under the screen is collected, which comprises:

[0091] S21, sending, by the ambient light monitoring and collecting module, a screen brightness instruction corresponding to the initial value of ambient brightness to the screen management module of the device.

[0092] S22, extracting, by the screen management module, screen brightness parameter information in the screen brightness instruction, and displaying the current first frame according to a brightness level corresponding to the screen brightness parameter information.

[0093] Optionally, in this embodiment, when the mobile terminal display screen, the mobile terminal ambient light monitoring acquisition module controls the under-screen ambient light sensor to collect the first frame of bright screen under ambient light data Als_frame0 again. After the under-screen ambient light sensor data acquisition is completed, the mobile terminal ambient light monitoring acquisition module calculates the light leakage compensation value Als_diff=Als_te0-Als_black between the ambient light data Als_balck when the screen is off and the first frame of bright screen under ambient light data Als_te0. Then the mobile terminal ambient light monitoring acquisition module controls the under-screen ambient light sensor to collect the frame of bright screen under ambient light data Als_framen at each frame of screen refresh.

[0094] The beneficial effects of this embodiment are that the ambient light monitoring acquisition module sends the screen brightness instruction corresponding to the initial ambient brightness value to the screen management module of the device; the screen management module extracts the screen brightness parameter information in the screen brightness instruction, and displays the current first frame according to the brightness level corresponding to the screen brightness parameter information. A humanized under-screen light sensing light leakage test scheme is realized, the ambient brightness value in bright screen environment is refreshed in real time, the leakage compensation value is improved, the collection accuracy is improved, and the user experience is enhanced.

[0095] Embodiment four

[0096] Figure 6 is a flowchart of the fourth embodiment of the under-screen light sensing light leakage test method of the application, based on the above-mentioned embodiments, if the difference between the third ambient light data and the first ambient light data is greater than the preset threshold value, black frame insertion is performed, and the fourth ambient light data collected by the under-screen when the black frame is inserted is updated as the initial ambient brightness value, comprising:

[0097] S51, sending a black frame insertion instruction to the screen management module through the ambient light monitoring acquisition module.

[0098] S52, when the ambient light monitoring acquisition module monitors that the synchronization signal of the screen is switched to high level or the screen enters the black frame mode, the ambient light monitoring acquisition module controls the ambient light sensor to start working.

[0099] Optionally, in this embodiment, the ambient light data Als_framen under the current bright screen is compared with the ambient light data Als_balck when the screen is off, and if the difference between the ambient light data Als_framen under the current bright screen and the ambient light data Als_balck when the screen is off is greater than the preset threshold value Als_diff_type, the ambient light monitoring acquisition module sends a black frame insertion instruction to the screen management module.

[0100] The beneficial effect of the embodiment is that the ambient light monitoring and collecting module sends a black frame insertion instruction to the screen management module; when the ambient light monitoring and collecting module monitors that the synchronization signal of the screen is switched to high level or the screen enters a black frame mode, the ambient light monitoring and collecting module controls the ambient light sensor to start working. A humanized screen light leakage test scheme is realized, so that the ambient brightness value in a bright screen environment refreshes the light leakage compensation value in real time, the collection accuracy is improved, and the user experience is enhanced.

[0101] Embodiment five

[0102] Figure 7 The flowchart is a fifth embodiment of the screen light leakage test method of the application, based on the above-mentioned embodiments, if the difference between the third ambient light data and the first ambient light data is greater than the preset threshold value, black frame insertion is performed, and the fourth ambient light data collected by the screen in the black frame insertion is updated as the ambient brightness initial value, and the method further comprises:

[0103] S53, collecting fourth ambient light data when the black frame is displayed by the ambient light sensor, and updating the fourth ambient light data as the ambient brightness initial value.

[0104] S54, updating the screen brightness instruction, updating the corresponding brightness level, and displaying the subsequent frame after the black frame according to the updated brightness level.

[0105] Optionally, in the embodiment, after the ambient light monitoring and collecting module sends a black frame insertion instruction to the screen management module, the ambient light monitoring and collecting module controls the under-screen ambient light sensor to start working when the TE signal is changed to high level or the mobile terminal display enters a short black frame mode, the under-screen ambient light sensor collects ambient light data Als_balck when the screen is turned off, the ambient light monitoring and collecting module of the mobile terminal takes the ambient light data Als_balck as the ambient brightness initial value Als_start, and then the ambient light monitoring and collecting module of the mobile terminal sends a screen brightness parameter instruction matched with the current ambient brightness to the screen management module of the mobile terminal.

[0106] The beneficial effect of the embodiment is that the ambient light monitoring and collecting module sends a black frame insertion instruction to the screen management module; when the ambient light monitoring and collecting module monitors that the synchronization signal of the screen is switched to high level or the screen enters a black frame mode, the ambient light monitoring and collecting module controls the ambient light sensor to start working. A humanized screen light leakage test scheme is realized, so that the ambient brightness value in a bright screen environment refreshes the light leakage compensation value in real time, the collection accuracy is improved, and the user experience is enhanced.

[0107] Embodiment six

[0108] Figure 8 is a flowchart of a sixth embodiment of the under-screen light sensing and light leakage test method of the present application. Based on the above embodiment, if the difference between the third ambient light data and the first ambient light data is less than or equal to the preset threshold, the difference between the fifth ambient light data collected under the screen at the current frame display time and the light leakage compensation value is taken as the current ambient brightness value, which includes:

[0109] S61, when the difference between the third ambient light data and the first ambient light data is less than or equal to the preset threshold, the ambient light monitoring and collecting module controls the ambient light sensor to start working.

[0110] S62, the fifth ambient light data at the current frame display time is collected by the ambient light sensor.

[0111] The beneficial effects of this embodiment are that when the difference between the third ambient light data and the first ambient light data is less than or equal to the preset threshold, the ambient light monitoring and collecting module controls the ambient light sensor to start working; the fifth ambient light data at the current frame display time is collected by the ambient light sensor. A humanized under-screen light sensing and light leakage test scheme is realized, which makes the bright screen ambient brightness value refresh the light leakage compensation value in real time, improves the collection accuracy, and enhances the user experience.

[0112] Embodiment Seven

[0113] Figure 9 is a flowchart of a seventh embodiment of the under-screen light sensing and light leakage test method of the present application. Based on the above embodiment, if the difference between the third ambient light data and the first ambient light data is less than or equal to the preset threshold, the difference between the fifth ambient light data collected under the screen at the current frame display time and the light leakage compensation value is taken as the current ambient brightness value, which further includes:

[0114] S63, the difference between the fifth ambient light data and the light leakage compensation value is calculated by the ambient light monitoring and collecting module.

[0115] S64, the difference between the fifth ambient light data and the light leakage compensation value is taken as the current ambient brightness value of the current display frame by the ambient light monitoring and collecting module.

[0116] Optionally, in the embodiment, if the difference between the ambient light data Als_framen under the screen-on state and the ambient light data Als_balck under the screen-off state is less than or equal to the preset threshold Als_diff_type, the mobile terminal ambient light monitoring and collecting module calculates the difference between the ambient light sensor compensation value Als_diff and the ambient light data Als_framen under the screen-on state, Als_framen = Als_framen - Als_diff, and the calculated Als_framen is the current ambient brightness value.

[0117] The embodiment has the beneficial effect that the difference between the fifth ambient light data and the light leakage compensation value is calculated by the ambient light monitoring and collecting module, and the difference between the fifth ambient light data and the light leakage compensation value is taken as the current ambient brightness value of the current display frame by the ambient light monitoring and collecting module. A humanized light leakage test scheme for the under-screen light sensing is implemented, the ambient brightness value under the screen-on state is refreshed in real time, the light leakage compensation value is improved, the collection accuracy is improved, and the user experience is enhanced.

[0118] Embodiment Eight

[0119] Figure 10 is a flowchart of the eighth embodiment of the under-screen light sensing light leakage test method, based on the above-mentioned embodiments, if the difference between the third ambient light data and the first ambient light data is less than or equal to the preset threshold, the difference between the fifth ambient light data under the current frame display state and the light leakage compensation value is taken as the current ambient brightness value, and the method further includes:

[0120] S65, updating the screen brightness instruction according to the current ambient brightness value, and updating the corresponding brightness level.

[0121] S66, displaying the current display frame according to the updated brightness level.

[0122] Optionally, in the embodiment, the mobile terminal ambient light monitoring and collecting module sends the screen brightness parameter instruction matched with the current ambient brightness to the mobile terminal screen management unit, and the mobile terminal screen management unit controls the screen to display the frame display content normally according to the brightness level matched with the screen brightness parameter.

[0123] Optionally, in the embodiment, the screen management module mainly identifies the instruction from the ambient light monitoring and collecting module, and performs different operation control according to different instructions. When the screen management module receives the instruction from the ambient light monitoring and collecting module, the screen management module identifies and analyzes the instruction from the ambient light monitoring and collecting module, if the instruction from the ambient light monitoring and collecting module is a screen brightness parameter instruction, the screen management module extracts the screen brightness parameter information in the received screen brightness parameter instruction, and the mobile terminal screen management module controls the screen to display the frame content normally according to the brightness level matched with the screen brightness parameter information in the screen brightness parameter instruction. If the instruction from the ambient light monitoring and collecting module is a black frame insertion instruction, the screen management module pulls up the TE signal to the black frame processing time of the preset time width Ts after the display of a frame of picture on the screen is completed, or the screen management module sleeps the screen according to the preset time width Ts.

[0124] The embodiment has the beneficial effects that the screen brightness instruction is updated by the current ambient brightness value, and the corresponding brightness level is updated; and the current display frame is displayed according to the updated brightness level. A humanized screen light sensing light leakage test scheme is implemented, so that the ambient brightness value in the bright screen environment is refreshed in real time to compensate the light leakage value, the collection accuracy is improved, and the user experience is enhanced.

[0125] Embodiment Nine

[0126] Based on the above-mentioned embodiments, the application further provides a screen light sensing light leakage test device, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program implements the steps of the screen light sensing light leakage test method according to any one of the above-mentioned embodiments when executed by the processor.

[0127] It should be noted that the above-mentioned device embodiments and method embodiments belong to the same concept, the specific implementation process is detailed in the method embodiments, and the technical features in the method embodiments are all applicable to the device embodiments, which will not be repeated here.

[0128] Embodiment Ten

[0129] Based on the above-mentioned embodiments, the application further provides a computer readable storage medium, which stores a screen light sensing light leakage test program, and the screen light sensing light leakage test program implements the steps of the screen light sensing light leakage test method according to any one of the above-mentioned embodiments when executed by a processor.

[0130] It should be noted that the above-mentioned medium embodiments and method embodiments belong to the same concept, the specific implementation process is detailed in the method embodiments, and the technical features in the method embodiments are all applicable to the medium embodiments, which will not be repeated here.

[0131] It should be noted that the terms "comprising", "including", or any other variant thereof are intended to cover a non-exclusive inclusion, such that processes, methods, articles, or apparatuses that comprise a list of elements are not required to include only those elements recited, but can also include other elements not expressly listed or inherent to such processes, methods, articles, or apparatuses. Without further limitation, an element preceded by "comprises a" does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or apparatus that comprises the recited element.

[0132] The above-mentioned embodiment numbers of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.

[0133] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be realized by means of software and necessary general hardware platforms, and of course can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as a ROM / RAM, a magnetic disk, or an optical disk) and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the methods described in the various embodiments of the present application.

[0134] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative and not limiting. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application, and these are all within the protection of the present application.

Claims

1. A method for testing light leakage under a screen, characterized in that, The method includes: Before the screen turns on, the first ambient light data collected under the screen when the screen is off is used as the initial value of the ambient brightness. Determine the screen brightness parameter corresponding to the initial value of the ambient brightness, and when entering the bright screen display according to the screen brightness parameter, collect the second ambient light data when the first frame of the screen is displayed; The light leakage compensation value is obtained based on the difference between the second ambient light data and the first ambient light data, and the third ambient light data of each frame displayed under the screen is collected when each frame is refreshed, and the relationship between the difference between the third ambient light data and the first ambient light data and the preset threshold is determined. If the difference between the third ambient light data and the first ambient light data is greater than the preset threshold, a black frame is inserted, and the fourth ambient light data at the time of black frame insertion is updated to the initial ambient brightness value. If the difference between the third ambient light data and the first ambient light data is less than or equal to the preset threshold, the difference between the fifth ambient light data at the time of display of the current frame collected under the screen and the light leakage compensation value is used as the current ambient brightness value.

2. The under-display light leakage testing method according to claim 1, characterized in that, The step of using the first ambient light data collected under the screen when the screen is off as the initial value of ambient brightness before the screen enters the on-screen display phase includes: When the screen of the device is about to turn on, the ambient light sensor under the screen is controlled to start working by the ambient light monitoring and acquisition module of the device. The ambient light sensor collects the first ambient light data when the screen is off, and uses the first ambient light data as the initial value of the ambient brightness when the screen is on.

3. The under-display light leakage testing method according to claim 2, characterized in that, The step of determining the screen brightness parameter corresponding to the initial value of the ambient brightness, and collecting the second ambient light data of the first frame displayed under the screen when entering the on-screen display according to the screen brightness parameter, includes: The ambient light monitoring and acquisition module sends a screen brightness command corresponding to the initial value of the ambient brightness to the screen management module of the device. The screen management module extracts the screen brightness parameter information from the screen brightness command and displays the current first frame according to the brightness level corresponding to the screen brightness parameter information.

4. The under-display light leakage testing method according to claim 3, characterized in that, If the difference between the third ambient light data and the first ambient light data is greater than the preset threshold, a black frame is inserted, and the fourth ambient light data acquired under the screen at the time of black frame insertion is updated to the initial ambient brightness value, including: The ambient light monitoring and acquisition module sends a black frame insertion command to the screen management module. When the ambient light monitoring and acquisition module detects that the screen's synchronization signal has switched to a high level or the screen has entered black frame mode, it controls the ambient light sensor to start working.

5. The under-display light leakage testing method according to claim 4, characterized in that, If the difference between the third ambient light data and the first ambient light data is greater than the preset threshold, a black frame is inserted, and the fourth ambient light data acquired under the screen at the time of black frame insertion is updated to the initial ambient brightness value, the method further includes: The ambient light sensor collects fourth ambient light data when the black frame is displayed, and updates the fourth ambient light data to the initial value of the ambient brightness. Update the screen brightness command and the corresponding brightness level, and display the subsequent frames after the black frame according to the updated brightness level.

6. The under-display light leakage testing method according to claim 5, characterized in that, If the difference between the third ambient light data and the first ambient light data is less than or equal to the preset threshold, then the difference between the fifth ambient light data collected under the screen and the light leakage compensation value at the time of display of the current frame is used as the current ambient brightness value, including: When the difference between the third ambient light data and the first ambient light data is less than or equal to the preset threshold, the ambient light sensor is controlled to start working by the ambient light monitoring and acquisition module. The ambient light sensor collects the fifth ambient light data during the current frame display.

7. The under-display light leakage testing method according to claim 6, characterized in that, If the difference between the third ambient light data and the first ambient light data is less than or equal to the preset threshold, then the difference between the fifth ambient light data collected under the screen and the light leakage compensation value at the time of display of the current frame is taken as the current ambient brightness value, further comprising: The difference between the fifth ambient light data and the light leakage compensation value is calculated by the ambient light monitoring and acquisition module. The difference between the fifth ambient light data and the light leakage compensation value is used by the ambient light monitoring and acquisition module as the current ambient brightness value of the current display frame.

8. The under-display light leakage testing method according to claim 7, characterized in that, If the difference between the third ambient light data and the first ambient light data is less than or equal to the preset threshold, then the difference between the fifth ambient light data collected under the screen and the light leakage compensation value at the time of display of the current frame is taken as the current ambient brightness value, further comprising: The screen brightness command is updated based on the current ambient brightness value, and the corresponding brightness level is also updated. The current display frame is shown according to the updated brightness level.

9. An under-screen light leakage testing device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the under-display light leakage testing method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an under-display light leakage test program, which, when executed by a processor, implements the steps of the under-display light leakage test method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Ambient light brightness calibration method of electronic equipment and electronic equipment

    CN112017615A

  • Ambient light intensity detection method and device, electronic equipment and storage medium

    CN113074812A