Display screen calibration method and electronic equipment
Through the method of detecting and generating lookup tables, the problem of inconsistent color accuracy performance of the display screen is solved, the calibration efficiency and accuracy of the display screen of electronic devices is improved, and the color calibration deviation is achieved.
Patent Information
- Application Number
- CN202410050867.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-12
- Publication Date
- 2025-01-03
AI Technical Summary
In the prior art, it is difficult for the display screen to achieve the same color accuracy during the production process, resulting in the need for color calibration before leaving the factory. However, the calibration method at this stage is inefficient and takes a long time.
By detecting the image color channel value on the display screen, a lookup table is generated to map the relationship between the actual color channel value and the standard color channel value. Using interpolation processing and correction algorithms, the calibration table of the display screen is quickly obtained, reducing the LUT device Reliance, improve calibration efficiency.
Lower display color calibration deviation and higher calibration efficiency are achieved, ensuring accurate color performance of the display in different color gamuts.
Smart Images

Figure CN119252208A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of calibration technology, and in particular to a display screen calibration method and an electronic device. Background Art
[0002] Displays of electronic devices such as mobile phones, tablets, and laptops have gradually begun to adopt wide color gamut displays, such as the standard red green blue (sRGB) color gamut, Adobe RGB color gamut, and Digital Cinema Initiatives (DCI)-P3 color gamut. Users have also begun to pay attention to the color accuracy of displays in different color gamuts.
[0003] At present, during the production process of display screens, it is difficult to ensure that every display screen can achieve the same color accuracy due to limitations in processing technology and production costs. Therefore, before electronic devices leave the factory, the display screens on electronic devices need to be color calibrated; however, the current method of color calibrating display screens takes a long time and is not efficient. Summary of the invention
[0004] The present application provides a display screen calibration method and an electronic device, which can ensure that the display screen of the electronic device is calibrated more efficiently.
[0005] In a first aspect, the present application provides a display screen calibration method, which is applied to a first electronic device, the first electronic device is applied to a first communication system, the first communication system includes a first electronic device and a second electronic device, the second electronic device includes a display screen, and the method includes:
[0006] Detect color channel values of Q first images displayed on a display screen to obtain Q groups of actual color channel values; the Q first images are images generated respectively according to Q groups of standard color channel values, Q is less than H, and H is the number of groups of real color channel values supported by the second electronic device for calibrating the display screen; obtain a first lookup table according to the Q groups of standard color channel values, the Q groups of actual color channel values, and the H groups of standard color channel values, the first lookup table including a mapping relationship between the H groups of actual color channel values and the H groups of standard color channel values; write the first lookup table into the second electronic device so that the second electronic device calibrates the display screen according to the first lookup table.
[0007] In the above method, Q groups of actual color channel values corresponding to the Q first images displayed on the display screen of the second electronic device can be detected, and the first lookup table can be predicted based on the Q groups of actual color channel values, the Q groups of standard color channel values, and the H groups of standard color channel values. Since Q is less than H, and H is the number of color channel values supported by the second electronic device for calibrating the display screen, it can be seen that standard color channel values less than the number of color channel values supported by the second electronic device for calibrating the display screen can be obtained in advance and an image can be generated. Therefore, the actual color channel values of the image can be detected, and based on the actual color channel values, the actual color channel values of the number of color channel values supported by the second electronic device for calibrating the display screen can be predicted. In this way, the first lookup table can be obtained more efficiently by predicting a large number of actual color channel values supported by the second electronic device through a small number of actual color channel values.
[0008] Moreover, after obtaining the first lookup table, the first lookup table can be written into the second electronic device so that the second electronic device calibrates the display screen according to the first lookup table, thereby achieving lower display screen color calibration deviation, higher display screen color calibration efficiency, and reducing the calibration result's dependence on the LUT device in the second electronic device.
[0009] For example, the value of H is 4913, the value of Q is 21, the number of first images is 27, the Q groups of standard color channel values are 27 groups of standard color channel values, and the Q groups of actual color channel values are 27 groups of actual color channel values.
[0010] Based on this, the first electronic device can obtain 27 groups of actual color channel values, thereby, based on the 27 groups of standard color channel values, the 27 groups of actual color channel values, and the 4913 groups of standard color channel values, a first lookup table can be obtained, and the first lookup table includes a mapping relationship between the 4913 groups of actual color channel values and the 4913 groups of standard color channel values.
[0011] In addition, it can be understood that the standard color channel values corresponding to all pixels in any one of the Q first images are the same.
[0012] In combination with the first aspect, in some implementations of the first aspect, a first lookup table is obtained according to the Q group standard color channel values, the Q group actual color channel values, and the H group standard color channel values, including:
[0013] According to the relationship between the standard color channel values of group Q and the standard color channel values of group H, the actual color channel values of group Q are interpolated, and the second lookup table includes a mapping relationship between the predicted color channel values of group H and the standard color channel values of group H; the second lookup table is corrected to obtain the first lookup table, and the similarity between the actual color channel values of group H and the standard color channel values of group H is higher than the similarity between the predicted color channel values of group H and the standard color channel values of group H.
[0014] It should be understood that the closer the detected actual color channel value of the display screen of the second electronic device is to the standard color channel value, the higher the accuracy is, and the more accurate the correction is when the display screen of the second electronic device is calibrated.
[0015] In the above implementation, since the predicted color channel values of group H in the second lookup table are estimated and may not be accurate enough, the first electronic device can further correct the second lookup table so that the similarity between the corrected actual color channel values of group H and the standard color channel values of group H in the first lookup table is higher than the similarity between the predicted color channel values of group H and the standard color channel values of group H, that is, the corrected actual color channel values of group H are closer to the standard color channel values of group H. In this way, the corrected actual color channel values of group H obtained by the first electronic device after the above two processes are more accurate, which facilitates more accurate calibration of the display screen of the second electronic device according to the first lookup table.
[0016] In addition, the predicted color channel values of group H can be obtained through interpolation processing, which is equivalent to finding an unknown number through the standard color channel values of group Q, the standard color channel values of group H, and the actual color channel values of group Q. The unknown number is the predicted color channel value of group H. In this way, the second lookup table can be obtained more quickly, and data can be prepared for more efficient calibration of the second electronic display screen.
[0017] In addition, the above interpolation processing may specifically be tetrahedron interpolation processing, which is implemented by a tetrahedron interpolation algorithm.
[0018] In combination with the first aspect, in some implementations of the first aspect, correcting the second lookup table to obtain the first lookup table includes:
[0019] Detect color channel values of P second images displayed on the display screen to obtain P groups of actual color channel values, where the P second images are images generated respectively according to P groups of standard color channel values, and the P groups of standard color channel values include color channel values corresponding to P colors respectively for covering the color gamut supported by the display screen; replace the P groups of predicted color channel values corresponding to the P groups of standard color channel values in the H groups of predicted color channel values of the second lookup table with the P groups of actual color channel values to obtain a first lookup table.
[0020] In the above implementation, P groups of actual color channel values corresponding to the P second images displayed by the display screen can be obtained, and the P groups of predicted color channel values corresponding to the P groups of standard color channel values in the H groups of predicted color channel values of the second lookup table are replaced with the P groups of actual color channel values, thereby obtaining a first lookup table. By replacing the estimated color channel values with the actual color channel values obtained by detection, the problem that the accuracy of the estimated color channel values may not be high enough compared to the color channel values actually detected can be solved. In this way, the authenticity and accuracy of the obtained first lookup table can be guaranteed, and the accuracy of calibrating the display screen of the second electronic device can be further guaranteed.
[0021] For example, the value of P is 21, the number of second images is 21, the P groups of standard color channel values are 21 groups of standard color channel values, and the P groups of actual color channel values are 21 groups of actual color channel values.
[0022] In addition, it can be understood that the standard color channel values corresponding to all pixels in any second image of the P second images are the same.
[0023] In combination with the first aspect, in some implementations of the first aspect, the H groups of standard color channel values include N values obtained by performing N*N*N grid segmentation on the three primary color cube. 3 The true color channel values of all vertices of the first sub-cube.
[0024] In the above method, N 3 The actual color channel values of all vertices of the first sub-cube are the color channel values supported by the calibration display of the second electronic device.
[0025] For example, the value of N is 16, then the number of first sub-cubes is 4096. Considering that the vertices of the 4096 first sub-cubes overlap, the number of color channel values of the 4096 first sub-cubes is 4913.
[0026] In combination with the first aspect, in some implementations of the first aspect, the Q group of standard color channel values includes M obtained by performing M*M*M grid segmentation on the three primary color cube. 3 The real color channel values of all vertices of the second sub-cube, M is a positive integer greater than or equal to 2.
[0027] In the above method, M 3 The real color channel values of all vertices of the second sub-cube are color channel values evenly distributed on the three-primary color cube. By detecting the actual color channel values corresponding to the image generated by the color channel values, a lookup table for calibrating the display screen of the second electronic device can be obtained more accurately.
[0028] For example, if the value of M is 2, then the number of second sub-cubes is 8. Considering that the vertices of the 8 second sub-cubes overlap, the number of color channel values of the 8 second sub-cubes is 27.
[0029] In combination with the first aspect, in some implementations of the first aspect, the length of the three-primary-color cube is the color channel value 255 corresponding to red, the width is the color channel value 255 corresponding to green, and the height is the color channel value 255 corresponding to blue.
[0030] Among them, the cube formed by the color channel values of the three colors of red, green and blue, correspondingly, the length, width and height of the three primary color cube are all color channel values 255.
[0031] In combination with the first aspect, in some implementations of the first aspect, detecting color channel values of P second images displayed on the display screen to obtain P groups of actual color channel values includes:
[0032] The display screen is controlled to display the P second images in sequence; in the process of the display screen displaying the P second images, the actual color channel value of each second image in the P second images is detected by a colorimeter to obtain P groups of actual color channel values.
[0033] In the above method, the actual color channel value of each second image can be collected by a colorimeter during the process of sequentially displaying the P second images to obtain P groups of actual color channel values.
[0034] It is understandable that the P second images can be stored in the second electronic device in a preset order, and therefore, the first electronic device can control the display screen to display the P second images in sequence in the preset order.
[0035] In combination with the first aspect, in some implementations of the first aspect, controlling the display screen to display the P second images in sequence includes:
[0036] The brightness of the display screen is controlled to be a first brightness, where the first brightness is a maximum brightness in a brightness range supported by the display screen; based on the brightness of the display screen being the first brightness, the display screen is controlled to display the P second images in sequence.
[0037] In the above method, the second electronic device is controlled to display the P second images in sequence at the maximum brightness supported by its display screen, which can ensure the accuracy of the P groups of actual color channel values corresponding to the P collected second images, and avoid the situation where the P groups of actual color channel values corresponding to the P collected second images are inaccurate due to insufficient brightness or other reasons, thereby affecting the subsequent calibration of the display screen of the second electronic device.
[0038] For example, the brightness range supported by the display screen of the second electronic device is 100 cd / m2 -150cd / m 2 , then the first electronic device can control the brightness of the display screen of the second electronic device to 150cd / m 2 .
[0039] In combination with the first aspect, in some implementations of the first aspect, detecting color channel values of Q first images displayed on a display screen to obtain Q groups of actual color channel values includes:
[0040] The display screen is controlled to display the Q first images in sequence; in the process of the display screen displaying the Q first images, the actual color channel value of each of the Q first images is detected by a colorimeter to obtain Q groups of actual color channel values.
[0041] In the above method, in the process of sequentially displaying the Q first images, the actual color channel value of each first image can be collected by a colorimeter to obtain Q groups of actual color channel values.
[0042] It is understandable that the Q first images can be stored in the second electronic device in a preset order, and therefore, the first electronic device can control the display screen to display the Q first images in sequence in the preset order.
[0043] In combination with the first aspect, in some implementations of the first aspect, controlling the display screen to display the Q first images in sequence includes:
[0044] The brightness of the display screen is controlled to be a first brightness, where the first brightness is a maximum brightness in a brightness range supported by the display screen; based on the brightness of the display screen being the first brightness, the display screen is controlled to display the Q first images in sequence.
[0045] In the above method, controlling the second electronic device to display the Q first images in sequence at the maximum brightness supported by its display screen can ensure the accuracy of the Q groups of actual color channel values corresponding to the Q first images collected, and avoid the situation where the Q groups of actual color channel values corresponding to the Q first images collected are inaccurate due to insufficient brightness or the like, thereby affecting the subsequent calibration of the display screen of the second electronic device.
[0046] In a second aspect, the present application provides a display screen calibration device, which is used to execute the display screen calibration method in the first aspect and any possible design of the first aspect.
[0047] Specifically, the display screen calibration device may include: a detection module, an acquisition module and a calibration module.
[0048] A detection module is used to detect the color channel values of Q first images displayed on a display screen to obtain Q groups of actual color channel values; the Q first images are images generated respectively according to Q groups of standard color channel values, Q is less than H, and H is the number of real color channel values supported by the second electronic device to calibrate the display screen.
[0049] The obtaining module is used to obtain a first lookup table according to the Q group standard color channel values, the Q group actual color channel values, and the H group standard color channel values, wherein the first lookup table includes a mapping relationship between the H group actual color channel values and the H group standard color channel values.
[0050] The calibration module is used to write the first lookup table into the second electronic device so that the second electronic device calibrates the display screen according to the first lookup table.
[0051] In conjunction with the second aspect, in some implementations of the second aspect, a module is obtained, specifically used for:
[0052] According to the relationship between the standard color channel values of group Q and the standard color channel values of group H, the actual color channel values of group Q are interpolated to obtain a second lookup table, and the second lookup table includes a mapping relationship between the predicted color channel values of group H and the standard color channel values of group H; the second lookup table is corrected to obtain a first lookup table, and the similarity between the actual color channel values of group H and the standard color channel values of group H is higher than the similarity between the predicted color channel values of group H and the standard color channel values of group H.
[0053] In conjunction with the second aspect, in some implementations of the second aspect, a module is obtained, specifically used for:
[0054] Detect color channel values of P second images displayed on the display screen to obtain P groups of actual color channel values, where the P second images are images generated respectively according to P groups of standard color channel values, and the P groups of standard color channel values include color channel values corresponding to P colors respectively for covering the color gamut supported by the display screen; replace the P groups of predicted color channel values corresponding to the P groups of standard color channel values in the H groups of predicted color channel values of the second lookup table with the P groups of actual color channel values to obtain a first lookup table.
[0055] In conjunction with the second aspect, in some implementations of the second aspect, the H groups of standard color channel values include N values obtained by performing N*N*N grid segmentation on the three primary color cube. 3 The true color channel values of all vertices of the first sub-cube.
[0056] In conjunction with the second aspect, in some implementations of the second aspect, the Q group of standard color channel values includes M obtained by performing M*M*M grid segmentation on the three primary color cube. 3The real color channel values of all vertices of the second sub-cube, M is a positive integer greater than or equal to 2.
[0057] In combination with the second aspect, in some implementations of the second aspect, the length of the three-primary-color cube is the color channel value 255 corresponding to red, the width is the color channel value 255 corresponding to green, and the height is the color channel value 255 corresponding to blue.
[0058] In conjunction with the second aspect, in some implementations of the second aspect, the detection module is specifically configured to:
[0059] The display screen is controlled to display the P second images in sequence; in the process of the display screen displaying the P second images, the actual color channel value of each second image in the P second images is detected by a colorimeter to obtain P groups of actual color channel values.
[0060] In conjunction with the second aspect, in some implementations of the second aspect, the detection module is specifically configured to:
[0061] The brightness of the display screen is controlled to be a first brightness, where the first brightness is a maximum brightness in a brightness range supported by the display screen; based on the brightness of the display screen being the first brightness, the display screen is controlled to display the P second images in sequence.
[0062] In conjunction with the second aspect, in some implementations of the second aspect, the detection module is specifically configured to:
[0063] The display screen is controlled to display the Q first images in sequence; in the process of the display screen displaying the Q first images, the actual color channel value of each of the Q first images is detected by a colorimeter to obtain Q groups of actual color channel values.
[0064] In conjunction with the second aspect, in some implementations of the second aspect, the detection module is specifically configured to:
[0065] The brightness of the display screen is controlled to be a first brightness, where the first brightness is a maximum brightness in a brightness range supported by the display screen; based on the brightness of the display screen being the first brightness, the display screen is controlled to display the Q first images in sequence.
[0066] In a third aspect, the present application provides an electronic device, comprising one or more processors, a memory, and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the electronic device executes the display calibration method in the first aspect and any possible implementation of the first aspect.
[0067] In a fourth aspect, the present application provides a chip system, which includes a processor for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes the display screen calibration method in the first aspect and any possible implementation of the first aspect.
[0068] In a fifth aspect, the present application provides a computer-readable storage medium, including a computer program. When the computer program runs on an electronic device, the electronic device executes the display screen calibration method in the first aspect and any possible implementation of the first aspect.
[0069] In a sixth aspect, the present application provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the display screen calibration method in the first aspect and any possible implementation manner of the first aspect.
[0070] It can be understood that the beneficial effects of the third to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] Figure 1 A schematic diagram of a scenario of a display screen calibration method provided in an embodiment of the present application;
[0072] Figure 2 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application;
[0073] Figure 3 A schematic diagram of a flow chart of a display screen calibration method provided in one embodiment of the present application;
[0074] Figure 4 A schematic diagram of a three-primary-color cube provided in one embodiment of the present application;
[0075] Figure 5 A schematic diagram of a segmentation scene of a three-primary-color cube provided in an embodiment of the present application;
[0076] Figure 6 A schematic diagram of a scene after segmentation of a three-primary-color cube provided in an embodiment of the present application;
[0077] Figure 7 A schematic diagram of a first image provided by an embodiment of the present application;
[0078] Figure 8 A schematic diagram of a flow chart of a display screen calibration method provided in one embodiment of the present application;
[0079] Fig. 9 A schematic diagram of a color gamut provided in one embodiment of the present application;
[0080] Fig.10 A schematic diagram of a display screen calibration device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0081] In this application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c alone can represent: a, b, c, a and b, a and c, or a, b, and c, where a, b, and c can be single or multiple. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0082] To facilitate understanding, some of the examples given are provided for reference to the description of concepts related to the embodiments of the present application.
[0083] 1. Color channel value.
[0084] The color channel value is the RGB value. RGB is a color model that represents the values of the three color channels: red, green, and blue.
[0085] R represents the brightness value of the red channel, and the value range is 0-255; G represents the brightness value of the green channel, and the value range is 0-255; B represents the brightness value of the blue channel, and the value range is 0-255.
[0086] The values of the three channels combined together can describe a specific color.
[0087] Among them, a standard color channel is a color channel value in a standard RGB range; an actual color channel value is a color channel value actually detected for a pixel point of an image.
[0088] 2. Three primary color cube.
[0089] The three primary color (red-green-blue, RGB) cube is a model used to describe color in image processing. It is based on the RGB color model and is usually represented as a cube of three color channels R, G, and B in a three-dimensional coordinate system.
[0090] The entire color cube contains all the colors that humans can perceive.
[0091] The vertices of the three primary color cube represent the brightest pure colors, while the edges represent various mixed colors.
[0092] The coordinates of each point in the three-primary color cube are composed of three values: R, G, and B, which represent the color attribute of the point.
[0093] 3. Color gamut.
[0094] Gamut is often used to indicate the range of colors that can be represented in a color space.
[0095] Among them, the color space defined by different devices or standards can have different color gamuts. The larger the color gamut supported by a device, the more colors it can display.
[0096] Commonly used color gamuts include sRGB, Adobe RGB, DCIP3, etc.
[0097] The color gamut is represented by a chromaticity diagram, which is a graphical tool used to represent color information. Based on the concept of color space, it projects the three-dimensional color space onto a two-dimensional plane to form a chromaticity plane. Through the chromaticity diagram, the differences and relationships between colors can be intuitively observed and compared.
[0098] 4. Color calibration.
[0099] Color calibration is used to correct the color performance of a monitor or other imaging device using some tools or equipment, so that it can display or output colors more accurately.
[0100] The purpose of color calibration is to match a device's color response curve to a standard color space such as sRGB or Adobe RGB.
[0101] Through color calibration, the device can display more accurate colors, making the color performance more stable and reliable.
[0102] 5. Colorimeter.
[0103] A colorimeter is a laboratory instrument that measures or specifies color by comparison with synthetic pigments. A colorimeter measures the color channel values of an image.
[0104] In aspects such as image processing and color calibration, colorimeters can provide accurate color information and calibration adjustment parameters.
[0105] 6. 3D look-up table (3D LUT).
[0106] The 3D LUT table is a color correction algorithm based on a three-dimensional cube. The three-dimensional lookup table is usually used to correct color differences between different devices or achieve specific color effects. It has good color expression capabilities and flexibility.
[0107] The three-dimensional lookup table can be a three-dimensional array or a data table. Each element in the three-dimensional lookup table lists the corresponding relationship between the input color channel value and the output color channel value, which is used to achieve color adjustment and calibration.
[0108] 7. Tetrahedral interpolation algorithm.
[0109] The tetrahedral interpolation algorithm is a method for interpolating data in three-dimensional space. Based on the tetrahedral structure, the tetrahedral interpolation algorithm can divide the three-dimensional space into multiple irregular tetrahedral units and use the known data at the vertices of the tetrahedron for interpolation calculation.
[0110] The principle of the tetrahedron interpolation algorithm is to first match the point to be interpolated with the known data point to find the tetrahedron containing the point to be interpolated. Then, the vertices of the tetrahedron and the corresponding known data values are used to perform interpolation calculations to obtain the value of the point to be interpolated.
[0111] Displays of electronic devices such as mobile phones, tablets, and laptops have gradually begun to adopt wide color gamut displays, such as the standard red green blue (sRGB) color gamut, Adobe RGB color gamut, and Digital Cinema Initiatives (DCI)-P3 color gamut. Users have also begun to pay attention to the color accuracy of displays in different color gamuts.
[0112] At present, during the production process of display screens, it is difficult to ensure that every display screen can achieve the same color accuracy due to limitations in processing technology and production costs. Therefore, before electronic devices leave the factory, the display screens on electronic devices need to be color calibrated; however, the current method of color calibrating display screens takes a long time and is not efficient.
[0113] In view of the above problems, the present application may provide a display screen calibration method, an electronic device, a chip system, a computer-readable storage medium, and a computer program product, which may obtain in advance a first image generated by less than the standard color channel values supported by the electronic device for calibrating the display screen, and store it in the electronic device. The calibration device may collect the actual color channel values corresponding to the aforementioned first images displayed on the display screen of the electronic device, and predict a first lookup table based on the aforementioned actual color channel values. In this way, the first electronic device may quickly obtain the first lookup table, and the calibration device may write the first lookup table into the electronic device so that the electronic device calibrates the display screen in the electronic device according to the first lookup table. In this way, the speed of obtaining the lookup table for calibrating the display screen of the electronic device can be guaranteed, a lower display screen color calibration deviation can be achieved, and a higher display screen color calibration efficiency can be guaranteed.
[0114] The above-mentioned electronic device may be an electronic device having display screen hardware and corresponding software support.
[0115] For example, the electronic device and the calibration device can be mobile phones, tablet computers, vehicle-mounted devices, laptop computers, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), smart cars, smart TVs, robots, and other devices.
[0116] Furthermore, the electronic device and the calibration device may be of the same type or of different types.
[0117] It should be pointed out that in some possible implementations, the electronic device may also be called a terminal device, user equipment (UE), etc., which is not limited in the embodiments of the present application.
[0118] See also Figure 1 , Figure 1 A schematic diagram of a scenario of a display screen calibration method provided in an embodiment of the present application is shown.
[0119] like Figure 1 As shown, a display screen calibration method provided in an embodiment of the present application is applicable to a communication system including a first electronic device and a second electronic device.
[0120] The first electronic device may be the calibration device mentioned above, and the second electronic device may be the electronic device mentioned above.
[0121] The first electronic device may be an electronic device for generating a three-dimensional lookup table for calibrating a display screen of the second electronic device.
[0122] The first electronic device may process and obtain a three-dimensional lookup table for calibrating the display screen of the second electronic device.
[0123] A second electronic device is placed on the assembly line, and the second electronic device sequentially displays Q images generated according to Q groups of standard color channel values through a display screen. The first electronic device can control the colorimeter to collect Q groups of actual color channel values corresponding to the Q images, and obtain a first lookup table based on the Q groups of actual color channel values, wherein the first lookup table includes a mapping relationship between H groups of actual color channel values and H groups of standard color channel values.
[0124] Based on this, the first lookup table finally obtained through the above processing is a three-dimensional lookup table used to calibrate the display screen of the second electronic device.
[0125] The second electronic device may be a device for receiving the three-dimensional lookup table generated by the first electronic device and calibrating the display screen therein.
[0126] After generating the first lookup table, the first electronic device may send the first lookup table to the second electronic device. After receiving the first lookup table, the second electronic device may automatically calibrate the display screen of the second electronic device according to the first lookup table.
[0127] In some embodiments, the first electronic device and the second electronic device may be connected via a wired connection or a wireless connection.
[0128] When the first electronic device is connected to the second electronic device in a wired manner, the first electronic device and the second electronic device may be connected via a data line.
[0129] When the first electronic device and the second electronic device are connected in a wireless connection manner, the first electronic device and the second electronic device may be connected via Bluetooth or wireless fidelity (WiFi).
[0130] The types of the first electronic device and the second electronic device may be the same or different; the present application does not specifically limit the type of the first electronic device and the type of the second electronic device.
[0131] For example, the first electronic device is a mobile phone, and the second electronic device is a personal computer (PC).
[0132] For another example, the first electronic device is a PC, and the second electronic device is also a PC.
[0133] It should be understood that the above is an example of a scenario and does not limit the scenario of the present application.
[0134] For ease of explanation, Figure 2 In the description, the second electronic device is the electronic device 100, and the electronic device 100 is a mobile phone.
[0135] like Figure 2 As shown, in some embodiments, the electronic device 100 may include a processor 101, a communication module 102, a display screen 103, a camera 104, a sensor 105, an internal memory 106, a USB interface 107, an external memory interface 108, a charging management module 109, a power management module 110, and a battery 111, etc.
[0136] The processor 101 may include one or more processing units, for example, the processor 101 may include an application processor (AP), a modem processor, a graphics processor, an image signal processor (ISP), a controller, a memory, a video stream codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated in one or more processors 101.
[0137] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0138] The processor 101 may also be provided with a memory for storing instructions and data.
[0139] The communication module 102 may include antenna 1 and antenna 2, a mobile communication module, and / or a wireless communication module.
[0140] The display screen 103 is used to display images or videos in the human-computer interaction interface. The display screen 103 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), MiniLED, MicroLED, Micro-OLED, quantum dot light emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 103, where N is a positive integer greater than 1.
[0141] Optionally, the electronic device 100 may further include peripheral devices, such as a mouse, buttons, indicator lights, a keyboard, a speaker, a microphone, etc.
[0142] It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100 .
[0143] In other embodiments, the electronic device 100 may include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently. The components shown may be implemented in hardware, software, or a combination of software and hardware.
[0144] Based on the description of the above scenario, the display screen calibration method provided in the embodiment of the present application is described in detail below in combination with the accompanying drawings and application scenarios.
[0145] The display screen calibration method provided in the embodiment of the present application may be applied to a first electronic device, the first electronic device is applied to a first communication system, and the first communication system may include a first electronic device and a second electronic device.
[0146] The first electronic device may be an electronic device for generating a three-dimensional lookup table for calibrating a display screen of the second electronic device.
[0147] The second electronic device may be a device for receiving the three-dimensional lookup table generated by the first electronic device and calibrating the display screen therein.
[0148] For example, the first electronic device is a mobile phone, and the second electronic device is a PC.
[0149] See also Figure 3, Figure 3 A schematic diagram of a flow chart of a display screen calibration method provided in an embodiment of the present application is shown.
[0150] like Figure 3 As shown, the display screen calibration method provided by the present application may include:
[0151] S201. Detect color channel values of Q first images displayed on a display screen to obtain Q groups of actual color channel values.
[0152] Among them, the Q first images are images generated respectively according to Q groups of standard color channel values, the color channel values of all pixels in each of the Q first images are the corresponding standard color channel values, Q is less than H, and H is the number of groups of real color channel values supported by the second electronic device to calibrate the display screen.
[0153] The Q first images are pre-acquired and stored in the second electronic device, and the Q first images are images generated by Q groups of standard color channel values selected from several groups of color channel values corresponding to a three-primary color cube (also called an RGB cube).
[0154] like Figure 4 The figure shows a three-primary color cube. When the three-primary color cube is mapped to a three-dimensional coordinate system, the coordinates of each point in the three-primary color cube are composed of three color channel values of R, G, and B. The RGB value corresponding to the coordinates of a point is a set of standard color channel values. According to a set of standard color channel values, an image can be generated, and the color channel value of each pixel in the image is the standard color channel value of the set.
[0155] For example, there is a point in the three-primary color cube with an RGB value of (255, 255, 255). This RGB value is a set of standard color channel values. Each pixel in the image generated by this RGB value has a standard color channel value of (255, 255, 255).
[0156] It should be understood that the ranges of the three values of R, G, and B are all 0-255. Therefore, the length of the three-primary color cube is the color channel value 255 corresponding to red, the width is the color channel value 255 corresponding to green, and the height is the color channel value 255 corresponding to blue.
[0157] The Q group of standard color channel values includes the M obtained by dividing the three primary color cube into M*M*M grids. 3 The color channel values of all vertices of the second sub-cube, M is a positive integer greater than or equal to 2.
[0158] In some embodiments, the first electronic device may perform M*M*M grid segmentation on the obtained three-primary-color cube to obtain M 3 The second sub-cube, then obtain M3 The first electronic device can obtain Q groups of standard color channel values corresponding to all vertices of the second sub-cube, and then can generate Q first images according to the Q groups of standard color channel values. Thus, the first electronic device can send the Q first images to the second electronic device, so that the second electronic device obtains the Q first images.
[0159] It should be noted that M 3 Among the second sub-cubes, there is a case where the vertices of some second sub-cubes coincide with the vertices of another second sub-cube. In this case, the two coincident vertices can be recorded as only one vertex. Therefore, M 3 The number of all vertices corresponding to the second sub-cube is not M 3 *8 gets the number.
[0160] When the value of M is 2, Figure 5 As shown, the first electronic device can divide the three primary color cube into 2*2*2 grids to obtain Figure 6 2 shown 3 (8) The second sub-cube, then obtain 2 3 The color channel values corresponding to all vertices of the second sub-cube are obtained. 3 Set of standard color channel values.
[0161] Specifically, since the length, width and height of the three-primary color cube are all 255, the first electronic device performs 2*2*2 grid segmentation on the obtained three-primary color cube, that is, segmentation is performed along the position where the value of the R color channel direction is 128, segmentation is performed along the position where the value of the G color channel direction is 128, and segmentation is performed along the position where the value of the B color channel direction is 128. In this way, the first electronic device can obtain 2 3 A second subcube.
[0162] It should be understood that the three-primary-color cube is a cube with 8 vertices. After the three-primary-color cube is divided into a 2*2*2 grid, 2 3 (8) Each of the second sub-cubes is a square and has 8 vertices. Considering that some vertices of the second sub-cubes overlap with the vertices of other second sub-cubes, Figure 6 It can be seen that the total number of vertices of the 8 second sub-cubes is 27.
[0163] For example, when the value of M is 2, the number of second sub-cubes is 8, and the total number of vertices of the 8 second sub-cubes is 3 3 (27), 27 vertices correspond to 27 groups of standard color channel values, and the 27 groups of standard color channel values can be shown in the following Table 1:
[0164] Table 1 27 groups of standard color channel values
[0165]
[0166]
[0167] For example, Figure 6 In the figure, a set of standard color channel values corresponding to vertex a is (0, 0, 255), a set of standard color channel values corresponding to vertex b is (128, 0, 255), and a set of standard color channel values corresponding to vertex c is (255, 0, 255).
[0168] Combination Figure 7 (a)- Figure 7 In (c), the image generated according to the standard color channel value (0, 0, 255) is Figure 7 The pure color image shown in (a) is generated according to the standard color channel value of (128, 0, 255). Figure 7 The pure color image shown in (b) is generated according to the standard color channel value of (255, 0, 255). Figure 7 The solid color image shown in (c).
[0169] In some other embodiments, the first electronic device may send the three-primary-color cube to the second electronic device in advance. After receiving the three-primary-color cube, the second electronic device may perform M*M*M grid segmentation on the three-primary-color cube to obtain M 3 The second sub-cube, then obtain M 3 color channel values corresponding to all vertices of the second sub-cube, so that the first electronic device can obtain Q groups of standard color channel values, and then generate Q first images according to the Q groups of standard color channel values.
[0170] Among them, the specific implementation method of the second electronic device obtaining Q first images according to the three-primary color cube can refer to the implementation method of the first electronic device obtaining Q first images according to the three-primary color cube mentioned above, which will not be described in detail here.
[0171] Based on the above description, the second electronic device can obtain the Q first images in advance, so as to prepare data for the first electronic device to obtain the Q groups of actual color channel values corresponding to the Q first images.
[0172] In some embodiments, detecting color channel values of Q first images displayed on a display screen to obtain Q groups of actual color channel values includes:
[0173] The display screen is controlled to display the Q first images in sequence; in the process of the display screen displaying the Q first images, the actual color channel value of each of the Q first images is detected by a colorimeter to obtain Q groups of actual color channel values.
[0174] The Q first images are stored in the second electronic device in a preset order, so that the first electronic device can control the display screen of the second electronic device to display the Q first images in sequence in the preset order.
[0175] In some embodiments, when the second electronic device executes a process of calibrating the first electronic device, the first electronic device may send a first control signal to the second electronic device, where the first control signal is used to instruct the display screen of the second electronic device to display the Q first images in sequence according to a preset order. After receiving the first control signal, the second electronic device may display the Q first images in sequence through the display screen according to the preset order.
[0176] Therefore, when the second electronic device displays the Q first images in sequence, the first electronic device can control the colorimeter to sequentially collect the actual color channel values corresponding to the Q first images, thereby the first electronic device can obtain Q groups of actual color channel values.
[0177] When the value of M is 2, the second electronic device includes 27 first images, and the first electronic device can sequentially collect actual color channel values corresponding to the 27 first images, thereby the first electronic device can obtain 27 groups of actual color channel values.
[0178] It should be understood that during the production process of display screens, it is difficult to achieve the same color accuracy performance for each display screen due to limitations in processing technology and production costs. Therefore, the actual color channel value corresponding to the image displayed on the display screen captured by the second electronic device may be different from the standard color channel value.
[0179] For example, Figure 6 In , a set of standard color channel values corresponding to vertex a is (0, 0, 255). For image A generated by the standard color channel values (0, 0, 255), the actual color channel values of image A captured by the second electronic device may be (1, 1, 255).
[0180] For example, when the value of M is 2, the number of second sub-cubes is 8, the number of all vertices of the 8 second sub-cubes is 27, and the 27 vertices correspond to 27 groups of standard color channel values. The 27 groups of standard color channel values and the 27 groups of actual color channel values can be shown in the following Table 2:
[0181] Table 2 27 groups of standard color channel values and 27 groups of actual color channel values
[0182]
[0183] It can be seen from Table 2 that the same set of standard color channel values and the corresponding actual color channel values may be different or the same.
[0184] In some embodiments, controlling the display screen to display the Q first images in sequence includes:
[0185] Control the brightness of the display screen to be a first brightness, where the first brightness is the maximum brightness in the brightness range supported by the display screen; based on the brightness of the display screen being the first brightness, control the display screen to M 3 The first images are displayed in sequence.
[0186] For example, the brightness range supported by the display screen of the second electronic device is 100 cd / m 2 -150cd / m 2 , then the first electronic device can control the brightness of the display screen of the second electronic device to 150cd / m 2 .
[0187] Based on this, controlling the second electronic device to display the Q first images in sequence at the maximum brightness supported by its display screen can ensure the accuracy of the Q groups of actual color channel values corresponding to the Q first images collected, and avoid inaccurate actual color channel values of the Q groups corresponding to the Q first images collected due to insufficient brightness or other reasons, thereby affecting the subsequent calibration of the display screen of the second electronic device.
[0188] S202 : Obtain a first lookup table according to the Q group of standard color channel values, the Q group of actual color channel values, and the H group of standard color channel values.
[0189] Among them, the first lookup table includes a mapping relationship between H groups of actual color channel values and H groups of standard color channel values; that is, the H groups of actual color channel values correspond one-to-one to the H groups of standard color channel values, and the H groups of standard color channel values are standard color channel values used for the second electronic device to support calibration of the display screen.
[0190] In some embodiments, a first lookup table is obtained according to the Q group standard color channel values, the Q group actual color channel values, and the H group standard color channel values, including:
[0191] According to the relationship between the standard color channel values of group Q and the standard color channel values of group H, the actual color channel values of group Q are interpolated to obtain a first lookup table, wherein the standard color channel values of group H include N values obtained by performing N*N*N grid segmentation on the three primary color cubes. 3 The real color channel values of all vertices of the first sub-cube, H is the number of groups of color channel values corresponding to the lookup table supported by the second electronic device for calibrating the display screen.
[0192] For example, when the second electronic device is a mobile phone, the number of color channel value groups corresponding to the lookup table for calibrating the display screen supported by the mobile phone is usually 17. 3 The first lookup table in the mobile phone includes 17 3 Group actual color channel value, 17 3 The actual color channel values of the group are respectively 3 The standard color channel values of the group correspond one to one.
[0193] The H groups of standard color channel values are pre-acquired and stored in the first electronic device.
[0194] In some embodiments, the first electronic device may perform N*N*N grid segmentation on the obtained three-primary-color cube to obtain N 3 The first sub-cube, then get N 3 The color channel values corresponding to all vertices of the first sub-cube are calculated. In this way, the first electronic device can obtain H groups of standard color channel values.
[0195] It should be noted that N 3 Among the first sub-cubes, there is a case where the vertices of some first sub-cubes coincide with the vertices of another first sub-cube. In this case, the two coincident vertices can be recorded as only one vertex. Therefore, N 3 The number of all vertices corresponding to the first sub-cube is not N 3 *8 gets the number.
[0196] When the value of N is 16, the first electronic device can divide the three-primary color cube into 16*16*16 grids to obtain 16 3 (4096) first sub-cubes, then get 16 3 The color channel values corresponding to all vertices of the first sub-cube are obtained. In this way, the first electronic device can obtain 17 3 Set of standard color channel values.
[0197] Specifically, since the length, width and height of the three-primary color cube are all 255, the first electronic device performs 16*16*16 grid segmentation on the obtained three-primary color cube, that is, segmentation is performed at positions with values of 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, 240, and 255 along the R color channel direction, segmentation is performed at the positions with values of the aforementioned along the G color channel direction, and segmentation is performed at the positions with values of the aforementioned along the B color channel direction. In this way, the first electronic device can obtain 16 3 The first subcube.
[0198] It should be understood that the three-primary-color cube is a cube with 8 vertices. After the three-primary-color cube is divided into 16*16*16 grids, 16 3 Each of the (4096) first sub-cubes is a square, and each first sub-cube has 8 vertices. Considering that some vertices of the first sub-cubes overlap with the vertices of another part of the first sub-cubes, the total number of vertices of the 4096 first sub-cubes is 4913.
[0199] For example, when the value of N is 16, the number of first sub-cubes is 4096, and the total number of vertices of the 4096 first sub-cubes is 17. 3 (4913), 4913 vertices correspond to 4913 sets of standard color channel values, and the 4913 sets of standard color channel values are shown in the following Table 3:
[0200] Table 34913 Group Standard Color Channel Values
[0201]
[0202]
[0203] In some embodiments, after obtaining Q groups of actual color channel values, the first electronic device can input Q groups of actual color channel values, Q groups of standard color channel values, and H groups of standard color channel values into a tetrahedral interpolation algorithm to obtain H groups of predicted color channel values.
[0204] Specifically, the first electronic device may perform tetrahedral interpolation processing on the Q group actual color channel values according to the relationship between the Q group standard color channel values and the H group standard color channel values to obtain the H group predicted color channel values.
[0205] The present application may store the tetrahedron interpolation algorithm in the first electronic device and / or a storage device communicating with the first electronic device, so that the first electronic device can call the tetrahedron interpolation algorithm to obtain N 3 Group predicted color channel values.
[0206] For example, when the value of N is 16, the number of first sub-cubes is 4096, and the total number of vertices of the 4096 first sub-cubes is 17. 3 (4913), 4913 vertices correspond to 4913 sets of standard color channel values, and the 4913 sets of standard color channel values and the 4913 sets of predicted color channel values can be shown in the following Table 4:
[0207] Table 4 Relationship between 4913 groups of standard color channel values and 4913 groups of predicted color channel values
[0208]
[0209]
[0210] It can be seen from Table 4 that the same set of standard color channel values and the corresponding predicted color channel values may be different or the same.
[0211] S203: Write the first lookup table into the second electronic device, so that the second electronic device calibrates the display screen according to the first lookup table.
[0212] It should be understood that writing the generated first lookup table to the second electronic device means loading the adjusted color data into the hardware or software of the second electronic device (e.g., the internal memory of the second electronic device or a specific calibration file). The second electronic device can map the input color value to a more accurate output color value according to the first lookup table before displaying the image, thereby achieving calibration.
[0213] Specifically, after the first electronic device writes the first lookup table into the second electronic device, when the second electronic device displays an image on the display screen of the second electronic device, for a pixel of the image, the second electronic device can convert the color corresponding to a set of color channel values corresponding to the aforementioned pixel into the color corresponding to the corrected predicted color channel value in the first lookup table, that is, into the color that can actually be displayed on the display screen. Thus, the second electronic device can optimize the color accuracy and consistency of the display screen of the second electronic device through the first lookup table.
[0214] That is, the second electronic device uses the first lookup table before displaying the image to map the color channel values of the input image to the color channel values in the calibrated first lookup table. In this way, the display screen of the second electronic device can display colors more accurately and achieve consistent color performance on different electronic devices.
[0215] Based on this, the first electronic device can calibrate the display screen of the second electronic device so that the second electronic device can obtain more accurate image representation and color restoration, thereby improving the user's viewing experience.
[0216] For example, the second electronic device needs to display an image in which the color channel value of a pixel is (255, 255, 255), and the predicted color channel value corresponding to the RGB value (255, 255, 255) in the first lookup table is (255, 254, 255). Then, the second electronic device can display the color of the aforementioned pixel as the color corresponding to the color channel value (255, 254, 255).
[0217] In the display screen calibration method provided by the present application, a first electronic device can detect Q groups of actual color channel values corresponding to Q first images displayed on the display screen of a second electronic device, and predict a first lookup table based on the Q groups of actual color channel values, the Q groups of standard color channel values, and the H groups of standard color channel values. Since Q is less than H, and H is the number of real color channel values supported by the second electronic device for calibrating the display screen, it can be seen that standard color channel values less than the number of color channel values supported by the second electronic device for calibrating the display screen can be obtained in advance and an image can be generated. Therefore, the actual color channel values of the image can be detected, and based on the actual color channel values, the actual color channel values of the number of color channel values supported by the second electronic device for calibrating the display screen can be predicted. In this way, the first lookup table can be obtained more efficiently by predicting a large number of actual color channel values supported by the second electronic device through a small number of actual color channel values.
[0218] Furthermore, after obtaining the first lookup table, the first electronic device can write the first lookup table into the second electronic device so that the second electronic device calibrates the display screen according to the first lookup table, thereby achieving lower display screen color calibration deviation, higher display screen color calibration efficiency, and reducing the calibration result's dependence on the LUT device in the second electronic device.
[0219] Based on the above Figure 3 As described in S202, in some embodiments, a first lookup table is obtained according to the Q group standard color channel values, the Q group actual color channel values, and the N group standard color channel values. The first lookup table includes a mapping relationship between the NH group actual color channel values and the H group standard color channel values, and may include:
[0220] According to the standard color channel values of group Q, the actual color channel values of group Q, and the standard color channel values of group H, a second lookup table is predicted, and the second lookup table includes a mapping relationship between the predicted color channel values of group H and the standard color channel values of group H; the second lookup table is corrected to obtain a first lookup table, and the similarity between the actual color channel values of group H and the standard color channel values of group H is higher than the similarity between the predicted color channel values of group H and the standard color channel values of group H.
[0221] It should be understood that in the second lookup table predicted by the first electronic device based on the Q group actual color channel values, the Q group standard color channel values, and the H group standard color channel values, the H group predicted color channel values may not have the highest accuracy.
[0222] Based on this, the first electronic device can correct the second lookup table to obtain the first lookup table, ensuring that the corrected actual color channel values of group H in the first lookup table are more accurate and closer to the standard color channel values of group H, that is, the similarity between the corrected actual color channel values of group H and the standard color channel values of group H is higher than the similarity between the predicted color channel values of group H and the standard color channel values of group H.
[0223] Next, combine Figure 8 , which introduces in detail the specific implementation process of the display screen calibration method of the present application.
[0224] See also Figure 8 , Figure 8 A schematic diagram of a flow chart of a display screen calibration method provided in an embodiment of the present application is shown.
[0225] like Figure 8 As shown, the display screen calibration method provided by the present application may include:
[0226] S301. Detect color channel values of Q first images displayed on a display screen to obtain Q groups of actual color channel values.
[0227] Among them, S301 and Figure 3 The implementation of S201 in the illustrated embodiment is similar and will not be described in detail here.
[0228] S302 : Obtain a second lookup table according to the Q group of standard color channel values, the Q group of actual color channel values, and the H group of standard color channel values.
[0229] In some embodiments, according to the Q groups of standard color channel values, the Q groups of actual color channel values, and the N groups of standard color channel values, a second lookup table is predicted, including:
[0230] According to the mapping relationship between the actual color channel values of group Q and the standard color channel values of group Q, the standard color channel values of group H are interpolated to obtain a second lookup table, where the standard color channel values of group H include N values obtained by performing N*N*N grid segmentation on the three primary color cube. 3 The true color channel values of all vertices of the first sub-cube.
[0231] The implementation of the second lookup table can be found in Figure 3 The first lookup table in S202.
[0232] Among them, S302 and Figure 3 The implementation of S202 in the illustrated embodiment is similar and will not be described in detail here.
[0233] S303: Detect color channel values of P second images displayed on the display screen to obtain P groups of actual color channel values.
[0234] Among them, the color channel values of all pixels of each of the P second images are corresponding standard color channel values, the P second images are images generated respectively according to P groups of standard color channel values, and the P groups of standard color channel values are used to cover the real color channel values corresponding to the P colors in the color gamut supported by the display screen.
[0235] The P second images are pre-acquired and stored in the second electronic device, and the P second images are images generated by standard color channel values corresponding to P colors selected from a number of colors in a color gamut supported by the second electronic device.
[0236] like Fig. 9 The triangle shown represents the color gamut supported by the second electronic device, and the colors in the triangle represent all colors that the second electronic device can display, wherein the three vertices r, g, and b of the triangle are the color coordinate points where red, green, and blue are distributed.
[0237] Among them, the standard color channel value corresponding to vertex r can be (255, 0, 0), and the color corresponding to vertex r is red. If red belongs to one of the above P colors, then the standard color channel value (255, 0, 0) is a set of standard color channel values in the P set of standard color channel values.
[0238] For example, the value of P is 21, and 21 groups of standard color channel values include real color channel values corresponding to 21 colors in the color gamut supported by the display screen.
[0239] Specifically, the 21 colors include white, a color with a color saturation of 50%, and a color with a color saturation of 100%.
[0240] It can be understood that the above-mentioned 21 colors include color channel values corresponding to the 21 colors evenly distributed in the color gamut supported by the display screen.
[0241] For example, when the value of P is 21, the 21 sets of standard color channel values are shown in Table 5 below:
[0242] Table 5 21 groups of standard color channel values
[0243] 21 sets of standard color channel values (RGB values) 255,255,255 255,0,0 0,255,255 0,0,255 0,255,255 255,0,255 255,255,0 128,0,255 255,0,128 0,128,255 255,128,0 128,255,128 128,255,255 128,192,255 128,128,255 192,128,255 255,128,255 255,128,191 255,128,128 255,191,128 255,255,128
[0244] In some embodiments, detecting color channel values of P second images displayed on a display screen to obtain P groups of actual color channel values includes:
[0245] The display screen is controlled to display the P second images in sequence; in the process of the display screen displaying the P second images, the actual color channel value of each second image in the P second images is detected by a colorimeter to obtain P groups of actual color channel values.
[0246] The P second images are stored in the second electronic device in a preset order, so that the first electronic device can control the display screen of the second electronic device to display the Q second images in sequence in the preset order.
[0247] In some embodiments, when the second electronic device executes a process of calibrating the first electronic device, the first electronic device may send a second control signal to the second electronic device, where the second control signal is used to instruct the display screen of the second electronic device to display the P second images in sequence according to a preset order. After receiving the second control signal, the second electronic device may display the P second images in sequence through the display screen according to the preset order.
[0248] Therefore, when the second electronic device sequentially displays the P second images, the first electronic device can control the colorimeter to sequentially collect the actual color channel values corresponding to the P second images, thereby the first electronic device can obtain P groups of actual color channel values.
[0249] When the value of P is 21, the second electronic device includes 21 second images, and the first electronic device can sequentially collect 21 groups of actual color channel values corresponding to the 21 second images.
[0250] It should be understood that during the production process of display screens, it is difficult to achieve the same color accuracy performance for each display screen due to limitations in processing technology and production costs. Therefore, the actual color channel value corresponding to the image displayed on the display screen captured by the second electronic device may be different from the standard color channel value.
[0251] For example, one of the standard color channel values in the P group of actual color channel values is (255, 0, 0). For an image generated by the standard color channel values (255, 0, 0), the color channel values of the image captured by the second electronic device may be (255, 1, 2).
[0252] For example, when the value of P is 21, the relationship between the 21 groups of standard color channel values and the 21 groups of actual color channel values can be shown in the following Table 6:
[0253] Table 6 21 groups of standard color channel values and 21 groups of actual color channel values
[0254]
[0255] It can be seen from Table 6 that the same set of standard color channel values and the corresponding actual color channel values may be different or the same.
[0256] In some embodiments, controlling the display screen to display the P second images in sequence includes:
[0257] The brightness of the display screen is controlled to be a first brightness, where the first brightness is a maximum brightness in a brightness range supported by the display screen; based on the brightness of the display screen being the first brightness, the display screen is controlled to display the P second images in sequence.
[0258] For example, the brightness range supported by the display screen of the second electronic device is 100 cd / m 2 -150cd / m 2 , then the first electronic device can control the brightness of the display screen of the second electronic device to 150cd / m 2 .
[0259] Based on this, controlling the second electronic device to display the P second images in sequence at the maximum brightness supported by its display screen can ensure the accuracy of the P groups of actual color channel values corresponding to the P collected second images, and avoid inaccurate actual color channel values of the P groups corresponding to the P collected second images due to insufficient brightness or other reasons, thereby affecting the subsequent calibration of the display screen of the second electronic device.
[0260] S304 , replacing the P group predicted color channel values corresponding to the P group standard color channel values in the H group predicted color channel values of the second lookup table with the P group actual color channel values to obtain a first lookup table.
[0261] It should be understood that the estimated color channel values may not be accurate enough compared to the actually collected color channel values.
[0262] Based on this, after the first electronic device collects the actual color channel values of the P group, the predicted color channel values of the H group of predicted color channel values in the second lookup table corresponding to the standard color channel values of the P group can be replaced with the actual color channel values of the P group to obtain a first lookup table with higher accuracy.
[0263] For example, in combination with Table 4, the predicted color channel value corresponding to the standard color channel value (255, 255, 255) is (255, 251, 255). In combination with Table 6, the actual color channel value corresponding to the standard color channel value (255, 255, 255) is (255, 254, 255). Obviously, the actual color channel value (255, 254, 255) is closer to the standard color channel value (255, 255, 255). Therefore, the first electronic device can replace the predicted color channel value (255, 251, 255) corresponding to the standard color channel value (255, 255, 255) in the second lookup table with the actual color channel value (255, 254, 255) to obtain a first lookup table. In this way, the first lookup table obtained by the first electronic device has a higher accuracy.
[0264] S305: Write the first lookup table into the second electronic device, so that the second electronic device calibrates the display screen according to the first lookup table.
[0265] Among them, S305 and Figure 3 The implementation of S203 in the illustrated embodiment is similar and will not be described in detail here.
[0266] In the present application, the first electronic device obtains Q groups of actual color channel values corresponding to Q first images displayed on the display screen, and predicts a second lookup table based on the Q groups of actual color channel values, the Q groups of standard color channel values, and the H groups of standard color channel values. Since the predicted color channel values of the H groups in the second lookup table are estimated and may not be accurate enough, the first electronic device can further correct the second lookup table so that the similarity between the corrected actual color channel values of the H groups and the standard color channel values of the H groups in the obtained first lookup table is higher than the similarity between the predicted color channel values of the H groups and the standard color channel values of the H groups, that is, the corrected actual color channel values of the H groups are closer to the standard color channel values of the H groups. In this way, the corrected actual color channel values of the H groups obtained by the first electronic device after the above two processes are more accurate, which facilitates more accurate calibration of the display screen of the second electronic device according to the first lookup table.
[0267] The first electronic device can obtain P groups of actual color channel values corresponding to the P second images displayed by the display screen, and replace the P groups of predicted color channel values corresponding to the P groups of standard color channel values in the H groups of predicted color channel values of the second lookup table with the P groups of actual color channel values to obtain a first lookup table. By replacing the estimated color channel values with the collected color channel values, the problem that the accuracy of the estimated color channel values may not be high enough compared to the actually collected color channel values is solved. In this way, the authenticity and accuracy of the obtained first lookup table can be guaranteed, and the accuracy of calibrating the display screen of the second electronic device can be further guaranteed.
[0268] Based on the above description, in a specific embodiment, it is assumed that:
[0269] 1. The first electronic device is a PC.
[0270] 2. The second electronic device is a mobile phone.
[0271] 3. The value of Q is 27.
[0272] 4. The value of H is 17 3 , that is 4913.
[0273] 5. The value of P is 21, and the number of second images is 21.
[0274] 6. The value of M is 2, so the number of second sub-cubes is 8, and the number of all color channel values of the 8 second sub-cubes is 27. Correspondingly, the number of first images is 27.
[0275] 7. The value of N is 16, so the number of first sub-cubes is 4096, and the number of all color channel values of the 4096 first sub-cubes is 4913.
[0276] Based on the above assumptions, the PC can execute the display calibration method provided by this application:
[0277] Step 11: Control the brightness of the display screen to be a first brightness, where the first brightness is the maximum brightness in the brightness range supported by the display screen.
[0278] Step 12: Based on the brightness of the display screen being the first brightness, control the display screen to display the 27 first images in sequence.
[0279] Step 13: During the process of displaying the 27 first images on the display screen, the actual color channel value of each of the 27 first images is detected by a colorimeter to obtain 27 groups of actual color channel values.
[0280] Step 14: According to the relationship between the 27 groups of standard color channel values and the 4913 groups of standard color channel values, the 27 groups of actual color channel values are interpolated to obtain a second lookup table, wherein the second lookup table includes a mapping relationship between the 4913 groups of predicted color channel values and the 4913 groups of standard color channel values.
[0281] The interpolation processing here is specifically tetrahedron interpolation processing.
[0282] Step 15: Control the brightness of the display screen to be a first brightness, where the first brightness is the maximum brightness in the brightness range supported by the display screen.
[0283] Step 16: Based on the brightness of the display screen being the first brightness, control the display screen to display the 21 second images in sequence.
[0284] Step 17: During the process of displaying the 21 second images on the display screen, the actual color channel value of each of the 21 second images is detected by a colorimeter to obtain 21 groups of actual color channel values.
[0285] Step 18: Replace the 21 groups of predicted color channel values corresponding to the 21 groups of standard color channel values in the 4913 groups of predicted color channel values in the second lookup table with the 21 groups of actual color channel values to obtain a first lookup table, which includes a mapping relationship between the 4913 groups of actual color channel values and the 4913 groups of standard color channel values.
[0286] Step 19: Write the first lookup table into the mobile phone, so that the mobile phone calibrates the display screen according to the first lookup table.
[0287] Illustratively, the present application provides a display screen calibration device.
[0288] See also Fig.10 , Fig.10 A schematic block diagram of a display screen calibration device provided in an embodiment of the present application is shown.
[0289] like Fig.10 As shown, the display screen calibration device 400 can exist independently or be integrated in other devices, and can communicate with the above-mentioned first electronic device to implement the operation corresponding to the first electronic device in any of the above-mentioned method embodiments. The display screen calibration device 400 provided in the embodiment of the present application includes: a detection module 401, an acquisition module 402 and a calibration module 403.
[0290] The detection module 401 is used to detect the color channel values of Q first images displayed on the display screen to obtain Q groups of actual color channel values; the Q first images are images generated respectively according to Q groups of standard color channel values, and the color channel values of all pixels in each of the Q first images are corresponding standard color channel values, Q is less than H, and H is the number of groups of real color channel values supported by the second electronic device for calibrating the display screen.
[0291] The obtaining module 402 is used to obtain a first lookup table according to the Q group standard color channel values, the Q group actual color channel values, and the H group standard color channel values, wherein the first lookup table includes a mapping relationship between the H group actual color channel values and the H group standard color channel values.
[0292] The calibration module 403 is configured to write the first lookup table into the second electronic device, so that the second electronic device calibrates the display screen according to the first lookup table.
[0293] In some embodiments, the module 402 is obtained, specifically for:
[0294] According to the relationship between the standard color channel values of group Q and the standard color channel values of group H, the actual color channel values of group Q are interpolated to obtain a second lookup table, and the second lookup table includes a mapping relationship between the predicted color channel values of group H and the standard color channel values of group H; the second lookup table is corrected to obtain a first lookup table, and the similarity between the actual color channel values of group H and the standard color channel values of group H is higher than the similarity between the predicted color channel values of group H and the standard color channel values of group H.
[0295] In some embodiments, the module 402 is obtained, specifically for:
[0296] Detect color channel values of P second images displayed on the display screen to obtain P groups of actual color channel values, where the P second images are images generated respectively according to the P groups of standard color channel values, and the color channel values of all pixels of each of the P second images are corresponding standard color channel values, and the P groups of standard color channel values include color channel values corresponding to P colors respectively for covering the color gamut supported by the display screen; replace the P groups of predicted color channel values corresponding to the P groups of standard color channel values in the H groups of predicted color channel values of the second lookup table with the P groups of actual color channel values to obtain a first lookup table.
[0297] In some embodiments, the H groups of standard color channel values include N values obtained by performing N*N*N grid division on the three primary color cube. 3 The true color channel values of all vertices of the first sub-cube.
[0298] In some embodiments, the Q groups of standard color channel values include M values obtained by performing M*M*M grid segmentation on the three primary color cube. 3 The real color channel values of all vertices of the second sub-cube, M is a positive integer greater than or equal to 2.
[0299] In some embodiments, the length of the three-primary-color cube is the color channel value 255 corresponding to red, the width is the color channel value 255 corresponding to green, and the height is the color channel value 255 corresponding to blue.
[0300] In some embodiments, the detection module 401 is specifically configured to:
[0301] The display screen is controlled to display the P second images in sequence; in the process of the display screen displaying the P second images, the actual color channel value of each second image in the P second images is detected by a colorimeter to obtain P groups of actual color channel values.
[0302] In some embodiments, the detection module 401 is specifically configured to:
[0303] The brightness of the display screen is controlled to be a first brightness, where the first brightness is a maximum brightness in a brightness range supported by the display screen; based on the brightness of the display screen being the first brightness, the display screen is controlled to display the P second images in sequence.
[0304] In some embodiments, the detection module 401 is specifically configured to:
[0305] The display screen is controlled to display the Q first images in sequence; in the process of the display screen displaying the Q first images, the actual color channel value of each of the Q first images is detected by a colorimeter to obtain Q groups of actual color channel values.
[0306] In some embodiments, the detection module 401 is specifically configured to:
[0307] The brightness of the display screen is controlled to be a first brightness, where the first brightness is a maximum brightness in a brightness range supported by the display screen; based on the brightness of the display screen being the first brightness, the display screen is controlled to display the Q first images in sequence.
[0308] Illustratively, the present application provides an electronic device, including a processor; when the processor executes computer code or instructions in the memory, the electronic device executes the display screen calibration method in the foregoing embodiment.
[0309] Exemplarily, the present application provides an electronic device, comprising one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the electronic device executes the display screen calibration method in the foregoing embodiment.
[0310] It is understandable that, in order to realize the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.
[0311] In this embodiment, the electronic device can be divided into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0312] In the case of dividing each functional module according to each function, the electronic device involved in the above embodiment may also include: a detection module, an acquisition module and a calibration module. The detection module, the acquisition module and the calibration module cooperate with each other to support the electronic device to perform the above steps and / or other processes of the technology described in this article.
[0313] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0314] The electronic device provided in this embodiment is used to execute the above display screen calibration method, and thus can achieve the same effect as the above implementation method.
[0315] Illustratively, the present application provides a chip system, which includes a processor for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes the display screen calibration method in the foregoing embodiment.
[0316] Exemplarily, the present application provides a computer-readable storage medium, in which codes or instructions are stored. When the codes or instructions are executed on an electronic device, the electronic device implements the display screen calibration method in the foregoing embodiment.
[0317] Exemplarily, the present application provides a computer program product, which enables an electronic device to implement the display screen calibration method in the foregoing embodiment when the computer program product is executed on a computer.
[0318] Among them, the electronic device, computer-readable storage medium, computer program product or chip system provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.
[0319] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0320] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0321] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0322] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0323] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to make a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), disk or CD-ROM and other media that can store program code. The above content is only a specific implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A display screen calibration method, characterized in that: Applied to a first electronic device, the first electronic device is applied to a first communication system, the first communication system includes the first electronic device and a second electronic device, the second electronic device includes a display screen, the method includes: Detecting color channel values of Q first images displayed on the display screen to obtain Q groups of actual color channel values; the Q first images are images generated respectively according to Q groups of standard color channel values, Q is less than H, and H is the number of groups of real color channel values supported by the second electronic device for calibrating the display screen; According to the Q group standard color channel values, the Q group actual color channel values, and the H group standard color channel values, a first lookup table is obtained, wherein the first lookup table includes a mapping relationship between the H group actual color channel values and the H group standard color channel values; The first lookup table is written into the second electronic device, so that the second electronic device calibrates the display screen according to the first lookup table.
2. The method according to claim 1, characterized in that The first lookup table is obtained according to the Q group of standard color channel values, the Q group of actual color channel values, and the H group of standard color channel values, including: According to the relationship between the Q group standard color channel values and the H group standard color channel values, interpolation processing is performed on the Q group actual color channel values to obtain a second lookup table, wherein the second lookup table includes a mapping relationship between the H group predicted color channel values and the H group standard color channel values; The second lookup table is corrected to obtain the first lookup table, and the similarity between the H group actual color channel values and the H group standard color channel values is higher than the similarity between the H group predicted color channel values and the H group standard color channel values.
3. The method according to claim 2, characterized in that The correcting the second lookup table to obtain a first lookup table includes: Detecting color channel values of P second images displayed on the display screen to obtain P groups of actual color channel values, wherein the P second images are images generated according to P groups of standard color channel values, and the P groups of standard color channel values include color channel values corresponding to P colors respectively covering the color gamut supported by the display screen; The P group predicted color channel values corresponding to the P group standard color channel values in the H group predicted color channel values of the second lookup table are replaced with the P group actual color channel values to obtain the first lookup table.
4. The method according to any one of claims 1 to 3, characterized in that The H groups of standard color channel values include N values obtained by performing N*N*N grid segmentation on the three primary color cube. 3 The true color channel values of all vertices of the first sub-cube.
5. The method according to any one of claims 1 to 4, characterized in that The Q groups of standard color channel values include M obtained by performing M*M*M grid segmentation on the three primary color cube. 3 The real color channel values of all vertices of the second sub-cube, M is a positive integer greater than or equal to 2.
6. The method according to claim 4 or 5, characterized in that: The length of the three-primary-color cube is the color channel value 255 corresponding to red, the width is the color channel value 255 corresponding to green, and the height is the color channel value 255 corresponding to blue.
7. The method according to claim 3, characterized in that The detecting the color channel values of the P second images displayed on the display screen to obtain P groups of actual color channel values includes: Controlling the display screen to display the P second images in sequence; During the process of displaying the P second images on the display screen, the actual color channel value of each of the P second images is detected by a colorimeter to obtain the P groups of actual color channel values.
8. The method according to claim 7, characterized in that The controlling the display screen to sequentially display the P second images includes: Controlling the brightness of the display screen to be a first brightness, where the first brightness is a maximum brightness in a brightness range supported by the display screen; Based on the brightness of the display screen being the first brightness, the display screen is controlled to display the P second images in sequence.
9. The method according to any one of claims 1 to 8, characterized in that The detecting the color channel values of the Q first images displayed on the display screen to obtain the Q groups of actual color channel values includes: Controlling the display screen to display the Q first images in sequence; In the process of displaying the Q first images on the display screen, the actual color channel value of each of the Q first images is detected by a colorimeter to obtain the Q groups of actual color channel values.
10. The method according to claim 9, characterized in that The controlling the display screen to display the Q first images in sequence includes: Controlling the brightness of the display screen to be a first brightness, where the first brightness is a maximum brightness in a brightness range supported by the display screen; Based on the brightness of the display screen being the first brightness, the display screen is controlled to display the Q first images in sequence.
11. An electronic device, characterized in that: include: One or more processors, a memory, and one or more computer programs; wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the electronic device performs the display screen calibration method as described in any one of claims 1 to 10.
12. A chip system, characterized in that: The chip system includes a processor for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes the display screen calibration method according to any one of claims 1 to 10.
13. A computer-readable storage medium comprising a computer program, characterized in that: When the computer program is executed on an electronic device, the electronic device is enabled to execute the display screen calibration method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Display screen color calibration method and device, electronic equipment and readable storage medium
CN111429827A
Three-dimensional lookup table generation method and device and display equipment
CN113034622A
Color lookup table generation method and device based on shooting parameters and computer equipment
CN116489328A
Color Calibration of Display Modules Using a Reduced Number of Display Characteristic Measurements
US20220223076A1
