Display method, correction data generation method and electronic equipment
Through the mapping relationship of target correction data, the problem of inconsistent color of the display screens of different terminal devices is solved, and the consistent display effect under the same screen parameters is achieved, reducing storage and generation costs.
Patent Information
- Application Number
- CN202410487838.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-22
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-04-22
AI Technical Summary
The display screens of different terminal devices have color differences when displaying the same interface. The main reason is the inconsistency of color caused by differences in display materials, process and manufacturing tolerances.
Provide a display method and a method of generating correction data, to calibrate the color of the display screen by storing and using target correction data, including mapping relationship between the output color value and the target color value under the current screen parameter, to ensure that the color of the display screen is in the same screen parameter. Different devices show consistent effects.
It effectively avoids the color differences in displaying different display screens under the same screen parameters, ensures the consistency of display effects, and reduces the cost of storage space and corrects data generation.
Smart Images

Figure CN119274511A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of terminal technology, and in particular to a display method, a method for generating correction data, and an electronic device. Background Art
[0002] With the continuous development of display technology, users have higher and higher requirements on the display effects of display screens of terminal devices.
[0003] However, currently different terminal devices, such as different mobile phones, have color differences when displaying the same interface. Alternatively, mobile phones with multiple display screens may have color differences when displaying the same interface on different display screens. The main reason is the difference in the display screens themselves, for example, differences in display screen materials, process manufacturing, manufacturing tolerances, etc., which lead to inconsistent colors when different display screens display the same interface. Summary of the invention
[0004] The embodiments of the present application provide a display method, a method for generating correction data, and an electronic device for calibrating the color of a display screen when displaying an interface to avoid display color differences between different display screens.
[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, a display method is provided for calibrating the color of a first electronic device when displaying an interface. The method comprises: under current screen parameters, the first electronic device displays the interface based on an output color value. The output color value is a color value after the target color value of a pixel in the interface is corrected based on target correction data corresponding to the current screen parameters. The color coordinates of the output color value are consistent with the color coordinates of the target color value. The target correction data includes a mapping relationship between the output color value and the target color value under the current screen parameters.
[0007] Since the color coordinates can accurately define a color, the first electronic device after calibration can display the display effect corresponding to the current screen parameters when displaying the interface based on the output color value under the current screen parameters. Under the same screen parameters, different first electronic devices have the same display effect when displaying the same interface based on the display method provided in the embodiment of the present application.
[0008] In a possible implementation of the first aspect, the first electronic device stores a plurality of correction data corresponding one-to-one to a plurality of preset screen parameters, each of the plurality of correction data including a mapping relationship between an output color value and a target color value under the corresponding preset screen parameter. Before the first electronic device displays an interface based on the output color value, the first electronic device may acquire target correction data based on the current screen parameter and the plurality of correction data corresponding one-to-one to the plurality of preset screen parameters.
[0009] In a possible implementation of the first aspect, before the first electronic device displays the interface based on the output color value, the first electronic device may search for a preset screen parameter consistent with the current screen parameter from among multiple preset screen parameters based on the current screen parameter, and the correction data corresponding to the preset screen parameter is the target correction data. In other words, the first electronic device may store correction data corresponding to multiple preset screen parameters, and the first electronic device may search for correction data corresponding to the current screen parameter from among multiple preset screen parameters. Although this implementation method can quickly find the correction data corresponding to the current screen parameter, it needs to store more correction data, which takes up too much storage space.
[0010] In a possible implementation of the first aspect, the current screen parameter includes a current backlight brightness, and the plurality of preset screen parameters correspond to a plurality of preset brightnesses. The plurality of preset screen parameters correspond to at least two preset brightnesses, such as a first preset brightness and a second preset brightness. When the current screen parameter satisfies the first preset condition, the correction data corresponding to the preset screen parameter related to the current screen parameter is used as the target correction data. When the current screen parameter does not meet the first preset condition, the target correction data is determined according to the correction data corresponding to the preset screen parameter related to the current screen parameter. The first preset condition is that the plurality of preset brightnesses include the current backlight brightness, or the current backlight brightness is less than the first preset brightness, or the current backlight brightness is greater than the second preset brightness, wherein the first preset brightness is the minimum value among the plurality of preset brightnesses, and the second preset brightness is the maximum value among the plurality of preset brightnesses. In this implementation, the first electronic device may include the correction data corresponding to the preset screen parameter, and when the current backlight brightness meets the first condition, the correction data corresponding to the preset screen parameter related to the current screen parameter is directly used as the target correction data. When the current backlight brightness does not meet the first condition, the target correction data needs to be calculated. In this implementation, the first electronic device only needs to store the correction data corresponding to the preset screen parameters, which can reduce the storage space occupied and the cost of generating the correction data.
[0011] In a possible implementation of the first aspect, when multiple preset screen parameters include a current screen parameter, correction data corresponding to a preset screen parameter consistent with the current screen parameter among the multiple preset screen parameters is used as first target correction data. The current screen parameter may be current backlight brightness. When the current backlight brightness is less than or equal to the first preset brightness, the correction data corresponding to the preset screen parameter related to the current screen parameter is second target correction data, and the second target correction data is correction data corresponding to the first preset brightness. When the current backlight brightness is greater than or equal to the second preset brightness, the correction data corresponding to the preset screen parameter related to the current screen parameter is third target correction data, and the third target correction data is correction data corresponding to the second preset brightness. This implementation provides a possible implementation of generating target correction data.
[0012] In a possible implementation of the first aspect, when the current backlight brightness does not meet the first condition, it is necessary to calculate the target correction data. Specifically, the first candidate correction data and the second candidate correction data are obtained; the first candidate correction data is the correction data corresponding to the third preset brightness that is smaller than the current backlight brightness among multiple preset brightnesses; the second candidate correction data is the correction data corresponding to the fourth preset brightness that is larger than the current backlight brightness among multiple preset brightnesses. For the same target color value, the output color value corresponding to the target color value in the first candidate correction data and the output color value corresponding to the target color value in the second candidate correction data are interpolated to obtain the output color value in the target correction data. A corresponding relationship between the target color value and the output color value in the target correction data is established to obtain the target correction data. This implementation provides a possible implementation method for generating target correction data.
[0013] In a possible implementation of the first aspect, the current screen parameters also include the current color mode, and multiple preset screen parameters also correspond to the first color mode and the second color mode. The current color mode is the first color mode or the second color mode, and the color modes corresponding to the first target correction data, the second target correction data, and the third target correction data are all the current color modes.
[0014] That is, when multiple preset screen parameters include the current screen parameter, the correction data corresponding to the preset screen parameter consistent with the current screen parameter among the multiple preset screen parameters is used as the first target correction data. The current screen parameter may be the current backlight brightness and the current color mode. When the current backlight brightness is less than or equal to the first preset brightness, the correction data corresponding to the preset screen parameter related to the current screen parameter is the second target correction data, and the second target correction data is the correction data corresponding to the first preset brightness of the current color mode. When the current backlight brightness is greater than or equal to the second preset brightness, the correction data corresponding to the preset screen parameter related to the current screen parameter is the third target correction data, and the third target correction data is the correction data corresponding to the second preset brightness of the current color mode. The current color mode is the first color mode or the second color mode. This implementation provides a possible implementation method for generating target correction data.
[0015] In a possible implementation of the first aspect, the current screen parameters also include a current color mode, multiple preset screen parameters correspond to a first color mode and a second color mode, the current color mode is the first color mode or the second color mode, and the color modes corresponding to the first candidate correction data and the second candidate correction number are both the current color mode.
[0016] That is, when the current backlight brightness does not meet the first condition, the target correction data needs to be calculated. Specifically, the first candidate correction data and the second candidate correction data are obtained; the first candidate correction data is the correction data corresponding to the third preset brightness that is less than the current backlight brightness among multiple preset brightnesses of the current color mode; the second candidate correction data is the correction data corresponding to the fourth preset brightness that is greater than the current backlight brightness among multiple preset brightnesses of the current color mode. For the same target color value, the output color value corresponding to the target color value in the first candidate correction data and the output color value corresponding to the target color value in the second candidate correction data are interpolated to obtain the output color value in the target correction data. A corresponding relationship between the target color value and the output color value in the target correction data is established to obtain the target correction data. This implementation method provides a possible implementation method for generating target correction data.
[0017] In a possible implementation of the first aspect, the third preset brightness is less than the current backlight brightness and is the preset brightness closest to the current backlight brightness among multiple preset brightnesses, and the fourth preset brightness is greater than the current backlight brightness and is the preset brightness closest to the current backlight brightness among multiple preset brightnesses.
[0018] In a possible implementation of the first aspect, when the first electronic device does not support spectral correction, the multiple correction data corresponding to the multiple preset screen parameters are multiple first correction data; each of the multiple first correction data includes a mapping relationship between an output color value and a target color value under the corresponding preset screen parameter. The first correction data may be, for example, a first LUT. When the first electronic device supports spectral correction, the multiple correction data corresponding to the multiple preset screen parameters are multiple second correction data. The second correction data may be, for example, a second LUT. The multiple second correction data are obtained by replacing the first target color value in the multiple first correction data with the second target color value. The second target color value is generated according to the spectral distribution data, and the spectral distribution data is the spectral data when the display screen outputs an image corresponding to the first color value under the preset screen parameter corresponding to the first correction data. Due to manufacturing tolerances, material differences, etc., the spectral distribution data of the first color value emitted by the light-emitting diodes in the backlight modules of different display screens are different. Based on the spectral distribution data, the color of the display screen when displaying the first color value can be corrected in a targeted manner, and the display color of the display screen can be further calibrated. The first color value may be, for example, (255.255.255).
[0019] In a second aspect, a method for generating color correction data is provided, which is applied to a second electronic device. The second electronic device instructs the display screen of the first electronic device to display multiple color values under preset screen parameters. The second electronic device obtains the color coordinates of each color value when the display screen displays multiple color values under the preset screen parameters. The second electronic device establishes a mapping relationship between multiple output color values of the display screen and multiple target color values under the preset screen parameters based on the multiple color coordinates to obtain calibration data. The calibration data is used to calibrate the output color values of the display screen; the color coordinates of the output color values of the calibrated display screen are consistent with the color coordinates of the target color values under the preset screen parameters.
[0020] In the present application, the second electronic device can obtain multiple color coordinates when the first electronic device displays multiple color values under preset screen parameters. The second electronic device can establish correction data based on the color coordinates. Since the color coordinates can accurately define a color, the correction data generated by the method provided by the present application is used to correct the color of the image displayed by the first electronic device, and the display effect corresponding to the preset screen parameters can be displayed. Under the same preset parameters, different first electronic devices have the same display effect when displaying the same interface based on the display method provided in the embodiment of the present application.
[0021] In a possible implementation of the second aspect, the calibration data is first calibration data. Specifically, the second electronic device can convert each color coordinate of the multiple color coordinates into an output color value in a color gamut space corresponding to the display screen. The second electronic device converts each color coordinate of the multiple color coordinates into a target color value in a color gamut space corresponding to a preset screen parameter. The second electronic device establishes a one-to-one correspondence between the multiple output color values and the multiple target color values, and obtains first calibration data corresponding to the preset screen parameter. This implementation provides a specific implementation of a second electronic device generating calibration data based on color coordinates.
[0022] In a possible implementation of the second aspect, the calibration data is second calibration data. Specifically, the second electronic device can convert each color coordinate of the multiple color coordinates into an output color value in the color gamut space corresponding to the display screen. The second electronic device converts each color coordinate of the multiple color coordinates into a target color value in the color gamut space corresponding to the preset screen parameter. The second electronic device establishes a one-to-one correspondence between multiple output color values and multiple target color values, and obtains first correction data corresponding to the preset screen parameter. Afterwards, the second electronic device obtains spectral distribution data when the display screen displays the first color value under the preset screen parameter, obtains the second target color value according to the spectral distribution data, replaces the first target color value corresponding to the first color value in the first correction data with the second target color value, and obtains the second correction data. Due to manufacturing tolerances, material differences and other reasons, the spectral distribution data of the first color value emitted by the light-emitting diodes in the backlight modules of different display screens are different. Based on the spectral distribution data, the color of the display screen when displaying the first color value can be corrected in a targeted manner, and the display color of the display screen can be further calibrated. This implementation provides a method for generating calibration data based on spectral distribution data.
[0023] In a third aspect, the present application provides an electronic device, comprising: a memory, a display screen, and one or more processors; the memory and the display screen are coupled to the processor; wherein the memory is used to store computer program code, and the computer program code includes computer instructions; when the computer instructions are executed by the processor, the electronic device executes the method described in any one of the first aspects.
[0024] In a fourth aspect, the present application provides an electronic device, comprising: a memory, and one or more processors; the memory is coupled to the processor; wherein the memory is used to store computer program code, and the computer program code includes computer instructions; when the computer instructions are executed by the processor, the electronic device executes the method as described in any one of the second aspects.
[0025] In a fifth aspect, the present application provides a chip system, which can be applied to an electronic device including a memory. The chip system includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by a line. The interface circuit is used to receive a signal from the above-mentioned memory and send the signal to the processor, and the signal includes a computer instruction stored in the memory. When the processor executes the computer instruction, the electronic device executes the method as in the first aspect and any possible design thereof.
[0026] In a sixth aspect, the present application provides a computer-readable storage medium, the computer-readable storage medium comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method of the first aspect and any possible design thereof.
[0027] In a seventh aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method of the first aspect and any possible design thereof.
[0028] It can be understood that the beneficial effects that can be achieved by the electronic device of any possible design of the third and fourth aspects, the chip system of the fifth aspect, the computer-readable storage medium of the sixth aspect, and the computer program product of the fifth aspect can be referred to the beneficial effects in the first and second aspects and any possible design of them, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A schematic diagram of the colors of images displayed on different display screens provided in an embodiment of the present application;
[0030] Figure 2 A color coordinate diagram provided in an embodiment of the present application;
[0031] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0032] Figure 4 A schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;
[0033] Figure 5 A flowchart of a method for generating color calibration data provided by an embodiment of the present application;
[0034] Figure 6 A schematic diagram of another color coordinate provided in an embodiment of the present application;
[0035] Figure 7 A color difference statistical schematic diagram is provided for an embodiment of the present application;
[0036] Figure 8 A flow chart of a display method provided in an embodiment of the present application;
[0037] Fig. 9 A schematic diagram of an interface of an electronic device provided in an embodiment of the present application;
[0038] Fig.10 A schematic diagram of a fusion algorithm provided in an embodiment of the present application;
[0039] Fig.11 A flowchart of a method for generating a mapping relationship between screen parameters and correction data provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The color cast displayed on the display screen of the terminal device will cause the displayed colors to be quite different when different display screens display the same interface. Among them, different display screens can be display screens of different terminal devices, such as display screens of different mobile phones. Among them, different mobile phones can be mobile phones of the same brand, the same model and the same production batch. Different mobile phones can also be mobile phones of the same brand, the same model and different production batches. Or, different mobile phones can also be mobile phones of the same brand but different models. The embodiment of the present application does not make specific restrictions on this. Different display screens can also be different display screens of the same terminal device. Taking the terminal device as a mobile phone as an example, the mobile phone can include only one display screen, and the mobile phone can also include at least two display screens. Exemplarily, in the case where the mobile phone includes at least two display screens, the mobile phone can be a folding screen mobile phone, such as an inward folding screen mobile phone or an outward folding screen mobile phone. Optionally, the mobile phone can also be a non-folding mobile phone, such as including display screen one on the front of the mobile phone, and display screen two on the back of the mobile phone.
[0041] Take the display screens of different mobile phones as an example, Figure 1 As shown in the figure, when the three mobile phones display the same interface, the display screens of the three mobile phones present different display effects. Specifically, the display effect of mobile phone b is whiter than that of mobile phone a. The display effect of mobile phone c is yellower than that of mobile phone a.
[0042] The reasons for the inconsistent display effects of different display screens are mainly related to the display screens themselves. For example, differences in the materials, manufacturing processes, manufacturing tolerances, etc. of the display screens lead to differences in the color coordinates of different display screens.
[0043] Chromatic coordinates are the coordinates of a color. Chromatic coordinates can be expressed as (x, y, z), where x is the coordinate of the horizontal axis and y is the coordinate of the vertical axis. Since x+y+z=1, chromatic coordinates can also be expressed as (x, y). Based on the chromatic coordinates, a point can be determined on a chromaticity diagram that accurately represents a color. A chromaticity diagram can be, for example, a CIE 1931 chromaticity diagram. The CIE 1931 chromaticity diagram is a two-dimensional plane diagram of colors, and the x and y in the chromatic coordinates are used to specify colors on the chromaticity diagram.
[0044] Different display screens have different color gamut spaces, which can be the range of colors that the display screen can display. The color gamut space of the display screen can be represented on a chromaticity diagram. Figure 2 As shown, the red color coordinate R1 of display screen b is (0.67, 0.3), and the red color coordinate R2 of display screen a is (0.59, 0.35). The green color coordinate G1 of display screen b is (0.25, 0.7), and the green color coordinate G2 of display screen a is (0.3, 0.6). The blue color coordinate B1 of display screen b is (0.18, 0.6), and the blue color coordinate B2 of display screen a is (0.15, 0.07). Among them, the area surrounded by R1, G1, and B1 is the color gamut space of display screen b, that is, display screen b can display the colors corresponding to the color coordinates in the area surrounded by R1, G1, and B1. The area surrounded by R2, G2, and B2 is the color gamut space of display screen a, that is, display screen a can display the colors corresponding to the color coordinates in the area surrounded by R2, G2, and B2.
[0045] Different color gamut spaces correspond to different color conversion matrices. The color conversion matrix of the display screen can be calculated by measuring the color coordinates of the three primary colors (such as red, green, and blue) and white when the display screen displays them. The color conversion matrix can convert the RGB values output by the display screen into XYZ values in the XYZ color space, and the XYZ values can be used to calculate the color coordinates corresponding to the RGB values in the color gamut space of the display screen. For example, M is a color conversion matrix. The color coordinates (xyz) corresponding to the RGB values output on a display screen in the color gamut space of the display screen are x=X / X+Y+Zy=Y / X+Y+Zz=1-xy.
[0046] Therefore, for the same pixel RGB value, the color coordinates corresponding to the color gamut space of different display screens are inconsistent, and the color coordinates can accurately define a color. Therefore, even if different display screens display the same pixel RGB value, there are color differences.
[0047] For example, for the same display color such as RGB (RGB), since the color conversion matrices of display screen a and display screen b are inconsistent, the color coordinates of the color in the color gamut space of display screen a and display screen b are different, so there is a color difference when display screen a and display screen b display the color.
[0048] To this end, the embodiments of the present application provide a display method, a method for generating correction data, and an electronic device for calibrating the color of the electronic device when displaying an interface. Before displaying the interface, the electronic device can correct the target color value to be displayed of the pixel in the interface to the output color value based on the target correction data, and display the interface based on the output color value. The target correction data includes a mapping relationship between the output color value and the target color value under the current screen parameters. After calibration, the color coordinates of the target color value are consistent with the color coordinates of the output color value. Since the color coordinates can accurately define a color, when the first electronic device after calibration displays the interface based on the output color value under the current screen parameters, it can display the target display effect corresponding to the current screen parameters. Under the same screen parameters, different first electronic devices have the same display effect when displaying the same interface based on the display method provided in the embodiments of the present application.
[0049] For example, the target correction data may be a correction color lookup table (LUT), and the color value may be an RGB value. The correction LUT includes a mapping relationship between multiple output RGB values and target RGB values under the current screen parameters. Based on the correction LUT, the first electronic device may map the target RGB value to the output RGB value of the display screen. The display screen is displayed according to the output RGB value to display the correct color of the target RGB value under the current screen parameters. The color coordinates of the output RGB in the color gamut space corresponding to the display screen are consistent with the color coordinates of the target RGB in the color gamut space corresponding to the current screen parameters, that is, the color coordinates of the output RGB value of the display screen after calibration are consistent with the color coordinates of the target RGB value under the current screen parameters. In this way, when different calibrated display screens display the same target RGB value under the same screen parameters, the different display screens have the same display effect.
[0050] The method provided in the embodiment of the present application can be applied to electronic devices with data processing capabilities and display screens. The above-mentioned electronic devices may include mobile phones, tablet computers, laptops, personal computers (PCs), ultra-mobile personal computers (UMPCs), handheld computers, netbooks, smart home devices (such as smart TVs, smart screens, large screens, smart speakers, smart air conditioners, etc.), personal digital assistants (PDAs), wearable devices (such as smart watches, smart bracelets, etc.), vehicle-mounted devices, virtual reality devices, etc., and the embodiments of the present application do not impose any restrictions on this. In the embodiments of the present application, the above-mentioned electronic devices are electronic devices that can run operating systems and install applications. Optionally, the operating system running on the electronic device can be system, system, System, etc.
[0051] For example, please refer to Figure 3 , which shows a schematic diagram of the structure of an electronic device 300. The electronic device 300 may include a processor 310, an external memory interface 320, an internal memory 321, an internal memory 321, a speaker 330A, a microphone 330B, a display screen 340, a communication module 350, a power module 360, an input device 370, a sensor module 380, a camera 390, etc. Among them, the sensor module 380 may include a pressure sensor, a touch sensor, etc.
[0052] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 300. In other embodiments of the present application, the electronic device 300 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0053] The processor 310 may include one or more processing units. For example, the processor 310 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), and / or a neural-network processing unit (NPU). Different processing units may be independent components or integrated into one or more processors. In some embodiments, the electronic device 300 may also include one or more processors 310.
[0054] The processor 310 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory may store instructions or data that the processor 310 has just used or cyclically used. If the processor 310 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 310, and thus improves the efficiency of the system.
[0055] The external memory interface 320 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 300. The external memory card communicates with the processor 310 through the external memory interface 320 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0056] The internal memory 321 may be used to store one or more computer programs, which include instructions. The processor 310 may enable the electronic device 300 to execute the application running method provided in some embodiments of the present application, as well as various applications and data management, by running the above instructions stored in the internal memory 321. In some embodiments, the processor 310 may enable the electronic device 300 to execute the color calibration method provided in the embodiments of the present application by running the instructions stored in the internal memory 321 and / or the instructions stored in the memory provided in the processor 310.
[0057] The electronic device 300 can implement audio functions through the internal memory 321, the speaker 330A, the microphone 330B, and the application processor, etc. For example, music playing, recording, etc. The speaker 330A, also called a "speaker", is used to convert audio electrical signals into sound signals.
[0058] Microphone 330B, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. A user can make a sound by approaching microphone 330B with his mouth, and input the sound signal into microphone 330B.
[0059] The communication function of the electronic device 300 can be realized through the antenna 1, the antenna 2 and the communication module 350.
[0060] The communication module 350 can provide solutions for wireless communications including cellular, Wi-Fi, Bluetooth (BT), wireless data transmission modules (e.g., 433MHz, 868MHz, 915MHz) applied to the electronic device 300. The communication module 350 can be one or more devices integrating at least one communication processing module. The communication module 350 receives electromagnetic waves via antenna 1 or antenna 2, filters and frequency modulates the electromagnetic wave signals, and sends the processed signals to the processor 310. The communication module 350 can also receive the signal to be sent from the processor 310, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through antenna 1 or antenna 2.
[0061] The electronic device 300 implements the display function through a GPU, a display screen 340, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 340 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 310 may include one or more GPUs, which execute program instructions to generate or change display information.
[0062] The display screen 340 is used to display images, videos, etc. The display screen 340 includes a display panel. In some embodiments, the electronic device 300 may include 1 or N display screens 340, where N is a positive integer greater than 1. In the embodiment of the present application, the display screen 340 may be used to display a UI and receive user operations on the UI.
[0063] The power module 360 can be used to supply power to various components included in the electronic device 300. In some embodiments, the power module 360 can be a battery, such as a rechargeable battery.
[0064] The input device 370 may include a keyboard, a mouse, etc. The keyboard is used to input English letters, numbers, punctuation marks, etc. into the electronic device 300, thereby issuing commands to the electronic device 300, inputting data, etc.
[0065] The electronic device 300 can realize the shooting function through an ISP, a camera 390, a video codec, a GPU, a display screen 340, and an application processor. The ISP is used to process the data fed back by the camera 390. The camera 390 is used to capture static images or videos. In some embodiments, the electronic device 300 includes 1 or N cameras 390, where N is a positive integer greater than 1. The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 300 is at a frequency point selection, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc. The video codec is used to compress or decompress digital video.
[0066] Take the above electronic device 300 as a mobile phone. The software system of the electronic device 300 can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to illustrate the software structure of the electronic device 300. The software structure is as follows: Figure 3 shown.
[0067] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: application layer, application framework layer, system library, and kernel layer.
[0068] Among them, the application layer can include a series of application packages.
[0069] like Figure 4 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, social and other applications.
[0070] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 4 As shown, the application framework layer may include a content provider, a view system, a resource manager, a notification manager, an input system, a color mapping module, a data generation module, and the like.
[0071] The input system is used to monitor the input module of the mobile phone (such as the touch screen driver), and convert the parameters input by the input module into usable events and pass them to the relevant modules in the upper layer. For example, the input system is used to monitor the touch screen of the mobile phone through the touch screen driver, and convert the touch parameters generated by the touch operation input by the touch screen into usable events and pass them to the upper layer APP.
[0072] Content providers are used to store and retrieve data and make it accessible to applications. The data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0073] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build the display interface of an application.
[0074] The color mapping module is used to map the output RGB value of the display screen based on the correction LUT. The data generation module is used to generate the correction LUT.
[0075] The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and disappear automatically after a short stay without user interaction.
[0076] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system. The core library consists of two parts: one is the function that the Java language needs to call, and the other is the Android core library. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0077] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0078] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0079] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0080] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0081] A 2D graphics engine is a drawing engine for 2D drawings.
[0082] The core layer may include touch screen driver, display driver, sensor driver, audio driver, etc.
[0083] The following takes the example that the first electronic device is a mobile phone, and introduces a display method provided by an embodiment of the present application in conjunction with the accompanying drawings. In the embodiment of the present application, the mobile phone can calibrate the color of the display interface of the display screen of the mobile phone according to the correction data. During the factory testing phase, the mobile phone can obtain the correction data and pre-store the correction data in the mobile phone. When the user uses the mobile phone, the mobile phone can read the correction data and calibrate the color of the display interface of its display screen. The following introduces this scheme by taking the color value as an RGB value as an example. It should be understood that the color value can also be a color value in different color models. For example, the color value in this scheme can be an HSV value in the HSV color model, a Lab value in the Lab color model, a YUV value in the YUV color model, etc., and the embodiment of the present application does not make specific limitations on this.
[0084] The correction data may be a color lookup table (LUT). The correction data includes a plurality of LUTs, such as a first LUT. Each of the plurality of first LUTs includes a mapping relationship between an RGB value output by a display screen and a target RGB value under a preset screen parameter. The preset screen parameters include at least two preset color modes and at least two preset backlight brightnesses. Among them, the color mode is a display mode of a display screen. The preset color mode may include a first color mode and a second color mode. The first color mode may be a standard mode, and the second color mode may be a vivid mode. Alternatively, the first color mode may be a standard mode, and the second color mode may be an eye protection mode, etc. The preset backlight brightness includes a first preset brightness and a second preset brightness, and the first preset brightness is less than the second preset brightness. Exemplarily, the first preset brightness is 120nit and the second preset brightness is 800nit.
[0085] Exemplarily, the plurality of preset screen parameters may include: the preset color mode is the standard mode and the backlight brightness is 120nit, the preset color mode is the standard mode and the backlight brightness is 800nit, the preset color mode is the vivid mode and the backlight brightness is 120nit, and the preset color mode is the vivid mode and the backlight brightness is 800nit. The mobile phone stores a plurality of first LUTs corresponding to the plurality of preset screen parameters, such as Table a, Table b, Table c, and Table d. Among them, Table a includes the mapping relationship between the display screen output RGB value and the target RGB value when the preset color mode is the standard mode and the backlight brightness is 120nit. Table b includes the mapping relationship between the display screen output RGB value and the target RGB value when the preset color mode is the standard mode and the backlight brightness is 800nit. Table c includes the mapping relationship between the display screen output RGB value and the target RGB value when the preset color mode is the vivid mode and the backlight brightness is 120nit. Table d includes the mapping relationship between the display screen output RGB value and the target RGB value when the preset color mode is the vivid mode and the backlight brightness is 800nit.
[0086] In each of the plurality of first LUTs, the number of output RGB values may be multiple, such as 24 output RGB values, 48 output RGB values, 96 output RGB values, or 104 output RGB values. Correspondingly, in the first LUT, the number of target RGB values is the same as the number of output RGB values.
[0087] During the factory testing phase, the mobile phone can obtain LUTs corresponding to different preset screen parameters, such as Table A, Table B, Table C, and Table D. The following uses the preset backlight brightness of 120nit and 800nit, and the preset color modes including standard mode and vivid mode as an example to introduce how to obtain calibration data.
[0088] For example, Figure 5 A method for generating color correction data is shown. Exemplarily, the method is performed by a second electronic device, a mobile phone to be tested, and a color analyzer. The second electronic device is connected to the mobile phone to be tested and the color analyzer. The second electronic device is used to fix the mobile phone to be tested. The second electronic device is also used to send various test instructions to the mobile phone to be tested, and the mobile phone to be tested can respond to the test instructions of the second electronic device and perform various operations. The second electronic device can also receive test data output by the color analyzer. The mobile phone to be tested is a mobile phone tested at the factory stage, and the mobile phone to be tested is the mobile phone mentioned above.
[0089] Specifically, the second electronic device stores multiple RGB values, such as 24 RGB values, 48 RGB values, 96 RGB values or 104 RGB values. The following takes the second electronic device storing 104 RGB values as an example to introduce this solution.
[0090] S501: The second electronic device sends 104 RGB values to the mobile phone to be tested.
[0091] For example, the second electronic device may send RGB value (255.0.0), RGB value (0.255.0), RGB value (0.0.255), RGB value (255.255.255), RGB value (128.0.128), etc. to the mobile phone to be tested.
[0092] In another implementation, the mobile phone to be tested may have multiple RGB values pre-installed in it, and the second electronic device does not need to send multiple RGB values to the mobile phone to be tested. That is, in this implementation, S501 is an optional step.
[0093] S502: The second electronic device sends a test instruction to the mobile phone under test, wherein the test instruction is used to instruct the display screen of the mobile phone under test to sequentially use 104 RGB values as output display images under preset screen parameters.
[0094] The preset screen parameter may be one of a plurality of combinations of different color modes and different backlight brightnesses, or the preset screen parameter may be a plurality of different backlight brightnesses.
[0095] S503, the mobile phone to be tested controls the display screen to display 104 RGB values in sequence under preset screen parameters.
[0096] Taking the preset screen parameters as standard mode and the backlight brightness as 120nit as an example, specifically, the mobile phone under test responds to the test instruction of the second electronic device, sets the color mode of the display screen to standard mode, and the backlight brightness of the display screen to 120nit. Afterwards, the display screen of the mobile phone under test displays the image corresponding to each RGB value based on the 104 RGB values in sequence, that is, the 104 RGB values are used as output RGB values, and the corresponding images are displayed in sequence. Exemplarily, each pixel in the display screen uses the 104 RGB values as output RGB values, and displays the corresponding images in sequence.
[0097] S504, the color analyzer sequentially obtains color coordinates when the display screen displays 104 RGB values.
[0098] S505: The color analyzer sends 104 color coordinates to the second electronic device.
[0099] The display screen displays the corresponding image based on 104 RGB values in sequence when the preset color mode is the standard mode and the backlight brightness is 120 nit. The color analysis sequentially obtains the color coordinates when the display screen displays the 104 RGB values. In this way, the color analyzer can obtain 104 color coordinates corresponding to the 104 RGB values displayed on the display screen when the preset color mode is the standard mode and the backlight brightness is 120 nit. The color analyzer can send the 104 color coordinates to the second electronic device.
[0100] S506: The second electronic device establishes a mapping relationship between the output RGB value and the target RGB value under the preset screen parameters based on the color coordinates to obtain a first LUT.
[0101] Since the color coordinates can accurately represent a color, the second electronic device can establish a mapping relationship based on the color coordinates. For example, for the color coordinates (xy), the second electronic device can convert the color coordinates into color values (XYZ) in the XYZ color space. Calculate the target R1G1B1 corresponding to the color coordinates under the preset screen parameters. Wherein, M1 is the color conversion matrix corresponding to the preset screen parameters. The color conversion matrix M1 is used to convert the color value in the XYZ color space into the color value in the RGB color space. The second electronic device is based on Calculate the output R2G2B2 value corresponding to the color coordinate in the color gamut space of the display screen, where M2 is the color conversion matrix corresponding to the display screen.
[0102] Generally, the color conversion matrix M1 corresponding to the preset screen parameters is a fixed value and can be pre-stored in the second electronic device. The color conversion matrix M2 of the display screen can be calculated by the second electronic device. Exemplarily, the second electronic device can calculate the color conversion matrix M2 based on the color coordinates when the display screen displays three primary colors (such as red, blue, green) and white. The second electronic device can calculate the color conversion matrix M2 of the display screen based on the following formula, and the calculation process is briefly introduced.
[0103]
[0104] First, let in, Among them, x r ,y r , z r is the color coordinate of red displayed on the display. g ,y g , z g is the color coordinate of green displayed on the display. b ,y b , z b It is the color coordinate of blue displayed on the display. Among them, x w ,y w , z w is the color coordinate of white on the display. and matrix Afterwards, the second electronic device can obtain the color conversion matrix M2. It can be seen that since different display screens display different color coordinates of the three primary colors and white, the color conversion matrices of different display screens are different.
[0105] Therefore, the mapping relationship may be, for example, mapping the target R1G1B1 to the output R2G2B2.
[0106] Exemplarily, based on one color coordinate among the 104 color coordinates obtained, such as (0.64.0.3), the second electronic device obtains a target RGB value corresponding to the color coordinate when the preset color mode is the standard mode and the backlight brightness is 120 nit, which is (250.0.0). The output RGB value of the color coordinate in the color gamut space of the display screen is (251.0.0). The second electronic device can establish a mapping relationship between the target RGB (250.0.0) and the output RGB (251.0.0). That is, the target RGB (250.0.0) is mapped to the output RGB (251.0.0). That is to say, when the display screen is under the screen parameters with the preset color mode being the standard mode and the backlight brightness being 120nit, and the color to be output is the target RGB (250.0.0), the display screen maps the target RGB (250.0.0) to the output RGB (251.0.0) based on the mapping relationship. The display screen displays the color according to the output RGB (251.0.0) in order to correctly display the color corresponding to the target RGB (250.0.0) under the screen parameters.
[0107] That is to say, the second electronic device can obtain the target RGB value corresponding to the color coordinate in the color gamut space corresponding to the preset screen parameters based on a color coordinate. The second electronic device can obtain the output RGB value corresponding to the color coordinate in the color gamut space of the display screen based on the same color coordinate. In this way, the second electronic device can obtain multiple output color values and multiple target color values based on 104 color coordinates, and the second electronic device establishes a one-to-one correspondence between multiple output color values and multiple target colors to obtain a first LUT. When the display screen displays the interface, the target RGB value to be output can be mapped to the corresponding output RGB value, and the interface can be displayed according to the output RGB value, so that the correct color corresponding to the target RGB value can be displayed under the preset screen parameters.
[0108] Generally, different display screens have different corresponding color conversion matrices, the color conversion matrices corresponding to the same preset screen parameters are the same, and the color conversion matrices corresponding to different preset screen parameters are different. Therefore, under the same preset screen parameters, the second electronic device can determine the corresponding target RGB value based on the acquired color coordinates, and then find the corresponding mapped output RGB value in the color gamut space of different display screens based on the color coordinates, thereby obtaining the mapping relationship corresponding to different display screens, that is, obtaining the first LUT corresponding to different display screens. Different display screens have different first LUTs. In the first LUTs of different display screens under the same screen parameters, the output RGB values may be the same or different, and the target RGB values may be the same or different.
[0109] As an example, the same color coordinate (0.64.0.33) corresponds to the target R1G1B1 (255.0.0) in the color gamut space when the preset color mode is the standard mode and the backlight brightness is 120 nit. Due to the different color conversion matrices of different display screens, the color coordinate corresponds to RGB (251.0.0) in the color gamut space of display screen a, and corresponds to RGB (255.5.0) in the color gamut space of display screen b. In other words, when the interface is displayed under the preset color mode of the standard mode and the backlight brightness of 120 nit, display screen a outputs RGB (251.0.0) and display screen b outputs RGB (255.5.0). The colors displayed by display screens a and b are consistent, and both display the color corresponding to R1G1B1 (255.0.0) under the preset color mode of the standard mode and the backlight brightness of 120 nit.
[0110] It can be understood that the purpose of color correction is to make the color coordinates of different display screens as consistent as possible with the color coordinates under the preset screen parameters, thereby avoiding display color difference. Figure 6 As shown in a in , the color coordinates corresponding to the screen parameters are different from those of display screen a and display screen b. Therefore, before correction, even if the same RGB value is displayed under the same screen parameters, there is a display color difference between display screen a and display screen b. In the embodiment of the present application, based on the same color coordinate, a mapping relationship between the output RGB value of the display screen and the target RGB value corresponding to the screen parameter is established, and the color coordinates of the display screen and the color coordinates corresponding to the screen parameter are brought close. In other words, the output RGB value of the display screen is the color coordinate obtained by conversion and calculation through the conversion matrix of the display screen, and is the color coordinate corresponding to the target RGB value corresponding to the screen parameter. That is, in the embodiment of the present application, the color coordinates of each target RGB value under the screen parameters find the corresponding output RGB value in the color gamut space of the display screen, that is, the color coordinates of the display screen are corrected based on the color coordinates of the screen parameters. Exemplarily, as Figure 6 As shown in b in FIG, after correction, the color coordinates of display screen b are consistent with the color coordinates corresponding to the screen parameters. It should be understood that the color coordinates of the display screen are consistent with the color coordinates corresponding to the screen parameters, which can be understood as the color coordinates of the display screen are completely the same as the color coordinates corresponding to the screen parameters, or the color coordinates of the display screen are close to the color coordinates corresponding to the screen parameters, for example, the distance between the color coordinates of the display screen and the color coordinates corresponding to the screen parameters is less than a threshold.
[0111] The second electronic device may establish a first LUT to store the mapping relationship obtained based on the above method. The first LUT includes a mapping relationship between the RGB value output by the display screen and the target RGB value under the preset screen parameters. Exemplarily, the first LUT corresponding to the preset color mode of the standard mode and the backlight brightness of 120 nit established by the second electronic device is shown in Table a. The Table a may be shown in Table 1.
[0112] Table 1
[0113] Target RGB value Output RGB value Target RGB value Output RGB value Target RGB value Output RGB value (50.50.50) (70.70.70) (50.60.50) (75.80.70)) (50.70.50) (85.90.70) (50.50.60) (70.70.75) (50.60.60) (80.80.75) (50.70.60) (90.95.80)
[0114] The first LUT is used to calibrate the output color value of the display screen. The color coordinates of the output color value of the calibrated display screen are consistent with the color coordinates of the target color value under the preset screen parameters. For example, when the display screen of the mobile phone needs to output the target RGB (50.50.50) when the preset color mode is the standard mode and the backlight brightness is 120nit, the mobile phone maps the output RGB of the display screen to (70.70.70) after mapping according to Table 1. The mobile phone uses the RGB (70.70.70) mapped by the first LUT as the final output RGB value of the display screen. The display screen displays the interface according to the target RGB (70.70.70) to display the color corresponding to RGB (50.50.50) when the preset color mode is the standard mode and the backlight brightness is 120nit.
[0115] Similarly, the second electronic device can send test instructions to the mobile phone under test in sequence, instructing the mobile phone under test to control the display screen to display the 104 RGB values under multiple preset screen parameters. The second electronic device can obtain multiple sets of color coordinates of the display screen displaying the 104 RGB values under multiple preset screen parameters. Among them, a set of color coordinates includes 104 color coordinates of the display screen displaying the 104 RGB values under a preset screen parameter. The second electronic device can generate a first LUT corresponding to multiple preset screen parameters based on the multiple sets of color coordinates. Specifically, the second electronic device, the mobile phone under test, and the color analyzer can repeatedly execute S501-S506 until the second electronic device generates a first LUT corresponding to other preset screen parameters, such as generating the above-mentioned Table b, Table c, and Table d.
[0116] Among them, table b may specifically include the mapping relationship between 104 output RGB values and the target RGB values when the preset color mode is the standard mode and the backlight brightness is 800nit. Table c may specifically include the mapping relationship between 104 output RGB values and the target RGB values when the preset color mode is the vivid mode and the backlight brightness is 120nit. Table d may specifically include the mapping relationship between 104 output RGB values and the target RGB values when the preset color mode is the vivid mode and the backlight brightness is 800nit.
[0117] The preset screen parameters in the foregoing are preset backlight brightness and preset color mode. Optionally, the preset screen parameter may also be only the preset backlight brightness. In the case where the preset screen parameter is the preset backlight brightness, the second electronic device may obtain a plurality of first LUTs corresponding to the plurality of preset backlight brightnesses, each of the plurality of first LUTs specifically including a mapping relationship between an output RGB value of the display screen and a target color value under the preset backlight brightness.
[0118] Optionally, after obtaining multiple first LUTs as described above, if the display screen supports spectral correction, the second electronic device can calibrate the target RGB value corresponding to the first color value in the first LUT again based on the spectral distribution data to obtain a second LUT.
[0119] Exemplarily, the second electronic device can be connected to a spectrometer. The spectrometer is used to obtain spectral distribution data when the display screen displays the first color value. The spectral distribution data includes data such as wavelength, intensity, and peak value. The second electronic device can obtain a target RGB value when the display screen displays the first color value based on the spectral distribution data. The spectral distribution data is related to the display screen backlight source, for example, the spectral distribution data is related to the light-emitting diodes in the display screen backlight module. Due to manufacturing tolerances, material differences, and other reasons, the spectral distribution data of white light emitted by light-emitting diodes in different display screen backlight modules are different. Based on the spectral distribution data, the color of the display screen displaying the first color value can be corrected in a targeted manner, and the color of the display screen can be further calibrated. The first color value is a color value among multiple color values. For example, the first color value is an RGB value among 104 RGB values. The first color value is a color value corresponding to white among multiple color values, for example, the first color value is (255.255.255) among 104 RGB values.
[0120] Illustratively, after S506, the above method may further include S507-S510.
[0121] S507, the spectrometer obtains spectrum analysis data when the display screen displays the first color value under the preset screen parameters.
[0122] S508: The spectrometer sends the spectrum distribution data to the second electronic device.
[0123] The second electronic device obtains spectral distribution data when the display screen displays a first color value under preset screen parameters, such as a preset color mode of a standard mode and a backlight brightness of 120 nit.
[0124] S509: The second electronic device obtains a corresponding second target RGB value based on the spectral distribution data.
[0125] The second electronic device can obtain a second target RGB value when the display screen displays the first color value under the screen parameters based on the spectral distribution data. Exemplarily, the second electronic device stores a mapping relationship between the spectral distribution data and the RGB value, and the second electronic device can obtain the second target RGB value when the display screen displays the first color value under the screen parameters based on the mapping relationship and the acquired spectral distribution data.
[0126] S510: The second electronic device modifies the first target RGB value corresponding to the first color value in the first LUT into the second target RGB value obtained above, to obtain a second LUT.
[0127] The second electronic device may repeatedly execute S507-S510. The electronic device obtains the spectral distribution data when the display screen displays the first color value in different color modes and different backlight intensities in sequence. The second electronic device may sequentially calculate the second target RGB value when the display screen displays the first color value in different color modes and different backlight intensities. The second electronic device may update the first target RGB value of the first color value among the multiple target RGB values in the above-mentioned multiple first LUTs to the second target RGB value calculated by the second electronic device based on the spectral distribution data under the same color mode and backlight intensity, and complete the correction of the target RGB value corresponding to the first color value.
[0128] The second electronic device may store the above correction data (the first correction data such as the first LUT and / or the second correction data such as the second LUT) in the mobile phone to be tested. Exemplarily, when the mobile phone to be tested supports spectral correction, the second electronic device may generate a second LUT and store the first LUT and the second LUT in the mobile phone. When the mobile phone to be tested does not support spectral correction, the second electronic device will not generate the second LUT or store the second LUT, and the second electronic device will only store the first LUT.
[0129] Exemplarily, the second electronic device may store the calibration file including the above-mentioned multiple LUTs in a data storage area in the mobile phone to be tested. The data storage area may be, for example, a persist partition. The persist partition is used to store persistent data of the mobile phone, such as the configuration data of the mobile phone, system setting data, and preference setting data of the application program. The persist partition can maintain the integrity of the data after the device is restarted. The calibration file may also include identification information of the display screen, which is used to uniquely identify the display screen. For example, the identification information may be the product serial number (serial number, SN) of the display screen. In the case where the mobile phone to be tested includes multiple display screens, the mobile phone to be tested may store multiple calibration files. Each calibration file may include a LUT for calibrating a display screen and the SN of the display screen. Among them, the LUT of the display screen includes a first LUT, or a first LUT and a second LUT.
[0130] Afterwards, the second electronic device can check whether the multiple LUTs are valid. Taking the multiple LUTs as an example, the first LUT, the checking method includes S511-S517.
[0131] S511, the second electronic device sends a test instruction to the mobile phone to be tested.
[0132] The inspection instruction instructs the mobile phone to be tested to obtain a first LUT under preset screen parameters, map the color of the test image based on the first LUT, and display the mapped test image under the preset screen parameters.
[0133] S512, in response to the inspection instruction, the mobile phone to be tested acquires a first LUT based on preset screen parameters to map the test image to obtain a mapped test image.
[0134] For example, the verification instruction instructs the mobile phone under test to obtain Table a when the preset color mode is the standard mode and the backlight brightness is 120nit, and maps the color of the test image based on Table a, and displays the mapped test image. Among them, the test image can be a solid color image. Taking the test image as a red image as an example, in response to the verification instruction, the mobile phone under test first obtains Table a from the data storage area. Afterwards, the mobile phone under test maps the target RGB value of the test image based on the first LUT such as Table a to obtain the output RGB value of the test image. For example, the target R1G1B1 to be output is (255.0.0), and the mapped output R2G2B2 is (251.0.0). The mobile phone under test re-inputs the output R2G2B2 (251.0.0) into the display screen to drive the display screen to display, that is, the display screen displays the test image according to the mapped output RGB value, so that the color with the correct target RGB value can be displayed under the preset screen parameters.
[0135] S513, the mobile phone to be tested controls the display screen to display the mapped test image under preset screen parameters.
[0136] Taking the preset screen parameters as follows: the preset color mode is the standard mode and the backlight brightness is 120 nit, the mobile phone to be tested can adjust the color mode of the display to the standard mode, adjust the backlight brightness of the display to 120 nit, and display the mapped test image.
[0137] S514, the second electronic device calculates the color difference ΔE of the mapped test image displayed on the display screen of the mobile phone to be tested under preset screen parameters.
[0138] Commonly used color difference ΔE calculation formulas include CIE1976 color difference formula, DE*cmc1984 color difference formula, CIE94 color difference formula, etc.
[0139] For example, in the CIE 1976 color difference formula, the color difference The second electronic device may convert the output RGB value of the test image into a Lab value in a Lab color space, convert the RGB value of the test image under the preset screen parameters into a Lab value in the Lab color space, and calculate the color based on the above formula. In the above formula, ΔL is the difference of the L component, Δa is the difference of the a component, and Δb is the difference of the b component.
[0140] The value of color difference ΔE indicates the color difference between the test image displayed on the display and the test image under the preset screen parameters. The lower the ΔE value, the closer the test image displayed on the display is to the test image under the preset screen parameters, indicating that the mapping effect of the LUT is better. The higher the ΔE value, the farther the test image displayed on the display is from the test image under the preset screen parameters, indicating that the mapping effect of the LUT is poor.
[0141] S515: The second electronic device determines whether the color difference ΔE is within a first threshold.
[0142] If the color difference ΔE is less than the first threshold, it means that the difference between the test image displayed on the display screen and the test image under the preset screen parameters is small, indicating that the LUT is valid. If the color difference ΔE is greater than or equal to the first threshold, it means that the difference between the test image displayed on the display screen and the test image under the preset screen parameters is large, indicating that the LUT is invalid. Exemplarily, the first threshold can be any value between 0 and 1. For example, when the color difference ΔE is less than 1, the human eye can basically not distinguish the difference between the test image displayed on the display screen and the test image under the preset screen parameters.
[0143] S516: When the color difference ΔE is less than the first threshold, the first LUT test passes.
[0144] S517: When the color difference ΔE is greater than or equal to the first threshold, the first LUT test fails.
[0145] When the color difference ΔE is greater than or equal to the first threshold, the second electronic device may re-execute the following steps: Figure 5 The method shown in the figure regenerates the calibration file and verifies the calibration data. Optionally, when the color difference ΔE is greater than or equal to the first threshold, the tester can further determine whether the execution code of the second electronic device is defective. If the code is defective, after correcting the defect, the second electronic device can re-execute the following Figure 5 The calibration data are regenerated and verified using the method shown.
[0146] Figure 7This is the color difference ΔE distribution diagram of the internal and external displays of 300 folding screen mobile phones counted by the Second Electronic Equipment, when the color mode is standard mode and the backlight brightness is 120nit and the color mode is standard mode and the backlight brightness is 800nit. It can be seen that when the external display screen displays the test image in the color mode of standard mode and the backlight brightness is 120nit, the color difference ΔE is distributed between 0.15 and 0.3, which are all smaller than the color difference value that the human eye can distinguish. When the color mode is standard mode and the backlight brightness is 800nit, the color difference ΔE is distributed between 0.15 and 0.5, which are all smaller than the color difference value that the human eye can distinguish. When the internal display screen displays the test image in the color mode of standard mode and the backlight brightness is 120nit, the color difference ΔE is distributed between 0.15 and 0.35, which are all smaller than the color difference value that the human eye can distinguish. When the color mode is the standard mode and the backlight brightness is 800nit, the color difference ΔE is distributed between 0.1 and 0.3, which is smaller than the color difference value that can be distinguished by the human eye. That is, using multiple LUTs generated according to the correction data generation method provided above, the display colors of the inner and outer displays of the folding screen mobile phone can be calibrated, effectively reducing the color difference between the inner and outer displays of the same mobile phone, as well as the color difference between different displays (different inner displays, different outer displays).
[0147] The above S511-S517 takes the first LUT as an example to introduce the method for the second electronic device to verify the LUT. The method for the second electronic device to verify the second LUT is similar to Figure 5 The method shown in S511-S517 is similar and will not be repeated here.
[0148] Optionally, when the mobile phone to be tested includes multiple display screens, for each display screen, the second electronic device, the mobile phone to be tested, the color analyzer and / or the spectrometer can perform the following steps: Figure 5 The method shown generates correction data for each display screen under preset screen parameters and verifies the correction data.
[0149] Combined with the above Figure 5 The generation process of the correction data is introduced. It should be understood that the mobile phone is the mobile phone to be tested in the previous article. The mobile phone can generate correction data during the factory testing phase, and the mobile phone can use the correction data to calibrate the display color during user use.
[0150] Under the current screen parameters, the mobile phone can correct the target color value of the pixel in the interface based on the target correction data corresponding to the current screen parameters to obtain the output color value of the pixel, and the mobile phone can display the interface based on the output color value. The color coordinates of the output color value and the target color value are consistent. The target correction data may include a mapping relationship between the output color value and the target color under the current screen parameters. It should be understood that the consistency of the color coordinates of the output color value and the target color value can be understood as the color coordinates of the output color value and the color coordinates of the target color value are completely consistent, or the distance between the color coordinates of the output color value and the color coordinates of the output color value is less than a preset threshold.
[0151] The target correction data may be the first LUT or the second LUT. Alternatively, the target correction data may be calculated by the first LUT or by the second LUT. Exemplarily, in the case where the mobile phone supports spectral correction, the target correction data may be the second LUT or calculated by the second LUT. In the case where the mobile phone does not support spectral correction, the target correction data may be the first LUT or calculated by the first LUT.
[0152] Combine the following Figure 8 The method of using the correction data to calibrate the display color of the display screen is introduced. For example, when the screen brightness of the display screen changes or the color mode is switched, the mobile phone can perform the following steps: Figure 8 The method may include:
[0153] S801a, when the screen of the display screen changes or the color mode is switched, identifying whether the display screen supports color calibration.
[0154] The mobile phone may include at least one display screen, and when the screen of one of the display screens changes or the color mode switches, the mobile phone may identify whether the display screen supports color calibration.
[0155] Display screen changes include changes in the display screen turning on and off, such as the display screen switching from off to on, and may also include changes in the screen brightness of the display screen.
[0156] For example, when the mobile phone is locked, the display screen is off, and in response to the user's unlocking operation, the display screen switches from off to bright. As another example, after the mobile phone is turned on, the screen brightness of the display screen switches from black to bright.
[0157] The screen brightness change of the display screen includes the screen brightness of the display screen changing from bright to dark, or the screen brightness of the display screen changing from dark to bright, etc. The above changes can be executed by the mobile phone in response to a user's trigger, or automatically executed by the mobile phone. For example, Fig. 9As shown, the mobile phone displays interface 901. Interface 901 may be a display interface of the control center of the mobile phone, and the interface 901 displays a screen brightness adjustment control. In response to the user sliding the control to the right, the screen brightness of the display screen increases. In response to the user sliding the control to the left, the screen brightness of the display screen decreases. Optionally, after the automatic adjustment of the screen brightness function of the mobile phone is turned on, the mobile phone can also automatically adjust the screen brightness of the display screen. For example, the mobile phone can automatically adjust the screen brightness of the display screen according to the brightness of the ambient light in which the mobile phone is currently located. For example, when the brightness of the ambient light in which the mobile phone is currently located is low, the mobile phone can reduce the screen brightness of the display screen to avoid the screen brightness being too high. When the brightness of the ambient light currently described in the mobile phone is high, the mobile phone can increase the screen brightness of the display screen to avoid the screen brightness being too low. In other words, the mobile phone can adjust the screen brightness of the display screen automatically or in response to a user's trigger.
[0158] The display screen includes at least two color modes, a first color mode and a second color mode. In different color modes, the display screen has different display effects. For example, the first color mode and the second color mode may be a standard mode and a vivid mode. In the vivid mode, when the display screen displays an interface, the color saturation and contrast of the interface will be higher. The mobile phone may switch the color mode of the display screen in response to the user's operation of switching the color mode. For example, Fig. 9 As shown, the mobile phone displays interface 902, which can be a color adjustment interface in the settings application. Interface 902 displays a color mode selection control. The first color mode can be a standard mode, and the second color mode can be a vivid mode. Exemplarily, the currently displayed color mode is the standard mode. In response to the user selecting the vivid mode, the mobile phone switches the color mode of the display screen from the standard mode to the vivid mode.
[0159] When the screen of the display changes or the color mode is switched, the mobile phone can first identify whether the display supports color calibration. Exemplarily, the mobile phone can read the first preset identifier in the first preset flag. The first preset identifier can be written by the R&D personnel during the development stage of the mobile phone. The first preset identifier can be 1 or 0. Among them, the first preset identifier is 1, indicating that the display supports color calibration. The first preset identifier is 0, indicating that the display does not support color calibration.
[0160] Optionally, when the color mode is switched, the mobile phone can identify whether the display supports color mode switching. Exemplarily, the mobile phone can identify whether the mobile phone supports color mode switching by reading the second preset flag in the second preset flag. If the display supports color mode switching, the mobile phone can switch the color mode of the display in response to the user's switching operation. The mobile phone can further identify whether the display supports color calibration. If the display does not support color mode switching, the mobile phone may not respond to the user's switching operation. Alternatively, the mobile phone will not display the following information: Fig. 9 Interface 902 is shown.
[0161] S801b: If the display supports color calibration, the mobile phone obtains the current screen parameters of the display.
[0162] The current screen parameter may include the current backlight brightness. Alternatively, the current screen parameter may include the current backlight brightness and the current color mode, wherein the current color mode is one of the at least two preset color modes mentioned above.
[0163] Optionally, if the display does not support color calibration, the process ends.
[0164] Optionally, after the mobile phone recognizes that the display supports color calibration, it may further recognize whether the display supports spectral correction.
[0165] S802, the mobile phone identifies whether the display screen supports spectrum correction.
[0166] Exemplarily, the mobile phone can read the third preset identifier in the third preset flag. The third preset identifier can be written by the R&D personnel during the mobile phone R&D stage. The third preset identifier can be 1 or 0. If the third preset identifier is 1, it indicates that the display screen supports color calibration. If the third preset identifier is 0, it indicates that the display screen does not support color calibration.
[0167] S803, when the display screen does not support spectral correction, the mobile phone obtains target correction data based on the first LUT according to the current screen parameters of the display screen and the first LUT corresponding to multiple preset screen parameters.
[0168] The mobile phone stores a first LUT corresponding to multiple preset screen parameters one by one, and also stores a first mapping relationship between multiple screen parameters and the first LUT. The mobile phone can obtain target correction data corresponding to the current screen parameters based on the current screen parameters and the first mapping relationship.
[0169] When the current screen parameter only includes the current backlight brightness and the preset screen parameter only includes a plurality of preset brightnesses, the first mapping relationship may be as shown in Table 2, for example.
[0170] Table 2
[0171] Preset Brightness Correction data 120nit First LUT1 500nit First LUT2 800nit First LUT3
[0172] The mobile phone can obtain the first LUT corresponding to the current screen parameter based on the current backlight brightness and the preset brightness. Specifically, when the current screen parameter meets the first preset condition, the correction data corresponding to the preset screen parameter related to the current screen parameter is used as the target correction data. When the current screen parameter does not meet the first preset condition, the target correction data is determined according to the correction data corresponding to the preset screen parameter related to the current screen parameter.
[0173] Among them, the first preset condition is that multiple preset brightnesses include the current backlight brightness, or the current backlight brightness is less than the first preset brightness, or the current backlight brightness is greater than the second preset brightness, wherein the first preset brightness is the minimum value among the multiple preset brightnesses, and the second preset brightness is the maximum value among the multiple preset brightnesses.
[0174] Taking Table 2 as an example, when the current backlight brightness is 120nit, 500nit or 800nit, the correction data corresponding to the preset screen parameters related to the current screen parameters are used as the target correction data. When the current backlight brightness is less than the first preset brightness of 120nit, or when the current backlight brightness is greater than the second preset brightness of 800nit, the correction data corresponding to the preset screen parameters related to the current screen parameters are used as the target correction data. When the current backlight brightness is 350nit, the target correction data needs to be calculated based on the first LUT corresponding to the multiple preset screen parameters and the current backlight brightness.
[0175] In the case where multiple preset brightnesses include the current backlight brightness, the correction data corresponding to the preset screen parameters related to the current screen parameters is the first target correction data, which is the correction data corresponding to the preset brightness consistent with the current backlight brightness among the multiple preset brightnesses. In the case where the current backlight brightness is less than or equal to the first preset brightness, the correction data corresponding to the preset screen parameters related to the current screen parameters is the second target correction data, which is the correction data corresponding to the first preset brightness. In the case where the current backlight brightness is greater than or equal to the second preset brightness, the correction data corresponding to the preset screen parameters related to the current screen parameters is the third target correction data, which is the correction data corresponding to the second preset brightness.
[0176] Taking Table 2 as an example, when the current backlight brightness is 120nit or 500nit, or 800nit, the target calibration data is the first target calibration data, and the first target calibration data is the first LUT1 corresponding to 120nit or the first LUT2 corresponding to 500nit, or the first LUT3 corresponding to 800nit. When the current backlight brightness is less than the first preset brightness of 120nit, the target calibration data is the second target calibration data, and the second target calibration data is the first LUT1 corresponding to 120nit. When the current backlight brightness is greater than the second preset brightness of 800nit, the target calibration data is the third target calibration data, and the third target calibration data is the first LUT3 corresponding to 800nit.
[0177] When the current backlight brightness does not meet the first condition, for example, when the current backlight brightness is 350 nit, it is necessary to calculate the target correction data based on the first LUT corresponding to the plurality of preset screen parameters and the current backlight brightness. An example of calculating the target correction data is given below.
[0178] The mobile phone can first obtain the first candidate correction data and the second candidate correction data. Exemplarily, when the current backlight brightness is 350nit, the first candidate correction data may be the correction data corresponding to the third preset brightness that is smaller than the current backlight brightness among multiple preset brightnesses. The third preset brightness may be 120nit. The first candidate correction data may be the first LUT1 corresponding to the third preset brightness of 120nit. The second candidate correction data is the correction data corresponding to the fourth preset brightness that is greater than the current backlight brightness among multiple preset brightnesses. The fourth preset brightness may be 500nit or 800nit. The second candidate correction data may be the first LUT2 corresponding to the fourth preset brightness of 500nit, or the first LUT3 corresponding to the fourth preset brightness of 800nit.
[0179] Afterwards, the mobile phone can calculate the first ratio. The first ratio = the ratio of the first difference to the second difference, wherein the first difference is the difference between the current backlight brightness and the third preset brightness, and the second difference is the difference between the fourth preset brightness and the third preset brightness. Exemplarily, the third preset brightness can be 120nit, and the fourth preset brightness can be 800nit, then the first ratio = (350-120) / (800-120). For another example, the third preset brightness can be 120nit, and the fourth preset brightness can be 500nit, then the first ratio = (350-120) / (500-120).
[0180] Afterwards, for the same target color value, the output color value corresponding to the target color value in the first candidate correction data and the output color value corresponding to the target color value in the second candidate correction data are interpolated to obtain the output color value in the target correction data, and a mapping relationship is established. Exemplarily, for the target RGB1 and output RGB1 in the first LUT corresponding to the third preset brightness, and the target RGB1 and output RGB2 in the first LUT corresponding to the fourth preset brightness, the mobile phone can calculate the output RGB3 in the target correction data corresponding to the current backlight brightness based on the first ratio, the output RGB1 in the first LUT corresponding to the third preset brightness, and the output RGB2 in the first LUT corresponding to the fourth preset brightness. For example, the output RGB 3= Output RGB1+(output RGB2-output RGB1)*first ratio. After that, the mobile phone can establish a mapping relationship between target RGB1 and output RGB3 to obtain target correction data.
[0181] Optionally, the third preset brightness is less than the current backlight brightness and is the preset brightness closest to the current backlight brightness among multiple preset brightnesses, and the fourth preset brightness is greater than the current backlight brightness and is the preset brightness closest to the current backlight brightness among multiple preset brightnesses. For example, when the current backlight brightness is 350 nit, the third preset brightness is 120 nit, and the fourth preset brightness is 500 nit.
[0182] When the current screen parameters include the current backlight brightness and the current color mode, and the preset screen parameters include multiple preset brightnesses and multiple color modes, the first mapping relationship may be as shown in Table 3, for example.
[0183] Table 3
[0184]
[0185] The mobile phone can obtain the target correction data corresponding to the current screen parameters based on the current backlight brightness, the preset brightness, and the current color mode. Similarly, when the current backlight brightness meets the first preset condition, the correction data corresponding to the preset screen parameters related to the current screen parameters are used as the target correction data. When the current backlight brightness does not meet the first preset condition, the target correction data is determined based on the correction data corresponding to the preset screen parameters related to the current screen parameters.
[0186] Specifically, in the case where multiple preset brightnesses include the current backlight brightness, the correction data corresponding to the preset screen parameters related to the current screen parameters are first target correction data, and the first target correction data is the correction data corresponding to the preset brightness consistent with the current backlight brightness among multiple preset brightnesses in the current color mode. In the case where the current backlight brightness is less than or equal to the first preset brightness, the correction data corresponding to the preset screen parameters related to the current screen parameters are second target correction data, and the second target correction data is the correction data corresponding to the first preset brightness of the current color mode. In the case where the current backlight brightness is greater than or equal to the second preset brightness, the correction data corresponding to the preset screen parameters related to the current screen parameters are third target correction data, and the third target correction data is the correction data corresponding to the second preset brightness of the current color mode.
[0187] Taking Table 3 as an example, when the current color mode is the standard mode and the current backlight brightness is 120nit, 500nit or 800nit, the target calibration data is the first target calibration data, and the first target calibration data is the first LUT1 corresponding to the preset color mode being the standard mode and the preset brightness being 120nit, or the first target calibration data is the first LUT2 corresponding to the preset color mode being the standard mode and the preset brightness being 500nit. Or the first target calibration data is the first LUT3 corresponding to the preset color mode being the standard mode and the preset brightness being 800nit. When the current color mode is the standard mode and the current backlight brightness is less than the first preset brightness, such as 120nit, the target calibration data is the second target calibration data, and the second target calibration data is the first LUT1 corresponding to the preset color mode being the standard mode and the preset brightness being 120nit. When the current color mode is the standard mode and the current backlight brightness is greater than the second preset brightness of 800nit, the target calibration data is the third target calibration data, and the third target calibration data is the first LUT3 corresponding to the preset color mode being the standard mode and the preset brightness being 800nit. It can be seen that when the current screen parameters include the current color mode and the current backlight brightness, the color modes corresponding to the first target correction data, the second target correction data, and the third target correction data are all the current color modes.
[0188] When the current backlight brightness is 350 nit, the target correction data needs to be calculated based on the first LUT corresponding to the plurality of preset screen parameters and the current backlight brightness. The calculation method is consistent with the calculation method described above and will not be repeated here.
[0189] When the current screen parameters include the current color mode and the current backlight brightness, the color modes corresponding to the first candidate correction data and the second candidate correction data are both the current color mode. Exemplarily, when the current backlight brightness is 300nit, the first candidate correction data may be the correction data corresponding to the third preset brightness that is less than the current backlight brightness among multiple preset brightnesses of the current color mode, such as the first LUT1 corresponding to 120nit in Table 3. The second candidate correction data may be the correction data corresponding to the fourth preset brightness that is greater than the current backlight brightness among multiple preset brightnesses of the current color mode, such as the first LUT3 corresponding to 800nit in Table 3. Optionally, the second candidate correction data may be the first LUT2 corresponding to the preset color mode of the standard mode and the preset brightness of 500nit.
[0190] The following takes the current color mode as the standard mode as an example, and gives a specific example in combination with Table 3. When the current backlight brightness of the display screen is less than or equal to 120nit, the mobile phone uses the first LUT1 to calibrate the color of the display screen, that is, the first LUT1 is the target correction data. In standard mode, when the current backlight brightness of the display screen is greater than 800nit, the mobile phone uses the first LUT3 to calibrate the color of the display screen, that is, the first LUT3 is the target correction data. In standard mode, when the current backlight brightness of the display screen is greater than 120nit and less than 800nit, the mobile phone can generate target correction data corresponding to the current color mode and the current backlight brightness. Exemplarily, the current backlight brightness can be 350nit, then the first ratio = (350-120) / (800-120). Afterwards, the mobile phone calculates each output RGB value in the target correction data corresponding to the current backlight brightness of the current color mode based on the first LUT1 and the first LUT3. For example, for the target RGB and output RGB1 in the first LUT1 and the target RGB and output RGB2 in the first LUT3, the mobile phone can calculate the output RGB3 in the target correction data corresponding to the current backlight brightness of the current color mode based on the first ratio, the output RGB1 in the first LUT1 and the output RGB2 in the first LUT3. 3= Output RGB1+(output RGB2-output RGB1)*first ratio. After that, the mobile phone can establish a mapping relationship between target RGB1 and output RGB3 to obtain target correction data.
[0191] Optionally, the first ratio = (350-120) / (500-120). The mobile phone can calculate the output RGB3 in the target correction data corresponding to the current backlight brightness of the current color mode based on the first ratio, the output RGB1 in the first LUT1 and the output RGB2 in the first LUT2.
[0192] In this way, the mobile phone can establish a mapping relationship between multiple target RGB values and output RGB values in the target correction data corresponding to the current backlight brightness and the current color mode.
[0193] S804, before the display screen displays the interface, the mobile phone calibrates the output RGB of each pixel in the interface based on the target correction data corresponding to the current screen parameters.
[0194] Specifically, the mobile phone calibrates the output RGB value of each pixel of the display screen by calibrating the target calibration data according to the current screen parameters to calibrate the display color of the display screen. For example, for each pixel, the mobile phone can map the target RGB value of the pixel to the output RGB value in the target calibration data based on the target calibration data, and drive the pixel to display the interface according to the output RGB value.
[0195] S805, when the display screen supports spectral correction, the mobile phone obtains target correction data based on the second LUT according to the current screen parameters of the display screen and the second LUT corresponding to multiple preset screen parameters.
[0196] The mobile phone stores a second LUT corresponding to multiple preset screen parameters one by one, and the mobile phone also stores a first mapping relationship between multiple screen parameters and the second LUT. The mobile phone can obtain the target correction data corresponding to the current screen parameters based on the current screen parameters and the first mapping relationship.
[0197] When the current screen parameter only includes the current backlight brightness and the preset screen parameter only includes a plurality of preset brightnesses, the first mapping relationship may be as shown in Table 4, for example.
[0198] Table 4
[0199] Preset Brightness Correction data 120nit Second LUT1 500nit Second LUT2 800nit Second LUT3
[0200] When the current screen parameters include the current backlight brightness and the current color mode, and the preset screen parameters include multiple preset brightnesses and multiple preset color modes, the first mapping relationship may be as shown in Table 5, for example.
[0201] Table 5
[0202]
[0203]
[0204] The method for the mobile phone to obtain target correction data based on the second LUT according to the current screen parameters of the display screen and the second LUT corresponding one-to-one to multiple preset screen parameters is similar to the method for the mobile phone to obtain target correction data based on the first LUT according to the current screen parameters of the display screen and the first LUT corresponding one-to-one to multiple preset screen parameters, and will not be repeated here.
[0205] A specific example is given below. When the current color mode of the display is the standard mode and the current backlight brightness of the display is less than or equal to 120nit, the mobile phone uses the second LUT1 to calibrate the color of the display, that is, the second LUT1 is the target correction data. When the current color mode of the display is the standard mode and the current backlight brightness of the display is greater than or equal to 800nit, the mobile phone uses the second LUT3 to calibrate the color of the display, that is, the second LUT3 is the target correction data. When the current color mode of the display is the standard mode and the current backlight brightness of the display is 500nit, the mobile phone uses the second LUT2 to calibrate the display color of the display, that is, the second LUT2 is the target correction data. When the current color mode of the display is the standard mode and the current backlight brightness of the display is 350nit, the mobile phone uses the first candidate correction data and the second candidate correction data to calculate the target correction data. The specific calculation method is similar to the previous one and will not be repeated here.
[0206] The first candidate correction data may be correction data corresponding to a third preset brightness smaller than the current backlight brightness among multiple preset brightnesses of the current color mode, such as the second LUT1 corresponding to 120 nit in Table 5. The second candidate correction data may be correction data corresponding to a fourth preset brightness greater than the current backlight brightness among multiple preset brightnesses of the current color mode, such as the second LUT3 corresponding to 800 nit in Table 5. Alternatively, the second candidate correction data may be correction data corresponding to a fourth preset brightness greater than the current backlight brightness among multiple preset brightnesses of the current color mode, such as the second LUT2 corresponding to 500 nit in Table 5.
[0207] Likewise, the third preset brightness is a preset brightness that is smaller than the current backlight brightness and closest to the current backlight brightness among the preset brightnesses. The fourth preset brightness is a preset brightness that is larger than the current backlight brightness and closest to the current backlight brightness among the preset brightnesses.
[0208] Optional, such as Fig.10 As shown, the mobile phone has a built-in fusion algorithm, which has the ability to generate target correction data based on the first LUT. The fusion algorithm also has the ability to generate target correction data based on the second LUT. Exemplarily, the first LUT corresponding to the third preset brightness of the current color mode and the first LUT corresponding to the fourth preset brightness of the current color mode are used as inputs to the algorithm, and the algorithm can output the target correction data corresponding to the current backlight brightness of the current color mode. For example, the second LUT corresponding to the third preset brightness of the current color mode and the second LUT corresponding to the fourth preset brightness of the current color mode are used as inputs to the algorithm, and the algorithm can output the second correction LUT corresponding to the current backlight brightness of the current color mode.
[0209] S806, before the mobile phone display screen displays the interface, the mobile phone calibrates the output RGB of each pixel in the interface according to the second calibration LUT based on the current screen parameters.
[0210] Specifically, the mobile phone calibrates the output RGB value of each pixel of the display screen through the second calibration LUT to calibrate the display color of the display screen. For example, for each pixel point, the mobile phone can map the pixel target RGB value to the output RGB value in the second calibration LUT based on the second calibration LUT, and drive the pixel to display the interface according to the output RGB value.
[0211] The mobile phone can automatically establish the first mapping relationship and the second mapping relationship as shown in Table 2 or Table 3. For example, the mobile phone can establish the first mapping relationship and the second mapping relationship as shown in Table 2 or Table 3 when the user uses it for the first time after leaving the factory. The following is a schematic diagram of a method for a mobile phone to establish a mapping relationship between screen parameters and calibration data. For example, Fig.11 As shown, the method includes S1101-S1108.
[0212] S1101, after the mobile phone is turned on, identify whether the display screen supports color calibration.
[0213] After the mobile phone is turned on, it can first identify whether the display screen in the mobile phone supports color calibration. The identification method S801a is similar and will not be described in detail here.
[0214] Optionally, if the display does not support color calibration, the process ends.
[0215] S1102: When the display screen supports color calibration, the mobile phone identifies whether the display screen supports spectrum calibration.
[0216] If the display screen supports spectrum calibration, the mobile phone executes S1103 to S1106. If the display screen does not support spectrum calibration, the mobile phone executes S1106 to S1108.
[0217] S1103: When the display screen supports color calibration and spectrum calibration, the mobile phone determines whether a second LUT and a brightness mapping table exist.
[0218] The second LUT is stored in the persist partition during the factory testing phase of the mobile phone. The mobile phone determines whether the persist partition stores the second LUT. Specifically, the mobile phone includes a correction data list, which includes the table names of multiple LUTs before spectral correction and multiple LUTs after spectral correction. The table name of the LUT may include the color mode and backlight brightness corresponding to the LUT, as well as a preset identifier. The preset identifier may indicate that the LUT is the first LUT or the second LUT. The mobile phone compares the table names of the multiple LUTs in the persist partition with the table names in the correction data list one by one to identify whether the persist partition stores the second LUT.
[0219] The brightness mapping table includes the mapping relationship between the display screen backlight brightness and the display screen brightness. The brightness mapping table is used to map the display screen brightness to the display screen backlight brightness. In this way, the mobile phone can determine the backlight brightness according to the screen brightness of the display screen.
[0220] S1104: When the second LUT and the brightness mapping table exist, the mobile phone verifies the correctness and completeness of the second LUT.
[0221] The mobile phone can verify the SN of the display screen to ensure that the second LUT stored in the mobile phone is the correction data generated for the display screen, that is, to ensure that the correction data used by the mobile phone to calibrate the display screen is correct. When the mobile phone includes multiple display screens, the mobile phone stores multiple sets of calibration files for multiple display screens. Each calibration file includes the first LUT or the second LUT, and the SN of the display screen. The mobile phone can obtain the SN of the display screen and compare it with the SN of the display screen in the calibration file to ensure that the correction data is the correction data of the display screen to avoid using the wrong correction data.
[0222] The mobile phone can also verify the correctness and completeness of the second LUT. Exemplarily, the mobile phone can calculate the information group check code (Block Check Character, BCC) of the second LUT. Among them, BCC is also called XOR check. Specifically, during the factory testing phase of the mobile phone, after the color test is passed, the mobile phone can perform XOR calculations on all bytes in each second LUT to obtain multiple check values 1. After the mobile phone is turned on, if the second LUT and the brightness mapping table exist, the mobile phone performs XOR calculations on all bytes in the second LUT stored in the persist partition to obtain multiple check values 2. The mobile phone compares whether the check value 1 of each second LUT is consistent with the check value 2. If the first check value is consistent with the second check value, the mobile phone recognizes that the second LUT is correct and complete. Optionally, in order to reduce the amount of calculation, the mobile phone can calculate a check value based on the second LUT in the same color mode, and compare whether the check value is consistent with the check value calculated by the mobile phone in the testing phase. The embodiment of the present application does not make specific limitations on this.
[0223] S1105, after the verification is passed, the mobile phone establishes a mapping relationship between the backlight brightness and color mode and the second LUT.
[0224] The mobile phone can identify the second LUT in the persist partition based on the preset identifier in the table name of the LUT. Then, based on the color mode and backlight brightness in the table name of the LUT, a mapping relationship between the backlight brightness and the color mode and the second LUT is established.
[0225] Optionally, after verification fails, the process ends.
[0226] S1106: When the display screen supports color calibration but not spectrum calibration, the mobile phone determines whether the first LUT and brightness mapping table exist.
[0227] S1107, when the first LUT and the brightness mapping table exist, the mobile phone verifies the correctness and completeness of the first LUT.
[0228] The method for the mobile phone to verify the correctness and integrity of the first LUT is similar to the method for the mobile phone to verify the correctness and integrity of the second LUT, which will not be repeated here, and reference may be made to the previous introduction.
[0229] S1108, after the verification is passed, the mobile phone establishes a mapping relationship between the backlight brightness and color mode and the first LUT.
[0230] The mobile phone can identify the first LUT in the persist partition based on the preset identifier in the table name of the LUT. Then, based on the color mode and backlight brightness in the table name of the LUT, a mapping relationship between the backlight brightness and the color mode and the first LUT is established.
[0231] Optionally, after verification fails, the process ends.
[0232] In this way, the mobile phone can store the first mapping relationship or the second mapping relationship shown in Table 2-Table 5 when it is turned on for the first time. When the screen or color mode of the display changes, the appropriate correction LUT is determined based on the first mapping relationship or the second mapping relationship, and the correction LUT is used to calibrate the display color of the display.
[0233] The present application embodiment provides an electronic device, which includes: a memory, a display screen, and one or more processors. The display screen is coupled to the processor. The memory is used to store computer program code. The computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device can execute the various functions or steps executed by the mobile phone in the above method embodiment. The structure of the electronic device can refer to Figure 3 The structure of the electronic device 300 is shown.
[0234] The present application embodiment provides an electronic device, the electronic device comprising: a memory, and one or more processors. The memory is used to store computer program code. The computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device can perform each function or step performed by the second electronic device in the above method embodiment.
[0235] The present application also provides a computer storage medium, which includes computer instructions. When the computer instructions are in the above electronic device (such as Figure 3 When the method is executed on the electronic device 300 shown in the figure, the electronic device executes each function or step in the above method embodiment.
[0236] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute each function or step in the above method embodiment.
[0237] The embodiment of the present application also provides a chip system, which includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected by lines. For example, the interface circuit can be used to receive signals from other devices (such as a memory of an electronic device). For another example, the interface circuit can be used to send signals to other devices (such as a processor). Exemplarily, the interface circuit can read instructions stored in the memory and send the instructions to the processor. When the instruction is executed by the processor, the electronic device can perform the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which is not specifically limited in the embodiment of the present application.
[0238] Through the description of the above implementation methods, technical personnel in the relevant field can clearly 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.
[0239] 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.
[0240] 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.
[0241] 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.
[0242] 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 enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0243] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A display method, characterized in that: The method is used to calibrate the color of a display interface of a first electronic device, and comprises: Under the current screen parameters, the first electronic device displays an interface based on the output color value; The output color value is a color value obtained by correcting the target color value of a pixel in the interface based on the target correction data corresponding to the current screen parameters; the color coordinates of the output color value are consistent with the color coordinates of the target color value; the target correction data includes a mapping relationship between the output color value and the target color value under the current screen parameters.
2. The method according to claim 1, characterized in that The first electronic device stores a plurality of correction data corresponding to a plurality of preset screen parameters one by one; each of the plurality of correction data includes a mapping relationship between an output color value and a target color value under the corresponding preset screen parameter; Before the first electronic device displays an interface based on the output color value, the method further includes: The target correction data is acquired based on the current screen parameters and a plurality of correction data corresponding to a plurality of preset screen parameters one by one.
3. The method according to claim 2, characterized in that The current screen parameters include current backlight brightness; the multiple preset screen parameters correspond to multiple preset brightness; The acquiring the target correction data based on the current screen parameter and a plurality of correction data corresponding to a plurality of preset screen parameters one by one includes: In a case where the current screen parameter satisfies a first preset condition, using correction data corresponding to a preset screen parameter related to the current screen parameter as the target correction data; In a case where the current screen parameter does not satisfy the first preset condition, determining the target correction data according to correction data corresponding to preset screen parameters related to the current screen parameter; The first preset condition is that the multiple preset brightnesses include the current backlight brightness, or the current backlight brightness is less than the first preset brightness, or the current backlight brightness is greater than the second preset brightness, wherein the first preset brightness is the minimum value among the multiple preset brightnesses, and the second preset brightness is the maximum value among the multiple preset brightnesses.
4. The method according to claim 3, characterized in that The using correction data corresponding to the preset screen parameters related to the current screen parameters as the target correction data includes: In the case where the multiple preset brightnesses include the current backlight brightness, the correction data corresponding to the preset screen parameter related to the current screen parameter is first target correction data, and the first target correction data is correction data corresponding to a preset brightness consistent with the current backlight brightness among the multiple preset brightnesses; In the case where the current backlight brightness is less than or equal to the first preset brightness, the correction data corresponding to the preset screen parameter related to the current screen parameter is the second target correction data, and the second target correction data is the correction data corresponding to the first preset brightness; When the current backlight brightness is greater than or equal to the second preset brightness, the correction data corresponding to the preset screen parameter related to the current screen parameter is third target correction data, and the third target correction data is correction data corresponding to the second preset brightness.
5. The method according to claim 3 or 4, characterized in that: The determining the target correction data according to the correction data corresponding to the preset screen parameters related to the current screen parameters includes: Acquire first candidate correction data and second candidate correction data; the first candidate correction data is correction data corresponding to a third preset brightness among the multiple preset brightnesses that is smaller than the current backlight brightness; the second candidate correction data is correction data corresponding to a fourth preset brightness among the multiple preset brightnesses that is larger than the current backlight brightness; For the same target color value, the output color value corresponding to the target color value in the first candidate correction data and the output color value corresponding to the target color value in the second candidate correction data are interpolated to obtain the output color value in the target correction data; A corresponding relationship between the target color value and the output color value in the target correction data is established to obtain the target correction data.
6. The method according to claim 4, characterized in that The current screen parameters also include a current color mode, and the multiple preset screen parameters also correspond to a first color mode and a second color mode. The current color mode is the first color mode or the second color mode, and the color modes corresponding to the first target correction data, the second target correction data, and the third target correction data are all current color modes.
7. The method according to claim 5, characterized in that The current screen parameters also include a current color mode, the multiple preset screen parameters correspond to a first color mode and a second color mode, the current color mode is the first color mode or the second color mode, and the color modes corresponding to the first candidate correction data and the second candidate correction number are both current color modes.
8. The method according to claim 5 or 7, characterized in that: The third preset brightness is smaller than the current backlight brightness and is the preset brightness closest to the current backlight brightness among the multiple preset brightnesses, and the fourth preset brightness is larger than the current backlight brightness and is the preset brightness closest to the current backlight brightness among the multiple preset brightnesses.
9. The method according to any one of claims 1 to 8, characterized in that: In the case where the first electronic device does not support spectrum correction, the plurality of correction data corresponding to the plurality of preset screen parameters one by one are a plurality of first correction data; each of the plurality of first correction data includes a mapping relationship between an output color value and a target color value under the corresponding preset screen parameter; When the first electronic device supports spectral correction, the multiple correction data corresponding one-to-one to multiple preset screen parameters are multiple second correction data; the multiple second correction data are obtained by replacing the first target color value in the multiple first correction data with the second target color value, and the second target color value is generated according to the spectral distribution data, and the spectral distribution data is the spectral data when the display screen outputs the image corresponding to the first color value under the preset screen parameters corresponding to the first correction data.
10. A method for generating correction data, characterized in that Applied to a second electronic device, the method includes: Instructing a display screen of the first electronic device to display a plurality of color values under preset screen parameters; Obtaining the color coordinates of each color value when the display screen displays multiple color values under preset screen parameters; A mapping relationship between multiple output color values of the display screen and multiple target color values under the preset screen parameters is established based on the multiple color coordinates, and first correction data corresponding to the preset screen parameters are obtained, and the first correction data is used to correct the output color values of the display screen; the color coordinates of the output color values of the calibrated display screen are consistent with the color coordinates of the target color values under the preset screen parameters.
11. The method according to claim 10, characterized in that The method further comprises: Acquiring spectral distribution data when the display screen displays a first color value under the preset screen parameters; Obtaining a second target color value according to the spectral distribution data; The first target color value corresponding to the first color value in the first correction data is replaced with a second target color value to obtain second correction data.
12. The method according to claim 10, characterized in that The step of establishing a mapping relationship between a plurality of output color values of the display screen and a plurality of target color values under the preset screen parameters based on the plurality of color coordinates to obtain first calibration data corresponding to the preset screen parameters includes: Convert each color coordinate of the plurality of color coordinates into an output color value in a color gamut space corresponding to the display screen; Convert each color coordinate of the plurality of color coordinates into a target color value in a color gamut space corresponding to the preset screen parameter; A one-to-one correspondence between the plurality of output color values and the plurality of target color values is established to obtain the first correction data corresponding to the preset screen parameters.
13. An electronic device, comprising: The electronic device comprises: a memory, a display screen, and one or more processors; the memory and the display screen are coupled to the processor; wherein the memory is used to store computer program code, and the computer program code comprises computer instructions; when the computer instructions are executed by the processor, the electronic device executes the method as described in any one of claims 1-9.
14. An electronic device, comprising: The electronic device comprises: a memory and one or more processors; the memory is coupled to the processor; wherein the memory is used to store computer program code, and the computer program code comprises computer instructions; when the computer instructions are executed by the processor, the electronic device executes the method as described in any one of claims 10-12.
15. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 12.
16. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.
Citation Information
Patent Citations
Apparatus using ambient light as backlight and method for correcting colors therein
CN101093656A
Fast calibration of displays using spectral-based colorimetrically calibrated multicolor camera
CN103765503A
Color calibration device, color calibration system, color calibration hologram, color calibration method, and program
CN109565577A
Color calibration method and device, computer equipment and storage medium
CN112185317A
Screen calibration method and device, electronic equipment and storage medium
CN114067741A
Cited By
LED display screen debugging method and system
CN120496451A