Picture display method and device, computer device and storage medium
By converting color parameters from the first color space to the second color space of the target display device, the problem of color limitations of the display device is solved, resulting in richer image display and a better user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT DIGITAL (SHENZHEN) CO LTD
- Filing Date
- 2022-04-24
- Publication Date
- 2026-06-23
AI Technical Summary
In existing technologies, because color parameters are limited by the sRGB color space, display devices can only display colors that this color space can represent, thus limiting the display capabilities of the image.
By converting the first color parameter from the first color space to the second color space of the target display device, and then displaying it using the color space of the target display device, the conversion and output of the color parameter are achieved.
It breaks the limitations of conventional standard color spaces, fully utilizes the display capabilities of target display devices, displays more colors, and improves the realism of the image and the user experience.
Smart Images

Figure CN116501273B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a screen display method, apparatus, computer device, and storage medium. Background Technology
[0002] With the rapid development of computer technology, a display method combining a virtual engine and a display device has emerged, enabling the display of images rendered by the virtual engine. In this technology, color parameters are created through the virtual engine, converted to the sRGB color space (a standard color space), and then output to the display device, which displays the corresponding image based on these color parameters. However, because these color parameters are limited to the sRGB color space, the display device can only display colors that the sRGB color space can represent, thus significantly limiting its display capabilities. Summary of the Invention
[0003] This application provides a screen display method, apparatus, computer device, and storage medium, which can fully utilize the display capabilities of the display device and overcome limitations in screen display. The technical solution is as follows:
[0004] On the one hand, a screen display method is provided, the method comprising:
[0005] Create the first color parameter corresponding to the image. The first color parameter belongs to the first color space. The first color space is the color space supported by the local device.
[0006] The first color parameter is converted from the first color space to the second color space to obtain the second color parameter, where the second color space is the color space of the target display device;
[0007] The second color parameter is output to the target display device, which is used to display the image based on the second color parameter.
[0008] On the other hand, a screen display device is provided, the device comprising:
[0009] The creation module is used to create the first color parameters corresponding to the image. The first color parameters belong to the first color space, which is the color space supported by the local device.
[0010] The conversion module is used to convert the first color parameter from the first color space to the second color space to obtain the second color parameter, wherein the second color space is the color space of the target display device;
[0011] An output module is used to output the second color parameter to the target display device, and the target display device is used to display the image based on the second color parameter.
[0012] Optionally, the first color parameters include a first brightness and a first chromaticity, and the conversion module includes:
[0013] A conversion unit is used to map the first brightness using a mapping curve to obtain a second brightness, wherein the mapping curve is used to map the brightness from a linear distribution to a nonlinear distribution;
[0014] The conversion unit is further configured to multiply the first chromaticity by the conversion matrix to obtain the second chromaticity, wherein the conversion matrix is configured to convert the chromaticity belonging to the first color gamut to the chromaticity belonging to the second color gamut.
[0015] The constitutive unit is used to form the second color parameter by combining the second brightness and the second chromaticity.
[0016] Optionally, the device further includes:
[0017] The correction module is used to multiply the first color parameter by the correction matrix to obtain the corrected first color parameter;
[0018] The correction matrix is used to correct the color parameters belonging to the first color space so that the color indicated by the color parameters before correction matches the shooting color corresponding to the corrected color parameters. The shooting color is obtained by shooting the color displayed on the target display device after the corrected color parameters are converted to the second color space.
[0019] Optionally, the device further includes:
[0020] The acquisition module is used to acquire a third color parameter, which is obtained by capturing the image displayed on the target display device using an imaging device;
[0021] The conversion module is further configured to convert the third color parameter from the third color space of the shooting device to the first color space to obtain the fourth color parameter;
[0022] The material determination module is used for: if the image is displayed by the target display device based on corrected color parameters, then determining the fourth color parameter as a color parameter material belonging to the first color space; or, if the image is displayed by the target display device based on uncorrected color parameters, then multiplying the fourth color parameter by a first matrix to obtain a fifth color parameter, and determining the fifth color parameter as a color parameter material belonging to the first color space; wherein, the first matrix is used to correct the color parameters converted from the third color space to the first color space, so that the color indicated by the corrected color parameter matches the color indicated by the color parameter belonging to the first color space.
[0023] Optionally, the apparatus further includes a generation module, the generation module being configured to:
[0024] A sixth color parameter is obtained by capturing an image of the target display device based on a seventh color parameter using an imaging device. The seventh color parameter belongs to the second color space.
[0025] The sixth color parameter is converted from the third color space of the shooting device to the first color space to obtain the eighth color parameter;
[0026] A first matrix is determined for converting the eighth color parameter into a ninth color parameter, the ninth color parameter belonging to the first color space, and the color indicated by the ninth color parameter matching the color indicated by the seventh color parameter;
[0027] The first matrix is inversely transformed to obtain the correction matrix.
[0028] Optionally, the local device runs a virtual engine, the first color space is the color space of the virtual engine, the first color parameters are created by the virtual engine, and the color gamut of the first color space is larger than the color gamut of the second color space;
[0029] The conversion module includes:
[0030] The conversion unit is used to convert the first color parameter from the first color space to the second color space through the virtual engine to obtain the second color parameter.
[0031] Optionally, the local device also runs a display control application, and the output module includes:
[0032] The sending unit is used to send the second color parameter to the display control application through the virtual engine;
[0033] The output unit is used to receive the second color parameter through the display control application and output the second color parameter to the target display device.
[0034] Optionally, the first color parameter includes a first brightness and a first chromaticity. The local device runs a virtual engine and a display control application. The first color space is the color space of the virtual engine. The first color parameter is created by the virtual engine. The color gamut of the first color space is smaller than the color gamut of the second color space.
[0035] The conversion module includes:
[0036] The conversion unit is used to map the first brightness to the second brightness using the virtual engine and a mapping curve, wherein the mapping curve is used to map the brightness from a linear distribution to a non-linear distribution;
[0037] The conversion unit is further configured to send the first chromaticity and the second luminance to the display control application through the virtual engine;
[0038] The conversion unit is further configured to receive the first chromaticity and the second luminance through the display control application, multiply the first chromaticity by the conversion matrix to obtain the second chromaticity, wherein the conversion matrix is used to convert the chromaticity belonging to the first color gamut to the chromaticity belonging to the second color gamut.
[0039] The constitutive unit is used to construct the second color parameter from the second brightness and the second chromaticity through the display control application;
[0040] The output module includes:
[0041] The output unit is used to output the second color parameter to the target display device through the display control application.
[0042] On the other hand, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to perform the operations performed by the screen display method as described above.
[0043] On the other hand, a computer-readable storage medium is provided, wherein at least one computer program is stored therein, the at least one computer program being loaded and executed by a processor to perform the operations performed by the screen display method as described above.
[0044] On the other hand, a computer program product is provided, including a computer program that is loaded and executed by a processor to perform the operations performed by the screen display method as described above.
[0045] The method provided in this application embodiment involves creating color parameters in a first color space during the display process. However, the target display device uses a second color space, which differs from the first color space. Therefore, the color parameters created in the first color space are converted to color parameters in the second color space. The target display device then displays the corresponding image based on these second color space parameters, enabling it to display colors that the second color space can represent. Since the second color space is matched to the display capabilities of the target display device, it fully utilizes the display capabilities of the target display device, thereby overcoming some limitations caused by conventional standard color spaces. Attached Figure Description
[0046] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0047] Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of this application;
[0048] Figure 2 This is a flowchart of a screen display method provided in an embodiment of this application;
[0049] Figure 3 This is a flowchart of another screen display method provided in the embodiments of this application;
[0050] Figure 4 This is a flowchart of another screen display method provided in the embodiments of this application;
[0051] Figure 5 This is a schematic diagram of a color gamut provided in an embodiment of this application;
[0052] Figure 6 This is a flowchart of another screen display method provided in the embodiments of this application;
[0053] Figure 7 This is a flowchart of another screen display method provided in the embodiments of this application;
[0054] Figure 8 This is a schematic diagram of a color gamut provided in an embodiment of this application;
[0055] Figure 9 This is a flowchart of another screen display method provided in the embodiments of this application;
[0056] Figure 10 This is a flowchart of another screen display method provided in the embodiments of this application;
[0057] Figure 11 This is a flowchart of another screen display method provided in the embodiments of this application;
[0058] Figure 12 This is a flowchart of a color parameter conversion method provided in an embodiment of this application;
[0059] Figure 13 This is a flowchart of another color parameter conversion method provided in the embodiments of this application;
[0060] Figure 14 This is a flowchart of a correction matrix generation method provided in an embodiment of this application;
[0061] Figure 15 This is a schematic diagram of a correction result provided in an embodiment of this application;
[0062] Figure 16 This is a schematic diagram of the structure of a screen display device provided in an embodiment of this application;
[0063] Figure 17 This is a schematic diagram of another screen display device provided in an embodiment of this application;
[0064] Figure 18 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application;
[0065] Figure 19 This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation
[0066] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0067] It is understood that the terms "first," "second," etc., used in this application may be used to describe various concepts herein, but unless otherwise stated, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of this application, a first color parameter may be referred to as a second color parameter, and similarly, a second color parameter may be referred to as a first color parameter.
[0068] "At least one" refers to one or more color parameters. For example, at least one color parameter can be one, two, three, or any integer greater than or equal to one color parameter. "Multiple" refers to two or more color parameters. For example, multiple color parameters can be two, three, or any integer greater than or equal to two color parameters. "Each" refers to each of the at least one color parameter. For example, each color parameter refers to every single color parameter in the multiple color parameters. If the multiple color parameters are three color parameters, then each color parameter refers to every single one of the three color parameters.
[0069] Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of this application. See also: Figure 1 The implementation environment includes a computer device 101 and a target display device 102. The computer device 101 and the target display device 102 can be directly or indirectly connected via wired or wireless communication, which is not limited herein.
[0070] In this embodiment, the computer device 101 supports a first color space, and the color parameters created by the computer device 101 belong to the first color space. The color space of the target display device 102 is a second color space. The computer device 101 is used to convert the created color parameters from the first color space to the second color space and output the color parameters belonging to the second color space to the target display device 102. The target display device 102 is used to display the corresponding image based on the color parameters belonging to the second color space.
[0071] In one possible implementation, the implementation environment also includes a camera device for capturing images of the screen displayed on the target display device 102.
[0072] In another possible implementation, the computer device 101 can be a server. This server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. In yet another possible implementation, the computer device can also be a terminal, which can be a tablet computer, laptop computer, desktop computer, smartphone, smart speaker, smartwatch, in-vehicle terminal, etc., but is not limited to these.
[0073] In another possible implementation, the target display device 102 is an LED (Light-Emitting Diode) screen, such as an LED ring screen, etc. This application embodiment does not limit this.
[0074] The screen display method provided in this application embodiment can be applied to any scenario where a screen needs to be displayed.
[0075] In one possible implementation, this application embodiment is applied to a film shooting scenario. This application embodiment provides a film shooting method combining a virtual engine and an LED circular screen. The virtual engine uses a first color space, and the LED circular screen uses a second color space. Using the method provided in this application embodiment, the color parameters created by the virtual engine are converted from the first color space to the second color space. Then, the LED circular screen displays the corresponding image based on the color parameters belonging to the second color space. The image displayed on the LED circular screen can then serve as the background for film shooting. Actors perform in front of the LED circular screen, and a filming device captures both the image displayed on the LED circular screen and the actors, resulting in the film image. This method allows for the real-time fusion of the virtual image created by the virtual engine and the real-world image performed by the actors, thereby obtaining a film image that combines virtual and reality.
[0076] In another possible implementation, this application embodiment is applied to a scenario of displaying game graphics. A virtual engine is used to create the game graphics, and a game device is used to display them. The virtual engine uses a first color space, and the game device uses a second color space. Therefore, using the method provided in this application embodiment, the color parameters created by the virtual engine are converted from the first color space to the second color space. Then, the game device displays the corresponding game graphics based on the color parameters belonging to the second color space. Since the second color space matches the display capabilities of the game device, it can fully utilize the display capabilities of the game device, making the game graphics displayed by the game device more realistic and improving the user's gaming experience.
[0077] In another possible implementation, this application embodiment is applied to a scenario where a virtual image is displayed, which includes a virtual person. For example, the virtual image is a scene in a lecture video, and the virtual person is a virtual lecturer; another example is a scene in a news broadcast video, and the virtual person is a virtual anchor. A virtual engine is used to create the virtual image, and a display device is used to display it. The color space of the virtual engine is a first color space, and the color space of the display device is a second color space. Therefore, using the method provided in this application embodiment, the color parameters created by the virtual engine are converted from the first color space to the second color space. Then, the display device displays the corresponding virtual image based on the color parameters belonging to the second color space. Since the second color space matches the display capabilities of the display device, the display capabilities of the display device can be fully utilized, making the virtual image displayed by the display device more realistic and improving the user's viewing experience.
[0078] Figure 2 This is a flowchart illustrating a screen display method provided in an embodiment of this application. This embodiment is executed by a computer device. See also... Figure 2 The method includes:
[0079] 201. The first color parameter corresponding to the screen created by the computer device, the first color parameter belongs to the first color space, and the first color space is the color space supported by the local device.
[0080] Color parameters are used to indicate color. They can include two components: luminance and chromaticity. Luminance represents the lightness or darkness of a color, while chromaticity represents properties of the color excluding luminance. Chromaticity reflects the color's tone and saturation. A color space is an abstract mathematical model used to describe color. It defines the color gamut to which chromaticity belongs and the distribution to which luminance follows. Luminance can follow a linear or non-linear distribution.
[0081] In this embodiment of the application, the first color space is the color space supported by the computer device. The computer device has the function of creating color parameters belonging to the first color space. The computer device creates first color parameters corresponding to the screen. The first color parameters are used to indicate the color of the pixels in the screen. The first color parameters belong to the first color space and are used to indicate the color in the screen.
[0082] 202. The computer device converts the first color parameter from the first color space to the second color space to obtain the second color parameter, which is the color space of the target display device.
[0083] In this embodiment of the application, the target display device and the computer device establish a communication connection. The purpose of the computer device in creating the color parameters corresponding to the screen is to enable the target display device to display the corresponding screen based on the color parameters. However, since the color space of the target display device is a second color space, and the second color space is different from the first color space, after the computer device creates the first color parameter belonging to the first color space, it converts the first color parameter from the first color space to the second color space to obtain the second color parameter, which belongs to the second color space.
[0084] 203. The computer device outputs the second color parameter to the target display device, which is used to display the image based on the second color parameter.
[0085] After obtaining the second color parameter belonging to the second color space, the computer device outputs the second color parameter to the target display device so that the target display device displays the corresponding image based on the second color parameter.
[0086] The method provided in this application embodiment involves creating color parameters in a first color space during the display process. However, the target display device uses a second color space, which differs from the first color space. Therefore, the color parameters created in the first color space are converted to color parameters in the second color space. The target display device then displays the corresponding image based on these second color space parameters, enabling it to display colors that the second color space can represent. Since the second color space is matched to the display capabilities of the target display device, it fully utilizes the display capabilities of the target display device, thereby overcoming some limitations caused by conventional standard color spaces.
[0087] In the above Figure 2 Based on the illustrated embodiment, taking the color gamut of the first color space as the first color gamut and the brightness of the first color space as a linear distribution, and the color gamut of the second color space as the second color gamut and the brightness of the second color space as a non-linear distribution as an example, the specific process of displaying the image is detailed in the following embodiment.
[0088] Figure 3 This is a flowchart of another screen display method provided in this application embodiment. This application embodiment is executed by a computer device. See also... Figure 3 The method includes:
[0089] 301. The computer device creates a screen with corresponding first color parameters. The first color parameters belong to the first color space, which is the color space supported by the local device.
[0090] In this embodiment, the color gamut of the first color space is a first color gamut, and the brightness of the first color space has a linear distribution. The first color parameters created by the computer device include a first brightness and a first chromaticity. The first brightness has a linear distribution, and the first chromaticity belongs to the first color gamut. The first color parameters are used to indicate the color of pixels in the image.
[0091] Brightness is categorized into linear and non-linear distributions. A linear distribution of brightness in the first color space means that the RGB (Red-Green-Blue) code value corresponding to a color parameter in this first color space has a linear relationship with the brightness of that color parameter. A non-linear distribution of brightness in the second color space means that the RGB code value corresponding to a color parameter in this second color space does not have a linear relationship with the brightness of that color parameter.
[0092] 302. The computer equipment uses a mapping curve to map the first brightness to obtain the second brightness. This mapping curve is used to map the brightness from a linear distribution to a non-linear distribution.
[0093] Since the brightness of the first color space is linearly distributed, while the brightness of the second color space corresponding to the target display device is non-linearly distributed, if the first color parameter is to be converted from the first color space to the second color space, the first brightness in the first color parameter needs to be converted from a linear distribution to a non-linear distribution.
[0094] In this embodiment, a computer device acquires a mapping curve, which is used to map brightness from a linear distribution to a non-linear distribution. This mapping curve can be viewed as a function used to map brightness. The computer device uses this mapping curve to map a first brightness level to obtain a second brightness level, which is a non-linear distribution.
[0095] In one possible implementation, the mapping curve is a PQ (Perceptual Quantization) curve. In the field of color management, the PQ curve can be understood as a Gamma curve. This PQ curve is the curve of human sensitivity to changes in light, and is the ideal "EOTF (Electrical-Optical Transfer Function)".
[0096] Optionally, the computer device acquires a Roll-off LUT (Roll-off Table), which is used to adjust the brightness to a softer light. The Roll-off LUT is used to adjust the PQ curve so that the highlights obtained by mapping the brightness according to the adjusted PQ curve are softer.
[0097] In one possible implementation, the computer device obtains a transformation table corresponding to the mapping curve, which converts the brightness from a linear distribution to a non-linear distribution, and the computer device uses the transformation table to convert the first brightness into a second brightness.
[0098] 303. The computer device multiplies the first chromaticity with the transformation matrix to obtain the second chromaticity. The transformation matrix is used to convert the chromaticity belonging to the first color gamut to the chromaticity belonging to the second color gamut.
[0099] The color gamut of the first color space is the first color gamut, and the color gamut of the second color space is the second color gamut. The first chromaticity in the first color parameter belongs to the first color gamut. If you want to convert the first color parameter from the first color space to the second color space, you need to convert the first chromaticity in the first color parameter from the first color gamut to the second color gamut.
[0100] In this embodiment of the application, the computer device obtains a conversion matrix, which is used to convert chromaticity belonging to a first color gamut to chromaticity belonging to a second color gamut. The computer device multiplies the first chromaticity with the conversion matrix to obtain the second chromaticity, which belongs to the second color gamut.
[0101] In one possible implementation, the computer device obtains a first transformation matrix and a second transformation matrix. The first transformation matrix is used to convert chromaticity belonging to a first color gamut to chromaticity belonging to a target color gamut, and the second transformation matrix is used to convert chromaticity belonging to the target color gamut to chromaticity belonging to a second color gamut. The target color gamut is a standard, device-independent color gamut. Because it is device-independent, it can be used as an intermediate color gamut for conversion. The computer device multiplies the first chromaticity belonging to the first color gamut with the first transformation matrix to obtain the intermediate chromaticity, which belongs to the target color gamut. The computer device then multiplies the intermediate chromaticity with the second transformation matrix to obtain the second chromaticity. In other words, the computer device first converts the first chromaticity from the first color gamut to the target color gamut, and then converts it from the target color gamut to the second color gamut.
[0102] Optionally, the target color gamut is CIE-XYZ (International Commission on Illumination-XYZ).
[0103] It should be noted that the embodiments of this application are only described by taking the execution of step 302 first and then step 303 as an example. In another embodiment, step 303 can be executed first and then step 302 can be executed, or steps 302 and 303 can be executed simultaneously.
[0104] 304. Computer equipment uses the second luminance and the second chromaticity to form the second color parameters.
[0105] Color parameters are composed of two components: luminance and chrominance. After obtaining the second luminance and the second chrominance, the computer device uses the second luminance and the second chrominance to form a second color parameter, which belongs to the second color space.
[0106] 305. The computer device outputs the second color parameters to the target display device, which is used to display the image based on the second color parameters.
[0107] After obtaining the second color parameter, the computer device outputs the second color parameter to the target display device and controls the target display device to display the image based on the second color parameter.
[0108] In one possible implementation, the computer device decodes the second color parameter into an RGB code value, outputs the RGB code value to the target display device, and controls the target display device to display the corresponding image based on the RGB code value.
[0109] The method provided in this application embodiment has a first color space with a linear gamut and a second color space with a non-linear gamut and a third color space with a non-linear gamut. A mapping curve is used to map the linearly distributed luminance to a non-linear distribution, and a transformation matrix is used to convert the chromaticity belonging to the first color space to the chromaticity belonging to the second color space. This converts color parameters belonging to the first color space to color parameters belonging to the second color space, using a more direct conversion method. This reduces losses during color conversion and helps to fully utilize the color rendering capabilities of the target display device.
[0110] In the above Figure 2 Based on the illustrated embodiment, the local device runs a virtual engine and a display control application, which are used to convert color parameters and display corresponding colors. The first color space is the color space of the virtual engine, and the first color parameters are created by the virtual engine. The color gamut of the first color space is the first color gamut, and the brightness of the first color space has a linear distribution. The color gamut of the second color space is the second color gamut, and the brightness of the second color space has a non-linear distribution. The first color gamut is larger than the second color gamut. The specific process of displaying the image is detailed in the following embodiment.
[0111] Figure 4 This is a flowchart illustrating another screen display method provided in this application embodiment. This application embodiment is executed by a computer device. See also... Figure 4 The method includes:
[0112] 401. The computer device creates the first color parameters corresponding to the image through a virtual engine. These first color parameters belong to the first color space.
[0113] The virtual engine running in the computer device is used to create and manage color parameters. Optionally, the first color space is the color space set by the computer device for the virtual engine. For example, the virtual engine is UE5 (Unreal Engine 5), and the color gamut of the first color space is a first color gamut, which is either the ACES AP0 (Academy Color Encoding System AP0) color gamut or the ACES AP1 (Academy Color Encoding System AP1) color gamut.
[0114] Among them, ACES (Academy Color Encoding System) defines a variety of conversion methods for different color spaces, which is beneficial for color conversion for various display devices and achieves color uniformity between different display devices.
[0115] 402. The computer equipment uses a virtual engine to map the first brightness to the second brightness using a mapping curve. This mapping curve is used to map the brightness from a linear distribution to a non-linear distribution.
[0116] The process of mapping brightness through the virtual engine in step 402 is the same as that in step 302 above, and will not be described again here.
[0117] 403. The computer device uses a virtual engine to multiply the first chromaticity by the transformation matrix to obtain the second chromaticity. The transformation matrix is used to convert the chromaticity belonging to the first color gamut to the chromaticity belonging to the second color gamut.
[0118] In this embodiment, the virtual engine can process chromaticity within the range covered by the first color gamut. Since the first color gamut is larger than the second color gamut, the computer device can use the virtual engine to convert the first chromaticity belonging to the first color gamut into the second chromaticity belonging to the second color gamut. Optionally, the computer device uses the virtual engine to convert the first chromaticity from the first color gamut to the target color gamut, and then from the target color gamut to the second color gamut. The chromaticity conversion process using the virtual engine is the same as the process in step 303 described above, and will not be repeated here.
[0119] In one possible implementation, the first color gamut is either the ACES AP0 or ACES AP1 color gamut, and the second color gamut is the VP Gamut color gamut (a type of color gamut). The VP Gamut color gamut is the display color gamut of the target display device, and it is obtained by detecting the display capability of the target display device and matching it with the display capability of the target display device. For example, in the chromaticity range represented by the VP Gamut color gamut, red is located in [0.6913, 0.3077], green is located in [0.2302, 0.7254], blue is located in [0.1295, 0.0632], and white is located in [0.3127, 0.3290] in the chromaticity diagram.
[0120] In related technologies, the display capabilities of the display device are typically not considered. The chromaticity of colors belonging to the ACES APO color gamut is directly converted to the sRGB color gamut (a single color gamut), and the display device then displays the image based on the chromaticity of the sRGB color gamut. In the sRGB color gamut, red is located in the range [0.6400, 0.3300], green in [0.3000, 0.6000], blue in [0.1500, 0.0600], and white in [0.3127, 0.3290]. However, in this embodiment, the chromaticity of colors belonging to the ACES APO color gamut is converted to the VP Gamut color gamut corresponding to the target display device. Since the VP Gamut color gamut covers a wider range than sRGB, compared to related technologies, the target display device displays images based on the larger VP Gamut color gamut, resulting in a richer range of colors and a more realistic picture. For example, in the context of film production, the virtual images displayed using the method provided in this application are more suitable for merging with real images in the real-world scene to obtain a movie image that blends virtual and real images. Since the virtual images are realistic enough, the movie image will not have large fusion marks, reducing the abruptness of the movie image and helping to bring a better viewing experience to users.
[0121] Figure 5 This is a schematic diagram of a color gamut provided in an embodiment of this application, such as... Figure 5 In the chromaticity diagram shown, the solid black lines represent a portion of the chromaticity range covered by the ACES AP0 color gamut, while the dashed black lines represent the entire chromaticity range covered by the VP Gamut color gamut. The ACES AP0 gamut covers a larger chromaticity range than the VP Gamut gamut. The horseshoe shape represents the chromaticity range corresponding to all visible light.
[0122] In this embodiment, since the first color gamut is larger than the second color gamut, the conversion from a large color gamut to a small color gamut does not require correction of color parameters beforehand, thus avoiding unnecessary conversion and mapping.
[0123] 404. Computer equipment uses a virtual engine to construct a second color parameter from the second luminance and the second chromaticity.
[0124] The process of obtaining the second color parameter through the virtual engine in step 404 is the same as the process in step 304 above, and will not be described again here.
[0125] 405. The computer device sends the second color parameters to the display control application through the virtual engine.
[0126] 406. The computer device receives a second color parameter through a display control application and outputs the second color parameter to a target display device, which is used to display an image based on the second color parameter.
[0127] The display control application is used to control the display screen of the target display device. Optionally, after receiving the second color parameter through the display control application, the computer device decodes the second color parameter to obtain the corresponding RGB code value, and outputs the RGB code value to the target display device so that the target display device displays the corresponding image based on the RGB code value.
[0128] Since the color space of the second color parameter corresponds to the color space of the target display device, the display control application does not involve color conversion when decoding the second color parameter, thus avoiding the problems that are prone to occur during color conversion.
[0129] Figure 6 This is a flowchart of another screen display method provided in the embodiments of this application, such as... Figure 6 As shown, color parameters belonging to the "ACES AP0 color gamut / linear" are created through a virtual engine. These color parameters are then converted from "ACES AP0 color gamut / linear" to "CIE-XYZ color gamut / linear", then from "CIE-XYZ color gamut / linear" to "CIE-XYZ color gamut / non-linear", and finally from "CIE-XYZ color gamut / non-linear" to "VP Gamut color gamut / non-linear". The virtual engine then sends the color parameters belonging to the "VP Gamut color gamut / non-linear" to the display control application. Finally, the display control application outputs the color parameters belonging to the "VP Gamut color gamut / non-linear" to the target display device.
[0130] It should be noted that the target display device has been in use for a long time, which suggests that it has experienced some color shift and its accuracy is low. To improve the accuracy of the target display device, its color space can be re-tested and corrected. Alternatively, before converting the color space of the color parameters, the color parameter belonging to the first color space can be corrected to make the image displayed on the target display device more accurate. The correction process is detailed below. Figure 11 Examples of implementations.
[0131] The method provided in this application embodiment uses a first color gamut that is larger than a second color gamut. Converting the chromaticity from the first color gamut to the second color gamut is a conversion from a large color gamut to a small color gamut. The conversion method is simple and avoids problems that are easy to occur during color conversion.
[0132] In the above Figure 2 Based on the illustrated embodiment, the local device runs a virtual engine and a display control application. The virtual engine and display control application are used to convert color parameters and display the corresponding images. The first color space is the color space of the virtual engine, and the first color parameters are created by the virtual engine. The color gamut of the first color space is the first color gamut, and the brightness of the first color space has a linear distribution. The color gamut of the second color space is the second color gamut, and the brightness of the second color space has a non-linear distribution. Furthermore, the first color gamut is smaller than the second color gamut. The specific process of displaying the image is detailed in the following embodiment.
[0133] Figure 7 This is a flowchart illustrating another screen display method provided in this application embodiment. This application embodiment is executed by a computer device. See also... Figure 7 The method includes:
[0134] 701. The computer device creates the first color parameters corresponding to the image through a virtual engine. These first color parameters belong to the first color space.
[0135] The virtual engine running on the computer device is used to create and manage color parameters. Optionally, the first color space is the color space of the computer device for the virtual engine itself, for example, the virtual engine is UE4 (UnrealEngine4), and the color gamut of the first color space is sRGB.
[0136] 702. The computer equipment uses a virtual engine to map a first brightness to a second brightness using a mapping curve. This mapping curve is used to map the brightness from a linear distribution to a non-linear distribution.
[0137] The process of mapping brightness through the virtual engine in step 702 is the same as the process in step 302 above, and will not be described again here.
[0138] 703. The computer device sends the first chromaticity and the second luminance to the display control application through the virtual engine.
[0139] In this embodiment, the virtual engine can process chromaticity within the range covered by the first color gamut. Since the first color gamut is smaller than the second color gamut, the computer device cannot use the virtual engine to convert the first chromaticity belonging to the first color gamut into the second chromaticity belonging to the second color gamut. Therefore, the computer device only uses the virtual engine to convert the first brightness in the first color parameters into the second brightness, without converting the first chromaticity in the first color parameters. Instead, it sends the first chromaticity and the converted second brightness to the display control application.
[0140] 704. The computer device receives a first chromaticity and a second luminance through a display control application, multiplies the first chromaticity by a transformation matrix to obtain the second chromaticity, and the transformation matrix is used to convert the chromaticity belonging to the first color gamut to the chromaticity belonging to the second color gamut.
[0141] The computer device receives a first chromaticity and a second luminance from the virtual engine via a display control application. The first chromaticity belongs to a first color gamut. The computer device obtains a conversion matrix through the display control application. This conversion matrix is used to convert the chromaticity belonging to the first color gamut to a chromaticity belonging to a second color gamut. Therefore, by multiplying the first chromaticity by the conversion matrix, the second chromaticity belonging to the second color gamut can be obtained. Optionally, the computer device, through the display control application, converts the first chromaticity from the first color gamut to a target color gamut, and then from the target color gamut to the second color gamut. The chromaticity conversion process through the display control application is the same as the process in step 303 above, and will not be described again here.
[0142] In one possible implementation, the first color gamut is the sRGB color gamut, and the second color gamut is the VP Gamut color gamut. For example, the VP Gamut color gamut is the color gamut of the target display device, which is an LED display device, and the VP Gamut color gamut belongs to the "wide color gamut". Although the sRGB color gamut is a standard RGB color gamut used for monitors, printers, and the Internet, this color gamut is too narrow for "wide color gamut" LED display devices. Therefore, in this embodiment, the chromaticity is converted from the sRGB color gamut to the VP Gamut color gamut to adapt to the display capabilities of the target display device.
[0143] In related technologies, the display capabilities of the display device are typically not considered. After creating chromaticity values belonging to the sRGB color gamut, the display device displays the colors based on these sRGB values. However, since the target display device's color gamut is the VP Gamut color gamut, which covers a wider range of chromaticity values than sRGB, it is difficult to fully utilize the target display device's display capabilities. In this embodiment, the chromaticity values belonging to the sRGB color gamut are converted to the VP Gamut color gamut corresponding to the target display device. This conversion from a smaller color gamut to a larger one allows the target display device to display a richer range of colors.
[0144] Figure 8 This is a schematic diagram of a color gamut provided in an embodiment of this application, such as... Figure 8 In the chromaticity diagram shown, the solid black lines represent the chromaticity range covered by the sRGB color gamut, while the dashed black lines represent the entire chromaticity range covered by the VP Gamut color gamut. The chromaticity range covered by the sRGB color gamut is smaller than that covered by the VP Gamut color gamut. The horseshoe shape represents the chromaticity range corresponding to all visible light.
[0145] 705. Computer equipment uses display control applications to construct a second color parameter from the second brightness and the second chromaticity.
[0146] The process of obtaining the second color parameter through the display control application in step 404 is the same as the process in step 304 above, and will not be described again here.
[0147] 706. The computer device outputs a second color parameter to a target display device through a display control application, the target display device being used to display an image based on the second color parameter.
[0148] The display control application is used to control the display screen of the target display device. Optionally, the computer device decodes the second color parameter through the display control application to obtain the corresponding RGB code value, and outputs the RGB code value to the target display device so that the target display device displays the corresponding image based on the RGB code value.
[0149] Figure 9 This is a flowchart of another screen display method provided in the embodiments of this application, such as... Figure 9As shown, a color parameter belonging to "sRGB color gamut / linear" is created through a virtual engine, and this color parameter is converted from "sRGB color gamut / linear" to "sRGB color gamut / non-linear". Then, the color parameter belonging to "sRGB color gamut / non-linear" is sent to the display control application through the virtual engine. The display control application converts the color parameter from "sRGB color gamut / non-linear" to "VP Gamut color gamut / non-linear", and then outputs the color parameter belonging to "VP Gamut color gamut / non-linear" to the target display device through the display control application.
[0150] It should be noted that the embodiments of this application involve converting the chromaticity from a small color gamut to a large color gamut. This will make the colors displayed on the target display device more vivid than the colors displayed before the conversion. In order to further improve the accuracy of the image displayed on the target display device, the color parameter belonging to the first color space can be corrected before converting the color space of the color parameter, so that the image displayed on the target display device is more accurate. The correction process is detailed below. Figure 11 Examples of implementations.
[0151] The method provided in this application embodiment involves converting the chromaticity from the first color gamut to the second color gamut, which is smaller than the second color gamut. This conversion from a smaller color gamut to a larger color gamut allows the target display device to display a richer variety of colors.
[0152] It should be noted that the above Figure 4 and Figure 7 In one embodiment, taking a wide color gamut LED display device as an example, it is explained that when the target display device's color gamut is VP Gamut, chromaticity belonging to the ACES AP0 color gamut can be converted to chromaticity belonging to the VP Gamut color gamut, achieving a conversion from a large color gamut to a small color gamut; or chromaticity belonging to the sRGB color gamut can be converted to chromaticity belonging to the VP Gamut color gamut, achieving a conversion from a small color gamut to a large color gamut. In another embodiment, the computer device can also control the display of other terminals to display the corresponding image based on color parameters. If the terminal's display supports chromaticity in the sRGB color gamut, the computer device can also create chromaticity belonging to the ACES AP0 color gamut, convert this chromaticity from the ACES AP0 color gamut to the sRGB color gamut, and then the display will show the image based on chromaticity including chromaticity belonging to the sRGB color gamut. Alternatively, the computer device can directly create chromaticity belonging to the sRGB color gamut without chromaticity conversion, and then the display will show the image based on chromaticity including chromaticity belonging to the sRGB color gamut.
[0153] Figure 10 This is a flowchart of another screen display method provided in the embodiments of this application, such as... Figure 9As shown, a color parameter belonging to "ACES AP0 color gamut / linear" is created through a virtual engine, and then converted from "ACES AP0 color gamut / linear" to "sRGB color gamut / linear". Then, it is converted from "sRGB color gamut / linear" to "sRGB color gamut / non-linear". The color parameter belonging to "sRGB color gamut / non-linear" is then sent to the display control application through the virtual engine. Finally, the display control application outputs the color parameter belonging to "sRGB color gamut / non-linear" to the target display device.
[0154] Figure 11 This is a flowchart illustrating a color correction method and a screen display method provided in an embodiment of this application. This embodiment is executed by a computer device. See also... Figure 11 The method includes:
[0155] 1101. The first color parameter corresponding to the screen created by the computer device, the first color parameter belongs to the first color space, and the first color space is the color space supported by the local device.
[0156] The process of step 1101 is the same as that of step 301 above, and will not be repeated here.
[0157] 1102. The computer device multiplies the first color parameter with the correction matrix to obtain the corrected first color parameter.
[0158] In this embodiment, after the first color parameter is converted into a second color parameter belonging to the second color space, the target display device displays the corresponding image based on the second color parameter. Subsequently, a camera can be used to capture the image displayed on the target display device, and the captured image can be used for film production, etc. The closer the color in the captured image is to the color indicated by the first color parameter, the better the image quality. Although the second color parameter used by the target display device is converted from the first color parameter, due to potential color shifts in the target display device itself and color shifts caused by the camera during shooting, there may be a mismatch between the color in the captured image and the color indicated by the first color parameter. To solve this problem, the first color parameter can be corrected before conversion to ensure that the color in the captured image matches the color indicated by the first color parameter.
[0159] The computer equipment uses a calibration matrix to correct the first color parameters. This calibration matrix is used to correct color parameters belonging to the first color space, so that the color indicated by the color parameters before correction matches the captured color corresponding to the corrected color parameters. The captured color is obtained by capturing the color displayed on the target display device after the corrected color parameters are converted to the second color space. The color displayed on the target display device refers to the color of the image displayed on the target display device. The generation process of this calibration matrix is detailed below. Figure 14 Examples of implementations.
[0160] In one possible implementation, if the first color gamut of the first color space is larger than the second color gamut of the second color space, and the target display device has a short usage time, then the accuracy of the target display device is considered high, and there is no need to correct the first color parameters; the aforementioned method can be directly used. Figure 4 The image can be displayed using the above-described embodiment. If the target display device has been used for a long time and is considered to have experienced a certain color shift, indicating low accuracy, then the first color parameter needs to be corrected. In this case, the above-described embodiment is used. Figure 4 The screen is displayed in combination with the embodiments described herein.
[0161] In another possible implementation, when the first color gamut of the first color space is smaller than the second color gamut of the second color space, a conversion from a smaller color gamut to a larger color gamut is involved. This will make the colors displayed on the target display device more vibrant than the colors displayed before the conversion. To further improve the accuracy of the image displayed on the target display device, the first color parameters need to be corrected, and the above-mentioned method is used. Figure 7 The embodiment combines the above embodiments with this embodiment to display the image. The first color parameter is corrected by the correction matrix to narrow the color gamut. This avoids the problem of the image being too vivid due to directly converting the color parameter from a small color gamut to a large color gamut. Therefore, it helps to improve the accuracy of the image displayed by the target display device.
[0162] 1103. The computer equipment converts the corrected first color parameters from the first color space to the second color space to obtain the second color parameters. The second color space is the color space of the target display device, and the second color space is different from the first color space.
[0163] 1104. The computer device outputs the second color parameters to the target display device, which then displays the image based on the second color parameters.
[0164] The method provided in this application embodiment first corrects the first color parameter before converting it into a second color parameter belonging to the second color space, and then converts the corrected first color parameter into a second color parameter. The target display device displays the corresponding image based on the second color parameter, which can ensure that the color in the image obtained after taking a picture of the image displayed on the target display device matches the color indicated by the first color parameter, resulting in a better shooting effect.
[0165] The above embodiments illustrate the process of converting color parameters belonging to a first color space into color parameters belonging to a second color space, and then having the target display device display the corresponding image based on the color parameters belonging to the second color space. Subsequently, a camera can be used to capture images of the image displayed on the target display device, and the resulting color parameters can be converted back to the first color space as color parameter material belonging to the first color space. For details, please refer to the following embodiments.
[0166] Figure 12 This is a flowchart of a color parameter conversion method provided in an embodiment of this application. This embodiment is executed by a computer device. See also... Figure 12 The method includes:
[0167] 1201. The computer device acquires the third color parameter, which is obtained by capturing the image displayed on the target display device using a camera.
[0168] The target display device displays the corresponding image based on color parameters belonging to the second color space. Subsequently, a camera can be used to capture the image displayed on the target display device, and the captured image can be used for film production, etc.
[0169] A computer device can generate a third color parameter corresponding to an image captured by a camera. This third color parameter indicates the colors in the image captured by the camera. The third color parameter belongs to the third color space of the camera.
[0170] 1202. The computer equipment converts the third color parameter from the third color space of the shooting device to the first color space to obtain the fourth color parameter.
[0171] In order to generate color parameter material belonging to the first color space, the third color parameter can be converted from the third color space of the shooting device to the first color space to obtain the fourth color parameter, which belongs to the first color space.
[0172] In one possible implementation, the color gamut of the first color space is defined as the first color gamut, and the brightness of the first color space follows a linear distribution. The color gamut of the third color space is defined as the third color gamut, and the brightness of the third color space follows a non-linear distribution. The third color parameter includes a third brightness and a third chromaticity. The computer device maps the third brightness from a non-linear distribution to a linear distribution to obtain a fourth brightness, and converts the third chromaticity from the third color gamut to the fourth color gamut to obtain a fourth chromaticity. The fourth brightness and the fourth chromaticity constitute the fourth color parameter.
[0173] Optionally, the third color space of the shooting device is the ArriWideGamut color gamut (a camera color gamut), wherein, in the chromaticity range represented by the ArriWideGamut color gamut, red is located in [0.6840, 0.3120], green is located in [0.2210, 0.8480], blue is located in [0.0861, -0.1020], and white is located in [0.31212, 0.3290].
[0174] 1203. If the image is displayed by the target display device based on uncorrected color parameters, the computer device will multiply the fourth color parameter with the first matrix to obtain the fifth color parameter, and determine the fifth color parameter as the color parameter material belonging to the first color space.
[0175] In step 1201, the image displayed on the target display device is based on uncorrected color parameters. Uncorrected color parameters refer to color parameters that, during the image display process, do not adopt the aforementioned... Figure 11 The method in the illustrated embodiment performs correction, or no other correction method is used. Since the image is displayed based on uncorrected color parameters, the fourth color parameter is obtained based on these uncorrected parameters. Due to color deviations in the target display device and the shooting device, the color indicated by the fourth color parameter does not match the color indicated by the color parameter belonging to the first color space. Directly determining the fourth color parameter as the color parameter material belonging to the first color space would result in inaccurate color parameter material. Therefore, after obtaining the fourth color parameter, it is necessary to first correct it, and then determine the fifth color parameter obtained after correction as the color parameter material belonging to the first color space.
[0176] The computer equipment uses a first matrix to correct the fourth color parameter. This first matrix is used to correct the color parameter converted from the third color space to the first color space, so that the color indicated by the corrected color parameter matches the color indicated by the color parameter belonging to the first color space. The generation process of this first matrix is detailed below. Figure 14 Examples of implementations.
[0177] For example, a computer device creates a first color parameter A belonging to a first color space, converts the first color parameter A into a second color parameter B belonging to a second color space, and a target display device displays a corresponding image based on the second color parameter B. A camera captures an image of the image displayed on the target display device, obtaining a third color parameter C belonging to a third color space. The computer device then converts the third color parameter C into a fourth color parameter D belonging to the first color space. However, the color indicated by the fourth color parameter D deviates from the color indicated by the first color parameter A. Therefore, the computer device uses a first matrix to correct the fourth color parameter D, obtaining a fifth color parameter E. The color indicated by the fifth color parameter E matches the color indicated by the first color parameter A.
[0178] Figure 13 This is a flowchart of another color parameter conversion method provided in an embodiment of this application. The third color space of the shooting device is the ArriWideGamut color gamut. This shooting device is used to calibrate color parameter materials. The first color space is ACES AP0. Figure 13 As shown, the computer device acquires color parameters belonging to ArriWideGamut / nonlinear, converts these color parameters from ArriWideGamut / nonlinear to ACESAP0 / linear, and then corrects the color parameters belonging to ACESAP0 / linear to obtain corrected color parameters, which also belong to ACESAP0 / linear.
[0179] It should be noted that the embodiments in this application are only described in the case of the target display device displaying the image based on uncorrected color parameters. In another embodiment, the image displayed by the target display device is based on corrected color parameters, which refer to the color parameters that, during the image display process, adopt the aforementioned corrected color parameters. Figure 11 The method in the illustrated embodiment performs the correction. Since the image is displayed based on the corrected color parameters, the fourth color parameter is obtained based on the corrected color parameters. This is equivalent to correcting the color deviation of the target display device and the color deviation of the shooting device during shooting. The color indicated by the fourth color parameter matches the color indicated by the color parameter belonging to the first color space, so there is no need to correct the fourth color parameter again. The fourth color parameter can be directly determined as the color parameter material belonging to the first color space.
[0180] Figure 14This is a flowchart of a correction matrix generation method provided in an embodiment of this application. This embodiment is executed by a computer device. See also... Figure 14 The method includes:
[0181] 1401. Computer equipment obtains the sixth color parameter.
[0182] The sixth color parameter is obtained by capturing an image of the target display device based on the seventh color parameter using a camera. This seventh color parameter belongs to the second color space. For example, the colors indicated by the seventh color parameter include representative colors such as red, green, blue, and white.
[0183] 1402. The computer equipment converts the sixth color parameter from the third color space of the shooting device to the first color space to obtain the eighth color parameter.
[0184] The process of step 1402 is the same as that of step 1202 above, and will not be described again here.
[0185] 1403. The computer equipment determines a first matrix for converting the eighth color parameter into the ninth color parameter, and performs an inverse transformation on the first matrix to obtain a correction matrix.
[0186] The ninth color parameter belongs to the first color space, and the color indicated by the ninth color parameter matches the color indicated by the seventh color parameter. Since the eighth color parameter is derived from the sixth color parameter (obtained by capturing an image of the target display device based on the seventh color parameter), and the color indicated by the ninth color parameter (belonging to the first color space) matches the color indicated by the seventh color parameter (belonging to the second color space), the difference between the eighth and ninth color parameters is caused by color deviations in both the target display device and the capturing device. Therefore, based on the difference between the eighth and ninth color parameters, it is possible to determine how to correct the color parameters to eliminate the color deviations caused by the target display device and the capturing device.
[0187] In this embodiment, the computer device determines a first matrix based on the eighth and ninth color parameters. This first matrix is used to convert the eighth color parameter into the ninth color parameter. The computer device performs an inverse transformation on the first matrix to obtain a correction matrix. Subsequently, during image display, before converting the color parameters belonging to the first color space, the color parameters belonging to the first color space are first corrected, and then the corrected color parameters are converted. The target display device displays the image based on the converted color parameters, thus ensuring that the colors of the image captured by the camera device on the target display device match the colors indicated by the color parameters belonging to the first color space.
[0188] In related technologies, color parameters from a large color gamut are typically converted to parameters from a small color gamut for display. Therefore, generating the correction matrix is equivalent to converting from a large color gamut to a small color gamut and then mapping it back from a small color gamut. Mapping back from a small color gamut to a large color gamut is limited by the small color gamut, resulting in insufficient correction effect. However, the method provided in this application, when the first color gamut of the first color space is smaller than the second color gamut of the second color space, first controls the target display device to display the corresponding image based on the color parameters of the large color gamut, temporarily displaying richer colors. Then, the correction matrix is generated by mapping the color parameters of the large color gamut to the small color gamut. Therefore, the correction matrix generated by this method is essentially an inwardly contracting correction matrix. The correction result obtained using the correction matrix in this application is more accurate and can further improve the image display effect. For example, in a scenario displaying game images, using the method provided in this application for correction makes the displayed game image more accurate, reduces color difference in the game image, and allows users to play games with a good image, thus improving the user's gaming experience.
[0189] like Figure 15 As shown, correction result 1 is obtained by correction using related techniques, where the range formed by the solid line is the expected correction result and the range formed by the dashed line is the actual correction result, with a deviation value of 0.016598747956894. Correction result 2 is obtained by correction using the method of the embodiment of this application, where the range formed by the solid line is the expected correction result and the range formed by the dashed line is the actual correction result, with a deviation value of 0.01306544982717. Obviously, the method of the embodiment of this application is more accurate.
[0190] Figure 16 This is a schematic diagram of the structure of a screen display device provided in an embodiment of this application. See also... Figure 16 The device includes:
[0191] The creation module 1601 is used to create the first color parameter corresponding to the image. The first color parameter belongs to the first color space, which is the color space supported by the local device.
[0192] The conversion module 1602 is used to convert the first color parameter from the first color space to the second color space to obtain the second color parameter, wherein the second color space is the color space of the target display device;
[0193] The output module 1603 is used to output the second color parameter to the target display device, and the target display device is used to display the image based on the second color parameter.
[0194] The screen display device provided in this application embodiment, during the display process, creates color parameters belonging to a first color space, but the target display device uses a second color space. Since the second color space is different from the first color space, the created color parameters belonging to the first color space are converted into color parameters belonging to the second color space. The target display device then displays the corresponding screen based on the color parameters belonging to the second color space, enabling the target display device to display the colors that the second color space can represent. Because the second color space is matched with the display capabilities of the target display device, the display capabilities of the target display device can be fully utilized, thereby breaking through some limitations caused by conventional standard color spaces.
[0195] Optionally, see Figure 17 The first color parameters include first brightness and first chromaticity. The conversion module 1602 includes:
[0196] The conversion unit 1612 is used to map the first brightness using a mapping curve to obtain the second brightness. The mapping curve is used to map the brightness from a linear distribution to a non-linear distribution.
[0197] The conversion unit 1612 is also used to multiply the first chromaticity with the conversion matrix to obtain the second chromaticity. The conversion matrix is used to convert the chromaticity belonging to the first color gamut to the chromaticity belonging to the second color gamut.
[0198] The constitutive unit 1622 is used to form a second color parameter by combining the second luminance and the second chromaticity.
[0199] Optionally, see Figure 17 The device also includes:
[0200] The correction module 1604 is used to multiply the first color parameter with the correction matrix to obtain the corrected first color parameter;
[0201] The correction matrix is used to correct the color parameters belonging to the first color space so that the color indicated by the color parameters before correction matches the shooting color corresponding to the corrected color parameters. The shooting color is obtained by shooting the color displayed on the target display device after the corrected color parameters are converted to the second color space.
[0202] Optionally, see Figure 17 The device also includes:
[0203] The acquisition module 1605 is used to acquire the third color parameter, which is obtained by capturing the image displayed on the target display device through the shooting device;
[0204] The conversion module 1602 is also used to convert the third color parameter from the third color space of the shooting device to the first color space to obtain the fourth color parameter;
[0205] The material determination module 1606 is used to: determine the fourth color parameter as a color parameter material belonging to the first color space if the image is displayed by the target display device based on the corrected color parameters; or, if the image is displayed by the target display device based on the uncorrected color parameters, multiply the fourth color parameter by the first matrix to obtain the fifth color parameter, and determine the fifth color parameter as a color parameter material belonging to the first color space; wherein, the first matrix is used to correct the color parameters converted from the third color space to the first color space so that the color indicated by the corrected color parameters matches the color indicated by the color parameters belonging to the first color space.
[0206] Optionally, see Figure 17 The device also includes a generation module 1607, which is used for:
[0207] The sixth color parameter is obtained by capturing the image displayed on the target display device based on the seventh color parameter using an imaging device. The seventh color parameter belongs to the second color space.
[0208] The sixth color parameter is converted from the third color space of the shooting device to the first color space to obtain the eighth color parameter;
[0209] Determine a first matrix for converting the eighth color parameter to the ninth color parameter, the ninth color parameter belonging to the first color space, and the color indicated by the ninth color parameter matching the color indicated by the seventh color parameter;
[0210] Perform an inverse transformation on the first matrix to obtain the correction matrix.
[0211] Optionally, see Figure 17 The device runs a virtual engine. The first color space is the color space of the virtual engine. The first color parameters are created by the virtual engine. The color gamut of the first color space is larger than that of the second color space.
[0212] Conversion module 1602 includes:
[0213] The conversion unit 1612 is used to convert the first color parameter from the first color space to the second color space through a virtual engine to obtain the second color parameter.
[0214] Optionally, see Figure 17 The local device also runs a display control application, output module 1603, including:
[0215] The sending unit 1613 is used to send the second color parameters to the display control application through the virtual engine;
[0216] The output unit 1623 is used to receive the second color parameter through a display control application and output the second color parameter to the target display device.
[0217] Optionally, see Figure 17 The first color parameter includes the first brightness and the first chromaticity. The local device runs a virtual engine and a display control application. The first color space is the color space of the virtual engine. The first color parameter is created by the virtual engine. The color gamut of the first color space is smaller than that of the second color space.
[0218] Conversion module 1602 includes:
[0219] The conversion unit 1612 is used to map the first brightness to the second brightness through a mapping curve using a virtual engine. The mapping curve is used to map the brightness from a linear distribution to a non-linear distribution.
[0220] The conversion unit 1612 is also used to send the first chromaticity and the second luminance to the display control application via a virtual engine;
[0221] The conversion unit 1612 is also used to receive a first chromaticity and a second luminance through a display control application, multiply the first chromaticity by a conversion matrix to obtain the second chromaticity, and the conversion matrix is used to convert the chromaticity belonging to the first color gamut to the chromaticity belonging to the second color gamut.
[0222] The constitutive unit 1622 is used to form a second color parameter by the second brightness and the second chromaticity through a display control application;
[0223] Output module 1603 includes:
[0224] The output unit 1623 is used to output the second color parameters to the target display device through a display control application.
[0225] It should be noted that the screen display device provided in the above embodiments is only an example of the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above. In addition, the screen display device and the screen display method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0226] This application also provides a computer device, which includes a processor and a memory. The memory stores at least one computer program, which is loaded and executed by the processor to perform the operations performed in the screen display method of the above embodiments.
[0227] Optionally, the computer device is provided as a terminal. Figure 18 A schematic diagram of the structure of a terminal 1800 provided in an exemplary embodiment of this application is shown.
[0228] Terminal 1800 includes a processor 1801 and a memory 1802.
[0229] Processor 1801 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1801 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1801 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1801 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1801 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0230] The memory 1802 may include one or more computer-readable storage media, which may be non-transitory. The memory 1802 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1802 are used to store at least one computer program, which is used by the processor 1801 to implement the screen display method provided in the method embodiments of this application.
[0231] In some embodiments, the terminal 1800 may also optionally include a peripheral device interface 1803 and at least one peripheral device. The processor 1801, memory 1802, and peripheral device interface 1803 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1803 via a bus, signal line, or circuit board. Optionally, the peripheral device includes a radio frequency circuit 1804 or a display screen 1805.
[0232] Peripheral interface 1803 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1801 and memory 1802. In some embodiments, processor 1801, memory 1802 and peripheral interface 1803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1801, memory 1802 and peripheral interface 1803 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0233] The radio frequency (RF) circuit 1804 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1804 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1804 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 1804 can communicate with other devices through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: metropolitan area networks (MANs), various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1804 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.
[0234] Display screen 1805 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 1805 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1801 for processing. In this case, display screen 1805 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1805, disposed on the front panel of terminal 1800; in other embodiments, there may be at least two display screens, disposed on different surfaces of terminal 1800 or in a folded design; in still other embodiments, display screen 1805 may be a flexible display screen, disposed on a curved or folded surface of terminal 1800. Furthermore, display screen 1805 may also be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The display screen 1805 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0235] Those skilled in the art will understand that Figure 18 The structure shown does not constitute a limitation on terminal 1800 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0236] Optionally, the computer device is provided as a server. Figure 19 This is a schematic diagram of a server structure provided in an embodiment of this application. The server 1900 can vary significantly due to different configurations or performance. It may include one or more Central Processing Units (CPUs) 1901 and one or more memories 1902. The memories 1902 store at least one computer program, which is loaded and executed by the processor 1901 to implement the methods provided in the various method embodiments described above. Of course, the server may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input and output. The server may also include other components for implementing device functions, which will not be elaborated upon here.
[0237] This application also provides a computer-readable storage medium storing at least one computer program, which is loaded and executed by a processor to perform the operations performed in the screen display method of the above embodiments.
[0238] This application also provides a computer program product, including a computer program that is loaded and executed by a processor to perform the operations performed in the screen display method of the above embodiments.
[0239] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0240] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present application should be included within the protection scope of the present application.
Claims
1. A method for displaying a screen, characterized in that, The method includes: Create the first color parameter corresponding to the image. The first color parameter belongs to the first color space. The first color space is the color space supported by the local device. The first color parameter is multiplied by the correction matrix to obtain the corrected first color parameter; wherein, the correction matrix is used to correct the color parameter belonging to the first color space so that the color indicated by the color parameter before correction matches the shooting color corresponding to the corrected color parameter, and the shooting color is obtained by shooting the color displayed on the target display device after the corrected color parameter is converted to the second color space; The corrected first color parameter is converted from the first color space to the second color space to obtain the second color parameter, where the second color space is the color space of the target display device; The second color parameter is output to the target display device, which is used to display the image based on the second color parameter.
2. The method according to claim 1, characterized in that, The corrected first color parameters include a first luminance and a first chromaticity. The step of converting the corrected first color parameters from the first color space to the second color space to obtain the second color parameters includes: The first brightness is mapped using a mapping curve to obtain the second brightness. The mapping curve is used to map the brightness from a linear distribution to a nonlinear distribution. The first chromaticity is multiplied by the transformation matrix to obtain the second chromaticity, wherein the transformation matrix is used to convert the chromaticity belonging to the first color gamut to the chromaticity belonging to the second color gamut; The second brightness and the second chromaticity constitute the second color parameter.
3. The method according to claim 1, characterized in that, The method further includes: A third color parameter is obtained by capturing an image of the target display device using an imaging device. The third color parameter is converted from the third color space of the shooting device to the first color space to obtain the fourth color parameter; If the image is displayed by the target display device based on calibrated color parameters, then the fourth color parameter is determined to be a color parameter material belonging to the first color space; or... If the image is displayed by the target display device based on uncorrected color parameters, then the fourth color parameter is multiplied by the first matrix to obtain the fifth color parameter, and the fifth color parameter is determined as the color parameter material belonging to the first color space; wherein, the first matrix is used to correct the color parameters converted from the third color space to the first color space, so that the color indicated by the corrected color parameter matches the color indicated by the color parameter belonging to the first color space.
4. The method according to claim 1 or 3, characterized in that, The method further includes: A sixth color parameter is obtained by capturing an image of the target display device based on a seventh color parameter using an imaging device. The seventh color parameter belongs to the second color space. The sixth color parameter is converted from the third color space of the shooting device to the first color space to obtain the eighth color parameter; A first matrix is determined for converting the eighth color parameter into a ninth color parameter, the ninth color parameter belonging to the first color space, and the color indicated by the ninth color parameter matching the color indicated by the seventh color parameter; The first matrix is inversely transformed to obtain the correction matrix.
5. The method according to any one of claims 1-3, characterized in that, The local device runs a virtual engine. The first color space is the color space of the virtual engine. The first color parameters are created by the virtual engine. The color gamut of the first color space is larger than the color gamut of the second color space. The step of converting the corrected first color parameter from the first color space to the second color space to obtain the second color parameter includes: The virtual engine converts the corrected first color parameter from the first color space to the second color space to obtain the second color parameter.
6. The method according to claim 5, characterized in that, The local device also runs a display control application, and the step of outputting the second color parameter to the target display device includes: The second color parameter is sent to the display control application through the virtual engine; The display control application receives the second color parameter and outputs the second color parameter to the target display device.
7. The method according to any one of claims 1-3, characterized in that, The corrected first color parameter includes first brightness and first chromaticity. The local device runs a virtual engine and a display control application. The first color space is the color space of the virtual engine. The first color parameter is created by the virtual engine. The color gamut of the first color space is smaller than that of the second color space. The step of converting the corrected first color parameter from the first color space to the second color space to obtain the second color parameter includes: The virtual engine uses a mapping curve to map the first brightness to obtain the second brightness. The mapping curve is used to map the brightness from a linear distribution to a non-linear distribution. The first chromaticity and the second luminance are sent to the display control application through the virtual engine; The display control application receives the first chromaticity and the second luminance, multiplies the first chromaticity by a conversion matrix to obtain the second chromaticity, and the conversion matrix is used to convert the chromaticity belonging to the first color gamut to the chromaticity belonging to the second color gamut. The second brightness and the second chromaticity are used to form the second color parameter through the display control application; The step of outputting the second color parameter to the target display device includes: The second color parameter is output to the target display device through the display control application.
8. A screen display device, characterized in that, The device includes: The creation module is used to create the first color parameters corresponding to the image. The first color parameters belong to the first color space, which is the color space supported by the local device. The correction module is used to multiply the first color parameter with a correction matrix to obtain the corrected first color parameter; wherein, the correction matrix is used to correct the color parameter belonging to the first color space so that the color indicated by the color parameter before correction matches the shooting color corresponding to the corrected color parameter, and the shooting color is obtained by shooting the color displayed on the target display device after the corrected color parameter is converted to the second color space; A conversion module is used to convert the corrected first color parameter from the first color space to the second color space to obtain the second color parameter, wherein the second color space is the color space of the target display device; An output module is used to output the second color parameter to the target display device, and the target display device is used to display the image based on the second color parameter.
9. The apparatus according to claim 8, characterized in that, The corrected first color parameters include a first luminance and a first chromaticity. The conversion module includes: A conversion unit is used to map the first brightness using a mapping curve to obtain a second brightness, wherein the mapping curve is used to map the brightness from a linear distribution to a nonlinear distribution; The conversion unit is further configured to multiply the first chromaticity by the conversion matrix to obtain the second chromaticity, wherein the conversion matrix is configured to convert the chromaticity belonging to the first color gamut to the chromaticity belonging to the second color gamut. The constitutive unit is used to form the second color parameter by combining the second brightness and the second chromaticity.
10. The apparatus according to claim 8, characterized in that, The device further includes: The acquisition module is used to acquire a third color parameter, which is obtained by capturing the image displayed on the target display device using an imaging device; The conversion module is further configured to convert the third color parameter from the third color space of the shooting device to the first color space to obtain the fourth color parameter; The material determination module is used for: if the image is displayed by the target display device based on corrected color parameters, then determining the fourth color parameter as a color parameter material belonging to the first color space; or, if the image is displayed by the target display device based on uncorrected color parameters, then multiplying the fourth color parameter by a first matrix to obtain a fifth color parameter, and determining the fifth color parameter as a color parameter material belonging to the first color space; wherein, the first matrix is used to correct the color parameters converted from the third color space to the first color space, so that the color indicated by the corrected color parameter matches the color indicated by the color parameter belonging to the first color space.
11. The apparatus according to claim 8 or 10, characterized in that, The apparatus further includes a generation module, the generation module being configured to: A sixth color parameter is obtained by capturing an image of the target display device based on a seventh color parameter using an imaging device. The seventh color parameter belongs to the second color space. The sixth color parameter is converted from the third color space of the shooting device to the first color space to obtain the eighth color parameter; A first matrix is determined for converting the eighth color parameter into a ninth color parameter, the ninth color parameter belonging to the first color space, and the color indicated by the ninth color parameter matching the color indicated by the seventh color parameter; The first matrix is inversely transformed to obtain the correction matrix.
12. The apparatus according to any one of claims 8-10, characterized in that, The local device runs a virtual engine. The first color space is the color space of the virtual engine. The first color parameters are created by the virtual engine. The color gamut of the first color space is larger than the color gamut of the second color space. The conversion module includes: The conversion unit is used to convert the corrected first color parameter from the first color space to the second color space through the virtual engine to obtain the second color parameter.
13. The apparatus according to claim 12, characterized in that, The local device also runs a display control application, and the output module includes: The sending unit is used to send the second color parameter to the display control application through the virtual engine; The output unit is used to receive the second color parameter through the display control application and output the second color parameter to the target display device.
14. The apparatus according to any one of claims 8-10, characterized in that, The corrected first color parameter includes first brightness and first chromaticity. The local device runs a virtual engine and a display control application. The first color space is the color space of the virtual engine. The first color parameter is created by the virtual engine. The color gamut of the first color space is smaller than that of the second color space. The conversion module includes: The conversion unit is used to map the first brightness to the second brightness using the virtual engine and a mapping curve, wherein the mapping curve is used to map the brightness from a linear distribution to a non-linear distribution; The conversion unit is further configured to send the first chromaticity and the second luminance to the display control application through the virtual engine; The conversion unit is further configured to receive the first chromaticity and the second luminance through the display control application, multiply the first chromaticity by the conversion matrix to obtain the second chromaticity, wherein the conversion matrix is used to convert the chromaticity belonging to the first color gamut to the chromaticity belonging to the second color gamut. The constitutive unit is used to construct the second color parameter from the second brightness and the second chromaticity through the display control application; The output module includes: The output unit is used to output the second color parameter to the target display device through the display control application.
15. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one computer program, which is loaded and executed by the processor to perform the operations performed by the screen display method as described in any one of claims 1 to 7.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to perform the operations performed by the screen display method as described in any one of claims 1 to 7.
17. A computer program product, comprising a computer program, characterized in that, The computer program is loaded and executed by a processor to perform the operations performed by the screen display method as described in any one of claims 1 to 7.