Display compensation method and device and electronic equipment

By increasing the display refresh rate of the display device or obtaining brightness compensation values ​​for brightness compensation, the problem of bright spots caused by the infrared sensing module was solved, and the display effect of the display screen was improved.

CN121506019APending Publication Date: 2026-02-10VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511900321.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-16
Publication Date
2026-02-10

AI Technical Summary

Technical Problem

The infrared light emitted by the infrared sensor module causes noticeable bright spots on the display screen, affecting the screen display effect.

Method used

By increasing the display refresh rate of the display device or obtaining the brightness compensation value during the compensation period, the brightness of the pixels in the infrared irradiation area is compensated to reduce the pixel brightness offset caused by infrared light and avoid display bright spots.

Benefits of technology

This effectively avoids the formation of obvious bright spots on the display screen by infrared light, thus improving the display effect of the screen.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121506019A_ABST
    Figure CN121506019A_ABST
Patent Text Reader

Abstract

The invention discloses a display compensation method and device and electronic equipment, and belongs to the technical field of electronic equipment. The display compensation method comprises the following steps: increasing the display refresh rate of the display device when the infrared sensing module emits infrared light; or brightness compensation values corresponding to the N refresh cycles in the compensation time period are obtained, and the brightness compensation values are used for enabling the offset of the brightness mean value of the infrared irradiation area in the image frame to be smaller than the offset threshold value; according to the brightness compensation values corresponding to the N refresh cycles, brightness compensation is carried out on target pixels in an infrared irradiation area in the image frame of the N refresh cycles in the compensation time period, the starting moment of the compensation time period is the moment when the infrared sensing module starts to emit infrared light, and the starting moment of the compensation time period is the moment when the infrared sensing module starts to emit infrared light. The cut-off time of the compensation time period is the recovery time after the pixel driving circuit is influenced by the infrared light.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of electronics, and particularly relates to a display compensation method and device and electronic equipment. BACKGROUND

[0002] With the development of full-screen electronic devices, an infrared sensing module has become one of the indispensable components in electronic devices. The infrared sensing module is used to provide infrared light emission and receiving functions to support functions such as screen lighting based on infrared light, screen-off anti-mis-touch, and the like.

[0003] Currently, the infrared sensing module is usually arranged below the display screen. Therefore, it is necessary to emit infrared light, especially infrared light with a wavelength of 940 nanometers (nm), through the display screen. However, the thermal radiation effect of the infrared light can cause obvious display bright spots on the display screen when the infrared light irradiates the bright display screen, thereby affecting the screen display effect. SUMMARY

[0004] The purpose of the embodiments of the present application is to provide a display compensation method, device and electronic equipment, which can solve the problem that the current infrared sensing module can cause poor display effect of the display screen.

[0005] In a first aspect, the embodiments of the present application provide a display compensation method applied to a display device, wherein the display device includes an infrared sensing module and a pixel driving circuit, and the pixel driving circuit is used to drive the display device to display an image frame in a plurality of refresh cycles; and the method includes: increasing a display refresh rate of the display device during the infrared sensing module emits infrared light; or, obtaining brightness compensation values corresponding to N refresh cycles in a compensation period, respectively, wherein the brightness compensation values are used to make a shift amount of a mean brightness of an infrared irradiation area in the image frame less than a shift threshold value; performing brightness compensation on target pixels of the infrared irradiation area in the image frame in the N refresh cycles in the compensation period according to the brightness compensation values corresponding to the N refresh cycles, respectively, wherein a starting time of the compensation period is a time when the infrared sensing module starts to emit infrared light, and an ending time of the compensation period is a recovery time of the pixel driving circuit after being affected by the infrared light.

[0006] In a second aspect, the embodiments of the present application provide a display compensation device applied to a display device, wherein the display device includes an infrared sensing module and a pixel driving circuit, and the pixel driving circuit is used to drive the display device to display an image frame in a plurality of refresh cycles; and the device includes: an increasing module configured to increase a display refresh rate of the display device during the infrared sensing module emits infrared light; or, The acquisition module is used to acquire the brightness compensation values ​​corresponding to the N refresh cycles within the compensation period, and the brightness compensation values ​​are used to make the offset of the average brightness of the infrared illumination area in the image frame less than the offset threshold. The compensation module is used to perform brightness compensation on the target pixels in the infrared irradiated area of ​​the image frame in the N refresh cycles within the compensation period according to the brightness compensation values ​​corresponding to the N refresh cycles respectively. The start time of the compensation period is the moment when the infrared sensing module starts emitting infrared light, and the end time of the compensation period is the recovery time of the pixel driving circuit after being affected by the infrared light.

[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0011] In this embodiment, during the infrared light emission of the infrared sensing module, the display refresh rate of the display device can be increased to reduce the duration of a single refresh cycle, thereby reducing the pixel brightness shift caused by infrared light within a single refresh cycle. This prevents the infrared light from forming obvious bright spots on the display screen and improves the display effect. Furthermore, during the infrared light emission of the infrared sensing module, brightness compensation values ​​corresponding to N refresh cycles within the compensation period can be obtained. Based on these values, brightness compensation is applied to the target pixels in the infrared-illuminated areas of the image frames within the N refresh cycles of the compensation period. This ensures that after the infrared sensing module emits infrared light, the average brightness shift of the infrared-illuminated area in each of the N image frames affected by the infrared light in the pixel driving circuit is less than the shift threshold. This reduces the pixel brightness shift caused by infrared light within a single refresh cycle, preventing the infrared light from forming obvious bright spots on the display screen and improving the display effect. Attached Figure Description

[0012] Figure 1 This is a schematic diagram illustrating the effect of infrared light on pixel driving circuits in related technologies. Figure 2 This is a schematic diagram illustrating the change in pixel display brightness under the influence of infrared light in related technologies; Figure 3 This is a flowchart of a display compensation method provided in an embodiment of this application; Figure 4 This is a schematic diagram illustrating the display brightness variation of a pixel according to an embodiment of this application; Figure 5 This is another schematic diagram of pixel display brightness variation provided in an embodiment of this application; Figure 6 This is a flowchart of another display compensation method provided in an embodiment of this application; Figure 7 This is a block diagram of a display compensation device provided in an embodiment of this application; Figure 8 This is a block diagram of an electronic device provided in an embodiment of this application; Figure 9 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0013] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0014] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0015] The display compensation method, apparatus, and electronic device provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.

[0016] With the development of full-screen displays in electronic devices, infrared sensing modules have become an indispensable component. Infrared sensing modules provide the ability to emit and receive infrared light, supporting functions such as screen activation, screen off, and accidental touch prevention based on infrared light.

[0017] Current infrared sensor modules are typically located below the display screen. Therefore, they need to emit infrared light, especially light with a wavelength of 940 nanometers (nm), through the display screen. However, the thermal radiation of infrared light can cause noticeable bright spots on the screen when it illuminates a lit display, affecting the display quality.

[0018] Specifically, the display device includes a display panel and an infrared sensing module. The display panel includes multiple light-emitting elements and multiple pixel driving circuits connected to each of the multiple light-emitting elements. The multiple pixel driving circuits are used to drive their connected light-emitting elements to emit light in multiple refresh cycles, so that the display device can display image frames. Figure 1 As shown, the infrared sensing module 11 is located below the display panel, and the infrared light emitted by it passes through the display panel and is emitted outward. When the infrared light shines on the display panel, the thermal radiation effect of the infrared light, also known as the thermal effect, will cause a change in the turn-on threshold voltage Vt of the transistor in the pixel driving circuit 12.

[0019] However, the turn-on threshold voltage Vt of the driving transistor T1 in the pixel driving circuit 11 directly affects the magnitude of the driving current Id of the light-emitting element 12, thereby affecting the display brightness of the light-emitting element 12, i.e., the brightness of the pixels in the image frame. Therefore, when infrared light shines on the display panel, the thermal radiation effect of the infrared light will affect the magnitude of the turn-on threshold voltage Vt of the driving transistor T1, which in turn affects the magnitude of the driving current Id of the light-emitting element 12, thus affecting the brightness of the pixels in the image frame.

[0020] The driving current Id of the light-emitting element satisfies: Id = β(ELVDD - (DATA - |Vt1|) - |Vt2|)². β represents the conversion coefficient, usually a constant. ELVDD represents the power supply voltage connected to the input terminal of the driving transistor. DATA represents the data voltage, which to some extent determines the brightness of the light-emitting element, i.e., the pixel brightness. Vt1 represents the turn-on threshold voltage of the driving transistor in the pixel driving circuit when infrared light does not illuminate it; it is the calibrated value of the driving transistor and is used to influence the data voltage DATA written to the pixel driving circuit. Vt2 represents the change in the turn-on threshold voltage of the driving transistor during the process of the pixel driving circuit being affected by infrared light.

[0021] As can be seen from the expression for the driving current Id, it is negatively correlated with the turn-on threshold voltage Vt of the driving transistor. That is, after being affected by infrared light, the turn-on threshold voltage Vt2 of the driving transistor decreases, and the driving current Id increases. Conversely, the driving current Id of the light-emitting element is positively correlated with the display brightness of the corresponding pixel. Therefore, a decrease in the turn-on threshold voltage Vt of the driving transistor increases the display brightness of the pixel; conversely, an increase in the turn-on threshold voltage Vt decreases the display brightness of the pixel.

[0022] Tests have shown that, as Figure 2 As shown, when infrared light illuminates the transistor, the transistor's turn-on threshold voltage Vt decreases as the irradiation time increases. After the infrared light stops irradiating the transistor, the turn-on threshold voltage Vt gradually increases until it returns to the normal turn-on threshold voltage Vt. Correspondingly, when infrared light illuminates the pixel driving circuit, i.e., when the infrared light begins irradiating the pixel driving circuit, the pixel's display brightness R within a single refresh cycle T increases as the turn-on threshold voltage Vt of the driving transistor decreases; after the infrared light stops irradiating the pixel driving circuit, the pixel's display brightness R within a single refresh cycle decreases as the turn-on threshold voltage Vt of the driving transistor increases until the turn-on threshold voltage Vt of the driving transistor returns to normal, and the pixel's display brightness R within a single refresh cycle tends to be constant.

[0023] Obviously, when a display device is illuminated by infrared light, the brightness of the pixels illuminated by the infrared light on the display screen will change significantly, forming obvious bright spots on the display screen and affecting the screen display effect.

[0024] Please refer to Figure 3This document illustrates a flowchart of a display compensation method provided in an embodiment of this application. The display compensation method can address the aforementioned problems to a certain extent. This display compensation method is applied to a display device. The display device includes an infrared sensing module and a pixel driving circuit, the pixel driving circuit being used to drive the display device to display image frames in multiple refresh cycles. Optionally, the display device also includes a processor. The display compensation method provided in this embodiment can be executed by a processor. Figure 3 As shown, the compensation method includes steps 311 or 321 to 322.

[0025] Step 311: Increase the display refresh rate of the display device during the infrared light emission of the infrared sensing module.

[0026] Optionally, the processor may increase the display refresh rate of the display device to a second refresh rate during the period when the infrared sensing module emits infrared light. In some embodiments, the start time of increasing the display refresh rate may be earlier than, equal to, or later than the time when the infrared sensing module begins emitting infrared light. Similarly, the end time of increasing the display refresh rate may be earlier than, equal to, or later than the time when the infrared sensing module stops emitting infrared light. That is, the duration of the processor increasing the display refresh rate may be greater than, equal to, or less than the duration of the infrared light emission by the infrared sensing module. For example, the second refresh rate may be at least equal to 120Hz. For example, the second refresh rate may be 120Hz or 150Hz, etc.

[0027] In some embodiments, when the infrared light emitted by the infrared sensing module illuminates the pixel driving circuit, the turn-on threshold voltage of the transistors in the pixel driving circuit is affected, thus impacting the display effect. Furthermore, after the infrared light emitted by the infrared sensing module stops illuminating the pixel driving circuit, the turn-on threshold voltage of the transistors in the pixel driving circuit cannot recover immediately and requires a certain recovery time. Therefore, optionally, the processor can increase the display refresh rate of the display device during the period when the infrared sensing module emits infrared light until the pixel driving circuit recovers after being affected by the infrared light.

[0028] In some embodiments, for a display device, after the infrared light emitted by the infrared sensing module stops illuminating the pixel driving circuit, the recovery time of the turn-on threshold voltage of the transistor in the pixel driving circuit is typically fixed. Therefore, the recovery time of the transistor from the moment the infrared light stops illuminating until the turn-on threshold voltage recovers to its normal turn-on threshold voltage can be measured in advance and stored. Accordingly, the processor can increase the display refresh rate of the display device during the period when the infrared sensing module emits infrared light, and restore the display refresh rate of the display device after the infrared sensing module stops emitting infrared light, following the recovery time.

[0029] In other embodiments, the duration of a single infrared light emission by the infrared sensing module is typically fixed for the display device. Therefore, the emission duration of a single infrared light emission by the infrared sensing module, and the recovery time of the transistor from the moment the infrared light stops illuminating until the turn-on threshold voltage returns to its normal value, can be pre-measured. A compensation duration consisting of the emission duration and the recovery duration can then be determined and stored. Accordingly, the processor can increase the display refresh rate of the display device while the infrared sensing module is emitting infrared light, and restore the display refresh rate after the compensation duration.

[0030] In some embodiments, the display device may also include a brightness sensor to detect the brightness value of an infrared-illuminated area in an image frame. The infrared-illuminated area in the image frame refers to the image area corresponding to the pixel area illuminated by infrared light on the display screen within the image frame. As mentioned earlier, after the pixel driving circuit recovers from being affected by infrared light, the display brightness of the pixels tends to be constant. Therefore, the processor can monitor the brightness value of the infrared-illuminated area using the brightness sensor to determine that the pixel driving circuit has recovered from being affected by infrared light if the fluctuation in the brightness value of the infrared-illuminated area within a single cycle is less than a fluctuation threshold. Accordingly, the processor can increase the display refresh rate of the display device when the infrared sensing module emits infrared light, and monitor the brightness value of the infrared-illuminated area using the brightness sensor until the fluctuation in the brightness value of the infrared-illuminated area within a single cycle is less than a fluctuation threshold, thus determining that the pixel driving circuit has recovered from being affected by infrared light and restoring the display refresh rate of the display device.

[0031] In the embodiments of this application, such as Figure 4 As shown, by increasing the display refresh rate of the display device, the duration of a single refresh cycle T is shortened, thereby reducing the change in pixel brightness R within a single refresh cycle T to a level so small that it is imperceptible to the human eye. This effectively prevents infrared light from forming obvious bright spots on the display screen and improves the display effect of the screen.

[0032] Optionally, the infrared sensing module can send a transmission interrupt signal to the processor before emitting infrared light. This transmission interrupt signal is a signal sent by the infrared sensing module before emitting infrared light, indicating the timing of infrared light emission. Accordingly, the processor can receive the transmission interrupt signal sent by the infrared sensing module, determine the infrared light emission timing of the infrared sensing module based on the transmission interrupt signal, and thus improve the display refresh rate of the display device when the infrared sensing module emits infrared light. Further optionally, the infrared sensing module typically sends a transmission interrupt signal to the processor at a fixed time before emitting infrared light. Upon receiving the transmission interrupt signal, the processor can determine the infrared light emission timing of the infrared sensing module as a fixed time after the current time. For example, the infrared sensing module typically sends a transmission interrupt signal to the processor 5 seconds before emitting infrared light. The processor determines the infrared light emission timing of the infrared sensing module as the time 5 seconds after receiving the transmission interrupt signal.

[0033] In some embodiments, step 311, which involves increasing the display refresh rate of the display device during the period when the infrared sensing module emits infrared light, may further include: increasing the display refresh rate of the display device starting from at least one refresh cycle before the infrared sensing module emits infrared light.

[0034] Optionally, the infrared sensing module may send a transmission interrupt signal to the processor at least one refresh cycle before emitting infrared light. This transmission interrupt signal indicates the timing of infrared light emission. Accordingly, the processor may increase the display refresh rate of the display device upon receiving the transmission interrupt signal from the infrared sensing module.

[0035] Optionally, the processor can further increase the display refresh rate of the display device upon receiving a transmission interrupt signal from the infrared sensing module until the pixel driving circuit recovers after being affected by infrared light. Alternatively, the processor can also increase the display refresh rate of the display device upon receiving a transmission interrupt signal from the infrared sensing module until the pixel driving circuit recovers for at least one refresh cycle after being affected by infrared light. Since the compensation period, which starts at the moment the infrared sensing module emits infrared light and ends at the moment the pixel driving circuit recovers after being affected by infrared light, is typically short, increasing the display refresh rate of the display device before the compensation period and maintaining the increased refresh rate for a certain duration after the compensation phase allows the increased refresh rate to be maintained for a longer period. This avoids screen flickering and other problems caused by short-term refresh rate changes, thus preventing the display from affecting the screen display effect.

[0036] Step 321: During the period when the infrared sensing module emits infrared light, obtain the brightness compensation values ​​corresponding to N refresh cycles within the compensation period.

[0037] The compensation period begins when the infrared sensing module starts emitting infrared light and ends when the pixel driving circuit recovers from the infrared light's influence. The brightness compensation value ensures that the average brightness deviation of the infrared-illuminated area in the image frame is less than a threshold value, thus offsetting the effect of infrared light on the transistor's turn-on threshold voltage in the pixel driving circuit. The infrared-illuminated area in the image frame refers to the corresponding image area in the display screen corresponding to the pixel area illuminated by infrared light.

[0038] The offset of the average brightness of the infrared-illuminated area refers to the deviation of the average display brightness of all pixels in that infrared-illuminated area from the normal average value. The normal average value refers to the average brightness of the infrared-illuminated area when the pixel driving circuit is not affected by infrared light.

[0039] Optionally, since the effect of infrared light on the turn-on threshold voltage of transistors in the pixel driving circuit of a single display device is usually fixed, and the effect of infrared light on the turn-on threshold voltage of transistors differs in different refresh cycles, the brightness compensation value corresponding to each refresh cycle can be determined in advance based on the brightness data of each refresh cycle during the compensation period when the infrared sensing module emits infrared light. Furthermore, the brightness compensation value corresponding to each refresh cycle during the compensation period is stored so that it can be read when the infrared sensing module of the display device emits infrared light.

[0040] Step 322: Perform brightness compensation on the target pixels in the infrared irradiated area of ​​the image frame in the N refresh cycles within the compensation period, according to the brightness compensation values ​​corresponding to the N refresh cycles.

[0041] In this embodiment, the processor can perform brightness compensation on the target pixels in the infrared-illuminated area of ​​the image frame in the first refresh cycle after the infrared sensing module emits infrared light, based on the brightness compensation value corresponding to the first refresh cycle within the compensation period. Then, based on the brightness compensation value corresponding to the second refresh cycle within the compensation period, the processor performs brightness compensation on the target pixels in the infrared-illuminated area of ​​the image frame in the second refresh cycle after the infrared sensing module emits infrared light. This process continues until the brightness compensation value corresponding to the Nth refresh cycle within the compensation period is used to perform brightness compensation on the target pixels in the infrared-illuminated area of ​​the image frame in the Nth refresh cycle after the infrared sensing module emits infrared light. This ensures that the average brightness offset of the infrared-illuminated area in each of the N image frames affected by the infrared light after the infrared sensing module emits infrared light is less than the offset threshold. This reduces the pixel brightness offset caused by infrared light within a single refresh cycle, preventing the formation of obvious bright spots on the display screen and improving the display effect.

[0042] In this context, the target pixel in the infrared illumination area of ​​the image frame can refer to each pixel in the infrared illumination area; or it can refer to a portion of the pixels in the infrared illumination area, as long as the display effect is achieved without forming a visible bright spot.

[0043] Optionally, the brightness compensation values ​​corresponding to the N refresh cycles in the compensation phase can be [Rz-Rth, Rz+Rth]. Rz represents the median brightness data of a single pixel illuminated by infrared light during the refresh cycle; Rth represents the offset threshold. Specifically, for example, the brightness compensation values ​​corresponding to the N refresh cycles in the compensation phase are the median brightness data for that refresh cycle. Then, as... Figure 5 As shown, by performing brightness compensation on each pixel in the infrared-illuminated area of ​​the image frame in the Nth refresh cycle after the infrared sensing module emits infrared light, the average display brightness of each pixel in the infrared-illuminated area of ​​the image frame in each refresh cycle can be made approximately equal to the normal brightness value. This normal brightness value refers to the display brightness of the pixels in the infrared-illuminated area of ​​the image frame in that refresh cycle when not affected by infrared light. This ensures that in the N image frames where the pixel driving circuit is affected by infrared light after the infrared sensing module emits infrared light, the offset of the average brightness of the infrared-illuminated area in each image frame is less than the offset threshold, thus reducing the pixel brightness offset caused by infrared light within a single refresh cycle.

[0044] Optionally, the infrared sensing module can send a transmission interrupt signal to the processor before emitting infrared light. This transmission interrupt signal indicates the timing of infrared light emission. Accordingly, the processor can receive the transmission interrupt signal from the infrared sensing module, determine the timing of infrared light emission based on the signal, and then, when the infrared sensing module emits infrared light, acquire the brightness compensation values ​​corresponding to N refresh cycles within the compensation period. Based on these values, the processor performs brightness compensation on the target pixels in the infrared-illuminated area of ​​the image frame within the N refresh cycles of the compensation period.

[0045] In summary, the display compensation method provided in this application can reduce the duration of a single refresh cycle by increasing the display refresh rate of the display device during the infrared light emission of the infrared sensing module. This reduces the pixel brightness shift caused by infrared light within a single refresh cycle, preventing the formation of obvious bright spots on the display screen and improving the display effect. Furthermore, during the infrared light emission of the infrared sensing module, brightness compensation values ​​corresponding to N refresh cycles within the compensation period can be obtained. These values ​​are then used to compensate the brightness of target pixels in the infrared-illuminated areas of the image frames within the N refresh cycles of the compensation period. This ensures that after the infrared sensing module emits infrared light, the average brightness shift of the infrared-illuminated area in each of the N image frames affected by the infrared light in the pixel driving circuit is less than a threshold value. This reduces the pixel brightness shift caused by infrared light within a single refresh cycle, preventing the formation of obvious bright spots on the display screen and improving the display effect.

[0046] In some embodiments of this application, as described above, when the transistor is irradiated with infrared light, the transistor's turn-on threshold voltage Vt decreases as the irradiation time increases. After the infrared light stops irradiating the transistor, the transistor's turn-on threshold voltage Vt gradually increases until it returns to the normal turn-on threshold voltage Vt. Accordingly, the N refresh cycles in the compensation phase can consist of N1 first refresh cycles and N2 second refresh cycles following the first refresh cycles.

[0047] In the first refresh cycle, infrared light illuminates the pixel driving circuit, causing the turn-on threshold voltage Vt of the driving transistor in the pixel driving circuit to decrease, and the display brightness R of the pixel increases within a single refresh cycle T. In the second refresh cycle, infrared light stops illuminating the pixel driving circuit, and the turn-on threshold voltage Vt of the driving transistor in the pixel driving circuit increases until the turn-on threshold voltage Vt of the driving transistor returns to normal, causing the display brightness R of the pixel to decrease within a single refresh cycle until the display brightness R of the pixel tends to be constant within a single refresh cycle.

[0048] Optionally, the processor can pre-determine N1 first refresh cycles and N2 second refresh cycles during the compensation phase after the infrared sensing module emits infrared light; then determine the brightness compensation value for each first refresh cycle and the brightness compensation value for each second refresh cycle, thus obtaining the brightness compensation values ​​corresponding to the N refresh cycles in the compensation phase. Specifically, the display compensation method may further include steps S110 to S140.

[0049] In step S110, the brightness data of the pixels illuminated by infrared light in each refresh cycle during the target time period after the infrared sensing module emits infrared light is acquired. The target time period includes at least the compensation time period.

[0050] It should be noted that the brightness of a pixel illuminated by infrared light varies within a single refresh cycle. Therefore, multiple brightness levels of a pixel illuminated by infrared light can be collected within a single refresh cycle, yielding brightness data.

[0051] In some embodiments, the number of pixels illuminated by the infrared light emitted by the infrared sensing module may be multiple. The processor can collect the brightness data of any pixel illuminated by the infrared light in each refresh cycle within the target time period after the infrared sensing module emits the infrared light.

[0052] In other embodiments, when the infrared light emitted by the infrared sensing module illuminates multiple pixels, the brightness variations of these pixels may differ due to their different positions. Therefore, the processor can collect the brightness data of each pixel illuminated by the infrared light in each refresh cycle within the target time period after the infrared sensing module emits the infrared light.

[0053] In step S120, based on the brightness data, N1 first refresh cycles in which the brightness increase offset is greater than a first offset threshold and N2 second refresh cycles in which the brightness decrease offset is greater than a second offset threshold are determined.

[0054] In some embodiments, when the processor collects brightness data of any pixel illuminated by infrared light, for each refresh cycle within a target time period, based on the brightness data collected within that refresh cycle, a brightness increase offset can be determined, and it can be determined whether the offset is greater than a first offset threshold. If the offset is greater than the first offset threshold, the refresh cycle is determined as a first refresh cycle. Based on the brightness data collected within that refresh cycle, a brightness decrease offset can be determined, and it can be determined whether the offset is greater than a second offset threshold. If the offset is greater than the second offset threshold, the refresh cycle is determined as a second refresh cycle. Here, the brightness increase offset refers to the difference between the last collected brightness and the first collected brightness when the last collected brightness within the refresh cycle is greater than the first collected brightness. The brightness decrease offset refers to the difference between the first collected brightness and the last collected brightness when the last collected brightness within the refresh cycle is less than the first collected brightness.

[0055] In other embodiments, when the processor collects brightness data for each pixel illuminated by infrared light, for each refresh cycle within the target time period, based on the brightness data collected from any pixel within that refresh cycle, the processor determines the offset of brightness increase, and determines whether the offset is greater than a first offset threshold. If the offset is greater than the first offset threshold, the refresh cycle is determined as the first refresh cycle. Furthermore, the processor also determines the offset of brightness decrease based on the brightness data collected within that refresh cycle, and determines whether the offset is greater than a second offset threshold. If the offset is greater than the second offset threshold, the refresh cycle is determined as the second refresh cycle.

[0056] In step S130, a brightness compensation value for each first refresh cycle is determined based on the brightness data of each first refresh cycle. The brightness compensation value for the first refresh cycle is used to reduce the brightness of the pixels.

[0057] Optionally, the processor can calculate the median brightness of each first refresh cycle based on the brightness data of each first refresh cycle to obtain the brightness compensation value corresponding to each first refresh cycle. The brightness compensation value corresponding to the first refresh cycle lies within a first compensation range [Rz1-Rth, Rz1+Rth]. The first compensation range [Rz1-Rth, Rz1+Rth] is centered on the median brightness Rz1, with a half-width of the offset threshold Rth. Optionally, the brightness compensation value corresponding to the first refresh cycle can be any value within the first compensation range [Rz1-Rth, Rz1+Rth]. Specifically, for example, the brightness compensation value corresponding to the first refresh cycle can be the median of the first compensation range, i.e., the median brightness. Alternatively, the brightness compensation value corresponding to the first refresh cycle can be the minimum value of the first compensation range.

[0058] In step S140, a brightness compensation value for each second refresh cycle is determined based on the brightness data of each second refresh cycle. The brightness compensation value for the second refresh cycle is used to increase the brightness of the pixels.

[0059] Optionally, the processor can calculate the median brightness of the second brightness for each second refresh cycle based on the brightness data of each second refresh cycle, thereby obtaining the brightness compensation value corresponding to each second refresh cycle. The brightness compensation value corresponding to the second refresh cycle lies within the second compensation range [Rz2-Rth, Rz2+Rth], which is centered on the median brightness Rz2, with a half-width equal to the offset threshold Rth. Optionally, the brightness compensation value corresponding to the second refresh cycle can be any value within the second compensation range [Rz2-Rth, Rz2+Rth]. Specifically, for example, the brightness compensation value corresponding to the second refresh cycle can be the median of the second compensation range, i.e., the median brightness. Alternatively, the brightness compensation value corresponding to the second refresh cycle can be the minimum value of the second compensation range.

[0060] Optionally, step 322, which involves compensating the brightness of each pixel in the infrared-illuminated area of ​​the image frame within the compensation period according to the brightness compensation values ​​corresponding to the N refresh cycles, may include: reducing the brightness of the target pixel in the infrared-illuminated area of ​​the image frame within the first N1 refresh cycles according to the brightness compensation values ​​corresponding to the N1 first refresh cycles; and increasing the brightness of the target pixel in the infrared-illuminated area of ​​the image frame within the compensation period according to the brightness compensation values ​​corresponding to the N2 second refresh cycles.

[0061] Specifically, optionally, the processor can reduce the brightness value of each pixel in the infrared-illuminated area of ​​the image frame in the first refresh cycle after the infrared sensing module emits infrared light by the brightness compensation value corresponding to the first refresh cycle within the compensation period; then, according to the brightness compensation value corresponding to the second refresh cycle within the compensation period, the processor can reduce the brightness value of each pixel in the infrared-illuminated area of ​​the image frame in the second refresh cycle after the infrared sensing module emits infrared light by the brightness compensation value; and so on, according to the brightness compensation value corresponding to the N1st refresh cycle within the compensation period, the processor can reduce the brightness value of each pixel in the infrared-illuminated area of ​​the image frame in the N1st refresh cycle after the infrared sensing module emits infrared light by the brightness compensation value.

[0062] Subsequently, according to the brightness compensation value corresponding to the first second refresh cycle within the compensation period, the brightness value of each pixel in the infrared-illuminated area of ​​the image frame in the (N1+1)th refresh cycle after the infrared sensor module emits infrared light is increased by the brightness compensation value. Then, according to the brightness compensation value corresponding to the second second refresh cycle within the compensation period, the brightness value of each pixel in the infrared-illuminated area of ​​the image frame in the (N1+2)th refresh cycle after the infrared sensor module emits infrared light is increased by the brightness compensation value. And so on, according to the brightness compensation value corresponding to the N2nd second refresh cycle within the compensation period, the brightness value of each pixel in the infrared-illuminated area of ​​the image frame in the (N1+N2)th refresh cycle after the infrared sensor module emits infrared light is increased by the brightness compensation value. This ensures that the offset of the average brightness of the infrared-illuminated area in each of the N image frames affected by the infrared light after the infrared sensor module emits infrared light is less than the offset threshold, thereby reducing the pixel brightness offset caused by infrared light within a single refresh cycle, preventing the infrared light from forming obvious display bright spots on the display screen, and improving the display effect of the display screen.

[0063] In other embodiments of this application, the brightness compensation value determined by the processor for each first refresh cycle can be a negative number to indicate that the brightness of the pixel is reduced. Similarly, the brightness compensation value determined by the processor for each second refresh cycle can be a positive number to indicate that the brightness of the pixel is increased. Optionally, step 322, which compensates the brightness of the target pixel in the infrared-illuminated area of ​​the image frame in the N refresh cycles within the compensation period according to the brightness compensation values ​​corresponding to the N refresh cycles, may include: updating the brightness value of the target pixel in the infrared-illuminated area of ​​the image frame in the N refresh cycles within the compensation period to the sum of the brightness value and the brightness compensation value according to the brightness compensation values ​​corresponding to the N refresh cycles.

[0064] Optionally, the processor can update the brightness value of the target pixel in the infrared-illuminated area in the image frame of the first refresh cycle after the infrared sensing module emits infrared light to the sum of the brightness value and the brightness compensation value, based on the brightness compensation value corresponding to the first refresh cycle within the compensation period. Then, based on the brightness compensation value corresponding to the second refresh cycle within the compensation period, the processor updates the brightness value of the target pixel in the infrared-illuminated area in the image frame of the second refresh cycle after the infrared sensing module emits infrared light to the sum of the brightness value and the brightness compensation value; and so on, until based on the Nth refresh cycle within the compensation period... The brightness compensation value corresponding to the cycle updates the brightness value of the target pixel in the infrared irradiated area in the image frame of the Nth refresh cycle after the infrared sensing module emits infrared light to the sum of the brightness value and the brightness compensation value. This ensures that the offset of the average brightness of the infrared irradiated area in each of the N image frames affected by the infrared light after the infrared sensing module emits infrared light is less than the offset threshold. This reduces the pixel brightness offset caused by infrared light in a single refresh cycle, avoids the formation of obvious display bright spots on the display screen, and improves the display effect of the display screen.

[0065] In some embodiments of this application, such as Figure 6 Prior to step 321, the display compensation method further includes: step 610, reducing the display refresh rate of the display device to a first refresh rate during the period when the infrared sensing module emits infrared light.

[0066] Optionally, the processor can reduce the display refresh rate of the display device to a first refresh rate while the infrared sensing module is emitting infrared light. For example, the first refresh rate can be less than 90Hz. For instance, the first refresh rate can be 60Hz or 70Hz, etc.

[0067] Correspondingly, step 321, which involves obtaining the brightness compensation values ​​corresponding to the N refresh cycles within the compensation period, may include: obtaining the brightness compensation values ​​corresponding to the N refresh cycles within the compensation period at the first refresh rate.

[0068] Furthermore, after performing brightness compensation on the target pixels in the infrared irradiated area of ​​the image frame in the N refresh cycles during the compensation period according to the brightness compensation values ​​corresponding to the N refresh cycles in step 322, the display compensation method further includes: step 620, restoring the display refresh rate of the display device after the compensation period.

[0069] It should be noted that the process of obtaining the brightness compensation values ​​corresponding to N refresh cycles within the compensation period under the first refresh rate can refer to the relevant description in step 321. In determining the corresponding brightness compensation values, the refresh cycle is simply determined to be the refresh cycle matching the first refresh rate; this embodiment will not elaborate further. Since the lower the display refresh rate of the display device, the longer the duration of a single refresh cycle, the greater the pixel brightness offset caused by infrared light within a single refresh cycle. Therefore, the brightness compensation value for a single refresh cycle can be determined more accurately, thereby achieving more precise brightness compensation for each pixel in the infrared-illuminated area of ​​the image frame within the N refresh cycles of the compensation phase after the infrared sensing module emits infrared light, further ensuring the display effect of the display screen.

[0070] In summary, the display compensation method provided in this application can reduce the duration of a single refresh cycle by increasing the display refresh rate of the display device during the infrared light emission of the infrared sensing module. This reduces the pixel brightness shift caused by infrared light within a single refresh cycle, preventing the formation of obvious bright spots on the display screen and improving the display effect. Furthermore, during the infrared light emission of the infrared sensing module, brightness compensation values ​​corresponding to N refresh cycles within the compensation period can be obtained. These values ​​are then used to compensate the brightness of each pixel in the infrared-illuminated area of ​​the image frames within the N refresh cycles of the compensation period. This ensures that after the infrared sensing module emits infrared light, the average brightness shift of the infrared-illuminated area in each of the N image frames affected by the infrared light in the pixel driving circuit is less than an offset threshold. This reduces the pixel brightness shift caused by infrared light within a single refresh cycle, preventing the formation of obvious bright spots on the display screen and improving the display effect.

[0071] The display compensation method provided in this application can be executed by a display compensation device. This application uses the execution of the display compensation method by a display compensation device as an example to illustrate the display compensation device provided in this application.

[0072] Please refer to Figure 7 The diagram illustrates a block diagram of a display compensation device according to an embodiment of this application. The display compensation device is used in a display device, which includes an infrared sensing module and a pixel driving circuit. The pixel driving circuit drives the display device to display image frames in multiple refresh cycles. Figure 7As shown, the display compensation device 700 includes an enhancement module 701, or the display compensation device 700 includes an acquisition module 702 and a compensation module 703.

[0073] Enhancement module 701 is used to increase the display refresh rate of the display device during the period when the infrared sensing module emits infrared light; or, The acquisition module 702 is used to acquire the brightness compensation values ​​corresponding to N refresh cycles within the compensation period. The brightness compensation values ​​are used to make the offset of the average brightness of the infrared illumination area in the image frame less than the offset threshold. The compensation module 703 is used to perform brightness compensation on the target pixels in the infrared irradiated area of ​​the image frame in the N refresh cycles within the compensation period according to the brightness compensation values ​​corresponding to the N refresh cycles. The start time of the compensation period is the moment when the infrared sensing module starts to emit infrared light, and the end time of the compensation period is the recovery time of the pixel driving circuit after being affected by the infrared light.

[0074] In this embodiment, during the infrared light emission of the infrared sensing module, the display refresh rate of the display device can be increased to reduce the duration of a single refresh cycle, thereby reducing the pixel brightness shift caused by infrared light within a single refresh cycle. This prevents the infrared light from forming obvious bright spots on the display screen and improves the display effect. Furthermore, during the infrared light emission of the infrared sensing module, brightness compensation values ​​corresponding to N refresh cycles within the compensation period can be obtained. Based on these values, brightness compensation is applied to the target pixels in the infrared-illuminated areas of the image frames within the N refresh cycles of the compensation period. This ensures that after the infrared sensing module emits infrared light, the average brightness shift of the infrared-illuminated area in each of the N image frames affected by the infrared light in the pixel driving circuit is less than the shift threshold. This reduces the pixel brightness shift caused by infrared light within a single refresh cycle, preventing the infrared light from forming obvious bright spots on the display screen and improving the display effect.

[0075] Optionally, the display compensation device 700 further includes: a reduction module for reducing the display refresh rate of the display device to a first refresh rate during the period when the infrared sensing module emits infrared light; The acquisition module 702 is also used to acquire the brightness compensation values ​​corresponding to N refresh cycles within the compensation period under the first refresh rate; The display compensation device 700 also includes a recovery module for restoring the display refresh rate of the display device after the compensation period.

[0076] Optionally, the N refresh cycles consist of N1 first refresh cycles and N2 second refresh cycles following the first refresh cycles; the display compensation device 700 further includes: The acquisition module is used to acquire the brightness data of the pixels illuminated by infrared light in each refresh cycle during the target time period after the infrared sensing module emits infrared light. The target time period includes at least the compensation period. The determination module is used to determine, based on the brightness data, N1 first refresh cycles in which the offset of brightness increase within a single refresh cycle is greater than a first offset threshold, and N2 second refresh cycles in which the offset of brightness decrease within a single refresh cycle is greater than a second offset threshold. And for determining a brightness compensation value for each first refresh cycle based on the brightness data of each first refresh cycle, the brightness compensation value of the first refresh cycle being used to reduce the brightness of the pixels; And is used to determine the brightness compensation value for each second refresh cycle based on the brightness data of each second refresh cycle, the brightness compensation value of the second refresh cycle being used to increase the brightness of the pixels.

[0077] Optionally, the determining module is further configured to calculate the median brightness of the first brightness in each first refresh cycle based on the brightness data of each first refresh cycle, thereby obtaining the brightness compensation value corresponding to each first refresh cycle. The brightness compensation value corresponding to the first refresh cycle is within the first compensation range, which is centered on the median value of the first brightness and has a half-width as the offset threshold.

[0078] Optionally, the determining module is further configured to calculate the median second brightness for each second refresh cycle based on the brightness data for each second refresh cycle, thereby obtaining the brightness compensation value corresponding to each second refresh cycle. The brightness compensation value corresponding to the second refresh cycle is within the second compensation range, which is centered on the median value of the second brightness and has a half-width as the offset threshold.

[0079] Optionally, the compensation module 703 is also used for: According to the brightness compensation values ​​corresponding to the N1 first refresh cycles, reduce the brightness of the target pixels in the infrared irradiated area in the image frames of the first N1 refresh cycles during the compensation period. Based on the brightness compensation values ​​corresponding to the N2 second refresh cycles, the brightness of the target pixels in the infrared irradiated area in the image frames of the last N2 refresh cycles during the compensation period is increased.

[0080] Optionally, the display compensation device 700 further includes: a receiving module for receiving a transmission interruption signal sent by the infrared sensing module, wherein the transmission interruption signal is a signal sent by the infrared sensing module before transmitting infrared light to indicate the time of infrared light transmission. The determination module is also used to determine the infrared light emission time of the infrared sensing module based on the transmission interruption signal.

[0081] Optionally, the boosting module is used to increase the display refresh rate of the display device from at least one refresh cycle before the infrared sensing module emits infrared light, until the pixel driving circuit recovers after being affected by the infrared light.

[0082] In summary, the display compensation device provided in this application can reduce the duration of a single refresh cycle by increasing the display refresh rate of the display device during the infrared light emission of the infrared sensing module. This reduces the pixel brightness shift caused by infrared light within a single refresh cycle, preventing the formation of obvious bright spots on the display screen and improving the display effect. Furthermore, during the infrared light emission of the infrared sensing module, brightness compensation values ​​corresponding to N refresh cycles within the compensation period can be obtained. These values ​​are then used to compensate the brightness of target pixels in the infrared-illuminated areas of the image frames within the N refresh cycles of the compensation period. This ensures that after the infrared sensing module emits infrared light, the average brightness shift of the infrared-illuminated area in each of the N image frames affected by the infrared light is less than a threshold value. This reduces the pixel brightness shift caused by infrared light within a single refresh cycle, preventing the formation of obvious bright spots on the display screen and improving the display effect.

[0083] The display compensation device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.

[0084] The display compensation device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.

[0085] The display compensation device provided in this application embodiment can achieve... Figure 3 , Figure 6 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0086] Optionally, such as Figure 8 As shown, this application embodiment also provides an electronic device 800, including a processor 801 and a memory 802. The memory 802 stores a program or instructions that can run on the processor 801. When the program or instructions are executed by the processor 801, they implement the various steps of the above-described display compensation method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0087] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0088] Figure 9 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. The electronic device 100 includes, but is not limited to, components such as: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110. The electronic device also includes a display device, which includes an infrared sensing module and a pixel driving circuit. The pixel driving circuit is used to drive the display device to display image frames in multiple refresh cycles.

[0089] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 9 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here. The processor 110 is configured to increase the display refresh rate of the display device during the infrared light emission of the infrared sensing module; or, Processor 110 is used to obtain the brightness compensation value corresponding to each of the N refresh cycles within the compensation period, wherein the brightness compensation value is used to make the offset of the average brightness of the infrared illumination area in the image frame less than the offset threshold. And for compensating the brightness of target pixels in the infrared irradiated area of ​​the image frame in the N refresh cycles within the compensation period according to the brightness compensation values ​​corresponding to the N refresh cycles respectively, wherein the start time of the compensation period is the time when the infrared sensing module starts to emit infrared light, and the end time of the compensation period is the recovery time of the pixel driving circuit after being affected by the infrared light.

[0090] In this embodiment, during the infrared light emission of the infrared sensing module, the display refresh rate of the display device can be increased to reduce the duration of a single refresh cycle, thereby reducing the pixel brightness shift caused by infrared light within a single refresh cycle. This prevents the infrared light from forming obvious bright spots on the display screen and improves the display effect. Furthermore, during the infrared light emission of the infrared sensing module, brightness compensation values ​​corresponding to N refresh cycles within the compensation period can be obtained. Based on these values, brightness compensation is applied to the target pixels in the infrared-illuminated areas of the image frames within the N refresh cycles of the compensation period. This ensures that after the infrared sensing module emits infrared light, the average brightness shift of the infrared-illuminated area in each of the N image frames affected by the infrared light in the pixel driving circuit is less than the shift threshold. This reduces the pixel brightness shift caused by infrared light within a single refresh cycle, preventing the infrared light from forming obvious bright spots on the display screen and improving the display effect.

[0091] Optionally, the processor 110 is also configured to reduce the display refresh rate of the display device to a first refresh rate during the period when the infrared sensing module emits infrared light; Obtain the brightness compensation values ​​corresponding to N refresh cycles within the compensation period under the first refresh rate; The display refresh rate of the display device is restored after the compensation period.

[0092] Optionally, the N refresh cycles consist of N1 first refresh cycles and N2 second refresh cycles following the first refresh cycles; the processor 110 is further configured to: The brightness data of the pixels illuminated by the infrared light in each refresh cycle during the target time period after the infrared sensing module emits infrared light is collected, wherein the target time period includes at least the compensation time period; Based on the brightness data, determine the N1 first refresh cycles in which the brightness increase offset is greater than a first offset threshold within a single refresh cycle, and the N2 second refresh cycles in which the brightness decrease offset is greater than a second offset threshold within a single refresh cycle. A brightness compensation value for each first refresh cycle is determined based on the brightness data for each first refresh cycle, and the brightness compensation value for the first refresh cycle is used to reduce the brightness of the pixels. A brightness compensation value for each second refresh cycle is determined based on the brightness data for each second refresh cycle, and the brightness compensation value for the second refresh cycle is used to increase the brightness of the pixels.

[0093] Optionally, the processor 110 is also used for: Based on the brightness data of each first refresh cycle, the median brightness value of each first refresh cycle is calculated to obtain the brightness compensation value corresponding to each first refresh cycle. The brightness compensation value corresponding to the first refresh cycle is within the first compensation range, which is centered on the median value of the first brightness and has a half-width as the offset threshold.

[0094] Optionally, the processor 110 is also used for: Based on the brightness data of each second refresh cycle, the median second brightness value for each second refresh cycle is calculated to obtain the brightness compensation value corresponding to each second refresh cycle. The brightness compensation value corresponding to the second refresh cycle is within the second compensation range, which is centered on the median value of the second brightness and has a half-width as the offset threshold.

[0095] Optionally, the processor 110 is also used for: According to the brightness compensation values ​​corresponding to the N1 first refresh cycles, the brightness of the target pixels in the infrared irradiated area in the image frame during the first N1 refresh cycles within the compensation period is reduced. According to the brightness compensation values ​​corresponding to the N2 second refresh cycles, the brightness of the target pixels in the infrared irradiated area in the image frame during the subsequent N2 refresh cycles within the compensation period is increased.

[0096] Optionally, the processor 110 is also used for: Receive a transmission interruption signal sent by the infrared sensing module, wherein the transmission interruption signal is a signal sent by the infrared sensing module before transmitting the infrared light, indicating the time of infrared light transmission; The infrared light emission time of the infrared sensing module is determined based on the transmission interruption signal.

[0097] Optionally, the processor 110 is further configured to: increase the display refresh rate of the display device from at least one refresh cycle before the infrared sensing module emits infrared light, until the pixel driving circuit recovers after being affected by the infrared light.

[0098] In this embodiment, during the infrared light emission of the infrared sensing module, the display refresh rate of the display device can be increased to reduce the duration of a single refresh cycle, thereby reducing the pixel brightness shift caused by infrared light within a single refresh cycle. This prevents the infrared light from forming obvious bright spots on the display screen and improves the display effect. Furthermore, during the infrared light emission of the infrared sensing module, brightness compensation values ​​corresponding to N refresh cycles within the compensation period can be obtained. Based on these values, brightness compensation is applied to the target pixels in the infrared-illuminated areas of the image frames within the N refresh cycles of the compensation period. This ensures that after the infrared sensing module emits infrared light, the average brightness shift of the infrared-illuminated area in each of the N image frames affected by the infrared light in the pixel driving circuit is less than the shift threshold. This reduces the pixel brightness shift caused by infrared light within a single refresh cycle, preventing the infrared light from forming obvious bright spots on the display screen and improving the display effect.

[0099] It should be understood that, in this embodiment, the 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 obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0100] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0101] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.

[0102] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described display compensation method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

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

[0104] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described display compensation method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0105] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0106] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described compensation method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0107] 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. Without further limitations, 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. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0108] 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 this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer 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, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0109] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application 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 this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A display compensation method, characterized in that, The method is applied to a display device, the display device including an infrared sensing module and a pixel driving circuit, the pixel driving circuit being used to drive the display device to display image frames in multiple refresh cycles; the method includes: During the infrared light emission of the infrared sensing module, the display refresh rate of the display device is increased; or, Obtain the brightness compensation values ​​corresponding to N refresh cycles within the compensation period. The brightness compensation values ​​are used to ensure that the offset of the average brightness of the infrared illumination area in the image frame is less than the offset threshold. According to the brightness compensation values ​​corresponding to the N refresh cycles, the target pixels in the infrared irradiated area of ​​the image frame in the N refresh cycles within the compensation period are brightness compensated. The start time of the compensation period is the moment when the infrared sensing module starts emitting infrared light, and the end time of the compensation period is the recovery time of the pixel driving circuit after being affected by the infrared light.

2. The method according to claim 1, characterized in that, The method further includes: During the period when the infrared sensing module emits infrared light, the display refresh rate of the display device is reduced to a first refresh rate; The step of obtaining the brightness compensation values ​​corresponding to the N refresh cycles within the compensation period includes: obtaining the brightness compensation values ​​corresponding to the N refresh cycles within the compensation period under the first refresh rate; The method further includes restoring the display refresh rate of the display device after the compensation period.

3. The method according to claim 1 or 2, characterized in that, The N refresh cycles consist of N1 first refresh cycles and N2 second refresh cycles following the first refresh cycles; the method further includes: The brightness data of the pixels illuminated by the infrared light in each refresh cycle during the target time period after the infrared sensing module emits infrared light is collected, wherein the target time period includes at least the compensation time period; Based on the brightness data, determine the N1 first refresh cycles in which the brightness increase offset is greater than a first offset threshold within a single refresh cycle, and the N2 second refresh cycles in which the brightness decrease offset is greater than a second offset threshold within a single refresh cycle. A brightness compensation value for each first refresh cycle is determined based on the brightness data for each first refresh cycle, and the brightness compensation value for the first refresh cycle is used to reduce the brightness of the pixels. A brightness compensation value for each second refresh cycle is determined based on the brightness data for each second refresh cycle, and the brightness compensation value for the second refresh cycle is used to increase the brightness of the pixels.

4. The method according to claim 3, characterized in that, The step of determining the brightness compensation value for each of the first refresh cycles based on the brightness data for each of the first refresh cycles includes: Based on the brightness data of each first refresh cycle, the median brightness value of each first refresh cycle is calculated to obtain the brightness compensation value corresponding to each first refresh cycle. The brightness compensation value corresponding to the first refresh cycle is within the first compensation range, which is centered on the median value of the first brightness and has a half-width as the offset threshold.

5. The method according to claim 3, characterized in that, The step of determining the brightness compensation value for each second refresh cycle based on the brightness data for each second refresh cycle includes: Based on the brightness data of each second refresh cycle, the median second brightness value for each second refresh cycle is calculated to obtain the brightness compensation value corresponding to each second refresh cycle. The brightness compensation value corresponding to the second refresh cycle is within the second compensation range, which is centered on the median value of the second brightness and has a half-width as the offset threshold.

6. The method according to claim 3, characterized in that, The step of performing brightness compensation on the target pixels in the infrared-illuminated area of ​​the image frame within the compensation period according to the brightness compensation values ​​corresponding to the N refresh cycles includes: According to the brightness compensation values ​​corresponding to the N1 first refresh cycles, the brightness of the target pixels in the infrared irradiated area in the image frame during the first N1 refresh cycles within the compensation period is reduced. According to the brightness compensation values ​​corresponding to the N2 second refresh cycles, the brightness of the target pixels in the infrared irradiated area in the image frame during the subsequent N2 refresh cycles within the compensation period is increased.

7. The method according to claim 1, characterized in that, The method further includes: Receive a transmission interruption signal sent by the infrared sensing module, wherein the transmission interruption signal is a signal sent by the infrared sensing module before transmitting the infrared light, indicating the time of infrared light transmission; The infrared light emission time of the infrared sensing module is determined based on the emission interruption signal.

8. The method according to claim 1, characterized in that, Increasing the display refresh rate of the display device during the infrared light emission of the infrared sensing module includes: The display refresh rate of the display device is increased starting from at least one refresh cycle before the infrared sensing module emits infrared light.

9. A display compensation device, characterized in that, Applied to a display device, the display device includes an infrared sensing module and a pixel driving circuit, the pixel driving circuit being used to drive the display device to display image frames in multiple refresh cycles; the device includes: An enhancement module is configured to increase the display refresh rate of the display device during the period when the infrared sensing module emits infrared light; or, The acquisition module is used to acquire the brightness compensation values ​​corresponding to the N refresh cycles within the compensation period, and the brightness compensation values ​​are used to make the offset of the average brightness of the infrared illumination area in the image frame less than the offset threshold. The compensation module is used to perform brightness compensation on the target pixels in the infrared irradiated area of ​​the image frame in the N refresh cycles within the compensation period according to the brightness compensation values ​​corresponding to the N refresh cycles respectively. The start time of the compensation period is the moment when the infrared sensing module starts emitting infrared light, and the end time of the compensation period is the recovery time of the pixel driving circuit after being affected by the infrared light.

10. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the display compensation method as described in any one of claims 1 to 8.