A close-range sensor correction method, device and computer readable storage medium

By acquiring screen parameters and color light data to establish an interference mapping table, and calculating and filtering infrared intensity parameters, the stability problem of the under-display proximity sensor under changing light conditions is solved, achieving a highly accurate and stable pocket mode function.

CN114885051BActive Publication Date: 2026-04-24NUBIA TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NUBIA TECHNOLOGY CO LTD
Filing Date
2022-04-28
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

In existing technologies, under-display proximity sensors are unstable in scenarios with significant changes in lighting, leading to intermittent malfunctions in functions such as pocket mode.

Method used

By acquiring the screen's glass parameters, the distance between the screen and the sensor, and the color light data of the screen's interference area, an interference mapping table is established, and infrared intensity parameters are calculated. After filtering out interference, the corrected infrared intensity parameters are obtained.

Benefits of technology

It improves the accuracy and stability of the under-display proximity sensor, enhances the user experience, and requires no additional hardware assistance or modification, with optimizations completed only at the software level.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114885051B_ABST
    Figure CN114885051B_ABST
Patent Text Reader

Abstract

The application discloses a near distance sensor correction method, device and computer readable storage medium, wherein the method comprises the following steps: establishing an interference mapping table in an interference area according to glass parameters, a first distance, a second distance and color light data of each pixel point; acquiring a first infrared intensity parameter of the near distance sensor in a current state, and current color light data in the interference area, and calculating an infrared intensity interference parameter in the current state according to the current color light data and the interference mapping table; filtering the infrared intensity interference parameter in the first infrared intensity parameter to obtain a second infrared intensity parameter after correction. A low-cost near distance sensor correction scheme is realized, the accuracy and stability of the near distance sensor applied to the screen below are improved, and the user experience is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of mobile communications, and more particularly to a method, apparatus, and computer-readable storage medium for near-field sensor correction. Background Technology

[0002] In current technology, with the continuous development of smart terminal devices, the screen-to-body ratio of various devices is also increasing. In particular, to save structural space, proximity sensors are now being placed under the screen. Typically, proximity sensors can realize pocket mode through distance sensing, such as turning off the screen when the device is put in a pocket and turning it on when it is taken out of the pocket. However, when the proximity sensor is placed under the screen, these functions such as pocket mode based on the proximity sensor have experienced intermittent failures. In particular, the operation of the proximity sensor seems to be affected in scenarios with large changes in lighting, such as pocket mode.

[0003] Therefore, there is an urgent need for a technical solution to improve the working stability and accuracy of under-display proximity sensors. Summary of the Invention

[0004] To address the aforementioned technical deficiencies in the prior art, this invention proposes a near-field sensor correction method, which includes:

[0005] The system acquires the glass parameters of the screen covering the proximity sensor, the first distance from the screen to the proximity sensor, the second distance from the glass of the proximity sensor to the photosensitive element of the proximity sensor, the interference area of ​​the proximity sensor mapped to the screen, and the color light data of each pixel in the interference area.

[0006] An interference mapping table is established within the interference area based on the glass parameters, the first distance, the second distance, and the color light data of each pixel.

[0007] The first infrared intensity parameter of the near-field sensor in the current state and the current color light data in the interference area are obtained, and the infrared intensity interference parameter in the current state is calculated based on the current color light data and the interference mapping table.

[0008] The infrared intensity interference parameter is filtered out from the first infrared intensity parameter to obtain the corrected second infrared intensity parameter.

[0009] Optionally, acquiring the glass parameters of the screen covering the proximity sensor, the first distance from the screen to the proximity sensor, the second distance from the glass of the proximity sensor to the photosensitive element of the proximity sensor, the sensing range of the proximity sensor mapped to the interference area of ​​the screen, and the color light data of each pixel in the interference area includes:

[0010] Obtain the transmittance and reflectance parameters of the screen covering the proximity sensor.

[0011] The glass parameters are calculated based on the light transmittance parameter, the reflectance parameter, and the first preset interference parameter.

[0012] Optionally, acquiring the glass parameters of the screen covering the proximity sensor, the first distance from the screen to the proximity sensor, the second distance from the glass of the proximity sensor to the photosensitive element of the proximity sensor, the sensing range of the proximity sensor mapped to the interference area of ​​the screen, and the color light data of each pixel in the interference area includes:

[0013] The under-display camera covered by the screen is determined, and the field of view of the under-display camera is mapped to the field of view area of ​​the screen.

[0014] The framing area is defined as the interference area.

[0015] Optionally, the step of acquiring the glass parameters of the screen covering the proximity sensor, the first distance from the screen to the proximity sensor, the second distance from the glass of the proximity sensor to the photosensitive element of the proximity sensor, the sensing range of the proximity sensor mapped to the interference area of ​​the screen, and the color light data of each pixel in the interference area, further includes:

[0016] Before acquiring the color light data of each pixel in the interference area, it is detected whether the under-display camera is enabled.

[0017] When the under-display camera is enabled, the pixel display of the interference area is adjusted to the first pixel display when the under-display camera is in normal working condition.

[0018] Optionally, the step of acquiring the glass parameters of the screen covering the proximity sensor, the first distance from the screen to the proximity sensor, the second distance from the glass of the proximity sensor to the photosensitive element of the proximity sensor, the sensing range of the proximity sensor mapped to the interference area of ​​the screen, and the color light data of each pixel in the interference area, further includes:

[0019] When the under-display camera is turned off, the content displayed on the current screen is captured.

[0020] The second pixel is determined to be displayed in the interference area based on the distribution of the displayed content.

[0021] Optionally, establishing an interference mapping table within the interference area based on the glass parameters, the first distance, the second distance, and the color light data of each pixel includes:

[0022] Detect the enabled status of the under-display camera.

[0023] When the under-display camera is in the enabled state, a first interference mapping table is established within the interference area based on the glass parameters, the first distance, the second distance, and the first pixel display.

[0024] Optionally, establishing an interference mapping table within the interference area based on the glass parameters, the first distance, the second distance, and the color light data of each pixel further includes:

[0025] Detect the enabled status of the under-display camera.

[0026] When the under-display camera is off, a second interference mapping table is established within the interference area based on the glass parameters, the first distance, the second distance, and the second pixel display.

[0027] Optionally, the step of acquiring the first infrared intensity parameter of the near-field sensor in the current state, and the current color light data within the interference area, and calculating the infrared intensity interference parameter in the current state based on the current color light data and the interference mapping table, includes:

[0028] When the under-display camera is in the enabled state, the first infrared intensity interference parameter in the current state is calculated based on the current color light data and the first interference mapping table.

[0029] When the under-display camera is in the off state, the second infrared intensity interference parameter in the current state is calculated based on the current color light data and the second interference mapping table.

[0030] The present invention also proposes a proximity sensor correction device, the device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being executed by the processor to implement the steps of the proximity sensor correction method as described in any of the preceding claims.

[0031] The present invention also proposes a computer-readable storage medium storing a proximity sensor correction program, which, when executed by a processor, implements the steps of the proximity sensor correction method as described in any of the preceding claims.

[0032] The proximity sensor correction method, apparatus, and computer-readable storage medium of the present invention acquire, by means of: glass parameters of the screen covering the proximity sensor; a first distance from the screen to the proximity sensor; a second distance from the glass of the proximity sensor to the photosensitive element of the proximity sensor; a sensing range of the proximity sensor mapped to an interference area of ​​the screen; and color light data of each pixel in the interference area; establishing an interference mapping table within the interference area based on the glass parameters, the first distance, the second distance, and the color light data of each pixel; acquiring a first infrared intensity parameter of the proximity sensor in its current state, and current color light data within the interference area, and calculating an infrared intensity interference parameter in the current state based on the current color light data and the interference mapping table; and filtering the infrared intensity interference parameter from the first infrared intensity parameter to obtain a corrected second infrared intensity parameter. This provides a low-cost proximity sensor correction scheme, improves the accuracy and stability of proximity sensors applied under screens, and enhances the user experience. Attached Figure Description

[0033] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings:

[0034] Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal according to the present invention;

[0035] Figure 2 This is a communication network system architecture diagram provided in an embodiment of the present invention;

[0036] Figure 3 This is a flowchart of the first embodiment of the near-field sensor correction method of the present invention;

[0037] Figure 4 This is a flowchart of the second embodiment of the near-field sensor correction method of the present invention;

[0038] Figure 5 This is a flowchart of the third embodiment of the near-field sensor correction method of the present invention;

[0039] Figure 6 This is a flowchart of the fourth embodiment of the near-field sensor correction method of the present invention;

[0040] Figure 7This is a flowchart of the fifth embodiment of the near-field sensor correction method of the present invention;

[0041] Figure 8 This is a flowchart of the sixth embodiment of the near-field sensor correction method of the present invention;

[0042] Figure 9 This is a flowchart of the seventh embodiment of the near-field sensor correction method of the present invention;

[0043] Figure 10 This is a flowchart of the eighth embodiment of the near-field sensor correction method of the present invention. Detailed Implementation

[0044] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.

[0045] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.

[0046] Terminals can be implemented in various forms. For example, the terminals described in this invention may include mobile terminals such as mobile phones, tablets, laptops, handheld computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.

[0047] The following description will use a mobile terminal as an example. Those skilled in the art will understand that, apart from elements specifically designed for mobile purposes, the construction according to embodiments of the present invention can also be applied to fixed-type terminals.

[0048] Please see Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present invention. The mobile terminal 100 may 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 memory 109, a processor 110, and a power supply 111, etc. Those skilled in the art will understand that... Figure 1 The mobile terminal structure shown does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0049] The following is combined Figure 1 A detailed introduction to each component of the mobile terminal:

[0050] The radio frequency unit 101 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with the processor 110; additionally, it transmits uplink data to the base station. Typically, 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, and a duplexer. Furthermore, the radio frequency unit 101 can also communicate wirelessly with networks and other devices. The aforementioned wireless communications may 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), and TDD-LTE (Time Division Duplexing-Long Term Evolution).

[0051] WiFi is a short-range wireless transmission technology. Mobile terminals using the WiFi module 102 can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 1 WiFi module 102 is shown, but it is understood that it is not a necessary component of a mobile terminal and can be omitted as needed without changing the nature of the invention.

[0052] The audio output unit 103 can convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into audio signals and output them as sound when the mobile terminal 100 is in call signal receiving mode, call mode, recording mode, voice recognition mode, broadcast receiving mode, etc. Furthermore, the audio output unit 103 can also provide audio output related to specific functions performed by the mobile terminal 100 (e.g., call signal receiving sound, message receiving sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.

[0053] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on the display unit 106. The image frames processed by the GPU 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 can receive sound (audio data) in operating modes such as telephone call mode, recording mode, and voice recognition mode, and can process such sound into audio data. The processed audio (voice) data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 in telephone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.

[0054] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the ambient light level, and the proximity sensor can turn off the display panel 1061 and / or backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, tapping), etc. Other sensors that may be configured in the phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.

[0055] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0056] User input unit 107 can be used to receive input numerical or character information, and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, user input unit 107 may include touch panel 1071 and other input devices 1072. Touch panel 1071, also known as touch screen, can collect touch operations on or near the user (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 1071), and drive corresponding connection devices according to a pre-set program. Touch panel 1071 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to processor 110, and can receive and execute commands from processor 110. In addition, touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc., without being limited here.

[0057] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides corresponding visual output on the display panel 1061 based on the type of touch event. Although in Figure 1 In this embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of the mobile terminal. However, 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. The specific implementation is not limited here.

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

[0059] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0060] The processor 110 is the control center of the mobile terminal. It connects various parts of the mobile terminal via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and by calling data stored in the memory 109, it performs various functions and processes data of the mobile terminal, thereby providing overall monitoring of the mobile terminal. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 110.

[0061] The mobile terminal 100 may also include a power supply 111 (such as a battery) that supplies power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.

[0062] although Figure 1 As not shown, the mobile terminal 100 may also include a Bluetooth module, etc., which will not be described in detail here.

[0063] To facilitate understanding of the embodiments of the present invention, the communication network system on which the mobile terminal of the present invention is based is described below.

[0064] Please see Figure 2 , Figure 2 This invention provides a communication network system architecture diagram. The communication network system is an LTE system based on the universal 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 the operator's IP services 204, which are connected in sequence.

[0065] Specifically, UE201 can be the aforementioned terminal 100, which will not be elaborated here.

[0066] E-UTRAN202 includes eNodeB2021 and other eNodeB2022s. Among them, eNodeB2021 can connect to other eNodeB2022s via backhaul (e.g., X2 interface), and eNodeB2021 connects to EPC203. eNodeB2021 can provide UE201 with access to EPC203.

[0067] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gateway) 2034, PGW (Packet Data Network Gateway) 2035, and PCRF (Policy and Charging Rules Function) 2036, etc. Among them, MME2031 is the control node that handles signaling between UE201 and EPC203, providing bearer and connection management. HSS2032 provides registers to manage functions such as the Home Location Register (not shown in the diagram) and stores user-specific information such as service characteristics and data rates. All user data can be sent through SGW2034. PGW2035 can provide UE 201 IP address allocation and other functions. PCRF2036 is the policy and charging control decision point for service data flow and IP bearer resources. It selects and provides available policy and charging control decisions for the policy and charging enforcement function unit (not shown in the figure).

[0068] IP services 204 may include the Internet, intranet, IMS (IP Multimedia Subsystem), or other IP services.

[0069] Although the above description uses the LTE system as an example, those skilled in the art should understand that the present invention is not only applicable to the LTE system, but also 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 aforementioned mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.

[0071] Example 1

[0072] Figure 3 This is a flowchart of the first embodiment of the proximity sensor correction method of the present invention. A proximity sensor correction method, the method comprising:

[0073] S1. Obtain the glass parameters of the screen covering the proximity sensor, the first distance from the screen to the proximity sensor, the second distance from the glass of the proximity sensor to the photosensitive element of the proximity sensor, the interference area of ​​the sensing range of the proximity sensor mapped to the screen, and the color light data of each pixel in the interference area.

[0074] S2. Establish an interference mapping table within the interference area based on the glass parameters, the first distance, the second distance, and the color light data of each pixel.

[0075] S3. Obtain the first infrared intensity parameter of the near-field sensor in the current state, and the current color light data in the interference area, and calculate the infrared intensity interference parameter in the current state based on the current color light data and the interference mapping table.

[0076] S4. Filter the infrared intensity interference parameter into the first infrared intensity parameter to obtain the corrected second infrared intensity parameter.

[0077] In this embodiment, a mobile phone is used as an example. Currently, when a mobile phone screen is turned on after being off, the system determines whether the device is in a pocket based on data reported by the proximity sensor, and then decides whether to display pocket mode. Currently, some models with high screen-to-body ratios often place the proximity sensor under the screen. However, the applicant has found that placing the proximity sensor under the screen may cause interference from screen light after the screen is turned on, resulting in the sensor reporting multiple different values ​​in a short period, leading to incorrect pocket mode display. Therefore, the technical approach of this embodiment is to provide an algorithm that adjusts the baseline parameters of the proximity sensor in real time according to the screen display state, and then adjusts the proximity sensor to different states to restore the accuracy of the sensor values. That is, for various models with under-display proximity sensors, this algorithm can be used to optimize the distance parameters obtained by the under-display proximity sensor, reduce the impact of screen light on the proximity sensor, and restore the accuracy of the sensor values.

[0078] Specifically, in this embodiment, firstly, when the phone screen is turned on, the system's PowerManagerService sends a notification; the driver responds to the notification and begins registering the proximity sensor; after the proximity sensor is registered, it acquires the detected parameter G1 via infrared; the screen parameter acquisition module acquires the currently displayed content and brightness parameters of the screen, and acquires the glass parameters (e.g., transparency, reflectivity) C1 of the screen on the proximity sensor, the distance L1 from the screen to the proximity sensor, and the distance L2 from the glass on the proximity sensor to the photosensitive element; a mapping table T1 is generated based on the parameters C1, L1, and L2, which includes the RGB light display of each pixel on the screen; the light interference generated by the screen image emission is converted through the mapping table T1 to the infrared intensity of the proximity sensor, i.e., the aforementioned G1; the parameter calculation module acquires the infrared intensity G2 of the screen light interference and the infrared intensity parameter G1 detected by the proximity sensor, calculates the infrared intensity that filters out the screen light interference, and finally generates the infrared light parameter G3 that does not contain screen display interference; the driver returns the calculated result G3; the Pocket Mode service selects whether to display the Pocket Mode interface based on the returned result.

[0079] As can be seen, in this embodiment, on the one hand, the accuracy of the under-display proximity sensor is improved, and the problem of interference between screen light and proximity sensor is solved. On the other hand, no additional hardware assistance or modification is required, and optimization can be completed at the software level.

[0080] The beneficial effects of this embodiment are as follows: By acquiring the glass parameters of the screen covering the proximity sensor, the first distance from the screen to the proximity sensor, the second distance from the glass of the proximity sensor to the photosensitive element of the proximity sensor, the sensing range of the proximity sensor mapped to the interference area of ​​the screen, and the color light data of each pixel in the interference area; an interference mapping table is established in the interference area based on the glass parameters, the first distance, the second distance, and the color light data of each pixel; a first infrared intensity parameter of the proximity sensor in the current state and the current color light data in the interference area are acquired, and the infrared intensity interference parameter in the current state is calculated based on the current color light data and the interference mapping table; the infrared intensity interference parameter is filtered from the first infrared intensity parameter to obtain the corrected second infrared intensity parameter. This achieves a low-cost proximity sensor correction scheme, improves the accuracy and stability of proximity sensors applied under the screen, and enhances the user experience.

[0081] Example 2

[0082] Figure 4 This is a flowchart of a second embodiment of the proximity sensor correction method of the present invention. Based on the above embodiment, the steps of acquiring the glass parameters of the screen covering the proximity sensor, the first distance from the screen to the proximity sensor, the second distance from the glass of the proximity sensor to the photosensitive element of the proximity sensor, the sensing range of the proximity sensor mapped to the interference area of ​​the screen, and the color light data of each pixel in the interference area include:

[0083] S11. Obtain the transmittance and reflectance parameters of the screen covering the proximity sensor.

[0084] S12. The glass parameters are calculated based on the light transmittance parameter, the reflectance parameter, and the first preset interference parameter.

[0085] Optionally, in this embodiment, the first preset interference parameter includes a first weight of the transmittance parameter and a second weight of the reflectance parameter.

[0086] Optionally, in this embodiment, the glass parameters are calculated based on the transmittance parameter, the reflectance parameter, the first weight, and the second weight.

[0087] The beneficial effect of this embodiment is that by acquiring the transmittance and reflectance parameters of the screen covering the proximity sensor, and calculating the glass parameters based on the transmittance parameters, the reflectance parameters, and a first preset interference parameter, a low-cost proximity sensor correction scheme is achieved, improving the accuracy and stability of the proximity sensor applied under the screen and enhancing the user experience.

[0088] Example 3

[0089] Figure 5 This is a flowchart of a third embodiment of the proximity sensor correction method of the present invention. Based on the above embodiment, the steps of acquiring the glass parameters of the screen covering the proximity sensor, the first distance from the screen to the proximity sensor, the second distance from the glass of the proximity sensor to the photosensitive element of the proximity sensor, the sensing range of the proximity sensor mapped to the interference area of ​​the screen, and the color light data of each pixel in the interference area include:

[0090] S13. Determine the under-display camera covered by the screen, and map the framing range of the under-display camera to the framing area of ​​the screen.

[0091] S14. The framing area is taken as the interference area.

[0092] Optionally, in this embodiment, the proximity sensor is placed near the under-display camera, thereby utilizing the screen state switching of the viewfinder area when the under-display camera is framing the shot to differentially eliminate interference in the interference area.

[0093] Optionally, in this embodiment, on the one hand, along with the working mechanism of the under-display camera, when the under-display camera is in the enabled state, the interference in its interference area is smaller, the correction range of the proximity sensor is smaller, and the accuracy is further improved. On the other hand, when the under-display camera is not working, a normal correction algorithm is still obtained, thereby maintaining the stability of the proximity sensor correction.

[0094] The beneficial effect of this embodiment is that by determining the under-display camera covered by the screen and mapping the framing range of the under-display camera to the framing area of ​​the screen, and using the framing area as the interference area, a low-cost near-field sensor correction scheme is achieved, improving the accuracy and stability of near-field sensors applied under the screen and enhancing the user experience.

[0095] Example 4

[0096] Figure 6This is a flowchart of the fourth embodiment of the proximity sensor correction method of the present invention. Based on the above embodiment, the step of acquiring the glass parameters of the screen covering the proximity sensor, the first distance from the screen to the proximity sensor, the second distance from the glass of the proximity sensor to the photosensitive element of the proximity sensor, the sensing range of the proximity sensor mapped to the interference area of ​​the screen, and the color light data of each pixel in the interference area, further includes:

[0097] S15. Before acquiring the color light data of each pixel in the interference area, detect whether the under-display camera is in an enabled state.

[0098] S16. When the under-display camera is enabled, adjust the pixel display of the interference area to the first pixel display when the under-display camera is in normal working condition.

[0099] Optionally, in this embodiment, when the under-display camera is enabled, the pixel display of the interference area is adjusted to the static first pixel display when the under-display camera is in normal working state, that is, a light-transmitting mode that is conducive to framing.

[0100] Optionally, in this embodiment, there may still be an impact on the proximity sensor in this mode. Therefore, this embodiment will also record the static first pixel display as a basis for subsequent interference calculation.

[0101] The beneficial effect of this embodiment is that, before acquiring the color light data of each pixel in the interference area, it detects whether the under-display camera is in an enabled state; when the under-display camera is in an enabled state, the pixel display of the interference area is adjusted to the first pixel display when the under-display camera is in normal working state. This achieves a low-cost proximity sensor correction scheme, improves the accuracy and stability of proximity sensors applied under the screen, and enhances the user experience.

[0102] Example 5

[0103] Figure 7 This is a flowchart of the fifth embodiment of the proximity sensor correction method of the present invention. Based on the above embodiment, the step of acquiring the glass parameters of the screen covering the proximity sensor, the first distance from the screen to the proximity sensor, the second distance from the glass of the proximity sensor to the photosensitive element of the proximity sensor, the sensing range of the proximity sensor mapped to the interference area of ​​the screen, and the color light data of each pixel in the interference area, further includes:

[0104] S17. When the under-display camera is in the off state, acquire the current display content of the screen.

[0105] S18. Determine the display of the second pixel in the interference area based on the distribution of the displayed content.

[0106] Optionally, in this embodiment, when the under-display camera is in a closed state, the current screen display content is displayed in real time. Therefore, this solution determines the dynamic second pixel display in the interference area based on the distribution of the dynamic display content during the real-time display process.

[0107] The beneficial effect of this embodiment is that it acquires the current screen display content when the under-display camera is in a closed state; and determines the display of the second pixel in the interference area based on the distribution of the display content. This achieves a low-cost proximity sensor correction scheme, improves the accuracy and stability of proximity sensors applied under the screen, and enhances the user experience.

[0108] Example 6

[0109] Figure 8 This is a flowchart of the sixth embodiment of the near-field sensor correction method of the present invention. Based on the above embodiment, the step of establishing an interference mapping table within the interference area according to the glass parameters, the first distance, the second distance, and the color light data of each pixel includes:

[0110] S21. Detect the enabled status of the under-display camera.

[0111] S22. When the under-display camera is in the enabled state, a first interference mapping table is established within the interference area based on the glass parameters, the first distance, the second distance, and the first pixel display.

[0112] Optionally, in this embodiment, the interference result when the first pixel is displayed statically can be obtained by querying the first interference mapping table.

[0113] The beneficial effect of this embodiment is that, by detecting the enabled state of the under-display camera, and when the under-display camera is enabled, a first interference mapping table is established within the interference area based on the glass parameters, the first distance, the second distance, and the first pixel display. This achieves a low-cost proximity sensor correction scheme, improves the accuracy and stability of proximity sensors applied under the screen, and enhances the user experience.

[0114] Example 7

[0115] Figure 9This is a flowchart of the seventh embodiment of the near-field sensor correction method of the present invention. Based on the above embodiment, the step of establishing an interference mapping table within the interference area according to the glass parameters, the first distance, the second distance, and the color light data of each pixel further includes:

[0116] S23. Detect the enabled status of the under-display camera.

[0117] S24. When the under-display camera is in a closed state, a second interference mapping table is established within the interference area based on the glass parameters, the first distance, the second distance, and the second pixel display.

[0118] Optionally, in this embodiment, the interference results of each pixel during dynamic display can be obtained by querying the second interference mapping table.

[0119] The beneficial effect of this embodiment is that, by detecting the enabled state of the under-display camera, and when the under-display camera is in the disabled state, a second interference mapping table is established within the interference area based on the glass parameters, the first distance, the second distance, and the second pixel display. This achieves a low-cost proximity sensor correction scheme, improves the accuracy and stability of proximity sensors applied under the screen, and enhances the user experience.

[0120] Example 8

[0121] Figure 10 This is a flowchart of the eighth embodiment of the near-field sensor correction method of the present invention. Based on the above embodiment, the step of obtaining the first infrared intensity parameter of the near-field sensor in the current state and the current color light data in the interference area, and calculating the infrared intensity interference parameter in the current state according to the current color light data and the interference mapping table, includes:

[0122] S31. When the under-display camera is in the enabled state, the first infrared intensity interference parameter in the current state is calculated based on the current color light data and the first interference mapping table.

[0123] S32. When the under-display camera is in the off state, the second infrared intensity interference parameter in the current state is calculated based on the current color light data and the second interference mapping table.

[0124] Optionally, in this embodiment, when the under-display camera is in the enabled state, the first infrared intensity interference parameter is filtered out from the first infrared intensity parameter to obtain the corrected second infrared intensity parameter.

[0125] Optionally, in this embodiment, when the under-display camera is in the off state, the second infrared intensity interference parameter is filtered out from the first infrared intensity parameter to obtain the corrected second infrared intensity parameter.

[0126] The beneficial effect of this embodiment is that, when the under-display camera is in the enabled state, a first infrared intensity interference parameter is calculated based on the current color light data and the first interference mapping table; when the under-display camera is in the disabled state, a second infrared intensity interference parameter is calculated based on the current color light data and the second interference mapping table. This achieves a low-cost proximity sensor correction scheme, improves the accuracy and stability of proximity sensors applied under the screen, and enhances the user experience.

[0127] Example 9

[0128] Based on the above embodiments, the present invention also proposes a proximity sensor correction device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the proximity sensor correction method as described in any of the above embodiments.

[0129] It should be noted that the above-described device embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the device embodiments, which will not be repeated here.

[0130] Example 10

[0131] Based on the above embodiments, the present invention also proposes a computer-readable storage medium storing a proximity sensor correction program, which, when executed by a processor, implements the steps of the proximity sensor correction method as described in any of the above claims.

[0132] It should be noted that the above-described medium embodiments and method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments, and the technical features in the method embodiments are also applicable to the medium embodiments, which will not be repeated here.

[0133] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0134] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0135] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0136] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.

Claims

1. A method for correcting near-field sensors, characterized in that, The method includes: The glass parameters of the screen covering the proximity sensor, the first distance from the screen to the proximity sensor, the second distance from the glass of the proximity sensor to the photosensitive element of the proximity sensor, the sensing range of the proximity sensor mapped to the interference area of ​​the screen, and the color light data of each pixel in the interference area are obtained. Among them, the under-display camera covered by the screen is determined, and the framing range of the under-display camera is mapped to the framing area of ​​the screen, and the framing area is taken as the interference area. An interference mapping table is established within the interference area based on the glass parameters, the first distance, the second distance, and the color light data of each pixel. The first infrared intensity parameter of the near-field sensor in the current state and the current color light data in the interference area are obtained, and the infrared intensity interference parameter in the current state is calculated based on the current color light data and the interference mapping table. The infrared intensity interference parameter is filtered out from the first infrared intensity parameter to obtain the corrected second infrared intensity parameter.

2. The proximity sensor correction method according to claim 1, characterized in that, The acquisition of the glass parameters of the screen covering the proximity sensor, the first distance from the screen to the proximity sensor, the second distance from the glass of the proximity sensor to the photosensitive element of the proximity sensor, the sensing range of the proximity sensor mapped to the interference area of ​​the screen, and the color light data of each pixel in the interference area includes: Obtain the transmittance and reflectance parameters of the screen covering the proximity sensor; The glass parameters are calculated based on the light transmittance parameter, the reflectance parameter, and the first preset interference parameter.

3. The proximity sensor correction method according to claim 1, characterized in that, The acquisition of glass parameters of the screen covering the proximity sensor, a first distance from the screen to the proximity sensor, a second distance from the glass of the proximity sensor to the photosensitive element of the proximity sensor, the sensing range of the proximity sensor mapped to the interference area of ​​the screen, and color light data of each pixel in the interference area, further includes: Before acquiring the color light data of each pixel in the interference area, it is detected whether the under-display camera is enabled. When the under-display camera is enabled, the pixel display of the interference area is adjusted to the first pixel display when the under-display camera is in normal working condition.

4. The proximity sensor correction method according to claim 3, characterized in that, The acquisition of glass parameters of the screen covering the proximity sensor, a first distance from the screen to the proximity sensor, a second distance from the glass of the proximity sensor to the photosensitive element of the proximity sensor, the sensing range of the proximity sensor mapped to the interference area of ​​the screen, and color light data of each pixel in the interference area, further includes: When the under-display camera is turned off, the current screen display content is acquired; The second pixel is determined to be displayed in the interference area based on the distribution of the displayed content.

5. The proximity sensor correction method according to claim 4, characterized in that, The step of establishing an interference mapping table within the interference area based on the glass parameters, the first distance, the second distance, and the color light data of each pixel includes: Detect the enabled status of the under-display camera; When the under-display camera is in the enabled state, a first interference mapping table is established within the interference area based on the glass parameters, the first distance, the second distance, and the first pixel display.

6. The proximity sensor correction method according to claim 5, characterized in that, The step of establishing an interference mapping table within the interference area based on the glass parameters, the first distance, the second distance, and the color light data of each pixel further includes: Detect the enabled status of the under-display camera; When the under-display camera is off, a second interference mapping table is established within the interference area based on the glass parameters, the first distance, the second distance, and the second pixel display.

7. The proximity sensor correction method according to claim 6, characterized in that, The step of acquiring the first infrared intensity parameter of the near-field sensor in the current state, and the current color light data in the interference area, and calculating the infrared intensity interference parameter in the current state based on the current color light data and the interference mapping table, includes: When the under-display camera is in the enabled state, the first infrared intensity interference parameter in the current state is calculated based on the current color light data and the first interference mapping table. When the under-display camera is in the off state, the second infrared intensity interference parameter in the current state is calculated based on the current color light data and the second interference mapping table.

8. A near-field sensor correction 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 proximity sensor correction method as described in any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a proximity sensor correction program, which, when executed by a processor, implements the steps of the proximity sensor correction method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Calibration method and device of proximity sensor, storage medium and electronic equipment

    CN107943345A