Luminance compensation method and apparatus, and electronic device

By identifying the area to be adjusted on the display screen and adjusting the brightness data based on adjacent areas, the problem of uneven brightness on the display screen is solved, overcompensation is avoided, and the display effect and user experience are improved.

WO2026066678A1PCT designated stage Publication Date: 2026-04-02BOE TECHNOLOGY GROUP CO LTD +1
View PDF 10 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-08-05
Publication Date
2026-04-02

AI Technical Summary

Technical Problem

In existing technologies, uneven brightness in displays is caused by material and manufacturing processes, leading to overcompensation and resulting in bright or dark areas that affect display quality and user experience.

Method used

By acquiring the raw brightness data of multiple pixels on the display screen, the first area to be adjusted is determined, and the brightness data of the second area adjacent to the first area is adjusted to reduce the brightness difference between the first and second areas after adjustment, thereby reducing the compensation amount and avoiding overcompensation.

Benefits of technology

It effectively reduces bright spots and dark patches on the display screen, improves the display effect, and enhances the user's viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025112766_02042026_PF_FP_ABST
    Figure CN2025112766_02042026_PF_FP_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of display. Disclosed are a luminance compensation method and apparatus, and an electronic device. The method comprises: acquiring original luminance data of a plurality of pixel points on a display screen; on the basis of the original luminance data of the plurality of pixel points, determining a first area to be adjusted on the display screen; on the basis of a second area on the display screen which is adjacent to the first area, adjusting luminance data of the first area, so as to obtain an adjusted first area, wherein the difference between the luminance data of the adjusted first area and luminance data of the second area is less than the difference between the luminance data of the unadjusted first area and the luminance data of the second area; on the basis of the adjusted first area and remaining areas on the display screen other than the first area, determining compensation data of the plurality of pixel points; and on the basis of the compensation data of each pixel point, compensating for the original luminance data of each pixel point. The present application can prevent overcompensation, thereby improving the display effect of a display screen, and thus improving the viewing experience of a user.
Need to check novelty before this filing date? Find Prior Art

Description

Brightness compensation method and device and electronic equipment

[0001] The present application claims priority from the Chinese patent application No. 202411376303.3 filed on September 29, 2024 and entitled "Brightness compensation method and device and electronic equipment", the whole content of which is incorporated herein by reference. TECHNICAL FIELD

[0002] Embodiments of the present application relate to the field of display technology, in particular to a brightness compensation method, device and electronic equipment. BACKGROUND

[0003] In the field of display technology, due to the influence of factors such as materials and manufacturing processes, the display screen may exhibit uneven brightness distribution, which is referred to as Mura phenomenon.

[0004] In related technologies, Demura technology can be used to eliminate Mura phenomenon. Demura technology is based on Demura compensation algorithm, which calculates compensation data for each pixel point on the display screen according to the brightness data of each pixel point, and performs brightness compensation through the compensation data to make the brightness of the display screen uniformly distributed.

[0005] However, since the darker or brighter the pixel point is, the greater the compensation required is, the above-mentioned technology is prone to over-compensation, which causes the display screen to exhibit bright or dark areas, resulting in poor display effect and affecting the user's viewing experience. SUMMARY

[0006] The present application provides a brightness compensation method, device and electronic equipment, which can be used to solve the problems in related technologies. The technical solution includes the following contents.

[0007] In one aspect, a brightness compensation method is provided, which includes:

[0008] obtaining original brightness data of a plurality of pixel points on a display screen;

[0009] determining a first region to be adjusted on the display screen according to the original brightness data of the plurality of pixel points;

[0010] adjusting the brightness data of the first region according to a second region adjacent to the first region on the display screen to obtain an adjusted first region, wherein the difference in brightness data between the adjusted first region and the second region is less than the difference in brightness data between the unadjusted first region and the second region;

[0011] determining compensation data for the plurality of pixel points according to the adjusted first region and a remaining region on the display screen except the first region;

[0012] Compensate the original luminance data of each pixel point based on the compensation data of each pixel point.

[0013] In a possible implementation, the first region to be adjusted on the display screen is determined according to the original luminance data of the plurality of pixel points, including:

[0014] Obtain reference luminance data, the reference luminance data being used to indicate the display luminance of the display screen;

[0015] Calculate a first ratio between the original luminance data of the plurality of pixel points and the reference luminance data;

[0016] Determine the first region according to the first ratio of the plurality of pixel points.

[0017] In a possible implementation, the reference luminance data is obtained, including:

[0018] Determine a reference region on the display screen which is not located at an edge;

[0019] Calculate an average value according to the original luminance data of each pixel point on the reference region to obtain the reference luminance data.

[0020] In a possible implementation, the first region is determined according to the first ratio of the plurality of pixel points, including:

[0021] Determine a plurality of target pixel points from the plurality of pixel points according to the first ratio of the plurality of pixel points, the first ratio of the target pixel points being greater than a first threshold or less than a second threshold, the first threshold being greater than the second threshold;

[0022] Determine the first region according to the plurality of target pixel points, the first region including a plurality of target pixel points which are continuously distributed and not less than a reference number.

[0023] In a possible implementation, the first region includes a plurality of first units, the second region includes a plurality of second units, and any first unit has an adjacent second unit.

[0024] The luminance data of the first region is adjusted according to the second region adjacent to the first region on the display screen to obtain an adjusted first region, including:

[0025] For the any first unit, the luminance data of the any first unit is adjusted according to the second unit adjacent to the any first unit to obtain an adjusted first unit;

[0026] Determine the adjusted first region according to a plurality of adjusted first units.

[0027] In a possible implementation, the first unit includes at least one first pixel point, and the second unit includes at least one second pixel point.

[0028] The adjusting the luminance data of the first unit according to the second unit adjacent to the first unit includes:

[0029] calculating an average value of the original luminance data of each first pixel point in the first unit to obtain first luminance data;

[0030] calculating an average value of the original luminance data of each second pixel point in the second unit adjacent to the first unit to obtain second luminance data;

[0031] determining the adjusted luminance data of each first pixel point in the adjusted first unit according to a second ratio between the first luminance data and the second luminance data.

[0032] In a possible implementation, the determining the adjusted luminance data of each first pixel point in the adjusted first unit according to a second ratio between the first luminance data and the second luminance data includes:

[0033] determining the adjusted luminance data of each first pixel point in the adjusted first unit according to a second ratio between the first luminance data and the second luminance data, a maximum second ratio, and a minimum second ratio;

[0034] wherein the maximum second ratio is a maximum value of the second ratios corresponding to each first unit, and the minimum second ratio is a minimum value of the second ratios corresponding to each first unit.

[0035] In a possible implementation, the first luminance data is greater than the second luminance data; and the determining the adjusted luminance data of each first pixel point in the adjusted first unit according to a second ratio between the first luminance data and the second luminance data, a maximum second ratio, and a minimum second ratio includes:

[0036] adjusting the second ratio between the first luminance data and the second luminance data to obtain a first adjustment ratio according to the maximum second ratio and the minimum second ratio;

[0037] determining the adjusted luminance data of each first pixel point in the adjusted first unit according to the first adjustment ratio.

[0038] In a possible implementation, the first luminance data is less than the second luminance data; and determining the adjusted luminance data of each first pixel in the adjusted first unit according to a second ratio between the first luminance data and the second luminance data, a maximum second ratio and a minimum second ratio, includes:

[0039] According to the maximum second ratio and the minimum second ratio, the second ratio between the first luminance data and the second luminance data is adjusted to obtain a second adjustment ratio;

[0040] According to the second adjustment ratio, the adjusted luminance data of each first pixel in the adjusted first unit is determined.

[0041] On the other hand, a luminance compensation device is provided, and the device includes:

[0042] An acquisition module is configured to acquire original luminance data of a plurality of pixel points on a display screen.

[0043] A determination module is configured to determine a first region to be adjusted on the display screen according to the original luminance data of the plurality of pixel points.

[0044] An adjustment module is configured to adjust luminance data of the first region according to a second region adjacent to the first region on the display screen, to obtain an adjusted first region, and a difference in luminance data between the adjusted first region and the second region is less than a difference in luminance data between the first region before adjustment and the second region.

[0045] The determination module is further configured to determine compensation data of the plurality of pixel points according to the adjusted first region and a remaining region on the display screen except the first region.

[0046] A compensation module is configured to compensate original luminance data of each pixel point based on the compensation data of each pixel point.

[0047] In a possible implementation, the determination module is configured to acquire reference luminance data, the reference luminance data being used to indicate display luminance of the display screen; calculate a first ratio between the original luminance data of the plurality of pixel points and the reference luminance data; and determine the first region according to the first ratio of the plurality of pixel points.

[0048] In a possible implementation, the determination module is configured to determine a reference region on the display screen that is not located at an edge; calculate an average value of original luminance data of each pixel point on the reference region to obtain reference luminance data.

[0049] In a possible implementation, the determining module is configured to: determine a plurality of target pixel points from the plurality of pixel points according to the first ratio of the plurality of pixel points, the first ratio of the target pixel points being greater than a first threshold or smaller than a second threshold, the first threshold being greater than the second threshold; and determine a first region according to the plurality of target pixel points, the first region including a plurality of target pixel points that are continuously distributed and are not less than a reference number.

[0050] In a possible implementation, the first region includes a plurality of first units, and the second region includes a plurality of second units, and any first unit is adjacent to a second unit.

[0051] The adjusting module is configured to: for the any first unit, adjust the luminance data of the any first unit according to the second unit adjacent to the any first unit, to obtain an adjusted first unit; and determine an adjusted first region according to the plurality of adjusted first units.

[0052] In a possible implementation, the first unit includes at least one first pixel point, and the second unit includes at least one second pixel point.

[0053] The adjusting module is configured to: calculate an average value of the original luminance data of each first pixel point in the any first unit, to obtain first luminance data; calculate an average value of the original luminance data of each second pixel point in the second unit adjacent to the any first unit, to obtain second luminance data; and determine the adjusted luminance data of each first pixel point in the adjusted first unit according to a second ratio between the first luminance data and the second luminance data.

[0054] In a possible implementation, the adjusting module is configured to: determine the adjusted luminance data of each first pixel point in the adjusted first unit according to the second ratio between the first luminance data and the second luminance data, a maximum second ratio, and a minimum second ratio.

[0055] The maximum second ratio is a maximum value of the second ratio corresponding to each first unit, and the minimum second ratio is a minimum value of the second ratio corresponding to each first unit.

[0056] In a possible implementation, the first luminance data is greater than the second luminance data.

[0057] The adjusting module is configured to: according to the maximum second ratio and the minimum second ratio, reduce the second ratio between the first luminance data and the second luminance data, to obtain a first adjustment ratio; and determine the adjusted luminance data of each first pixel point in the adjusted first unit according to the first adjustment ratio.

[0058] In a possible implementation, the first luminance data is less than the second luminance data.

[0059] The adjustment module is configured to: adjust the second ratio between the first luminance data and the second luminance data according to the maximum second ratio and the minimum second ratio to obtain a second adjusted ratio; and determine adjusted luminance data of each first pixel point in the adjusted first unit according to the second adjusted ratio.

[0060] In another aspect, an electronic device is provided, which includes a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to enable the electronic device to implement any of the above-mentioned luminance compensation methods.

[0061] In another aspect, a computer readable storage medium is also provided, which stores at least one computer program, the at least one computer program being loaded and executed by a processor to enable an electronic device to implement any of the above-mentioned luminance compensation methods.

[0062] In another aspect, a computer program is also provided, which is at least one, the at least one computer program being loaded and executed by a processor to enable an electronic device to implement any of the above-mentioned luminance compensation methods.

[0063] In another aspect, a computer program product is also provided, which stores at least one computer program, the at least one computer program being loaded and executed by a processor to enable an electronic device to implement any of the above-mentioned luminance compensation methods.

[0064] The technical solutions provided in the present application at least bring the following beneficial effects:

[0065] The technical solutions provided in the present application can automatically identify the first area of the display screen, adjust the luminance data of the first area according to the second area adjacent to the first area on the display screen, reduce the luminance data difference between the first area and the second area, make the adjusted luminance data of the first area closer to the luminance data of the second area, and thus reduce the compensation of each pixel point in the first area. Since the compensation of each pixel point in the first area is small, the original luminance data of the pixel point can be compensated by the compensation data of the pixel point, which can prevent overcompensation, reduce the possibility of bright spots and dark blocks on the display screen, improve the display effect, and thus improve the user's viewing experience. BRIEF DESCRIPTION OF DRAWINGS

[0066] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments description. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

[0067] FIG. 1 is a schematic diagram of a computer system of a brightness compensation method provided by an embodiment of the present application;

[0068] FIG. 2 is a flowchart of a brightness compensation method provided by an embodiment of the present application;

[0069] FIG. 3 is a schematic diagram of a brightness distribution of a display screen before brightness compensation provided by an embodiment of the present application;

[0070] FIG. 4 is a schematic diagram of a brightness distribution of a display screen after brightness compensation using a related art provided by an embodiment of the present application;

[0071] FIG. 5 is a schematic diagram of determination of a region to be adjusted provided by an embodiment of the present application;

[0072] FIG. 6 is a schematic diagram of a first region, a second region and other regions provided by an embodiment of the present application;

[0073] FIG. 7 is a schematic diagram of adjusting brightness data of the first region provided by an embodiment of the present application;

[0074] FIG. 8 is a schematic diagram of determination of compensation data provided by an embodiment of the present application;

[0075] FIG. 9 is a schematic diagram of a brightness distribution of a display screen after brightness compensation using the technology provided by an embodiment of the present application;

[0076] FIG. 10 is a schematic diagram of a structure of a brightness compensation apparatus provided by an embodiment of the present application;

[0077] FIG. 11 is a schematic diagram of a structure of a terminal device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0078] In order to make the purpose, technical solutions and advantages of the present application more clear, the following will further describe the embodiments of the present application in combination with the drawings.

[0079] It should be noted that the terms "first", "second", and the like in this application are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the terms thus used can be interchanged under appropriate circumstances, so that the embodiments of the application described herein can be implemented in an order other than that illustrated or described herein. The implementation described in the following exemplary embodiments does not represent all implementations consistent with the present application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the present application as detailed in the appended claims.

[0080] In the field of display technology, due to the influence of factors such as materials, manufacturing processes, etc., the display screen appears uneven brightness distribution phenomenon, which is called Mura (mura) phenomenon. In the related art, the Mura phenomenon can be eliminated by Demura technology. Demura technology is based on Demura compensation algorithm, calculates the compensation data of each pixel point according to the brightness data of each pixel point on the display screen, and performs brightness compensation through the compensation data, so as to make the brightness of the display screen uniformly distributed.

[0081] However, since the darker or brighter the pixel point is, the greater the compensation required is, the above-mentioned technology is prone to over-compensation phenomenon, which causes the display screen to appear bright or dark areas, resulting in poor display effect and affecting the user's viewing experience. In view of this, the embodiments of the present application propose a brightness compensation method, which can avoid the over-compensation phenomenon, make the brightness of the display screen consistent, improve the display effect, and thus improve the user's viewing experience.

[0082] As shown in FIG. 1, FIG. 1 is a computer system schematic diagram of a brightness compensation method provided by an embodiment of the present application, which includes a terminal device 101 and a server 102. Wherein, the terminal device 101 is installed and runs with a client, and the server 102 is used to provide background service for the client. The brightness compensation method provided by the embodiments of the present application can be executed by the terminal device 101.

[0083] Optionally, the terminal device 101 can be any kind of electronic device product that can interact with the user through one or more ways such as keyboard, touchpad, remote controller, voice interaction or handwriting device, etc. For example, the terminal device 101 can be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a PC (Personal Computer), a mobile phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a smart car machine, a smart television, etc.

[0084] The terminal device 101 can be used to represent one of a plurality of terminal devices, and the embodiment is only used to illustrate the terminal device 101. Those skilled in the art can know that the number of the terminal device 101 can be more or less. For example, the terminal device 101 can be only one, or the terminal device 101 can be dozens or hundreds, or more, and the number and type of the terminal device 101 are not limited in the embodiment.

[0085] Those skilled in the art can understand that the terminal device 101 is only used for illustration, and other existing or future terminal devices, such as those applicable to the present application, should also be included in the protection scope of the present application, and are hereby incorporated by reference.

[0086] As shown in FIG. 2, FIG. 2 is a flowchart of a brightness compensation method provided by the embodiment, which can be applied to the computer system. In the following, the terminal device 101 performing the method of the embodiment can also be referred to as an electronic device. The method of the embodiment includes the following steps.

[0087] In step 201, original brightness data of a plurality of pixel points on the display screen is obtained.

[0088] The electronic device includes a display screen to display text, images and other information through the display screen. In the example, the display screen can be used to display a specified image, and the brightness of each pixel point on the specified image is the same. In theory, the brightness of each pixel point on the display screen is the same, but due to the influence of manufacturing process, material and other factors, the brightness distribution on the display screen is uneven, resulting in bright spots and dark blocks on the display screen. To this end, an industrial camera can be used to capture the display screen to obtain a captured image, and the captured image is input to the electronic device, so that the electronic device can obtain the original brightness data of each pixel point from the captured image. It can be understood that since the captured image is obtained by capturing the display screen displaying the specified image, the brightness data of any pixel point in the display screen region on the captured image is the original brightness data of the corresponding pixel point on the display screen.

[0089] In step 202, a first region to be adjusted on the display screen is determined according to the original brightness data of the plurality of pixel points.

[0090] It has been mentioned above that, due to the influence of manufacturing process, material and other factors, even if the display screen displays a specified image, the brightness on the display screen is still unevenly distributed, as shown in FIG. 3. The area indicated by reference numeral 301 has uneven brightness distribution, and the area outside reference numeral 301 also has uneven brightness distribution. For this reason, in the related art, compensation data of each pixel point on the display screen can be calculated according to the brightness data of each pixel point on the display screen based on the Demura compensation algorithm, and the brightness compensation is performed through the compensation data. However, this technology is prone to over-compensation, which causes the display screen to have bright areas or dark areas. As shown in FIG. 4, the area indicated by reference numeral 401 has a dark area, and the area indicated by reference numeral 402 has a bright area. After the brightness compensation, the display screen has bright spots and dark blocks, which leads to poor display effect and reduces the viewing experience of the user.

[0091] Based on the above reasons, the embodiment of the present application first determines a first area to be adjusted on the display screen according to the original brightness data of a plurality of pixel points, so as to adjust the original brightness data of the first area. Subsequently, the compensation data is determined based on the Demura compensation algorithm through the adjusted first area, and after the brightness compensation through the compensation data, the bright spots or dark blocks can be eliminated to improve the display effect.

[0092] The determination method of the first area is not limited here. For example, the electronic device can obtain the display screen image after the brightness compensation by using the related technology, determine the bright spot area or dark block area based on the display screen image, and the bright spot area or dark block area is the first area to be adjusted. The first area is at least one, for example, the dark block area indicated by reference numeral 401 is the first area, and the bright spot area indicated by reference numeral 402 is also the first area.

[0093] In a possible implementation, step 202 includes steps 2021 to 2023 (not shown in the figure).

[0094] In step 2021, reference brightness data is obtained, which is used to indicate the display brightness of the display screen.

[0095] Due to the influence of manufacturing process, material and other factors, the display brightness of different display screens is different, so that different display screens correspond to different reference brightness data. The electronic device can obtain the reference brightness data, and the obtaining method is not limited here. For example, the display screens of the same batch correspond to the same display brightness, and the reference brightness data of each display screen of the batch can be obtained through experimental verification, and the reference brightness data is input into the electronic device. Alternatively, the electronic device can calculate the reference brightness data according to the photographed image of the display screen.

[0096] Optionally, step 2021 comprises: determining a reference region on the display screen which is not located at the edge; and calculating the average value of the original brightness data of each pixel point on the reference region to obtain the reference brightness data.

[0097] In the embodiments of the present application, the electronic device can obtain at least one of the position data or the size data of the reference region to locate the size and position of the reference region on the display screen through the data. The shape of the reference region is not limited herein, for example, the reference region can be any shape such as a rectangle, a circle, an ellipse, a triangle, etc. Taking the shape of the reference region as a rectangle as an example, the electronic device can obtain the coordinate data of the diagonal vertex of the rectangle, or the electronic device can obtain the length, the width and the coordinate data of one vertex of the rectangle, etc. to locate the size and position of the reference region on the display screen. After the electronic device locates the reference region on the display screen, the original coordinate data of each pixel point on the reference region can be obtained, the average value of the original brightness data is calculated to obtain the reference brightness data.

[0098] Generally, after the brightness compensation is performed by using the related technology, the bright spot region or the dark block region is located at the edge of the display screen, and the brightness distribution of the non-edge region on the display screen is relatively uniform, such as the regions shown by the reference numerals 401 and 402. Based on this, the reference brightness data can be determined according to the reference region on the display screen which is not located at the edge, for example, according to the reference region located at the center of the display screen to improve the accuracy of the reference brightness data. Subsequently, the first region to be adjusted can be accurately determined based on the reference brightness data, so that the compensation data is determined based on the adjusted first region, and the first region is compensated by using the compensation data, which can prevent the first region from being over-compensated, thereby avoiding the bright spot or the dark block on the display screen.

[0099] Step 2022: calculating the first ratio between the original brightness data of the plurality of pixel points and the reference brightness data. That is, for any pixel point, the original brightness data of the pixel point is divided by the reference brightness data to obtain the first ratio of the pixel point. The first ratio can reflect the difference between the original brightness data of the pixel point and the reference brightness data, and the farther the first ratio is from 1, the greater the difference is.

[0100] Step 2023: determining the first region according to the first ratio of the plurality of pixel points.

[0101] Generally, when the brightness compensation is performed by using the related technology, the darker or brighter the pixel point is, the greater the compensation required is, and the over-compensation phenomenon is easy to occur, which leads to the bright region or the dark region on the display screen after the compensation. Based on this, the first region with a greater difference between the original brightness data and the reference brightness data is determined according to the first ratio of the pixel point in the embodiments of the present application, that is, the first region which is prone to over-compensation is determined, and the accuracy of the first region is higher.

[0102] Optionally, the step 2023 comprises: determining a plurality of target pixel points from the plurality of pixel points according to the first ratio of the plurality of pixel points, the first ratio of the target pixel points being greater than a first threshold or less than a second threshold, the first threshold being greater than the second threshold; and determining the first region according to the plurality of target pixel points, the first region comprising the target pixel points which are continuously distributed and are not less than a reference quantity.

[0103] For any pixel point, if the first ratio of the pixel point is greater than the first threshold, the pixel point is determined as a target pixel point; if the first ratio of the pixel point is less than the second threshold, the pixel point is determined as a target pixel point. The determination manner of the first threshold and the second threshold is not limited herein. Exemplarily, the first threshold and the second threshold are values set according to artificial experience, or the first threshold and the second threshold are values obtained through experimental verification. Generally, the first threshold is greater than 1, and the second threshold is less than 1, for example, the first threshold is 1.2, and the second threshold is 0.8.

[0104] It can be understood that on the display screen, the pixel points are arranged in M rows and N columns, and M and N are both positive integers, and any two target pixel points are adjacent or not adjacent. In the present example, it is assumed that the distance between two target pixel points is the minimum value of distance 1 and distance 2, wherein distance 1 is the number of pixel points between the two target pixel points in a row, and distance 2 is the number of pixel points between the two target pixel points in a column. The distance between two adjacent target pixel points is 0. Based on this, if the distance between two target pixel points is not greater than a distance threshold, the two target pixel points are continuously distributed. The distance threshold is a value input by a user or a randomly generated value, for example, the distance threshold is 0.

[0105] Each target pixel point can be traversed to determine a plurality of groups of continuously distributed target pixel points from the target pixel points. For any group of continuously distributed target pixel points, if the number of target pixel points is not less than a reference quantity, a first region is determined based on the group of continuously distributed target pixel points. The reference quantity can be a value set according to artificial experience, or the reference quantity is a value determined according to the number of pixel points on the display screen, for example, the reference quantity is 10% of the number of pixel points in a row (or a column) on the display screen.

[0106] It can be understood that, since the first ratio is a result of dividing the original luminance data by the reference luminance data. Therefore, if the first ratio is greater than the first threshold, it indicates that the original luminance data is greater than the reference luminance data, and since the target pixel point is bright, the target pixel point can be determined as a bright pixel point. In actual application, a first region can be determined for the bright pixel point, which can be referred to as a bright region. Correspondingly, if the first ratio is less than the second threshold, it indicates that the original luminance data is less than the reference luminance data, and since the target pixel point is dark, the target pixel point can be determined as a dark pixel point. In actual application, a first region can be determined for the dark pixel point, which can be referred to as a dark region. When determining the first region, the bright pixel point and the dark pixel point need to be traversed respectively, and optionally, the traversal is in order according to rows or columns.

[0107] Exemplarily, as shown in FIG. 5, when determining the bright region and the dark region to be adjusted, step 501 can be performed first, the display screen displaying a specified image is shot by an industrial camera to obtain original luminance data of each pixel point. Then step 502 is performed, the first ratio between the original luminance data of each pixel point and the average luminance data of the intermediate region is calculated. Then step 503 is performed, the bright pixel point with the first ratio greater than 1.2 and the dark pixel point with the first ratio less than 0.8 are found. After that, on one hand, step 504 is performed, the continuously distributed bright pixel points are found row by row (or column by column), and if the continuously distributed bright pixel points in a row (or a column) account for 10% of the number of pixel points in the row (or the column), the bright region is determined based on the continuously distributed bright pixel points. On the other hand, step 505 is performed, the continuously distributed dark pixel points are found row by row (or column by column), and if the continuously distributed dark pixel points in a row (or a column) account for 10% of the number of pixel points in the row (or the column), the dark region is determined based on the continuously distributed dark pixel points. The implementation manners of the above steps are described in the foregoing, and will not be described here again.

[0108] In actual application, after the luminance compensation, if there is over-compensation of individual pixel points on the display screen, in general, it does not affect the viewing experience of the user. Only when there is range over-compensation on the display screen, the viewing experience of the user will be affected. Based on this, the embodiment of the present application determines the first region, adjusts the luminance data of the first region, prevents over-compensation of the first region, that is, can reduce the number of pixel points that need to be adjusted, improves the adjustment efficiency, and also ensures the viewing experience of the user.

[0109] In step 203, the luminance data of the first region is adjusted according to a second region adjacent to the first region on the display screen, to obtain an adjusted first region, and the difference between the luminance data of the adjusted first region and the second region is less than the difference between the luminance data of the first region before adjustment and the second region.

[0110] In the embodiments of the present application, the second region includes at least one of the following: a plurality of columns of pixel points on the left side of the first region on the display screen; a plurality of columns of pixel points on the right side of the first region on the display screen; a plurality of rows of pixel points on the upper side of the first region on the display screen; and a plurality of rows of pixel points on the lower side of the first region on the display screen. The second region does not include the target pixel point. Since the target pixel point includes the bright pixel point and the dark pixel point, the pixel point that neither belongs to the bright pixel point nor belongs to the dark pixel point can be referred to as a normal pixel point. The second region includes a plurality of normal pixel points. By adjusting the luminance data of the first region through the second region, the luminance data of the bright pixel point and the luminance data of the dark pixel point can be close to the luminance data of the normal pixel point, so that the luminance data of the adjusted first region is close to the luminance data of the second region, and the difference between the luminance data of the first region and the luminance data of the second region is reduced.

[0111] There are various ways to adjust the luminance data of the first region according to the second region, for example, the luminance data of each pixel point in the first region can be adjusted pixel by pixel according to the second region. Alternatively, the luminance data of each pixel point in the first region can be adjusted cell by cell according to the second region to speed up the adjustment efficiency. The cell-by-cell adjustment method will be described in detail below, and other adjustment methods such as the pixel-by-pixel adjustment method will not be described herein.

[0112] In a possible implementation, the first region includes a plurality of first cells, and the second region includes a plurality of second cells, and each first cell has an adjacent second cell. In this example, step 203 includes steps 2031 to 2032 (not shown in the figure).

[0113] In step 2031, for any first cell, the luminance data of the first cell is adjusted according to the adjacent second cell to obtain an adjusted first cell.

[0114] The first cell and the second cell each include a plurality of pixel points, and the number of pixel points included in the first cell and the number of pixel points included in the second cell can be the same or different. For example, the first cell includes two rows and two columns of pixel points, and the second cell also includes two rows and two columns of pixel points, or the first cell includes one row or one column of pixel points, and the second cell includes one pixel point.

[0115] Each first unit is adjacent to at least one second unit, and any two first units can be adjacent to the same or different second units. For example, as shown in FIG. 6, a first unit includes a row of pixels in the first area, and a first unit as indicated by reference numeral 601 includes three pixels. A second unit includes pixels adjacent to the first unit in the second area, and a second unit as indicated by reference numeral 602 includes one pixel. The luminance data of the first unit can be adjusted according to the second unit adjacent to the first unit, so that the luminance data of the pixels in the first unit approaches the luminance data of the pixels in the second unit, thereby making the luminance data of the adjusted first unit approach the luminance data of the second unit, reducing the difference between the luminance data of the first unit and the second unit, and thereby avoiding overcompensation.

[0116] Optionally, the first unit includes at least one first pixel, and the second unit includes at least one second pixel. Step 2031 includes: calculating an average value of the original luminance data of each first pixel in any first unit to obtain first luminance data; calculating an average value of the original luminance data of each second pixel in the second unit adjacent to any first unit to obtain second luminance data; and determining the adjusted luminance data of each first pixel in the adjusted first unit according to a second ratio between the first luminance data and the second luminance data.

[0117] In the embodiments of the present application, the sum of the original luminance data of each first pixel in the first unit can be calculated, and the calculation result is divided by the number of first pixels in the first unit to obtain an average value, which is the first luminance data. Similarly, the sum of the original luminance data of each second pixel in the second unit adjacent to the first unit can be calculated, and the calculation result is divided by the number of second pixels in the second unit to obtain an average value, which is the second luminance data. The first luminance data is divided by the second luminance data to obtain the second ratio, and the adjusted luminance data of each first pixel is determined according to the second ratio to obtain the adjusted first unit.

[0118] Optionally, assuming that the first luminance data is A and the second luminance data is B, the adjusted luminance data of each first pixel point is determined according to A / B. It can be understood that any two first units correspond to the same or different first luminance data, and any two second units correspond to the same or different second luminance data. As shown in FIG. 6, one first unit includes one row of pixel points in the first region, and then from top to bottom, the first luminance data of each first pixel point is A1 to A2800 in turn. One second unit includes one row of pixel points in the second region, and then from top to bottom, the second luminance data of each second pixel point is B1 to B2800 in turn. Based on this, any two first units correspond to the same or different second ratios, so that the luminance data of the two adjusted first units can be the same or different. Since the first luminance data can reflect the average luminance of the first unit, and the second luminance data can reflect the average luminance of the second unit, by adjusting the first unit through the second ratio between the first luminance data and the second luminance data, the luminance difference between the first unit and the second unit can be reduced, thereby avoiding the phenomenon of overcompensation.

[0119] In an example embodiment, according to the second ratio between the first luminance data and the second luminance data, the adjusted luminance data of each first pixel point in the adjusted first unit is determined, including: according to the second ratio between the first luminance data and the second luminance data, the maximum second ratio and the minimum second ratio, the adjusted luminance data of each first pixel point in the adjusted first unit is determined. Wherein, the maximum second ratio is the maximum value of the second ratio corresponding to each first unit, and the minimum second ratio is the minimum value of the second ratio corresponding to each first unit.

[0120] In the embodiment of the application, the electronic device can determine the maximum second ratio and the minimum second ratio from the second ratio corresponding to each first unit. For any first unit, according to the maximum second ratio and the minimum second ratio, the second ratio between the first luminance data of the first unit and the second luminance data of the second unit adjacent to the first unit is adjusted to obtain the adjusted second ratio. According to the second luminance data and the adjusted second ratio, the adjusted luminance data of each first pixel point in the adjusted first unit is determined.

[0121] It can be understood that the maximum second ratio and the minimum second ratio can reflect the luminance difference of the first region itself, and therefore, adjusting the luminance data of the first region according to the maximum second ratio and the minimum second ratio can reduce the luminance difference of the first region, thereby avoiding the phenomenon of overcompensation.

[0122] In the embodiment of the application, the adjusted luminance data of the first pixel point can be determined according to the following implementation mode 1 or 2, and the implementation mode 1 and the implementation mode 2 are described in turn as follows.

[0123] In implementation 1, the first luminance data is greater than the second luminance data. The adjusted luminance data of each first pixel in the adjusted first unit is determined according to the second ratio between the first luminance data and the second luminance data, the maximum second ratio and the minimum second ratio, including: adjusting the second ratio between the first luminance data and the second luminance data according to the maximum second ratio and the minimum second ratio to obtain a first adjustment ratio; and determining the adjusted luminance data of each first pixel in the adjusted first unit according to the first adjustment ratio.

[0124] If the first luminance data is greater than the second luminance data, it means that the luminance of the first region is higher than that of the second region, i.e., the first region is a bright region. If the first region is directly compensated for luminance by using related technologies, overcompensation may occur, resulting in dark spots in the compensated first region. Based on this, in the embodiments of the present application, the second ratio between the first luminance data and the second luminance data is adjusted according to the maximum second ratio and the minimum second ratio, so that the adjusted luminance data of the first pixel determined according to the adjusted second ratio (i.e., the first adjustment ratio) is smaller, so that the compensation data determined based on the adjusted luminance data is smaller, and then the original luminance data compensated by the compensation data will not appear overcompensation phenomenon, avoiding dark spots in the compensated first region.

[0125] In actual application, the adjustment range of the second ratio can be determined according to the display effect of the display screen. That is, after adjusting the second ratio, the adjusted luminance data of each first pixel in the first unit is determined based on the adjusted second ratio, and the compensation data is determined based on the adjusted luminance data, so as to compensate the original luminance data according to the compensation data. If the compensated first region still has dark spots, it means that there is still overcompensation phenomenon, and then the adjustment range of the second ratio can be increased; on the contrary, if the compensated first region has bright spots, the adjustment range of the second ratio can be reduced. In this way, the above process can be repeated multiple times until the display effect of the display screen meets the requirements.

[0126] Optionally, a first difference between the maximum second ratio and the minimum second ratio can be calculated, and a second difference between the maximum second ratio and the second ratio of any first unit, or a second difference between the second ratio of any first unit and the minimum second ratio can be calculated. The second ratio of the first unit is adjusted according to the ratio between the second difference and the first difference. In actual application, the weight can be determined according to the display effect of the display screen, and the ratio between the second difference and the first difference is weighted based on the weight, and the second ratio of the first unit is adjusted according to the weighted ratio, so as to control the adjustment range of the second ratio by the weight.

[0127] Exemplarily, according to the first luminance data and the second luminance data, the maximum second ratio and the minimum second ratio are determined, and the second ratio between the first luminance data and the second luminance data is adjusted according to the maximum second ratio and the minimum second ratio to obtain a first adjustment ratio. The second ratio is reduced to obtain a first adjustment ratio. A represents the first luminance data, and B represents the second luminance data, The second ratio is represented by v1, and the weight is represented by w1. The maximum second ratio is represented by v1max. The minimum second ratio is represented by v1min. The second difference is represented by v1diff. The first difference is represented by w1diff. After the first adjustment ratio is obtained, the first adjustment ratio can be multiplied by the second luminance data to obtain adjusted first luminance data. The adjusted first luminance data can be used as the adjusted luminance data of each first pixel point. Alternatively, according to the ratio between the original luminance data and the first luminance data of each first pixel point, the adjusted luminance data of each first pixel point is determined based on the adjusted first luminance data, so that the ratio between the original luminance data and the first luminance data of any first pixel point is equal to the ratio between the adjusted luminance data of the first pixel point and the adjusted first luminance data.

[0128] In the implementation 2, the first luminance data is less than the second luminance data. According to the second ratio between the first luminance data and the second luminance data, the maximum second ratio, and the minimum second ratio, the adjusted luminance data of each first pixel point in the adjusted first unit is determined, including: according to the maximum second ratio and the minimum second ratio, the second ratio between the first luminance data and the second luminance data is increased to obtain a second adjustment ratio; and according to the second adjustment ratio, the adjusted luminance data of each first pixel point in the adjusted first unit is determined.

[0129] If the first luminance data is less than the second luminance data, it indicates that the luminance of the first region is lower than the luminance of the second region, i.e., the first region is a darkening region. If the first region is directly compensated for luminance by using related technologies, overcompensation may occur, resulting in bright spots in the compensated first region. Based on this, in the embodiments of the present application, according to the maximum second ratio and the minimum second ratio, the second ratio between the first luminance data and the second luminance data is increased, so that the adjusted luminance data of the first pixel point determined according to the increased second ratio (i.e., the second adjustment ratio) is larger, so that the compensation data determined based on the adjusted luminance data is smaller, and further, the original luminance data compensated by the compensation data does not appear overcompensation, avoiding bright spots in the compensated first region.

[0130] In practical applications, the increasing magnitude of the second ratio can be determined according to the display effect of the display screen. That is, after the second ratio is increased, the adjusted luminance data of each first pixel point in the first unit is determined based on the increased second ratio, and the compensation data is determined based on the adjusted luminance data, so as to compensate the original luminance data according to the compensation data. If bright spots still appear in the compensated first region, it means that there is still overcompensation, and the increasing magnitude of the second ratio can be increased; on the contrary, if dark spots appear in the compensated first region, the increasing magnitude of the second ratio can be decreased. In this way, the above process can be repeated multiple times until the display effect of the display screen meets the requirements.

[0131] Alternatively, a first difference between the maximum second ratio and the minimum second ratio can be calculated, and a second difference between the maximum second ratio and the second ratio of any first unit, or a second difference between the second ratio of any first unit and the minimum second ratio can be calculated. The second ratio of the first unit is increased according to the ratio between the second difference and the first difference. In practical applications, the weight can be determined according to the display effect of the display screen, the ratio between the second difference and the first difference is weighted based on the weight, and the second ratio of the first unit is increased according to the weighted ratio, so as to control the increasing magnitude of the second ratio by the weight.

[0132] Exemplarily, the second ratio of the first unit is increased by a second difference between the maximum second ratio and the minimum second ratio, and the second ratio of the first unit is increased by a ratio between the second difference and a first difference between the maximum second ratio and the minimum second ratio. The second ratio is increased to obtain a second adjusted ratio. Wherein, A represents the first luminance data, B represents the second luminance data, represents the second ratio, v2 is the weight, is the maximum second ratio, is the minimum second ratio. is the second difference, is the first difference. Wherein, v1 can be the same as or different from v2. After obtaining the second adjusted ratio, the second adjusted ratio can be multiplied by the second luminance data to obtain the adjusted first luminance data. The adjusted first luminance data can be used as the adjusted luminance data of each first pixel point. Alternatively, the adjusted luminance data of each first pixel point is determined based on the adjusted first luminance data according to the ratio between the original luminance data and the first luminance data of each first pixel point, so that the ratio between the original luminance data and the first luminance data of any first pixel point is equal to the ratio between the adjusted luminance data of the first pixel point and the adjusted first luminance data.

[0133] Step 2032, determining the adjusted first region according to the plurality of adjusted first units.

[0134] The process of adjusting the luminance data of the first region will be described in detail below in conjunction with FIG. 7.

[0135] Firstly, as shown in (1) of FIG. 7, the first region and the second region are adjacent, assuming that a first unit includes a row of pixel points in the first region, a second unit includes a row of pixel points in the second region, and there is an adjacent second unit for each first unit, then: a first first unit includes pixel points with original luminance data of 1300, 1200, 1300 in turn, and an adjacent second unit includes a pixel point with luminance data of 2400; a second first unit includes pixel points with original luminance data of 1300, 1200, 1300 in turn, and an adjacent second unit includes a pixel point with luminance data of 2405; and so on, which will not be described herein again.

[0136] Next, as shown in (2) of FIG. 7, the average value of the original luminance data of each pixel point in the first unit can be calculated to obtain first luminance data, such as the first luminance data of the first first unit and the second first unit is 1267, and so on.

[0137] Then, as shown in (3) of FIG. 7, for any first unit, assuming that the first luminance data is represented by parameter A and the second luminance data is represented by parameter B, then: the ratio A / B between the first luminance data and the second luminance data is calculated, and the minimum value (A / B)min and the maximum value (A / B)max are determined from each A / B. Since the first luminance data is less than the second luminance data, A / B can be adjusted according to (A / B)min, (A / B)max and weight v=0.3.

[0138] After that, as shown in (4) of FIG. 7, for any first unit, the adjusted A / B is multiplied by the second luminance data to obtain the adjusted first luminance data. As compared with (2) and (4) of FIG. 7, the adjusted first luminance data is closer to the second luminance data than the first luminance data. The adjusted first luminance data is the adjusted luminance data of each pixel point in the first unit.

[0139] In step 204, the compensation data of the plurality of pixel points is determined according to the adjusted first region and the remaining region on the display screen except the first region.

[0140] The compensation data of each pixel point on the display screen can be determined according to the adjusted luminance data of each pixel point in the adjusted first region and the original luminance data of each pixel point in the remaining region according to any compensation algorithm. The type of the compensation algorithm is not limited in the embodiments of the present application, and the compensation algorithm is exemplarily the Demura compensation algorithm, which will not be described herein again.

[0141] In the related art, as shown in (1) of FIG. 8, the electronic device can acquire the original brightness data of each pixel point through the industrial camera, and then calculate the compensation data of each pixel point according to the original brightness data of each pixel point using the Demura algorithm. In the embodiment of the present application, as shown in (2) of FIG. 8, the electronic device can acquire the original brightness data of each pixel point through the industrial camera. Then, the first region is identified according to the original brightness data of each pixel point, and a row of pixel points in the first region is taken as a first unit. The ratio between the average brightness data (i.e., the first brightness data) of the first unit and the brightness data (i.e., the second brightness data) of the adjacent pixel points is calculated. The ratio is adjusted according to the maximum value and the minimum value of the ratio, and the adjusted brightness data of each pixel point in the first region is determined according to the adjusted ratio. Then, the compensation data of each pixel point is calculated according to the adjusted brightness data of each pixel point in the first region and the original brightness data of each pixel point in the remaining region.

[0142] In step 205, the original brightness data of each pixel point is compensated based on the compensation data of each pixel point.

[0143] That is, for any pixel point, the original brightness data of the pixel point is compensated using the compensation data of the pixel point to obtain the compensated brightness data of the pixel point. Since the adjusted brightness data of the first region approaches the brightness data of the second region, the difference between the brightness data of the first region and the brightness data of the second region is reduced, thereby reducing the compensation data and avoiding the phenomenon of over-compensation, so as to avoid the occurrence of bright spots and dark blocks on the display screen. As shown in FIG. 9, after the display screen is compensated for brightness according to the method of the embodiment of the present application, no bright spots and dark blocks appear on the display screen, and the display effect is improved.

[0144] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the present application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards in relevant regions. For example, the original brightness data and the like involved in the present application are acquired under sufficient authorization.

[0145] The method can automatically identify the first area of the display screen, adjust the luminance data of the first area according to a second area adjacent to the first area on the display screen, reduce the difference in luminance data between the first area and the second area, and make the adjusted luminance data of the first area closer to the luminance data of the second area, thereby reducing the compensation required by each pixel point in the first area. Since the compensation of each pixel point in the first area is small, the original luminance data of the pixel point can be compensated by the compensation data of the pixel point, which can prevent overcompensation, reduce the possibility of bright spots and dark blocks on the display screen, improve the display effect, and improve the viewing experience of the user.

[0146] FIG. 10 shows a structural schematic diagram of a luminance compensation device provided by an embodiment of the present application. As shown in FIG. 10, the device includes:

[0147] The acquisition module 1001 is configured to acquire the original luminance data of the plurality of pixel points on the display screen.

[0148] The determination module 1002 is configured to determine a first area to be adjusted on the display screen according to the original luminance data of the plurality of pixel points.

[0149] The adjustment module 1003 is configured to adjust the luminance data of the first area according to a second area adjacent to the first area on the display screen, to obtain an adjusted first area, and to make the difference in luminance data between the adjusted first area and the second area smaller than the difference in luminance data between the unadjusted first area and the second area.

[0150] The determination module 1002 is further configured to determine the compensation data of the plurality of pixel points according to the adjusted first area and a remaining area on the display screen except the first area.

[0151] The compensation module 1004 is configured to compensate the original luminance data of each pixel point based on the compensation data of the pixel point.

[0152] In a possible implementation, the determination module 1002 is configured to acquire reference luminance data, the reference luminance data being used to indicate the display luminance of the display screen, to calculate a first ratio between the original luminance data of the plurality of pixel points and the reference luminance data, and to determine the first area according to the first ratio of the plurality of pixel points.

[0153] In a possible implementation, the determination module 1002 is configured to determine a reference area on the display screen that is not located at an edge, to calculate an average value of the original luminance data of each pixel point on the reference area to obtain the reference luminance data.

[0154] In a possible implementation, the determining module 1002 is configured to: determine a plurality of target pixel points from the plurality of pixel points according to a first ratio of the plurality of pixel points, the first ratio of the target pixel points being greater than a first threshold or smaller than a second threshold, the first threshold being greater than the second threshold; and determine the first region according to the plurality of target pixel points, the first region including the target pixel points that are continuously distributed and are not less than a reference quantity.

[0155] In a possible implementation, the first region includes a plurality of first units, and the second region includes a plurality of second units, and any first unit is adjacent to a second unit;

[0156] The adjusting module 1003 is configured to: for any first unit, adjust luminance data of the first unit according to the second unit adjacent to the first unit, to obtain an adjusted first unit; and determine an adjusted first region according to the plurality of adjusted first units.

[0157] In a possible implementation, the first unit includes at least one first pixel point, and the second unit includes at least one second pixel point.

[0158] The adjusting module 1003 is configured to: calculate an average value of original luminance data of each first pixel point in any first unit, to obtain first luminance data; calculate an average value of original luminance data of each second pixel point in the second unit adjacent to the first unit, to obtain second luminance data; and determine adjusted luminance data of each first pixel point in the adjusted first unit according to a second ratio between the first luminance data and the second luminance data.

[0159] In a possible implementation, the adjusting module 1003 is configured to: determine the adjusted luminance data of each first pixel point in the adjusted first unit according to the second ratio between the first luminance data and the second luminance data, a maximum second ratio, and a minimum second ratio.

[0160] The maximum second ratio is a maximum value of the second ratio corresponding to each first unit, and the minimum second ratio is a minimum value of the second ratio corresponding to each first unit.

[0161] In a possible implementation, the first luminance data is greater than the second luminance data.

[0162] The adjusting module 1003 is configured to: reduce the second ratio between the first luminance data and the second luminance data according to the maximum second ratio and the minimum second ratio, to obtain a first adjustment ratio; and determine the adjusted luminance data of each first pixel point in the adjusted first unit according to the first adjustment ratio.

[0163] In a possible implementation, the first luminance data is smaller than the second luminance data.

[0164] The adjusting module 1003 is configured to adjust the second ratio between the first luminance data and the second luminance data according to the maximum second ratio and the minimum second ratio to obtain a second adjusted ratio, and determine the adjusted luminance data of each first pixel in the adjusted first unit according to the second adjusted ratio.

[0165] The device can automatically identify the first area of the display screen, adjust the luminance data of the first area according to the second area adjacent to the first area on the display screen, reduce the difference between the luminance data of the first area and the second area, and make the adjusted luminance data of the first area closer to the luminance data of the second area, thereby reducing the compensation required by each pixel in the first area. Since the compensation of each pixel in the first area is small, the original luminance data of the pixel can be compensated by the compensation data of the pixel, which can prevent overcompensation and reduce the possibility of bright spots and dark blocks on the display screen, thereby improving the display effect and the user's viewing experience.

[0166] It should be understood that the device provided in FIG. 10 is only used as an example to illustrate the division of the above functional modules when implementing its functions. In actual applications, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above-described functions. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process is described in the method embodiments, which will not be described here.

[0167] FIG. 11 shows a structural block diagram of a terminal device 1100 provided in an example embodiment of the present application. The terminal device 1100 includes a processor 1101 and a memory 1102.

[0168] The processor 1101 can include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1101 can be implemented in at least one of a hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), a PLA (Programmable Logic Array). The processor 1101 can also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also known as a CPU (Central Processing Unit), and the coprocessor being a low-power processor for processing data in a standby state. In some embodiments, the processor 1101 can be integrated with a GPU (Graphics Processing Unit) for rendering and drawing content required to be displayed by the display screen. In some embodiments, the processor 1101 can also include an AI (Artificial Intelligence) processor for processing machine learning-related computing operations.

[0169] The memory 1102 can include one or more computer-readable storage media that can be non-transitory. The memory 1102 can also include a high-speed random access memory, and a nonvolatile memory such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1102 is used to store at least one computer program for being executed by the processor 1101 to implement the brightness compensation method provided by the method embodiments in the present application.

[0170] In some embodiments, the terminal device 1100 can also optionally include a peripheral device interface 1103 and at least one peripheral device. The processor 1101, the memory 1102, and the peripheral device interface 1103 can be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 1103 through a bus, a signal line, or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 1104, a display screen 1105, a camera assembly 1106, an audio circuit 1107, and a power supply 1108.

[0171] The peripheral interface 1103 can be used to connect at least one I / O (Input / Output) related peripheral device to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, the memory 1102 and the peripheral interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1101, the memory 1102 and the peripheral interface 1103 can be implemented on a separate chip or circuit board, and the present embodiments are not limited in this regard.

[0172] The radio frequency circuit 1104 is used to receive and send RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1104 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1104 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1104 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like. The radio frequency circuit 1104 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1104 can also include NFC (Near Field Communication) related circuitry, and the present application is not limited in this regard.

[0173] The display screen 1105 is configured to display a UI (User Interface). The UI can include graphics, text, icons, video, and any combination thereof. When the display screen 1105 is a touch display screen, the display screen 1105 is further configured to capture touch signals on or above the surface of the display screen 1105. The touch signals can be input to the processor 1101 as control signals for processing. In this case, the display screen 1105 can also be configured to provide virtual buttons and / or virtual keyboard, also known as soft buttons and / or soft keyboard. In some embodiments, the display screen 1105 can be one, disposed on the front panel of the terminal device 1100; in other embodiments, the display screen 1105 can be at least two, respectively disposed on different surfaces of the terminal device 1100 or in a folding design; in other embodiments, the display screen 1105 can be a flexible display screen, disposed on a curved surface or a folding surface of the terminal device 1100. Even, the display screen 1105 can also be disposed in an irregular shape, i.e. a special-shaped screen. The display screen 1105 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc.

[0174] The camera assembly 1106 is configured to capture images or videos. Optionally, the camera assembly 1106 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal. In some embodiments, the rear camera is at least two, which is any one of a main camera, a depth-of-field camera, a wide-angle camera, and a long-focus camera, to realize the background blur function of the main camera and the depth-of-field camera, the panoramic shooting and VR (Virtual Reality) shooting function of the main camera and the wide-angle camera, or other fusion shooting functions. In some embodiments, the camera assembly 1106 can further include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. The dual-color temperature flash refers to the combination of a warm light flash and a cold light flash, which can be used for light compensation under different color temperatures.

[0175] The audio circuit 1107 can include a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into an electrical signal input to the processor 1101 for processing, or input to the radio frequency circuit 1104 to realize voice communication. For the purpose of stereo sound collection or noise reduction, the microphone can be multiple, respectively arranged at different parts of the terminal device 1100. The microphone can also be an array microphone or an omnidirectional collection type microphone. The speaker is used to convert the electrical signal from the processor 1101 or the radio frequency circuit 1104 into sound waves. The speaker can be a traditional diaphragm speaker, or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only can it convert electrical signals into sound waves that humans can hear, but it can also convert electrical signals into sound waves that humans cannot hear for ranging purposes. In some embodiments, the audio circuit 1107 can also include a headphone jack.

[0176] The power supply 1108 is used to supply power to each component in the terminal device 1100. The power supply 1108 can be alternating current, direct current, disposable battery or rechargeable battery. When the power supply 1108 includes a rechargeable battery, the rechargeable battery can be a wired charging battery or a wireless charging battery. The wired charging battery is a battery charged through a wired line, and the wireless charging battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0177] In some embodiments, the terminal device 1100 further includes one or more sensors 1109. The one or more sensors 1109 include, but are not limited to, an acceleration sensor 1111, a gyroscope sensor 1112, a pressure sensor 1113, an optical sensor 1114, and a proximity sensor 1115.

[0178] The acceleration sensor 1111 can detect the acceleration magnitude in three coordinate axes of the coordinate system established by the terminal device 1100. For example, the acceleration sensor 1111 can be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 1101 can control the display screen 1105 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1111. The acceleration sensor 1111 can also be used for game or user motion data collection.

[0179] The gyroscope sensor 1112 can detect the body orientation and rotation angle of the terminal device 1100, and the gyroscope sensor 1112 can collect 3D actions of the user on the terminal device 1100 in cooperation with the acceleration sensor 1111. The processor 1101 can realize the following functions according to the data collected by the gyroscope sensor 1112: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization when shooting, game control, and inertial navigation.

[0180] The pressure sensor 1113 can be arranged at the side frame of the terminal device 1100 and / or the lower layer of the display screen 1105. When the pressure sensor 1113 is arranged at the side frame of the terminal device 1100, the holding signal of the user to the terminal device 1100 can be detected, and the left-hand or right-hand recognition or shortcut operation can be performed by the processor 1101 according to the holding signal collected by the pressure sensor 1113. When the pressure sensor 1113 is arranged at the lower layer of the display screen 1105, the operable control on the UI interface can be controlled by the processor 1101 according to the pressure operation of the user to the display screen 1105. The operable control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0181] The optical sensor 1114 is used to collect the ambient light intensity. In an embodiment, the processor 1101 can control the display brightness of the display screen 1105 according to the ambient light intensity collected by the optical sensor 1114. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1105 is increased; when the ambient light intensity is low, the display brightness of the display screen 1105 is decreased. In another embodiment, the processor 1101 can also dynamically adjust the shooting parameter of the camera assembly 1106 according to the ambient light intensity collected by the optical sensor 1114.

[0182] The proximity sensor 1115, also known as a distance sensor, is usually arranged at the front panel of the terminal device 1100. The proximity sensor 1115 is used to collect the distance between the user and the front of the terminal device 1100. In an embodiment, when the proximity sensor 1115 detects that the distance between the user and the front of the terminal device 1100 gradually decreases, the display screen 1105 is switched from the bright screen state to the off-screen state by the processor 1101; when the proximity sensor 1115 detects that the distance between the user and the front of the terminal device 1100 gradually increases, the display screen 1105 is switched from the off-screen state to the bright screen state by the processor 1101.

[0183] Those skilled in the art can understand that the structure shown in FIG. 11 does not constitute a limitation on the terminal device 1100, and can include more or fewer components than those shown, or combine certain components, or adopt different component arrangements.

[0184] In an exemplary embodiment, a computer readable storage medium is also provided, and the storage medium stores at least one computer program, which is loaded and executed by the processor to enable the electronic device to implement any of the above brightness compensation methods.

[0185] Optionally, the computer readable storage medium can be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0186] In an example embodiment, a computer program is also provided, the computer program being at least one computer program loaded and executed by a processor to enable an electronic device to implement any of the above-mentioned brightness compensation methods.

[0187] In an example embodiment, a computer program product is also provided, the computer program product storing at least one computer program, the at least one computer program being loaded and executed by a processor to enable an electronic device to implement any of the above-mentioned brightness compensation methods.

[0188] It should be understood that "multiple" referred to herein means two or more. The "and / or" describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B can represent the three cases of A existing alone, A and B existing together, and B existing alone. The character " / " generally represents that the associated objects before and after it are in an "or" relationship.

[0189] The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments. The above-mentioned only describes the example embodiments of the present application, and does not limit the present application. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A luminance compensating apparatus characterized by comprising: The device comprises: An acquisition module is configured to acquire original brightness data of a plurality of pixel points on a display screen; A determination module is configured to determine a first region to be adjusted on the display screen according to the original brightness data of the plurality of pixel points; An adjustment module is configured to adjust the brightness data of the first region according to a second region adjacent to the first region on the display screen, to obtain an adjusted first region, and the difference in brightness data between the adjusted first region and the second region is less than the difference in brightness data between the first region before adjustment and the second region; The determination module is further configured to determine compensation data of the plurality of pixel points according to the adjusted first region and a remaining region on the display screen except the first region; A compensation module is configured to compensate the original brightness data of each pixel point based on the compensation data of each pixel point.

2. The apparatus of claim 1, wherein, The determination module is configured to acquire reference brightness data, the reference brightness data being used to indicate the display brightness of the display screen; and calculate a first ratio between the original brightness data of the plurality of pixel points and the reference brightness data; The first region is determined according to the first ratio of the plurality of pixel points.

3. The apparatus of claim 2, wherein, The determination module is configured to determine a reference region on the display screen which is not located at an edge; and calculate an average value of the original brightness data of each pixel point on the reference region to obtain reference brightness data.

4. The apparatus of claim 2, wherein, The determination module is configured to determine a plurality of target pixel points from the plurality of pixel points according to the first ratio of the plurality of pixel points, the first ratio of the target pixel points being greater than a first threshold value or less than a second threshold value, the first threshold value being greater than the second threshold value; and determine the first region according to the plurality of target pixel points, the first region including a plurality of target pixel points which are continuously distributed and are not less than a reference number.

5. The device of any one of claims 1 to 4, wherein, The first region includes a plurality of first units, and the second region includes a plurality of second units, and each first unit has an adjacent second unit; The adjustment module is configured to, for each first unit, adjust the brightness data of the first unit according to the second unit adjacent to the first unit, to obtain an adjusted first unit; and determine the adjusted first region according to a plurality of adjusted first units.

6. The apparatus of claim 5, wherein, The first unit includes at least one first pixel point, and the second unit includes at least one second pixel point; The adjustment module is configured to calculate an average value of the original brightness data of each first pixel point in each first unit to obtain first brightness data; calculate an average value of the original brightness data of each second pixel point in the second unit adjacent to the first unit to obtain second brightness data; and determine the adjusted brightness data of each first pixel point in the adjusted first unit according to a second ratio between the first brightness data and the second brightness data.

7. The apparatus of claim 6, wherein, The adjustment module is configured to determine the adjusted brightness data of each first pixel point in the adjusted first unit according to the second ratio between the first brightness data and the second brightness data, the maximum second ratio and the minimum second ratio; and The maximum second ratio is a maximum value of the second ratios corresponding to the first units, and the minimum second ratio is a minimum value of the second ratios corresponding to the first units.

8. The apparatus of claim 7, wherein, The first luminance data is greater than the second luminance data. The adjustment module is configured to: adjust the second ratio between the first luminance data and the second luminance data according to the maximum second ratio and the minimum second ratio to obtain a first adjustment ratio; and determine adjusted luminance data of each first pixel point in the adjusted first unit according to the first adjustment ratio.

9. The apparatus of claim 7, wherein, The first luminance data is less than the second luminance data. The adjustment module is configured to: adjust the second ratio between the first luminance data and the second luminance data according to the maximum second ratio and the minimum second ratio to obtain a second adjustment ratio; and determine adjusted luminance data of each first pixel point in the adjusted first unit according to the second adjustment ratio. The method comprises:

10. A luminance compensation method characterized by, obtaining original luminance data of a plurality of pixel points on a display screen; determining a first region to be adjusted on the display screen according to the original luminance data of the plurality of pixel points; adjusting luminance data of the first region according to a second region adjacent to the first region on the display screen to obtain an adjusted first region, wherein a difference in luminance data between the adjusted first region and the second region is less than a difference in luminance data between the first region before adjustment and the second region; determining compensation data of the plurality of pixel points according to the adjusted first region and a remaining region on the display screen except the first region; compensating original luminance data of each pixel point based on the compensation data of each pixel point. The electronic device comprises the luminance compensation apparatus according to any one of claims 1 to 9, and is configured to implement the luminance compensation method according to claim 10.

11. An electronic device, comprising: The computer readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by the processor to enable the electronic device to implement the luminance compensation method according to claim 10.

12. A computer-readable storage medium, characterized in that, The computer program product stores at least one computer program, and the at least one computer program is loaded and executed by the processor to enable the electronic device to implement the luminance compensation method according to claim 10.

13. A computer program product, characterised in that, ​

Citation Information

Patent Citations

  • Electroluminescent display device and method of compensating luminance in the same

    CN112242121A

  • Display panel brightness correction method and device

    CN113421510A

  • Crease compensation method and device, electronic equipment and storage medium

    CN113674657A

  • Brightness compensation data determination method, display device and driving method of display device

    CN116137141A

  • Display defect compensation method and device, medium, electronic equipment and display device

    CN116897385A