Display calibration methods, apparatus, electronic devices, and computer-readable storage media.
By acquiring the brightness level and initial pixel value of the display screen, and calculating the target pixel value using a preset pixel mapping table, the problem of color shift in different areas of the display screen is solved, achieving precise calibration and consistent display effect.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-30
- Publication Date
- 2026-04-03
AI Technical Summary
Existing technologies cannot effectively solve the color shift problem in different areas of the display screen when calibrating displays of different shapes, resulting in poor display effects.
By acquiring the brightness level and initial pixel value of the current display area, and using a preset pixel mapping table to calculate the target pixel value based on the target optical effect parameters, a target image is generated and displayed to achieve precise calibration of different display areas.
It effectively reduces color distortion in different areas of the display screen, ensuring consistent display quality.
Smart Images

Figure CN114974052B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of screen display technology, and in particular to a display calibration method, apparatus, electronic device, and computer-readable storage medium. Background Technology
[0002] With the rapid development of electronic device technologies, various types of displays have emerged in electronic devices, such as ordinary displays, flexible displays, and curved displays. Flexible displays refer to screens that can be bent, folded, or rolled up. For different display types, display calibration is required before leaving the factory or during use to achieve satisfactory image quality for users.
[0003] However, during the use of electronic devices, different areas of the display screen often exhibit different color casts. For example, the image displayed on the left half of the screen may appear yellowish, while the image displayed on the right half may appear bluish. In such cases, traditional methods of display calibration cannot resolve the problem of different color casts in different areas of the image. Summary of the Invention
[0004] This application provides a display calibration method, apparatus, electronic device, and computer-readable storage medium that can reduce color distortion in different areas of an image to be displayed on a screen.
[0005] On one hand, a display calibration method is provided, applied to an electronic device having a display screen, the method comprising:
[0006] Obtain the current brightness level of the current display area of the display screen and the initial pixel value of the image to be displayed;
[0007] The target optical effect parameters of the current display area are obtained. Based on the current brightness level of each different display area, the initial pixel value, and the mapping relationship between the target optical effect parameters and the target pixel value, the target pixel value of the current display area is obtained. The different display areas are either a combination of areas of the display screen in different unfolded states or different areas of the current display area.
[0008] A target image is generated based on the target pixel value corresponding to the current display area, and the target image is displayed.
[0009] On the other hand, a display calibration device is provided, the device comprising:
[0010] The acquisition module is used to acquire the current brightness level of the current display area of the display screen and the initial pixel value of the image to be displayed;
[0011] The target pixel value acquisition module is used to acquire the target optical effect parameters of the current display area, and to acquire the target pixel value of the current display area according to the current brightness level of each different display area, the initial pixel value, and the mapping relationship between the target optical effect parameters and the target pixel value; the different display areas are a combination of areas of the display screen in different unfolded states or different areas of the current display area;
[0012] The display module is used to generate a target image based on the target pixel value corresponding to the current display area, and to display the target image.
[0013] On the other hand, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor causes the processor to perform the steps of the display calibration method as described above.
[0014] On the other hand, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the display calibration method as described above.
[0015] On the other hand, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the display calibration method as described above.
[0016] The aforementioned display calibration method, apparatus, electronic device, and computer-readable storage medium, when calibrating an image to be displayed, first obtain the current brightness level of the current display area of the screen and the initial pixel value of the image to be displayed. Since the mapping relationship between the current brightness level, initial pixel value, target optical effect parameters, and target pixel value of each different display area is known, the target optical effect parameters of the current display area can be obtained, and the target pixel value of the current display area can be obtained based on this mapping relationship. Finally, a target image is generated based on the target pixel value corresponding to the current display area, and the target image is displayed. Because different display areas are combinations of areas where the screen is in different unfolded states or different areas within the current display area, and there is a mapping relationship between the current brightness level, initial pixel value, target optical effect parameters, and target pixel value of each different display area, display calibration can be performed on the image to be displayed in the current display area (any combination of areas where the screen is in different unfolded states or different areas within the current display area) based on this mapping relationship. Therefore, no color cast problem will occur in any of the different areas of the image to be displayed on the screen. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a diagram illustrating the application environment of the calibration method in one embodiment;
[0019] Figure 2 Here is a flowchart illustrating the calibration method in one embodiment;
[0020] Figure 3 A flowchart of the calibration method is shown in another embodiment;
[0021] Figure 4 for Figure 3 A flowchart illustrating the method for calculating calibration parameters of the display area at multiple preset brightness levels;
[0022] Figure 5 This is a schematic diagram of chromaticity coordinates in one embodiment;
[0023] Figure 6 This is a schematic diagram of different combinations of regions corresponding to different states of the scroll screen in one embodiment;
[0024] Figure 7 This is a flowchart of a display calibration method for a rollable screen in one embodiment;
[0025] Figure 8 This is a flowchart of a display calibration method for a rollable screen in another embodiment;
[0026] Figure 9 This is a flowchart of a display calibration method for a rollable screen in another embodiment;
[0027] Figure 10 This is a flowchart of a display calibration method for a rollable screen in a specific embodiment;
[0028] Figure 11 This is a block diagram showing the structure of the calibration device in one embodiment;
[0029] Figure 12 A structural block diagram of the calibration device is shown in another embodiment;
[0030] Figure 13 This is a schematic diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation
[0031] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0032] It is understood that the terms "first," "second," etc., used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of this application, a first combined region may be referred to as a second combined region, and similarly, a second combined region may be referred to as a first combined region. Both the first combined region and the second combined region are combined regions, but they are not the same combined region.
[0033] Traditional methods for calibrating displays typically involve collecting optical data from different display areas, weighting the data from each area, and then averaging it to generate calibration parameters. These parameters are then used to calibrate the display. However, if the optical data differs significantly between different areas of the display—for example, if the left half of the display appears yellowish while the right half appears bluish—then the calibration parameters generated by the weighted average cannot resolve the issue of color shifts in different areas. Therefore, traditional methods are ineffective for calibrating displays.
[0034] To address the issue of poor performance when using traditional methods to calibrate displays, this application proposes a display calibration method. Figure 1 This is a schematic diagram illustrating the application environment of the calibration method in one embodiment. For example... Figure 1 As shown, the application environment includes an electronic device 120. The electronic device 120 acquires the current brightness level of the current display area and the initial pixel value of the image to be displayed; acquires the target optical effect parameters of the current display area; and, based on the mapping relationship between the current brightness level, initial pixel value, target optical effect parameters, and target pixel value of different display areas, acquires the target pixel value of the current display area. Different display areas can be combined areas of the display screen in different unfolded states or different areas within the current display area. A target image is generated based on the target pixel value corresponding to the current display area, and the target image is displayed. The electronic device 120 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc.
[0035] Figure 2 This is a flowchart illustrating a calibration method in one embodiment. The calibration method in this embodiment is designed to operate on... Figure 1 The description will be based on an example of an electronic device. Figure 2 As shown, the calibration method includes steps 220 to 240, wherein,
[0036] Step 220: Obtain the current brightness level of the current display area of the display screen and the initial pixel value of the image to be displayed.
[0037] Here, the display screen of the electronic device can be a regular display screen, a flexible screen, a curved screen, etc., and this application does not limit it. In order to achieve a satisfactory image quality for the user, the electronic device needs to perform display calibration on the image to be displayed. First, the electronic device obtains the current brightness level of the current display area of the screen. Generally, the brightness of the display screen of the electronic device is divided into brightness levels, such as brightness levels corresponding to 2nit, 20nit, 50nit, 100nit, 200nit, 300nit, 400nit, 500nit, and 800nit. Of course, the above brightness levels are not limited here. Second, the electronic device obtains the initial pixel values of the image to be displayed. The initial pixel values can be pixel values in RGB color mode, pixel values in HSV (Hue, Saturation, Value) color mode, or pixel values in HSB (Hue, Saturation, Brightness) color mode. Of course, other color modes can also be included, and this application does not limit them. Assuming the initial pixel values are in RGB color mode, then the electronic device obtains the initial pixel values (R, G, B) of each pixel in the image to be displayed.
[0038] Step 240: Obtain the target optical effect parameters of the current display area. Based on the current brightness level, initial pixel value, and mapping relationship between the target optical effect parameters and the target pixel value of each different display area, obtain the target pixel value of the current display area. Different display areas are either combined areas of the display screen in different unfolded states or different areas of the current display area.
[0039] The target optical effect parameters include at least one of the display screen's color gamut parameters, color temperature parameters, and gamma parameters. First, the target optical effect parameters for the current display area are obtained.
[0040] Then, on the one hand, the current display area can be pre-divided into multiple different display areas, and then the initial pixel values corresponding to different display areas can be obtained from the image to be displayed. The display screen can be divided into four different display areas according to top, bottom, left, and right, although this application is not limited to this. There is a mapping relationship between the current brightness level, initial pixel value, target optical effect parameters, and target pixel value of each different display area. This mapping relationship can be represented by a preset pixel mapping table. The preset pixel mapping table can also be called a 3D-Look-Up-Table. Here, the preset pixel mapping table stores the correspondence between input pixel values and output pixel values after display calibration. Specifically, it stores the mapping relationship between the initial pixel value and the target pixel value after display calibration under different display areas, different brightness levels, and different target optical effect parameters. That is, the preset pixel mapping table can be understood as including multiple preset pixel mapping sub-tables, each of which stores the mapping relationship between the initial pixel value and the target pixel value under a certain display area, a certain brightness level, and a certain target optical effect parameter.
[0041] Then, for each different display area of the current display area, first determine the preset pixel mapping sub-table corresponding to each display area, the current brightness level, and the target optical effect parameters from the preset pixel mapping table; then obtain the target pixel value corresponding to the initial pixel value from the preset pixel mapping sub-table according to the initial pixel value corresponding to the display area.
[0042] For example, assuming the current brightness level is 100 nits, for the four different display areas on the screen (first display area, second display area, third display area, and fourth display area), first determine the preset pixel mapping sub-tables corresponding to each display area and the current brightness level from the preset pixel mapping table. That is, determine the preset pixel mapping sub-table 1 corresponding to the first display area and 100 nits; determine the preset pixel mapping sub-table 2 corresponding to the second display area and 100 nits; determine the preset pixel mapping sub-table 3 corresponding to the third display area and 100 nits; and determine the preset pixel mapping sub-table 4 corresponding to the fourth display area and 100 nits. Then, based on the initial pixel value corresponding to the first display area, the target pixel value corresponding to the initial pixel value is obtained from the preset pixel mapping sub-table 1; based on the initial pixel value corresponding to the second display area, the target pixel value corresponding to the initial pixel value is obtained from the preset pixel mapping sub-table 2; based on the initial pixel value corresponding to the third display area, the target pixel value corresponding to the initial pixel value is obtained from the preset pixel mapping sub-table 3; and based on the initial pixel value corresponding to the fourth display area, the target pixel value corresponding to the initial pixel value is obtained from the preset pixel mapping sub-table 4.
[0043] On the other hand, the display screen can be pre-divided into multiple different combined areas according to different unfolding states. Then, the initial pixel values corresponding to different combined areas are obtained from the image to be displayed. There is a mapping relationship between the current brightness level, initial pixel value, target optical effect parameters, and target pixel value of each different combined area. This mapping relationship can be represented using a preset pixel mapping table. Here, the preset pixel mapping table stores the correspondence between input pixel values and output pixel values after display calibration. Specifically, it stores the mapping relationship between the initial pixel value and the target pixel value after display calibration for the current combined area under different combined areas, different brightness levels, and different target optical effect parameters. That is, the preset pixel mapping table can be understood as including multiple preset pixel mapping sub-tables, each of which stores the mapping relationship between the initial pixel value and the target pixel value for a certain combined area, a certain brightness level, and a certain target optical effect parameter.
[0044] Then, for the current combined area, first determine the preset pixel mapping sub-table corresponding to the current combined area, the current brightness level, and the target optical effect parameters from the preset pixel mapping table; then obtain the target pixel value corresponding to the initial pixel value from the preset pixel mapping sub-table based on the initial pixel value corresponding to the current combined area.
[0045] Step 260: Generate a target image based on the target pixel values corresponding to the current display area, and display the target image.
[0046] Finally, after obtaining the target optical effect parameters for the current display area, and based on the mapping relationship between the current brightness level, initial pixel value, and target optical effect parameters and target pixel values for each different display area, the target pixel value for the current display area can be obtained. The target pixel value for the current display area is the pixel value obtained after calibrating the initial pixel value of the image to be displayed based on the calibration parameters. Specifically, continuing from the previous example, the target pixel values corresponding to the first, second, third, and fourth display areas are combined to generate the target image. This target image is the image generated after display calibration of the image to be displayed according to the preset pixel mapping table. At this point, the target image can be displayed on the screen.
[0047] Specifically, if different display areas are combined areas of the display screen in different unfolded states, then a target image is generated based on the target pixel value corresponding to the current combined area, and the target image is displayed directly.
[0048] In this embodiment, when calibrating the image to be displayed, the current brightness level of the current display area and the initial pixel value of the image to be displayed are first obtained. Since the mapping relationship between the current brightness level, initial pixel value, target optical effect parameters, and target pixel value of each different display area is known, the target optical effect parameters of the current display area can be obtained, and the target pixel value of the current display area can be obtained based on this mapping relationship. Finally, a target image is generated based on the target pixel value corresponding to the current display area, and the target image is displayed. Because different display areas are combinations of display areas in different unfolded states or different areas within the current display area, and there is a mapping relationship between the current brightness level, initial pixel value, target optical effect parameters, and target pixel value of each different display area, display calibration can be performed on the image to be displayed in the current display area (any combination of display areas in different unfolded states or different areas within the current display area) based on this mapping relationship. Therefore, no color cast problem will occur in any of the different areas of the image to be displayed on the screen.
[0049] In one embodiment, before display calibration of the image to be displayed, such as Figure 3 As shown, different display areas are defined, including a first display area and a second display area, and a display calibration method is provided, including a process for generating a preset pixel mapping table for the display screen. Specifically, the process for generating the preset pixel mapping table for the display screen includes the following steps:
[0050] Step 320: For the first display area and the second display area, collect the initial optical data when the first display area and the second display area display test images at multiple preset brightness levels.
[0051] Assuming the input on the display screen is pixel values in RGB color mode, the test image can include multiple images where the pixel values of the R channel, G channel, and B channel are respectively between [0, 255]. For example, the test image can include {(0,0,0),(32,32,32),(64,64,64),(96,96,96),(128,128,128),(160,160,160),(192,192,192),(224,224,224),(255,255,255)}, and red {(255,0,0),(128,0 ... The application contains 21 images: {(0,255,0),(0,128,0)}, green {(0,0,255),(0,0,128)}, blue {(0,255,255),(0,128,128)}, cyan {(0,255,255),(0,128,128)}, purple {(255,0,255),(128,0,128)}, and yellow {(255,255,0),(128,128,0)}. However, this application does not limit the scope of the application.
[0052] Here, the initial optical data can be represented by the CIExyY chromaticity diagram, including chromaticity coordinates and luminance. x and y represent chromaticity coordinates, and Y represents luminance, which can also be represented by Lv. Therefore, the initial optical data can be represented by (x, y, Lv). (x, y, Lv) can be obtained by transforming (X, Y, Z) under the XYZ color system. Specifically, the conversion relationship between (x, y, Lv) and (X, Y, Z) is: x = X / (X+Y+Z), y = Y / (X+Y+Z), Lv = Y. Here, the XYZ color system (CIE) is a new chromaticity system or color space established based on the RGB color system using three hypothetical primary colors X, Y, and Z.
[0053] For different display areas of the display screen, initial optical data is collected for each display area when displaying test images at multiple preset brightness levels. Specifically, for the first and second display areas, initial optical data is collected for each display area when displaying test images at multiple preset brightness levels. Initial optical data can be collected using optical measuring instruments, such as a color analyzer; however, this application is not limited to this method. Specifically, for the first display area of the display screen, initial optical data is collected for the first display area when displaying multiple test images at multiple preset brightness levels; similarly, for the second display area, initial optical data is collected for the first display area when displaying multiple test images at multiple preset brightness levels. If the different display areas also include a third and fourth display area, initial optical data is collected for the third and fourth display areas when displaying multiple test images at multiple preset brightness levels. Initial optical data at the center point of the test image can be collected using a color analyzer as the initial optical data for the entire test image. See Table 1-1 below for details.
[0054] Table 1-1
[0055]
[0056] Step 340: Obtain the target optical effect parameters of the first display area under multiple preset brightness levels, and calculate the calibration parameters of the first display area under multiple preset brightness levels based on the target optical effect parameters and the initial optical data of the first display area.
[0057] Step 360: Obtain the target optical effect parameters of the second display area under multiple preset brightness levels, and calculate the calibration parameters of the second display area under multiple preset brightness levels based on the target optical effect parameters and the initial optical data of the second display area.
[0058] Obtain the target optical effect parameters of each display area under multiple preset brightness levels, and calculate the calibration parameters of the display area under multiple preset brightness levels based on the target optical effect parameters and initial optical data.
[0059] The target optical effect parameters are determined based on different usage scenarios and habits, specifying the optical effect parameters of each display area at multiple preset brightness levels. For example, when an electronic device is used in a nighttime environment, due to the low brightness, the brightness level of the electronic device's display screen is reduced to 2 nits. At this time, the human eye is very sensitive to both color and brightness, so the colors on the display screen do not need to be overly vibrant. Therefore, the color gamut of the display screen can be defined as the sRGB color gamut, where the colors are paler than those of the P3 color gamut. When an electronic device is used in a daytime outdoor environment, due to the generally high brightness of the outdoor environment, the display screen will experience glare, and the colors on the display screen will be diluted by the sunlight. In this case, the color gamut of the display screen can be defined to be close to the original color gamut to make the colors on the display screen more vibrant. Of course, the above does not limit how to determine the optical effect parameters of each display area at multiple preset brightness levels.
[0060] The target optical effect parameters include at least one of the display's color gamut parameters, color temperature parameters, and gamma parameters. Color gamut parameters include P3 color gamut, sRGB color gamut, and native color gamut, etc. Of course, other color gamuts are also included, but this application does not limit them. sRGB is the standard red, green, and blue color gamut, a color gamut standard primarily based on human visual experience, and is commonly used in devices such as LCD panels, printers, and projectors. The P3 color gamut, compared to the sRGB color gamut, covers as much of the entire color gamut as possible, while the native color gamut is the color gamut of the display itself.
[0061] Common color temperatures in monitors (display screens) include 5000K, 6500K, and 9300K. The higher the color temperature, the more bluish (cooler) the image displayed on the screen; while the lower the color temperature, the more reddish (warmer) the image displayed on the screen.
[0062] Gamma value is a fixed physical property of a display (screen). It's a parameter used to characterize the brightness response of a display. CRT displays typically have a gamma value of 2.2 because this value closely matches human visual perception. A higher gamma result in a darker overall image and loss of detail in dark scenes; a lower gamma result in a brighter overall image, a blurry image, and reduced depth.
[0063] The target optical effect parameters for different display areas of the screen at multiple preset brightness levels can be pre-configured. Therefore, electronic devices can directly obtain these parameters. Specifically, the target optical effect parameters for the first display area and the second display area at multiple preset brightness levels can be obtained. For example, assuming a preset brightness level of 100 nits, for the first display area, the obtained target optical effect parameters at 100 nits are P3 color gamut, color temperature of 6500K, and gamma value of 2.2. Of course, this is just an example and does not limit the actual parameter values. Similarly, the target optical effect parameters for the second display area at multiple preset brightness levels can be obtained, and calibration parameters for the second display area at multiple preset brightness levels can be calculated based on these parameters and the initial optical data of the second display area.
[0064] Then, based on the target optical effect parameters and initial optical data, the calibration parameters of the display area at multiple preset brightness levels are calculated. Continuing the previous example, assuming the preset brightness level is 100 nits, for the first display area of the screen, the target optical effect parameters are P3 color gamut, color temperature of 6500K, and gamma value of 2.2. At this time, the initial optical data for the test image (0,0,0) is (x, y, Lv). Therefore, based on the P3 color gamut, color temperature of 6500K, gamma value of 2.2, and (x, y, Lv), the calibration parameters of the first display area at 100 nits can be calculated. Similarly, the calibration parameters of the first display area at other preset brightness levels can be calculated. Furthermore, the calibration parameters of different areas of the display screen at multiple preset brightness levels can be calculated.
[0065] Step 380: Based on the calibration parameters of the first display area under multiple preset brightness levels and the calibration parameters of the second display area under multiple preset brightness levels, calibrate multiple sets of preset pixel values to generate a preset pixel mapping table.
[0066] After calculating the calibration parameters for different areas of the display screen at multiple preset brightness levels, a preset pixel mapping table can be generated by calibrating multiple sets of preset pixel values based on the calibration parameters for each display area at multiple preset brightness levels. Specifically, for the first display area of the display screen at a certain preset brightness level, multiple sets of preset pixel values can be calibrated to generate target preset pixel values corresponding to the multiple sets of preset pixel values. Similarly, for the second display area of the display screen at a certain preset brightness level, multiple sets of preset pixel values can be calibrated to generate target preset pixel values corresponding to the multiple sets of preset pixel values. Furthermore, based on each pair of preset pixel values and target preset pixel values, a preset pixel mapping sub-table corresponding to that specific display area and that specific preset brightness level is generated. Based on multiple preset pixel mapping sub-tables corresponding to different display areas and different preset brightness levels, a preset pixel mapping table is generated.
[0067] In this embodiment, before performing display calibration, the electronic device needs to first calibrate different display areas of the screen to generate a preset pixel mapping table for the screen. Then, when the screen actually displays the image to be displayed, it can directly perform display calibration on different display areas based on the preset pixel mapping table. Because the screen is pre-divided into multiple different display areas, calibration parameters for different display areas at multiple preset brightness levels are calculated, and preset pixel mapping sub-tables corresponding to different display areas and different preset brightness levels are further obtained, the preset pixel mapping table is finally obtained. Therefore, when the screen actually displays the image to be displayed, it can directly perform display calibration on different display areas based on the preset pixel mapping table, avoiding color cast problems in different areas of the image to be displayed on the screen.
[0068] In one embodiment, such as Figure 4 As shown, step 340 involves calculating calibration parameters for the first display area at multiple preset brightness levels based on the target optical effect parameters and the initial optical data of the first display area, including:
[0069] Step 342: Obtain the chromaticity coordinates of the target optical effect parameters based on the target optical effect parameters.
[0070] Since there is a known correspondence between the target optical effect parameters and chromaticity coordinates, the chromaticity coordinates of the target optical effect parameters can be calculated based on them. Specifically, the chromaticity coordinates of the white point and the three vertices (red, green, and blue) corresponding to the target optical effect parameters are calculated. For example, assuming the target optical effect parameters are P3 color gamut, color temperature of 6500K, and gamma value of 2.2, then the chromaticity coordinates of the white point are W1(0.3127, 0.329), and the chromaticity coordinates of the three vertices (red, green, and blue) are R1(0.68, 0.32), G1(0.265, 0.69), and B1(0.15, 0.06), respectively. The target optical effect parameters for skin tone can also be calculated, specifically for the sRGB color gamut, a color temperature of 6500K, and a gamma value of 2.2. In this case, the chromaticity coordinates of the white point are W2(0.3127, 0.329), and the chromaticity coordinates of the red, green, and blue vertices are R2(0.64, 0.33), G2(0.30, 0.60), and B2(0.15, 0.06), respectively. However, this application does not impose any limitations on these parameters.
[0071] Step 344: Obtain the chromaticity coordinates of the first display area based on the initial optical data of the first display area.
[0072] For different display areas of the display screen, initial optical data is collected for each display area when displaying test images at multiple preset brightness levels. Specifically, based on the initial optical data of the first display area, the chromaticity coordinates of the first display area are calculated. Here, at a certain display area of the display screen and a certain preset brightness level, the chromaticity coordinates R (255,0,0) when the display area displays a red image, G (0,255,0) when the display area displays a green image, and B (0,0,255) when the display area displays a blue image, are obtained. These three chromaticity coordinates can be measured using a color analyzer. Then, the white chromaticity coordinates of the display area on the screen are calculated. The specific calculation process is as follows: using the chromaticity coordinates of the red screen R (255,0,0), green screen G (0,255,0), blue screen B (0,0,255), cyan screen C (0,255,255), violet screen M (255,0,255), and yellow screen Y (255,255,0), the coordinates of the RG line, GB line, BR line, RC line, GM line, and BY line can be obtained (two points determine a straight line). Figure 5The diagram shows the chromaticity coordinates, with the RC, GM, and BY lines plotted in the coordinate system. The intersection points W(B) and W(R) of the RC and GM lines, and W(G) of the BY and RC lines are then calculated. Finally, the average of the coordinates of these three points (W(B), W(R), and W(G)) is taken to obtain the white chromaticity coordinates of the display area on the screen, i.e., the W' coordinates (x, y).
[0073] Step 346: Based on the chromaticity coordinates of the target optical effect parameters and the chromaticity coordinates of the first display area, obtain the calibration parameters of the first display area under multiple preset brightness levels.
[0074] After the above steps, the chromaticity coordinates of the white point corresponding to the target optical effect parameters and the chromaticity coordinates of each different display area on the display screen are calculated. Therefore, the calibration parameters of the first display area under multiple preset brightness levels can be calculated based on the chromaticity coordinates of the target optical effect parameters and the chromaticity coordinates of the first display area. These calibration parameters are presented in the form of matrix M1.
[0075] Specifically, firstly, a matrix is formed by the chromaticity coordinates R1, G1, and B1 corresponding to the red, green, and blue of the white point, respectively. Then, the transformation matrix M(Target) for switching from the RGB color space to the XYZ color space is calculated based on matrix M(TargetColor). The process of calculating the transformation matrix M(Target) includes:
[0076] 1) First, calculate xr,yr; xg,yg; xb,yb; xw,yw using formula (1-1): where,
[0077]
[0078] 2) Then calculate Xr, Yr, Zr; Xg, Yg, Zg; Xb, Yb, Zb and Xw, Yw, Zw using formula (1-2):
[0079]
[0080] 3) Next, calculate matrix M (XYZ_Matrix) using formula (1-3):
[0081]
[0082] 4) Then, calculate the inverse matrix M(XYZ_Matrix_inverse) of M(XYZ_Matrix) using formula (1-4), and calculate matrix M(S):
[0083]
[0084] 5) Finally, calculate matrix M (Target) using formula (1-5):
[0085]
[0086] Secondly, a matrix is constructed based on the chromaticity coordinates R, G, and B of the display screen calculated in step 344. Referring to the methods in steps 1)-5) above, calculate the transformation matrix M(Panel) for switching from the RGB color space to the XYZ color space based on the matrix M(PanelColor);
[0087] Next, calculate the inverse matrix M(InversePanel) of the M(Panel) matrix;
[0088] Finally, matrix M1 is calculated using formula (1-6).
[0089] M1 = M(InversePanel) * M(Target) (Formula 1-6)
[0090] Similarly, for the target optical effect parameters of skin tone, the chromaticity coordinates of the white point are W2(0.3127, 0.329), and the chromaticity coordinates of the three vertices (red, green, and blue) are R2(0.64, 0.33), G2(0.30, 0.60), and B2(0.15, 0.06), respectively. Based on R2, G2, B2, and W2, matrix M2 can also be calculated according to the above calculation process. Different skin tone effects can be adjusted through matrix M2.
[0091] In this embodiment, when calculating the calibration parameters of the display area at multiple preset brightness levels, firstly, the chromaticity coordinates of the target optical effect parameters are calculated based on the target optical effect parameters. Secondly, the chromaticity coordinates of the display area are calculated based on the initial optical data. Finally, color gamut conversion is performed based on the chromaticity coordinates of the target optical effect parameters and the chromaticity coordinates of the display area to calculate the calibration parameters of the display area at multiple preset brightness levels. By using color gamut conversion, the accuracy of the calculated calibration parameters can be improved. Furthermore, this improves the accuracy of generating a preset pixel mapping table by calibrating multiple sets of preset pixel values based on the calibration parameters of the display area at multiple preset brightness levels.
[0092] In one embodiment, step 380, based on calibration parameters of the first display area at multiple preset brightness levels and calibration parameters of the second display area at multiple preset brightness levels, calibrates multiple sets of preset pixel values respectively to generate a preset pixel mapping table, including:
[0093] Based on the calibration parameters of the first display area under multiple preset brightness levels, multiple sets of preset pixel values are calibrated to generate multiple sets of first target preset pixel values corresponding to the preset pixel values.
[0094] Based on the calibration parameters of the second display area at multiple preset brightness levels, multiple sets of preset pixel values are calibrated to generate multiple sets of second target preset pixel values corresponding to the preset pixel values.
[0095] A preset pixel mapping table is generated based on each preset pixel value and the first target preset pixel value corresponding to the preset pixel value, and each preset pixel value and the second target preset pixel value corresponding to the preset pixel value.
[0096] After calculating the calibration parameters for different areas of the display screen at multiple preset brightness levels, a preset pixel mapping table can be generated by calibrating multiple sets of preset pixel values based on the calibration parameters for each display area at multiple preset brightness levels. Specifically, for the first display area of the display screen at a certain preset brightness level, multiple sets of preset pixel values can be calibrated to generate first target preset pixel values corresponding to the multiple sets of preset pixel values. Based on the calibration parameters for the second display area at multiple preset brightness levels, multiple sets of preset pixel values can be calibrated to generate multiple sets of second target preset pixel values corresponding to the preset pixel values. Furthermore, based on each pair of preset pixel values and target preset pixel values, a preset pixel mapping sub-table corresponding to that display area and that preset brightness level is generated. Based on multiple preset pixel mapping sub-tables corresponding to different display areas and different preset brightness levels, a preset pixel mapping table is generated. The preset pixel values here can include all combinations of pixel values from the R channel, G channel, and B channel, respectively, taken between [0, 255], and may also include some combinations; this application does not limit this.
[0097] The preset pixel mapping sub-table corresponding to 100 nits for the first display area can be shown in Table 1-2 below:
[0098] Table 1-2
[0099] Initial pixel values (R, G, B) Target pixel values (R, G, B) (0,0,0) (0,1,2) (0,1,2) (1,2,3) …… …… (4,1,2) (4,5,6)
[0100] In this embodiment, after calculating the calibration parameters for different areas of the display screen at multiple preset brightness levels, a preset pixel mapping table for the display screen can be generated. Specifically, a preset pixel mapping sub-table corresponding to a specific display area and a specific preset brightness level is first generated. Then, based on multiple preset pixel mapping sub-tables corresponding to different display areas and different preset brightness levels, a preset pixel mapping table is generated. In this way, corresponding preset pixel mapping sub-tables are generated for different display areas of the display screen at multiple preset brightness levels, thus obtaining the preset pixel mapping table. This allows for precise calibration of the display screen from two dimensions: different display areas and different brightness levels.
[0101] The previous embodiment described the specific implementation steps of step 360 in detail. In this embodiment, the following steps are described before step 360, which involves calibrating multiple sets of preset pixel values based on calibration parameters of the first display area at multiple preset brightness levels, and generating multiple sets of first target preset pixel values corresponding to the preset pixel values:
[0102] Based on the gamma parameters of the display screen, multiple sets of preset pixel values are gamma-mapped to generate multiple sets of gamma-mapped preset pixel values.
[0103] The gamma value is a fixed physical property of the display (screen), typically 2.2. Gamma is a parameter used to characterize the brightness response of a display. Therefore, multiple sets of preset pixel values can be gamma-mapped based on the display's gamma parameter (e.g., 2.2) to make the gamma parameters of the mapped preset pixel values close to the display's gamma parameter. In this way, gamma mapping for each set of preset pixel values generates a set of gamma-mapped preset pixel values.
[0104] In this embodiment, before calibrating multiple sets of preset pixel values, gamma mapping is performed on the multiple sets of preset pixel values according to the gamma parameters of the display screen to generate multiple sets of gamma-mapped preset pixel values. Performing gamma mapping on the multiple sets of preset pixel values, and then performing display calibration on the multiple sets of gamma-mapped preset pixel values, can further improve the accuracy of display calibration.
[0105] In one embodiment, the display screen of the electronic device includes a rollable screen, and the different display areas of the display screen include different combinations of areas corresponding to the rollable screen in different states;
[0106] If the current display area of the display screen is updated from the first display area to the second display area, then in step 240, the target optical effect parameters of the current display area are obtained. Based on the current brightness level, initial pixel value, and the mapping relationship between the target optical effect parameters and the target pixel value for each different display area, the target pixel value of the current display area is obtained, including:
[0107] Obtain the target optical effect parameters of the first display area, and obtain the first target pixel value of the first display area based on the current brightness level, initial pixel value, and mapping relationship between the target optical effect parameters and the target pixel value of each different display area;
[0108] Obtain the target optical effect parameters of the second display area, and obtain the second target pixel value of the second display area based on the current brightness level, initial pixel value, and mapping relationship between the target optical effect parameters and the target pixel value of each different display area.
[0109] Specifically, such as Figure 6 The diagram shown illustrates different combinations of areas corresponding to different states of a rollable screen in one embodiment. Here, different states include a retractable state and an unfolded state, and the unfolded state includes several different unfolded states. (Combined with...) Figure 6 It can be seen that when the scrollable screen is in its extended state, the display area is area A of the scrollable screen. When the scrollable screen is in its first unfolded state, the display area is area A+B; in its second unfolded state, the display area is area A+B+C; in its third unfolded state, the display area is area A+B+C+D; and in its fourth unfolded state, the display area is area A+B+C+D+E. Here, areas A, A+B, A+B+C, A+B+C+D, and A+B+C+D+E can all be referred to as different combinations of areas of the scrollable screen. Of course, the scrollable screen can include more unfolded states, and this application does not limit this. A Hall sensor can be installed on the display screen to detect the state of the display screen. Specifically, the Hall value of the display screen is detected by the Hall sensor, and the display state of the display screen is determined based on the Hall value.
[0110] like Figure 7 The image shown illustrates a display calibration method for a rollable screen in one embodiment. When calibrating the image to be displayed on the screen, the method includes:
[0111] Step 720: Obtain the current brightness level of the current display area of the display screen and the initial pixel value of the image to be displayed.
[0112] To achieve satisfactory image quality for users, electronic devices need to perform display calibration on the image to be displayed. First, the electronic device obtains the current brightness level of the current display area. Generally, the brightness of the electronic device's display screen is divided into brightness levels, such as 2 nit, 20 nit, 50 nit, 100 nit, 200 nit, 300 nit, 400 nit, 500 nit, and 800 nit. However, this is not a limitation on these brightness levels. Second, the electronic device obtains the initial pixel values of the image to be displayed. These initial pixel values can be pixel values in RGB color mode, HSV color mode, or HSB color mode, and other color modes are also possible; this application does not limit this. Assuming the initial pixel values are in RGB color mode, then the initial pixel values of each pixel in the image to be displayed are (R, G, B).
[0113] Step 740: If the display area of the display screen is updated from the first display area to the second display area, the target optical effect parameters of the first display area are obtained, and the first target pixel value of the first display area is obtained according to the current brightness level, initial pixel value, and mapping relationship between the target optical effect parameters and the target pixel value of each different display area.
[0114] The first display area and the second display area can be any two combined areas from different combined areas of the scrolling screen. Of course, in general, the first display area and the second display area can be any two adjacent combined areas from different combined areas of the scrolling screen. For example, if the first display area (first combined area) is area A, then the second display area (second combined area) can be area A+B; if the first display area (first combined area) is area A+B, then the second display area (second combined area) can be area A+B+C.
[0115] Within this framework, a mapping relationship exists between the current brightness level, initial pixel value, target optical effect parameters, and target pixel value for different display areas. This mapping relationship can be represented using a preset pixel mapping table. Specifically, this preset pixel mapping table stores the correspondence between input pixel values and output pixel values after display calibration. Specifically, it stores the mapping relationship between the initial pixel value and the target pixel value after display calibration for different combined areas, different brightness levels, and different optical effect parameters of the scrolling screen. In other words, the preset pixel mapping table can be understood as including multiple preset pixel mapping sub-tables, each storing the mapping relationship between the initial pixel value and the target pixel value for a specific combined area, brightness level, and optical effect parameter of the scrolling screen.
[0116] The process of generating the preset pixel mapping table for the rollable screen includes: for different combined areas of the rollable screen, pre-collecting initial optical data of each combined area of the rollable screen when displaying test images at multiple preset brightness levels; obtaining the target optical effect parameters of each combined area at multiple preset brightness levels; calculating the calibration parameters of the combined area at multiple preset brightness levels based on the target optical effect parameters and the initial optical data; and calibrating multiple sets of preset pixel values based on the calibration parameters of the combined area at multiple preset brightness levels to generate the preset pixel mapping table.
[0117] If the display area of the scrolling screen is updated from the first combined area to the second combined area, firstly, a preset pixel mapping sub-table a corresponding to the first combined area, the current brightness level, and the target optical effect parameters is determined from the preset pixel mapping table. Then, based on the first initial pixel value corresponding to the first combined area, the first target pixel value corresponding to the first initial pixel value is obtained from the preset pixel mapping sub-table a.
[0118] Step 760: Obtain the target optical effect parameters of the second display area. Based on the current brightness level, initial pixel value, and mapping relationship between the target optical effect parameters and the target pixel value of each different display area, obtain the second target pixel value of the second display area.
[0119] Next, a preset pixel mapping sub-table b corresponding to the second combined region, the current brightness level, and a certain optical effect parameter is determined from the preset pixel mapping table. Then, based on the second initial pixel value corresponding to the second combined region, the second target pixel value corresponding to the second initial pixel value is obtained from the preset pixel mapping sub-table b.
[0120] Step 780: Generate a first target image based on the first target pixel value corresponding to the first combined region, generate a second target image based on the second target pixel value corresponding to the second combined region, and display the first target image and the second target image on the display screen.
[0121] The first target pixel values corresponding to the first combined region are combined to generate a first target image. Similarly, the second target pixel values corresponding to the second combined region are combined to generate a second target image. Then, the first target image and the second target image are displayed sequentially on the display screen. That is, if the display area of the scrolling screen is the first combined region, the first target image is displayed at this time. If the display area of the scrolling screen is updated to the second combined region, the second target image is displayed at this time.
[0122] This application provides a display calibration method applied to a scrollable screen, where the scrollable screen corresponds to different combined areas in different states. If the display area of the scrollable screen is either a first combined area or a second combined area, the display areas are obviously different, and the color cast problem in the first combined area (area A) may be different from the color cast problem in the second combined area (area A+B). For example, if the image displayed in area A has a yellowish tint, then the image displayed in area A+B will have a bluish tint. If display calibration is directly performed on area A+B based on a preset pixel mapping table corresponding to area A, it obviously cannot solve the bluish color cast problem of the image displayed in area A+B.
[0123] Because a preset pixel mapping table for the scroll screen is generated in advance, and the preset pixel mapping table stores the mapping relationship between the initial pixel value and the target pixel value after display calibration under different combination areas, different brightness levels, and different optical effect parameters of the scroll screen, display calibration can be performed on the image to be displayed in different combination areas of the scroll screen, so that the different areas of the image to be displayed on the scroll screen will not have color distortion problems.
[0124] In one embodiment, for a scrollable screen in an electronic device, if the display area of the scrollable screen updates from a first combined area to a second combined area, such as Figure 8 As shown, step 260, generating a target image based on the target pixel values corresponding to the current display area, and displaying the target image, includes:
[0125] Step 820: Interpolate the first target pixel value and the second target pixel value to generate at least one set of first intermediate pixel values.
[0126] For a first combined area of the display screen, a first target pixel value corresponding to the first combined area, the current brightness level, and the first initial pixel value is obtained from a preset pixel mapping table based on the first initial pixel value corresponding to the first combined area. For a second combined area of the display screen, a second target pixel value corresponding to the second combined area, the current brightness level, and the second initial pixel value is obtained from a preset pixel mapping table based on the second initial pixel value corresponding to the second combined area.
[0127] Then, linear interpolation can be used to interpolate the first target pixel value and the second target pixel value to generate at least one set of first intermediate pixel values. For example, interpolation can be performed based on the first target pixel value and the second target pixel value to generate one set of first intermediate pixel values; alternatively, interpolation can be performed based on the first target pixel value and the second target pixel value to generate multiple sets of first intermediate pixel values. This application does not limit the specific method used.
[0128] Step 840: Generate a first target image based on the first target pixel value, generate at least one set of first intermediate images based on at least one set of first intermediate pixel values, and generate a second target image based on the second target pixel value.
[0129] Step 860: Generate a first image based on the first target image, at least one set of first intermediate images, and the second target image, and display the first image.
[0130] The first target pixel values corresponding to the first combined region are combined to generate a first target image. Similarly, at least one set of first intermediate pixel values are combined to generate at least one set of first intermediate images, and the second target pixel values corresponding to the second combined region are combined to generate a second target image. Then, a first image is generated sequentially based on the first target image, at least one set of first intermediate images, and the second target image, and displayed sequentially on the display screen. Here, the first image can be a first animation, that is, the first target image, at least one set of first intermediate images, and the second target image are displayed sequentially in an animated form; however, this application does not limit this. Specifically, if the display area of the scrolling screen is the first combined region, then the first target image is displayed at this time. During the process of updating the display area of the scrolling screen from the first combined region to the second combined region, at least one set of first intermediate images is displayed. If the display area of the scrolling screen is updated to the second combined region, then the second target image is displayed at this time.
[0131] If the display area of the scrolling screen is updated from the first combined area to the second combined area, and the first target image and the second target image are displayed on the screen in sequence, the display effect may jump.
[0132] In this embodiment, interpolation processing is performed on the first target pixel value and the second target pixel value to generate at least one set of first intermediate pixel values. Then, at least one set of first intermediate images is generated based on the at least one set of first intermediate pixel values. The display effect of the first intermediate images is equivalent to a fusion of the display effects of the first target image and the second target image. Therefore, by inserting at least one set of first intermediate images between the display of the first target image and the second target image, a gradual or transitional processing can be achieved between the display effects of the first target image and the second target image. This avoids the problem of abrupt changes in the display effect of scrolling screens.
[0133] In one embodiment, the display screen includes a rollable screen, and the different display areas of the display screen include different combinations of areas corresponding to the rollable screen in different states;
[0134] If the current display area of the screen is the first display area, and the current brightness level of the current display area switches from the first brightness level to the second brightness level, then in step 240, the target optical effect parameters of the current display area are obtained. Based on the mapping relationship between the current brightness level, initial pixel value, target optical effect parameters, and target pixel value of each different display area, the target pixel value of the current display area is obtained, including:
[0135] Obtain the target optical effect parameters of the first display area. Based on the mapping relationship between the first brightness level, initial pixel value, target optical effect parameters and target pixel value of each different display area, obtain the third target pixel value of the first display area. Based on the mapping relationship between the second brightness level, initial pixel value, target optical effect parameters and target pixel value of each different display area, obtain the fourth target pixel value of the first display area.
[0136] like Figure 9 The image shown illustrates a display calibration method for a rollable screen in one embodiment. When calibrating the image to be displayed on the screen, the method includes:
[0137] Step 920: Obtain the current brightness level of the current display area of the display screen and the initial pixel value of the image to be displayed;
[0138] Step 940: For the first combined area of the display screen, obtain the third target pixel value corresponding to the first combined area, the first brightness level and the first initial pixel value from the preset pixel mapping table according to the first initial pixel value corresponding to the first combined area;
[0139] If the display area of the screen is a first combined area, and the current brightness level of the screen switches from the first brightness level to the second brightness level, then the third target pixel value corresponding to the first combined area, the first brightness level, and the first initial pixel value is first obtained from the preset pixel mapping table. For example, if the first combined area is area A, and the current brightness level of the screen switches from the first brightness level (50 nits) to the second brightness level (100 nits), then the third target pixel value corresponding to area A, 50 nits, and the first initial pixel value is first obtained from the preset pixel mapping table.
[0140] Step 960: For the first combined area of the display screen, obtain the fourth target pixel value corresponding to the first combined area, the second brightness level and the first initial pixel value from the preset pixel mapping table according to the first initial pixel value corresponding to the first combined area;
[0141] Then, the fourth target pixel value corresponding to the first combined area, the second brightness level, and the first initial pixel value is obtained from the preset pixel mapping table. For example, if the first combined area is area A, and the current brightness level of the display screen switches from the first brightness level (50 nits) to the second brightness level (100 nits), then the fourth target pixel value corresponding to area A, 100 nits, and the first initial pixel value is first obtained from the preset pixel mapping table. Essentially, in this case, the display area of the rollable screen does not change, but the brightness level changes.
[0142] Step 980: Generate a third target image based on the third target pixel value corresponding to the first brightness level, generate a fourth target image based on the fourth target pixel value corresponding to the second brightness level, and display the third target image and the fourth target image on the display screen.
[0143] The third target pixel value corresponding to the first brightness level is combined to generate the third target image. Similarly, the fourth target pixel value corresponding to the second brightness level is combined to generate the fourth target image. Then, the third and fourth target images are displayed on the display screen sequentially. That is, if the brightness level of the scroll screen is the first brightness level, the third target image is displayed. If the brightness level of the scroll screen is updated to the second brightness level, the fourth target image is displayed.
[0144] This application provides a display calibration method applied to a rollable screen, where the rollable screen corresponds to different combined areas in different states. If the display area of the screen is a first combined area, and the current brightness level of the screen switches from a first brightness level to a second brightness level, a third target image and a fourth target image are generated according to a preset pixel mapping table. The third target image and the fourth target image are then displayed sequentially on the screen. This achieves accurate display calibration even when the display area of the rollable screen remains unchanged, but the brightness level changes.
[0145] In one embodiment, for a rollable screen in an electronic device, if the display area of the screen is a first combined area, and the current brightness level of the screen switches from the first brightness level to the second brightness level, step 260, generating a target image based on the target pixel value corresponding to the current display area, and displaying the target image, includes:
[0146] Interpolate the third target pixel value and the fourth target pixel value to generate at least one set of second intermediate pixel values;
[0147] For the first combined area of the display screen, a third target pixel value corresponding to the first combined area, the first brightness level, and the first initial pixel value is obtained from a preset pixel mapping table based on the first initial pixel value corresponding to the first combined area. For the first combined area of the display screen, a fourth target pixel value corresponding to the first combined area, the second brightness level, and the first initial pixel value is obtained from a preset pixel mapping table based on the first initial pixel value corresponding to the first combined area.
[0148] Then, linear interpolation can be used to interpolate the third and fourth target pixel values to generate at least one set of second intermediate pixel values. For example, interpolation can be performed based on the third and fourth target pixel values to generate one set of second intermediate pixel values; alternatively, interpolation can be performed based on the third and fourth target pixel values to generate multiple sets of second intermediate pixel values. This application does not limit the specific method used.
[0149] A third target image is generated based on the third target pixel value, at least one set of second intermediate images is generated based on at least one set of second intermediate pixel values, and a fourth target image is generated based on the fourth target pixel value;
[0150] A second image is generated based on a third target image, at least one set of second intermediate images, and a fourth target image, and the second image is displayed in a first display area.
[0151] The third target pixel values corresponding to the first brightness level are combined to generate a third target image. Similarly, at least one set of second intermediate pixel values are combined to generate at least one set of second intermediate images, and the fourth target pixel values corresponding to the second brightness level are combined to generate a fourth target image. Then, a second animation is generated sequentially based on the third target image, at least one set of second intermediate images, and the fourth target image, and displayed sequentially on the display screen. Specifically, if the brightness level of the scroll screen is the first brightness level, the third target image is displayed at this time. During the process of updating the brightness level of the scroll screen from the first brightness level to the second brightness level, at least one set of second intermediate images is displayed. If the brightness level of the scroll screen is updated to the second brightness level, the fourth target image is displayed at this time.
[0152] If the brightness level of the scroll screen is updated from the first brightness level to the second brightness level, and the third and fourth target images are displayed on the screen in sequence, a problem of abrupt changes in display effect may occur.
[0153] In this embodiment, interpolation processing is performed on the third target pixel value and the fourth target pixel value to generate at least one set of second intermediate pixel values. Then, at least one set of second intermediate images is generated based on the at least one set of second intermediate pixel values. The display effect of the second intermediate images is equivalent to a fusion of the display effects of the third target image and the fourth target image. Therefore, by inserting at least one set of second intermediate images between the display of the third target image and the fourth target image, a gradual or transitional processing can be achieved between the display effects of the third target image and the fourth target image. This avoids the problem of abrupt changes in the display effect of scrolling screens.
[0154] In a specific embodiment, such as Figure 10 As shown, a display calibration method for a rollable screen is provided, including:
[0155] Step 1002: Obtain the first brightness level of the current display area of the display screen and the initial pixel value of the image to be displayed;
[0156] Step 1004: Detect whether the display area of the screen changes using a Hall sensor;
[0157] Step 1006: If it is detected that the current display area of the display screen is updated from the first combined area to the second combined area, the target optical effect parameters of the current display area are obtained. For the first combined area of the display screen, the first target pixel value corresponding to the first combined area, the first brightness level, the target optical effect parameters and the first initial pixel value are obtained from the preset pixel mapping table according to the first initial pixel value corresponding to the first combined area.
[0158] Step 1008: For the second combined area of the display screen, obtain the second target pixel value corresponding to the second combined area, the first brightness level, the target optical effect parameter and the second initial pixel value from the preset pixel mapping table according to the second initial pixel value corresponding to the second combined area.
[0159] Step 1010: Interpolate the first target pixel value and the second target pixel value to generate at least one set of first intermediate pixel values;
[0160] Step 1012: Generate a first target image based on the first target pixel value, generate at least one set of first intermediate images based on at least one set of first intermediate pixel values, and generate a second target image based on the second target pixel value;
[0161] Step 1014: Generate a first animation based on the first target image, at least one set of first intermediate images, and the second target image, and display the first animation on the display screen;
[0162] Step 1016: If the display area of the rollable screen has not changed, but the current brightness level of the display screen has switched from the first brightness level to the second brightness level, for the second combined area of the display screen, according to the first initial pixel value corresponding to the second combined area, obtain the third target pixel value (actually the second target pixel value) corresponding to the second combined area, the first brightness level, the target optical effect parameters and the first initial pixel value from the preset pixel mapping table.
[0163] Step 1018: For the second combined area of the display screen, obtain the fourth target pixel value corresponding to the second combined area, the second brightness level, the target optical effect parameter and the first initial pixel value from the preset pixel mapping table according to the first initial pixel value corresponding to the second combined area;
[0164] Step 1018: Interpolate the third target pixel value and the fourth target pixel value to generate at least one set of second intermediate pixel values;
[0165] Step 1020: Generate a third target image (actually a second target image) based on the third target pixel value; generate at least one set of second intermediate images based on at least one set of second intermediate pixel values; and generate a fourth target image based on the fourth target pixel value.
[0166] Step 1022: Generate a second animation based on the third target image, at least one set of second intermediate images, and the fourth target image, and display the second animation on the display screen.
[0167] In this embodiment, interpolation processing is performed on the first target pixel value and the second target pixel value to generate at least one set of first intermediate pixel values. Then, at least one set of first intermediate images is generated based on the at least one set of first intermediate pixel values. The display effect of the first intermediate images is equivalent to a fusion of the display effects of the first target image and the second target image. Therefore, by inserting at least one set of first intermediate images between the display of the first target image and the second target image, a gradual or transitional processing can be achieved between the display effects of the first target image and the second target image. This avoids the problem of abrupt changes in the display effect of scrolling screens.
[0168] If the current display area of the screen is the second combined area, and the current brightness level of the screen switches from the first brightness level to the second brightness level, then a third target image and a fourth target image are generated according to a preset pixel mapping table. These third and fourth target images are then displayed sequentially on the screen. This achieves accurate display calibration even when the current display area of the rollable screen remains unchanged, but the brightness level changes. Ultimately, it ensures that when the rollable screen is at any brightness level or in any extended or retracted state (corresponding to different combined areas), the display effect of the image to be displayed can meet expectations, without sudden changes or abnormalities in display effect due to changes in brightness or state.
[0169] In one embodiment, such as Figure 11 As shown, a display calibration device 1100 is provided for use in electronic devices having a display screen. The device includes:
[0170] The initial pixel value acquisition module 1102 is used to acquire the current brightness level of the current display area of the display screen and the initial pixel value of the image to be displayed;
[0171] The target pixel value acquisition module 1104 is used to acquire the target optical effect parameters of the current display area. Based on the current brightness level, initial pixel value, and mapping relationship between the target optical effect parameters and the target pixel value of each different display area, the target pixel value of the current display area is acquired. The different display areas are either a combination of areas where the display screen is in different unfolded states or different areas within the current display area.
[0172] Display module 1106 is used to generate a target image based on the target pixel value corresponding to the current display area and to display the target image.
[0173] In one embodiment, such as Figure 12 As shown, a display calibration device 1100 is provided, with different display areas including a first display area and a second display area; the device also includes:
[0174] The initial optical data acquisition module 1108 is used to acquire initial optical data of the first display area and the second display area when displaying test images at multiple preset brightness levels;
[0175] The calibration parameter calculation module 1110 is used to obtain the target optical effect parameters of the first display area under multiple preset brightness levels, and calculate the calibration parameters of the first display area under multiple preset brightness levels based on the target optical effect parameters and the initial optical data of the first display area; and to obtain the target optical effect parameters of the second display area under multiple preset brightness levels, and calculate the calibration parameters of the second display area under multiple preset brightness levels based on the target optical effect parameters and the initial optical data of the second display area.
[0176] The preset pixel mapping table generation module 1112 is used to calibrate multiple sets of preset pixel values based on the calibration parameters of the first display area under multiple preset brightness levels and the calibration parameters of the second display area under multiple preset brightness levels, and generate a preset pixel mapping table.
[0177] In one embodiment, the calibration parameter calculation module 1110 includes:
[0178] The first chromaticity coordinate calculation unit is used to obtain the chromaticity coordinates of the target optical effect parameters based on the target optical effect parameters;
[0179] The second chromaticity coordinate calculation unit is used to obtain the chromaticity coordinates of the display area based on the initial optical data;
[0180] The calibration parameter calculation unit is used to obtain the calibration parameters of the first display area at multiple preset brightness levels based on the chromaticity coordinates of the target optical effect parameters and the chromaticity coordinates of the first display area.
[0181] In one embodiment, the preset pixel mapping table generation module 1112 is used to calibrate multiple sets of preset pixel values based on calibration parameters of the first display area under multiple preset brightness levels, and generate multiple sets of first target preset pixel values corresponding to the preset pixel values; calibrate multiple sets of preset pixel values based on calibration parameters of the second display area under multiple preset brightness levels, and generate multiple sets of second target preset pixel values corresponding to the preset pixel values; and generate a preset pixel mapping table according to each preset pixel value and the first target preset pixel value corresponding to the preset pixel value, and each preset pixel value and the second target preset pixel value corresponding to the preset pixel value.
[0182] In one embodiment, the preset pixel mapping table generation module 1112 is used to calibrate multiple sets of preset pixel values based on calibration parameters of the first display area at multiple preset brightness levels, and generate multiple sets of first target preset pixel values corresponding to the preset pixel values, including: performing gamma mapping on multiple sets of preset pixel values according to the gamma parameters of the display screen, and generating multiple sets of gamma-mapped preset pixel values.
[0183] In one embodiment, if the different display areas are combined areas of the display screen in different unfolded states, and the current display area of the display screen is updated from the first display area to the second display area, then the target pixel value acquisition module 1104 includes:
[0184] The first target pixel value acquisition unit is used to acquire the target optical effect parameters of the first display area, and acquire the first target pixel value of the first display area according to the current brightness level, initial pixel value, and mapping relationship between the target optical effect parameters and the target pixel value of each different display area.
[0185] The second target pixel value acquisition unit is used to acquire the target optical effect parameters of the second display area, and to acquire the second target pixel value of the second display area according to the current brightness level, initial pixel value, and mapping relationship between the target optical effect parameters and the target pixel value of each different display area.
[0186] In one embodiment, the display module 1106 includes:
[0187] The first intermediate pixel value generation unit is used to perform interpolation processing on the first target pixel value and the second target pixel value to generate at least one set of first intermediate pixel values.
[0188] The first intermediate image generation unit is configured to generate a first target image based on a first target pixel value, generate at least one set of first intermediate images based on at least one set of first intermediate pixel values, and generate a second target image based on a second target pixel value.
[0189] The first animation generation unit is used to generate a first image based on a first target image, at least one set of first intermediate images and a second target image, and to display the first image.
[0190] In one embodiment, if the current display area of the display screen is a first display area, and the current brightness level of the current display area of the display screen switches from the first brightness level to the second brightness level, then the target pixel value acquisition module 1104 includes:
[0191] The third and fourth target pixel value generation units are used to obtain the target optical effect parameters of the first display area, obtain the third target pixel value of the first display area according to the first brightness level, initial pixel value, and mapping relationship between the target optical effect parameters and the target pixel value of each different display area, and obtain the fourth target pixel value of the first display area according to the second brightness level, initial pixel value, and mapping relationship between the target optical effect parameters and the target pixel value of each different display area.
[0192] In one embodiment, the display module 1106 includes:
[0193] The second intermediate pixel value generation unit is used to interpolate the third target pixel value and the fourth target pixel value to generate at least one set of second intermediate pixel values;
[0194] The second intermediate image generation unit is used to generate a third target image based on the third target pixel value, generate at least one set of second intermediate images based on at least one set of second intermediate pixel values, and generate a fourth target image based on the fourth target pixel value.
[0195] The second animation generation unit is used to generate a second image based on the third target image, at least one set of second intermediate images and the fourth target image, and to display the second image in the first display area.
[0196] In one embodiment, the initial optical data includes chromaticity coordinates and luminance values.
[0197] In one embodiment, the target optical effect parameters include at least one of the display's color gamut parameters, color temperature parameters, and gamma parameters.
[0198] It should be understood that although the steps in the flowchart above are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart above may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0199] The division of the various modules in the above-described display calibration device is merely illustrative. In other embodiments, the display calibration device may be divided into different modules as needed to complete all or part of the functions of the above-described display calibration device.
[0200] Specific limitations regarding the display calibration device can be found in the limitations of the display calibration method described above, and will not be repeated here. Each module in the aforementioned display calibration device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independently of the processor in the computer device, or stored in software in the memory of the computer device, so that the processor can call and execute the operations corresponding to each module.
[0201] Figure 13This is a schematic diagram of the internal structure of an electronic device in one embodiment. The electronic device can be any terminal device such as a mobile phone, tablet computer, laptop computer, desktop computer, PDA (Personal Digital Assistant), POS (Point of Sales), in-vehicle computer, or wearable device. The electronic device includes a processor and a memory connected via a system bus. The processor may include one or more processing units. The processor may be a CPU (Central Processing Unit) or a DSP (Digital Signal Processor), etc. The memory may include non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs.
[0202] This computer program can be executed by a processor to implement a display calibration method provided in the following embodiments. The internal memory provides a cached runtime environment for the operating system computer program in the non-volatile storage medium.
[0203] The various modules in the display calibration device provided in this application embodiment can be implemented in the form of a computer program. This computer program can run on an electronic device. The program modules constituted by this computer program can be stored in the memory of the electronic device. When the computer program is executed by a processor, it implements the steps of the method described in the embodiments of this application.
[0204] This application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, cause the processors to perform the steps of a display calibration method.
[0205] This application also provides a computer program product containing instructions that, when run on a computer, cause the computer to perform a display calibration method.
[0206] Any references to memory, storage, databases, or other media used in this application may include non-volatile and / or volatile memory. Non-volatile memory may include ROM (Read-Only Memory), PROM (Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), or flash memory. Volatile memory may include RAM (Random Access Memory), which is used as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as SRAM (Static Random Access Memory), DRAM (Dynamic Random Access Memory), SDRAM (Synchronous Dynamic Random Access Memory), Double Data Rate DDR SDRAM (Double Data Rate Synchronous Dynamic Random Access Memory), ESDRAM (Enhanced Synchronous Dynamic Random Access Memory), SLDRAM (Sync Link Dynamic Random Access Memory), RDRAM (Rambus Dynamic Random Access Memory), and DRDRAM (Direct Rambus Dynamic Random Access Memory).
[0207] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A display calibration method, applied to an electronic device having a display screen, characterized in that, The method includes: Obtain the current brightness level of the current display area of the display screen and the initial pixel value of the image to be displayed; The target optical effect parameters of the current display area are obtained. Based on the current brightness level of each different display area, the initial pixel value, and the mapping relationship between the target optical effect parameters and the target pixel value, the target pixel value of the current display area is obtained. The different display areas are either a combination of areas of the display screen in different unfolded states or different areas of the current display area. A target image is generated based on the target pixel value corresponding to the current display area, and the target image is displayed. Wherein, if the different display areas are combined areas of the display screen in different unfolded states, and the current display area of the display screen is updated from the first display area to the second display area, then obtaining the target optical effect parameters of the current display area, and obtaining the target pixel value of the current display area according to the current brightness level of each different display area, the initial pixel value, and the mapping relationship between the target optical effect parameters and the target pixel value, includes: obtaining the target optical effect parameters of the first display area, and obtaining the first target pixel value of the first display area according to the current brightness level of each different display area, the initial pixel value, and the mapping relationship between the target optical effect parameters and the target pixel value; obtaining the target optical effect parameters of the second display area, and obtaining the second target pixel value of the second display area according to the current brightness level of each different display area, the initial pixel value, and the mapping relationship between the target optical effect parameters and the target pixel value. The step of generating a target image based on the target pixel values corresponding to the current display area and displaying the target image includes: interpolating the first target pixel values and the second target pixel values to generate at least one set of first intermediate pixel values; generating a first target image based on the first target pixel values, generating at least one set of first intermediate images based on at least one set of first intermediate pixel values, and generating a second target image based on the second target pixel values; and sequentially displaying the first target image, at least one set of first intermediate images, and the second target image in the form of an animation. The display area in each of the unfolded states includes a preset display area and an unfolded display area corresponding to the unfolded state; the preset display area is the display area of the scroll screen in the telescopic state; the unfolded display areas corresponding to different unfolded states are combinations of different display areas; The first display area and the second display area are any two adjacent combined areas in different combined areas of the scroll screen.
2. The method according to claim 1, characterized in that, The different display areas include a first display area and a second display area; the method further includes: For the first display area and the second display area, initial optical data are collected when the first display area and the second display area display test images at multiple preset brightness levels; Obtain the target optical effect parameters of the first display area at multiple preset brightness levels, and calculate the calibration parameters of the first display area at the multiple preset brightness levels based on the target optical effect parameters and the initial optical data of the first display area. Obtain the target optical effect parameters of the second display area at multiple preset brightness levels, and calculate the calibration parameters of the second display area at the multiple preset brightness levels based on the target optical effect parameters and the initial optical data of the second display area. Based on the calibration parameters of the first display area under the multiple preset brightness levels and the calibration parameters of the second display area under the multiple preset brightness levels, multiple sets of preset pixel values are calibrated to generate a preset pixel mapping table.
3. The method according to claim 2, characterized in that, The step of calculating the calibration parameters of the first display area at the multiple preset brightness levels based on the target optical effect parameters and the initial optical data of the first display area includes: Based on the target optical effect parameters, obtain the chromaticity coordinates of the target optical effect parameters; Based on the initial optical data of the first display area, obtain the chromaticity coordinates of the first display area; Based on the chromaticity coordinates of the target optical effect parameters and the chromaticity coordinates of the first display area, the calibration parameters of the first display area under the multiple preset brightness levels are obtained.
4. The method according to claim 2, characterized in that, The step of calibrating multiple sets of preset pixel values based on calibration parameters of the first display area under multiple preset brightness levels and calibration parameters of the second display area under multiple preset brightness levels, and generating a preset pixel mapping table, includes: Based on the calibration parameters of the first display area under the multiple preset brightness levels, multiple sets of preset pixel values are calibrated to generate multiple sets of first target preset pixel values corresponding to the preset pixel values; Based on the calibration parameters of the second display area under the multiple preset brightness levels, multiple sets of preset pixel values are calibrated to generate multiple sets of second target preset pixel values corresponding to the preset pixel values; A preset pixel mapping table is generated based on each preset pixel value and the first target preset pixel value corresponding to the preset pixel value, and each preset pixel value and the second target preset pixel value corresponding to the preset pixel value.
5. The method according to claim 4, characterized in that, Before calibrating multiple sets of preset pixel values based on calibration parameters of the first display area at the multiple preset brightness levels, and generating multiple sets of first target preset pixel values corresponding to the preset pixel values, the process includes: Based on the gamma parameters of the display screen, gamma mapping is performed on the multiple sets of preset pixel values to generate multiple sets of preset pixel values after gamma mapping.
6. The method according to claim 1, characterized in that, The step of interpolating the first target pixel value and the second target pixel value to generate at least one set of first intermediate pixel values includes: Linear interpolation is used to interpolate the first target pixel value and the second target pixel value to generate at least one set of first intermediate pixel values.
7. The method according to claim 1, characterized in that, The display status of the display screen is detected by a Hall sensor installed on the display screen.
8. The method according to any one of claims 1-5, characterized in that, If the current display area of the display screen is a first display area, and the current brightness level of the current display area switches from the first brightness level to the second brightness level, then obtaining the target optical effect parameters of the current display area, and obtaining the target pixel value of the current display area based on the current brightness level of each different display area, the initial pixel value, and the mapping relationship between the target optical effect parameters and the target pixel value, includes: Obtain the target optical effect parameters of the first display area; obtain the third target pixel value of the first display area according to the first brightness level of each different display area, the initial pixel value, and the mapping relationship between the target optical effect parameters and the target pixel value; obtain the fourth target pixel value of the first display area according to the second brightness level of each different display area, the initial pixel value, and the mapping relationship between the target optical effect parameters and the target pixel value.
9. The method according to claim 8, characterized in that, The step of generating a target image based on the target pixel value corresponding to the current display area and displaying the target image includes: Interpolate the third target pixel value and the fourth target pixel value to generate at least one set of second intermediate pixel values; A third target image is generated based on the third target pixel value; at least one set of second intermediate images is generated based on at least one set of second intermediate pixel values; and a fourth target image is generated based on the fourth target pixel value. A second image is generated based on the third target image, at least one set of second intermediate images, and the fourth target image, and the second image is displayed in the first display area.
10. The method according to claim 2, characterized in that, The initial optical data includes chromaticity coordinates and luminance values.
11. The method according to claim 2, characterized in that, The target optical effect parameters include at least one of the display screen's color gamut parameters, color temperature parameters, and gamma parameters.
12. A display calibration device, characterized in that, An electronic device having a display screen, the device comprising: The initial pixel value acquisition module is used to acquire the current brightness level of the current display area of the display screen and the initial pixel value of the image to be displayed; The target pixel value acquisition module is used to acquire the target optical effect parameters of the current display area, and to acquire the target pixel value of the current display area according to the current brightness level of each different display area, the initial pixel value, and the mapping relationship between the target optical effect parameters and the target pixel value; the different display areas are a combination of areas of the display screen in different unfolded states or different areas of the current display area; The display module is used to generate a target image based on the target pixel value corresponding to the display area, and to display the target image; Wherein, if the different display areas are combined areas of the display screen in different unfolded states, and the current display area of the display screen is updated from the first display area to the second display area, then the target pixel value acquisition module is specifically used for: acquiring the target optical effect parameters of the first display area, and acquiring the first target pixel value of the first display area according to the current brightness level of each different display area, the initial pixel value, and the mapping relationship between the target optical effect parameters and the target pixel value; acquiring the target optical effect parameters of the second display area, and acquiring the second target pixel value of the second display area according to the current brightness level of each different display area, the initial pixel value, and the mapping relationship between the target optical effect parameters and the target pixel value; the display module is specifically used for: processing the first target pixel value... The first target pixel value and the second target pixel value are interpolated to generate at least one set of first intermediate pixel values; a first target image is generated based on the first target pixel values, at least one set of first intermediate images is generated based on at least one set of first intermediate pixel values, and a second target image is generated based on the second target pixel value; the first target image, at least one set of first intermediate images, and the second target image are sequentially displayed in the form of animation; the display area in each of the unfolded states includes a preset display area and an unfolded display area corresponding to the unfolded state; the preset display area is the display area of the scroll screen in the telescopic state; the unfolded display areas corresponding to different unfolded states are combinations of different display areas; the first display area and the second display area are any two adjacent combined areas among the different combined areas of the scroll screen.
13. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the computer program is executed by the processor, it causes the processor to perform the steps of the display calibration method as described in any one of claims 1 to 11.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the display calibration method as described in any one of claims 1 to 11.
15. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the steps of the display calibration method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Crease compensation method and device, electronic equipment and storage medium
CN113674657A
Display brightness and color correction method and device, electronic equipment and storage medium
CN114333724A
Image display device and control method thereof
JP2013044959A