CN115774529A - Screen color gamut adjusting method and device, storage medium and electronic equipment - Google Patents

Screen color gamut adjusting method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN115774529A
CN115774529A CN202111036608.6A CN202111036608A CN115774529A CN 115774529 A CN115774529 A CN 115774529A CN 202111036608 A CN202111036608 A CN 202111036608A CN 115774529 A CN115774529 A CN 115774529A
Authority
CN
China
Prior art keywords
color
target
matrix
gamut
initial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111036608.6A
Other languages
Chinese (zh)
Inventor
戴亚丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202111036608.6A priority Critical patent/CN115774529A/en
Publication of CN115774529A publication Critical patent/CN115774529A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

The application discloses a screen color gamut adjusting method, a device, a storage medium and an electronic device, wherein the method comprises the following steps: the method comprises the steps of obtaining an input target color intensity type, obtaining a color adjusting matrix corresponding to the target color intensity type, obtaining a first color of each pixel point in screen display content, obtaining a second color corresponding to the first color in a color space based on the color adjusting matrix, and displaying each pixel point in the screen display content based on the second color. By adopting the method and the device, the colors displayed on the screen are changed according to the color weakness type, the color gamut is adjusted to the visible range of the color weakness crowd, the range of the crowd to which the screen color gamut adjusting device is suitable is enlarged, and the display effect of the screen color gamut adjusting device is improved.

Description

Screen color gamut adjusting method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for adjusting a color gamut of a screen, a storage medium, and an electronic device.
Background
The electronic equipment is used for communicating, watching videos and the like, and is a common phenomenon, but screens afraid of existing electronic equipment are all users with normal eyesight, and the color gamut range is larger than the range which can be normally seen by people with weak color, so that the electronic equipment screen has poor color display and poor using effect.
Disclosure of Invention
The embodiment of the application provides a screen color gamut adjusting method, a screen color gamut adjusting device, a storage medium and electronic equipment, wherein colors displayed on a screen can be changed according to a color intensity type, the color gamut is adjusted to a range visible by color intensity crowds, the range of the crowds suitable for the screen color gamut adjusting device is increased, and the display effect of the screen color gamut adjusting device is improved. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a screen color gamut adjusting method, where the method includes:
acquiring the input target color intensity type;
acquiring a color adjustment matrix corresponding to the target color weakness type;
acquiring a first color of each pixel point in screen display content, and acquiring a second color corresponding to the first color in a color space based on the color adjustment matrix;
and displaying each pixel point in the screen display content based on the second color.
In a second aspect, an embodiment of the present application provides a device for adjusting a color gamut of a screen, where the device includes:
the color weakness type acquisition module is used for acquiring the input target color weakness type;
the adjustment matrix obtaining module is used for obtaining a color adjustment matrix corresponding to the target color intensity type;
the color adjusting module is used for acquiring a first color of each pixel point in screen display content and acquiring a second color corresponding to the first color in a color space based on the color adjusting matrix;
and the display module is used for displaying each pixel point in the screen display content based on the second color.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
in one or more embodiments of the present application, an input target color intensity type is obtained, a color adjustment matrix corresponding to the target color intensity type is obtained, a first color of each pixel in screen display content is obtained, a second color corresponding to the first color in a color space is obtained based on the color adjustment matrix, and each pixel in the screen display content is displayed based on the second color. The color displayed on the screen is changed according to the color weakness type, the color gamut is adjusted to the range visible by color weakness people, the range of people suitable for the screen color gamut adjusting device is enlarged, and the display effect of the screen color gamut adjusting device is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic structural diagram of a screen color gamut adjusting device provided in an embodiment of the present application;
fig. 2 is an exemplary schematic diagram of a target color gamut and an initial color gamut provided by an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for adjusting a color gamut of a screen according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a method for adjusting a color gamut of a screen according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating an example of obtaining a color adjustment matrix according to an embodiment of the present disclosure;
fig. 6 is an exemplary schematic diagram of target color weakness type obtaining according to an embodiment of the present application;
FIG. 7 is an exemplary diagram of a second color acquisition provided by an embodiment of the present application;
fig. 8 is a schematic structural diagram of a screen color gamut adjusting device provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of a screen color gamut adjusting device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is noted that, unless explicitly stated or limited otherwise, "including" and "having" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The screen color gamut adjusting method provided by the embodiment of the application can be realized by depending on a computer program, and can run on a screen color gamut adjusting device based on a von neumann system. The computer program may be integrated into the application or may run as a separate tool-like application. The screen color gamut adjusting device in the embodiment of the application can be a display device with a display function, such as a television, a mobile phone, a personal computer, a tablet computer, a handheld device, a vehicle-mounted device, a wearable device, and the like, and can also be a module for realizing the screen color gamut adjusting method in the display device. Please refer to fig. 1, which provides a schematic structural diagram of a screen color gamut adjusting device according to an embodiment of the present disclosure, where the screen color gamut adjusting device includes a processor, a display screen, and a color gamut adjusting module, one end of the color gamut adjusting module is connected to the processor, and the other end of the color gamut adjusting module is connected to the display screen. The user can select the corresponding color intensity type on the screen color gamut adjusting device on the display equipment according to the eyesight condition of the user, and the processor can receive the target color intensity type input by the user and can acquire the color adjusting matrix corresponding to the target color intensity type. The user or related staff can save the color adjustment matrix corresponding to different color weakness types in the processor in advance, and it can be understood that the range of the color gamut visible by the color weakness people is smaller than that of the color gamut visible by the color weakness people, and similarly, the initial color gamut of the screen color gamut adjusting device, namely, the color gamut which can be displayed by the screen color gamut adjusting device is also larger than that of the color gamut visible by the color weakness people, so that the color gamut of the screen color gamut adjusting device needs to be adjusted to be the range of the color gamut visible by the color weakness people. Therefore, the processor can obtain a target color gamut corresponding to the target color intensity type, wherein the target color gamut is a color gamut range visible for people of the target color intensity type.
Referring to fig. 2, an exemplary schematic diagram of a target color gamut and an initial color gamut is provided for the embodiment of the present application, and a processor may obtain color coordinates of a target red color point, a target green color point, and a target blue color point in the target color gamut in a color space, where the color coordinates are corresponding coordinates of a color in the color space, for example, the color coordinates may be corresponding coordinates of the color in the color spaceIn the coordinates in the CIE1931 color space, the position in the color space and the light emission color can be determined according to the coordinates, so that one color can be accurately determined according to the color coordinates. It can be understood that the colors displayed by the screen color gamut adjusting apparatus are not completely accurate, and the initial red point, the initial green point and the initial blue point in the initial color gamut have color coordinates and differences from the real red point, the real green point and the real blue point, but we can determine the initial color gamut by the initial red point, the initial green point and the initial blue point, the initial color gamut is a triangle formed by connecting the initial red point, the initial green point and the initial blue point two by two in the color space, and similarly, the target color gamut is a triangle formed by connecting the target red point, the target green point and the target blue point two by two in the color space. For example, FIG. 2 is a CIE1931 color space, point R 1 、B 1 And G 1 An initial red point, an initial green point and an initial blue point respectively representing an initial color gamut, and R 1 、B 1 And G 1 The triangle formed by connecting two by two is the initial color gamut; point R 2 、B 2 And G 2 A target red color point, a target green color point and a target blue color point, respectively, representing a target color gamut, and a point R 2 、B 2 And G 2 The triangle formed by connecting two by two is the target color gamut. The processor can generate a target color gamut matrix according to the color coordinates of the target red point, the target green point and the target blue point, generate an initial color gamut matrix according to the color coordinates of the initial red point, the initial green point and the initial blue point, calculate a color adjustment matrix according to the target color gamut matrix and the initial color gamut matrix, obtain a result of multiplying the target color gamut matrix and the color adjustment matrix as the initial color gamut matrix, and store the color adjustment matrix corresponding to the target color intensity type.
When the processor receives an input target color intensity type, a color adjustment matrix corresponding to the target color intensity type can be found, color gamut adjustment information is generated based on the color adjustment matrix, the processor transmits the color gamut adjustment information to the color gamut adjustment module, the color gamut adjustment module can adjust the color of each pixel point in the screen display content according to the color adjustment matrix contained in the color gamut adjustment information, if the color gamut adjustment is not performed, the first color of each pixel point can be displayed on the display screen, the first color exists in the initial color gamut but does not necessarily exist in the target color gamut, but after the color gamut adjustment module receives the color gamut adjustment information, the color gamut adjustment module can obtain a second color of the first color in the color space according to the first color and the color adjustment matrix, and the second color exists in the target color gamut. The color gamut adjusting module can generate a first color matrix according to a first color coordinate of a first color in a color space, and then calculate to obtain a second color matrix based on the first color matrix and the color adjusting matrix, wherein a result obtained by multiplying the color adjusting matrix and the second color matrix is the first color matrix, and the color gamut adjusting module obtains a second color coordinate corresponding to the second color matrix and finds a second color in the color space according to the second color coordinate. Then the color gamut adjusting module transmits the second color to the display screen, and the display screen can display each pixel point in the screen display content based on the second color.
The screen color gamut adjusting method provided by the present application is described in detail below with reference to specific embodiments.
Referring to fig. 3, a flow chart of a screen color gamut adjusting method is provided in the embodiment of the present application. As shown in fig. 3, the method of the embodiment of the present application may include the following steps S101-S104.
S101, acquiring the input target color intensity type.
Specifically, the user may adjust the color gamut of the screen display content in the screen color gamut adjusting device, at least one color intensity type is stored in the screen color gamut adjusting device, each color intensity type has a corresponding color adjusting matrix, and the screen color gamut adjusting device may adjust the color gamut of the screen display content to the color gamut range visible to the crowd of the target color intensity type according to the color adjusting matrix. The user may select a target color intensity type in the screen color gamut adjusting device, for example, the user may select a desired target color intensity type, such as a red color intensity type, a green color intensity type, and the like, in a "color gamut adjustment" interface of the screen color gamut adjusting device, and the screen color gamut adjusting device may obtain the target color intensity type input by the user.
And S102, acquiring a color adjustment matrix corresponding to the target color weakness type.
Specifically, after receiving the target color intensity type, the screen color gamut adjusting device obtains a color adjustment matrix corresponding to the target color intensity type and stored in the screen color gamut adjusting device. The user or relevant staff can keep the color adjustment matrix that different color saturation types correspond in advance in screen color gamut adjusting device, and the color adjustment matrix is that screen color gamut adjusting device calculates according to the target color gamut that initial color gamut and target color saturation type correspond, and the color adjustment matrix can be with the color gamut of screen display content by initial color gamut adjustment to target color gamut, initial color gamut is screen color gamut adjusting device and is adjusting between the color gamut to screen display content, the color gamut scope that can show, target color gamut is the visible color gamut scope of target color saturation type crowd promptly.
S103, acquiring a first color of each pixel point in screen display content, and acquiring a second color corresponding to the first color in a color space based on the color adjustment matrix.
Specifically, the first color of each pixel point in the screen display content is in the initial color gamut, and the color gamut of the screen display content is adjusted, that is, the first color of each pixel point in the screen display content is adjusted to the second color in the target color gamut. The screen color gamut adjusting device may obtain a second color corresponding to the first color in the color space according to the first color and the color adjustment matrix.
And S104, displaying each pixel point in the screen display content based on the second color.
Specifically, the screen color gamut adjusting device displays each pixel point in the screen display content based on the second color, and if the color gamut adjustment is not performed on the screen display content, the screen color gamut adjusting device should display each pixel point based on the first color, and after the color gamut adjustment is performed, the screen color gamut adjusting device displays each pixel point based on the second color. Originally, the first color is in the initial color gamut but not necessarily in the target color gamut, the target color-weakness type crowd cannot completely identify all colors in the screen display content, and after the first color is replaced by the second color, the target color-weakness person right can identify all colors in the screen display content because the second color is in the target color gamut.
In the embodiment of the application, the input target color intensity type is obtained, the color adjustment matrix corresponding to the target color intensity type is obtained, the first color of each pixel point in the screen display content is obtained, the second color corresponding to the first color in the color space is obtained based on the color adjustment matrix, and each pixel point in the screen display content is displayed based on the second color. The color displayed on the screen is changed according to the color weakness type, the color gamut is adjusted to the range visible by color weakness people, the range of people suitable for the screen color gamut adjusting device is enlarged, and the display effect of the screen color gamut adjusting device is improved.
Referring to fig. 4, a flow chart of a screen color gamut adjusting method is provided in the embodiment of the present application. As shown in fig. 4, the method of the embodiment of the present application may include the following steps S201 to S206.
S201, acquiring a target color gamut corresponding to a target color weakness type in at least one color weakness type.
Specifically, the user and the related staff may package at least one color weakness type and a color adjustment matrix corresponding to each color weakness type in the screen color gamut adjusting device in advance. When the color adjustment matrix corresponding to the target color intensity type is obtained, the screen color gamut adjusting device firstly obtains a target color gamut corresponding to the target color intensity type, and the target color gamut is the visible color gamut range of the target color intensity type crowd. The screen color gamut adjusting device may obtain a target color gamut corresponding to the target color weakness type from a network or a server, for example, when the target color weakness type is red color weakness, the screen color gamut adjusting device may search a color gamut range visible by a red color weakness person from the server and determine the target color gamut.
Optionally, when the user and the related staff set the color intensity type for the screen color gamut adjusting device, the corresponding target color gamut may be set for the target color intensity type, and the target color gamut may be stored in the screen color gamut adjusting device. The color intensity type of different color intensity patients is different, the color intensity degree is also different, the same, and the visual color gamut scope is also different, and the user can set the target color gamut according to the color intensity type, the color intensity degree or the hobby of the user, so that the color gamut scope of the screen display content is more fit with the user habit, and the display effect of the screen color gamut adjusting device is further improved.
S202, acquiring target vertex color coordinates of a target color gamut, generating a target color gamut matrix based on the target vertex color coordinates, acquiring initial vertex color coordinates of an initial color gamut, and generating the initial color gamut matrix based on the initial vertex color coordinates.
Specifically, the screen color gamut adjusting device may obtain target vertex color coordinates of the target color gamut, where the target vertex color coordinates are color coordinates corresponding to three vertices of the target color gamut in a color space, that is, color coordinates of the target red dot, the target green dot, and the target blue dot in the color space, and generate the target color gamut matrix according to the color coordinates of the target red dot, the target green dot, and the target blue dot. Similarly, the screen color gamut adjusting apparatus may obtain initial vertex color coordinates of the initial color gamut, where the initial vertex color coordinates are color coordinates corresponding to three vertices of the initial color gamut in the color space, that is, color coordinates of the initial red point, the initial green point, and the initial blue point in the color space, and generate the target color gamut matrix according to the color coordinates of the initial red point, the initial green point, and the initial blue point.
S203, generating a color adjustment matrix corresponding to the target color weakness type based on the initial color gamut matrix and the target color gamut matrix.
Specifically, the screen color gamut adjusting device may generate a color adjustment matrix corresponding to the target color intensity type according to the initial color gamut matrix and the target color gamut matrix, and a result obtained by multiplying the target color gamut matrix and the color adjustment matrix is the initial color gamut matrix.
Please refer to fig. 5, which illustrates an embodiment of the present applicationProviding an exemplary schematic diagram of the color adjustment matrix acquisition, the screen color gamut adjusting device acquires an initial red point R of an initial color gamut 1 (r 11 ,r 12 ,r 13 ) Initial green point G 1 (g 11 ,g 12 ,g 13 ) And an initial blue point B 1 (b 11 ,b 12 ,b 13 ) Respectively combining vectors corresponding to the initial vertex color coordinates in the color coordinates corresponding to the color space to obtain an initial color gamut matrix, and similarly, obtaining a target red point R of the target color gamut by the screen color gamut adjusting device 2 (r 21 ,r 22 ,r 23 ) Target green point G 2 (g 21 ,g 22 ,g 23 ) And target blue point B 2 (b 21 ,b 22 ,b 23 ) Combining vectors corresponding to the target vertex color coordinates in the color coordinates corresponding to the color space to obtain a target color gamut matrix, and then calculating a color adjustment matrix according to the initial color gamut matrix and the target color gamut matrix, wherein the formula is as follows:
Figure BDA0003247410330000071
Figure BDA0003247410330000081
the result of multiplying the target color gamut matrix by the matrix X is the initial color gamut matrix, so the matrix X is the color adjustment matrix corresponding to the target color intensity type.
And S204, acquiring the input target color intensity type.
Specifically, the user may adjust the color gamut of the screen display content in the screen color gamut adjusting device, at least one color intensity type is stored in the screen color gamut adjusting device, each color intensity type has a corresponding color adjustment matrix, and the screen color gamut adjusting device may adjust the color gamut of the screen display content to a color gamut range visible for the crowd of the target color intensity type according to the color adjustment matrix. The user may select a target color intensity type in the screen color gamut adjusting device, for example, the user may select a desired target color intensity type, such as a red color intensity type, a green color intensity type, and the like, in a "color gamut adjustment" interface of the screen color gamut adjusting device, and the screen color gamut adjusting device may obtain the target color intensity type input by the user.
Optionally, the user may select the color intensity type in the screen color gamut adjusting device without manually selecting the color intensity type, and the screen color gamut adjusting device may directly perform detection in the screen color gamut adjusting device, and determine the target color intensity type of the user according to the detection result. For example, the screen color gamut adjusting device may display a color weakness detection chart on the screen, the user checks the color weakness detection chart and inputs an answer, and the screen color gamut adjusting device may acquire a detection result of the color weakness detection chart according to the answer input by the user and determine the target color weakness type based on the detection result.
Optionally, different user color intensity types are different, and the color intensity degrees are different, and even if the user color intensity types are the same, the visible color gamut ranges with different color intensity degrees are different. The screen color gamut adjusting device may further determine the target color weakness type and the color weakness degree corresponding to the target color weakness type according to the detection result for the color weakness detection chart, and similarly, the screen color gamut adjusting device may obtain the color adjustment matrix corresponding to the target color weakness type and the color weakness degree.
Please refer to fig. 6, which provides an exemplary schematic diagram for obtaining a target color intensity type according to an embodiment of the present disclosure, when a user wants to adjust a color gamut range of a screen display content, the user may directly select a color intensity type that has been stored in a screen color gamut adjusting device, or may perform color intensity type detection and automatically match the target color intensity type by the screen color gamut adjusting device, after selecting a color intensity type detection option, the screen color gamut adjusting device displays a color intensity detection graphic card on a screen, the user inputs an answer to the screen color gamut adjusting device by using a remote controller or through voice input, the screen color gamut adjusting device may automatically match the target color intensity type and the color intensity degree of the user according to the input answer, and form a color adjustment matrix corresponding to a lake area according to the target color intensity type and the color intensity of the user.
S205, obtaining a first color coordinate of a first color of a target pixel point in a screen display content in a color space, obtaining a second color coordinate corresponding to the first color coordinate based on the color adjustment matrix, and obtaining a second color in the color space based on the second color coordinate.
Specifically, the first color of each pixel point in the screen display content is in the initial color gamut, and the color gamut of the screen display content is adjusted, that is, the first color of each pixel point in the screen display content is adjusted to the second color in the target color gamut. The screen color gamut adjusting device can acquire a second color corresponding to the first color in the color space according to the first color and the color adjusting matrix.
The screen color gamut adjusting device can obtain a first color coordinate of a first color and a first color of a target pixel point in a color space, generate a first color matrix according to the first color coordinate, and calculate a second color matrix based on the color adjustment matrix and the first color matrix, wherein a result obtained by multiplying the color adjustment matrix and the second color matrix is the first color matrix, and then the screen color gamut adjusting device can obtain a second color coordinate corresponding to the second color matrix and obtain a second color in the color space based on the second color coordinate.
Referring to fig. 7, an exemplary schematic diagram of obtaining a second color is provided for the embodiment of the present application, in which the screen color gamut adjusting device obtains a first color coordinate of a first color of a target pixel, that is, a point a (a) in a color space 1 ,a 2 ,a 3 ) Obtaining a first color matrix according to the coordinates of the point A, calculating to obtain a second color matrix based on the first color matrix and the color adjusting matrix, wherein the result obtained by multiplying the second color matrix by the color adjusting matrix is the first color matrix, and the formula is as follows:
Figure BDA0003247410330000091
Figure BDA0003247410330000092
the result of multiplying the matrix C by the color adjustment matrix is the first color matrix, so that the matrix C is the second color matrix, and the screen color gamut adjusting device obtains the second color coordinates according to the second color matrix and finds the point C (C) corresponding to the second color coordinates in the color space 1 ,c 2 ,c 3 ) The color represented by point C is the second color.
And S206, displaying each pixel point in the screen display content based on the second color.
The screen color gamut adjusting device displays each pixel point in the screen display content based on the second color, and if the color gamut adjustment is not performed on the screen display content, the screen color gamut adjusting device should display each pixel point based on the first color, and after the color gamut adjustment is performed, the screen color gamut adjusting device displays each pixel point based on the second color. Originally, the first color is in the initial color gamut but not necessarily in the target color gamut, the target color-weakness type crowd cannot completely identify all colors in the screen display content, and after the first color is replaced by the second color, the target color-weakness person right can identify all colors in the screen display content because the second color is in the target color gamut.
In the embodiment of the application, the target color weakness type is obtained according to the detection result of the color weakness detection graphic card, the target color weakness type and the color weakness degree corresponding to a user are automatically matched, the intelligence of the screen color gamut adjusting device is improved, the display effect of the screen color gamut adjusting device is also improved, the color adjusting matrix corresponding to the target color weakness type is obtained, the first color of each pixel point in the screen display content is obtained, the second color corresponding to the first color in the color space is obtained based on the color adjusting matrix, and each pixel point in the screen display content is displayed based on the second color. The color displayed on the screen is changed according to the color weakness type, the color gamut is adjusted to the range visible by color weakness people, the range of people suitable for the screen color gamut adjusting device is enlarged, and the display effect of the screen color gamut adjusting device is improved. The color adjustment matrix is calculated according to the initial color gamut matrix of the initial color gamut and the target color gamut matrix of the target color gamut, and the colors of all the pixel points are mapped into the target color gamut according to the color adjustment matrix, so that the accuracy of color gamut adjustment is improved, and the accuracy of color display is further improved.
The screen color gamut adjusting device provided by the embodiment of the present application will be described in detail below with reference to fig. 8 to 9. It should be noted that, the screen color gamut adjusting device shown in fig. 8-9 is used to execute the method of the embodiment shown in fig. 3 and 4 of the present application, and for convenience of description, only the portion related to the embodiment of the present application is shown, and details of the technology are not disclosed, please refer to the embodiment shown in fig. 3 and 4 of the present application.
Please refer to fig. 8, which illustrates a schematic structural diagram of a screen color gamut adjusting device according to an exemplary embodiment of the present application. The screen gamut adjusting device may be implemented as all or part of the device by software, hardware, or a combination of both. The device 1 comprises a color weakness type acquisition module 11, an adjustment matrix acquisition module 12, a color adjustment module 13 and a display module 14.
A color weakness type obtaining module 11, configured to obtain the input target color weakness type;
an adjustment matrix obtaining module 12, configured to obtain a color adjustment matrix corresponding to the target color intensity type;
the color adjusting module 13 is configured to obtain a first color of each pixel in the screen display content, and obtain a second color corresponding to the first color in a color space based on the color adjusting matrix;
and the display module 14 is configured to display each pixel point in the screen display content based on the second color.
In this embodiment, the input target color intensity type is obtained, the color adjustment matrix corresponding to the target color intensity type is obtained, the first color of each pixel point in the screen display content is obtained, the second color corresponding to the first color in the color space is obtained based on the color adjustment matrix, and each pixel point in the screen display content is displayed based on the second color. The color displayed on the screen is changed according to the color weakness type, the color gamut is adjusted to the range visible by color weakness people, the range of people suitable for the screen color gamut adjusting device is enlarged, and the display effect of the screen color gamut adjusting device is improved.
Please refer to fig. 9, which illustrates a schematic structural diagram of a screen color gamut adjusting device according to an exemplary embodiment of the present application. The screen gamut adjusting device may be implemented as all or part of the device by software, hardware, or a combination of both. The device 1 comprises a color weakness type acquisition module 11, an adjustment matrix acquisition module 12, a color adjustment module 13, a display module 14 and a matrix calculation module 15.
The matrix calculation module 15 is configured to obtain a target color gamut corresponding to a target color weakness type of the at least one color weakness type;
acquiring target vertex color coordinates of a target color gamut, generating a target color gamut matrix based on the target vertex color coordinates, acquiring initial vertex color coordinates of an initial color gamut, and generating an initial color gamut matrix based on the initial vertex color coordinates;
generating a color adjusting matrix corresponding to the target color intensity type based on the initial color gamut matrix and the target color gamut matrix, wherein a result obtained by multiplying the target color gamut matrix and the color adjusting matrix is the initial color gamut matrix;
optionally, the matrix calculation module 15 is specifically configured to obtain color coordinates of a target red color point, a target green color point, and a target blue color point of a target color gamut in a color space, and generate a target color gamut matrix based on the color coordinates of the target red color point, the target green color point, and the target blue color point;
color coordinates of an initial red point, an initial green point and an initial blue point of an initial color gamut in a color space are obtained, and an initial color gamut matrix is generated based on the color coordinates of the initial red point, the initial green point and the initial blue point.
A color weakness type obtaining module 11, configured to obtain the input target color weakness type;
optionally, the color weakness type obtaining module 11 is specifically configured to display a color weakness detection chart, and determine a target color weakness type based on a detection result of the color weakness detection chart.
Optionally, the color weakness type obtaining module 11 is specifically configured to display a color weakness detection chart, and determine a target color weakness type and a color weakness degree corresponding to the target color weakness type based on a detection result of the color weakness detection chart.
An adjustment matrix obtaining module 12, configured to obtain a color adjustment matrix corresponding to the target color intensity type;
optionally, the adjustment matrix obtaining module 12 is specifically configured to obtain a color adjustment matrix corresponding to the target color intensity type and the color intensity degree.
The color adjusting module 13 is configured to obtain a first color of each pixel in screen display content, and obtain a second color corresponding to the first color in a color space based on the color adjusting matrix;
optionally, the color adjusting module 13 is specifically configured to obtain a first color coordinate of a first color of a target pixel point in a screen display content in a color space;
and acquiring a second color coordinate corresponding to the first color coordinate based on the color adjustment matrix, and acquiring a second color in the color space based on the second color coordinate.
Optionally, the color adjusting module 13 is specifically configured to generate a first color matrix based on the first color coordinate, obtain a second color matrix based on the color adjusting matrix and the first color matrix, and obtain a result of multiplying the color adjusting matrix and the second color matrix as the first color matrix;
and acquiring a second color coordinate corresponding to the second color matrix, and acquiring a second color in the color space based on the second color coordinate.
And the display module 14 is configured to display each pixel point in the screen display content based on the second color.
In this embodiment, a target color weakness type is obtained according to a detection result of a color weakness detection chart, the target color weakness type and the color weakness degree corresponding to a user are automatically matched, the intelligence of a screen color gamut adjusting device is improved, the display effect of the screen color gamut adjusting device is also improved, a color adjusting matrix corresponding to the target color weakness type is obtained, a first color of each pixel point in screen display content is obtained, a second color corresponding to the first color in a color space is obtained based on the color adjusting matrix, and each pixel point in the screen display content is displayed based on the second color. The color displayed on the screen is changed according to the color weakness type, the color gamut is adjusted to the range visible by color weakness people, the range of people suitable for the screen color gamut adjusting device is enlarged, and the display effect of the screen color gamut adjusting device is improved. And calculating a color adjustment matrix according to the initial color gamut matrix of the initial color gamut and the target color gamut matrix of the target color gamut, and mapping the colors of all pixel points into the target color gamut according to the color adjustment matrix, so that the accuracy of color gamut adjustment is improved, and the accuracy of color display is further improved.
It should be noted that, when the screen color gamut adjusting device provided in the foregoing embodiment executes the screen color gamut adjusting method, only the division of the above functional modules is illustrated, and in practical applications, the above functions may be distributed to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the above described functions. In addition, the screen color gamut adjusting device and the screen color gamut adjusting method provided by the above embodiments belong to the same concept, and details of implementation processes thereof are referred to in the method embodiments, and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the screen color gamut adjusting method according to the embodiments shown in fig. 1 to 7, and a specific execution process may refer to specific descriptions of the embodiments shown in fig. 1 to 7, which is not described herein again.
The present application further provides a computer program product, where at least one instruction is stored in the computer program product, and the at least one instruction is loaded by the processor and executed by the method for adjusting a color gamut of a screen according to the embodiment shown in fig. 1 to 7, where a specific execution process may refer to specific descriptions of the embodiment shown in fig. 1 to 7, and is not described herein again.
Referring to fig. 10, a block diagram of a server according to an exemplary embodiment of the present application is shown. The server in the present application may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, memory 120, input device 130, and output device 140 may be connected by a bus 150.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the entire server using various interfaces and lines, performs various functions of the terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-programmable gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. The CPU mainly processes an operating system, a user page, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a read-only Memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable medium. The memory 120 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, and the like), instructions for implementing the above method embodiments, and the like, and the operating system may be an Android (Android) system, including a system based on Android system depth development, an IOS system developed by apple, including a system based on IOS system depth development, or other systems.
The memory 120 may be divided into an operating system space, in which an operating system runs, and a user space, in which native and third-party applications run. In order to ensure that different third-party application programs can achieve a better operation effect, the operating system allocates corresponding system resources for the different third-party application programs. However, the requirements of different application scenarios in the same third-party application program on system resources are different, for example, in a local resource loading scenario, the third-party application program has a higher requirement on the disk reading speed; in the animation rendering scene, the third-party application program has a high requirement on the performance of the GPU. The operating system and the third-party application program are independent from each other, and the operating system often cannot timely sense the current application scene of the third-party application program, so that the operating system cannot perform targeted system resource adaptation according to the specific application scene of the third-party application program.
In order to enable the operating system to distinguish a specific application scenario of the third-party application program, data communication between the third-party application program and the operating system needs to be opened, so that the operating system can acquire current scenario information of the third-party application program at any time, and further perform targeted system resource adaptation based on the current scenario.
The input device 130 is used for receiving input instructions or data, and the input device 130 includes, but is not limited to, a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used for outputting instructions or data, and the output device 140 includes, but is not limited to, a display device, a speaker, and the like. In one example, the input device 130 and the output device 140 may be combined, and the input device 130 and the output device 140 are touch display screens.
The touch display screen can be designed as a full-face screen, a curved screen or a profiled screen. The touch display screen can also be designed to be a combination of a full-face screen and a curved-face screen, and a combination of a special-shaped screen and a curved-face screen, which is not limited in the embodiment of the present application.
In addition, those skilled in the art will appreciate that the configurations of the terminals illustrated in the above-described figures do not constitute limitations on the terminals, as the terminals may include more or less components than those illustrated, or some components may be combined, or a different arrangement of components may be used. For example, the terminal further includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a bluetooth module, and other components, which are not described herein again.
In the electronic device shown in fig. 10, the processor 110 may be configured to call the screen color gamut adjusting application program stored in the memory 120, and specifically perform the following operations:
acquiring the input target color intensity type;
acquiring a color adjustment matrix corresponding to the target color weakness type;
acquiring a first color of each pixel point in screen display content, and acquiring a corresponding second color of the first color in a color space based on the color adjustment matrix;
and displaying each pixel point in the screen display content based on the second color.
In one embodiment, the processor 110 further performs the following operations before performing the step of obtaining the input target color weakness type:
acquiring a target color gamut corresponding to a target color weakness type in at least one color weakness type;
acquiring target vertex color coordinates of a target color gamut, generating a target color gamut matrix based on the target vertex color coordinates, acquiring initial vertex color coordinates of an initial color gamut, and generating an initial color gamut matrix based on the initial vertex color coordinates;
and generating a color adjusting matrix corresponding to the target color intensity type based on the initial color gamut matrix and the target color gamut matrix, wherein a result obtained by multiplying the target color gamut matrix and the color adjusting matrix is the initial color gamut matrix.
In an embodiment, when the processor 110 performs the following operations of obtaining target vertex color coordinates of a target color gamut, generating a target color gamut matrix based on the target vertex color coordinates, obtaining initial vertex color coordinates of an initial color gamut, and generating an initial color gamut matrix based on the initial vertex color coordinates:
acquiring color coordinates of a target red color point, a target green color point and a target blue color point of a target color gamut in a color space respectively, and generating a target color gamut matrix based on the color coordinates of the target red color point, the target green color point and the target blue color point;
color coordinates of an initial red point, an initial green point and an initial blue point of an initial color gamut in a color space are obtained, and an initial color gamut matrix is generated based on the color coordinates of the initial red point, the initial green point and the initial blue point.
In an embodiment, when the processor 110 performs the following operation to obtain the input target color weakness type:
and displaying the color weakness detection chart, and determining a target color weakness type based on a detection result aiming at the color weakness detection chart.
In one embodiment, when the processor 110 executes the display color weakness detection chart and determines the target color weakness type based on the detection result for the color weakness detection chart, the following operations are specifically performed:
displaying a color weakness detection chart, and determining a target color weakness type and a color weakness degree corresponding to the target color weakness type based on a detection result aiming at the color weakness detection chart;
the obtaining of the color adjustment matrix corresponding to the target color weakness type includes:
and acquiring the target color intensity type and a color adjustment matrix corresponding to the color intensity degree.
In one embodiment, when the processor 110 performs the following operations to obtain a first color of each pixel point in the screen display content and obtain a corresponding second color of the first color in the color space based on the color adjustment matrix:
acquiring a first color coordinate of a first color of a target pixel point in screen display content in a color space;
and acquiring a second color coordinate corresponding to the first color coordinate based on the color adjustment matrix, and acquiring a second color in the color space based on the second color coordinate.
In one embodiment, when the processor 110 obtains the second color coordinate corresponding to the first color coordinate based on the color adjustment matrix, and obtains the second color in the color space based on the second color coordinate, the following operations are specifically performed:
generating a first color matrix based on the first color coordinate, and acquiring a second color matrix based on the color adjustment matrix and the first color matrix, wherein a result obtained by multiplying the color adjustment matrix and the second color matrix is the first color matrix;
and acquiring a second color coordinate corresponding to the second color matrix, and acquiring a second color in the color space based on the second color coordinate.
In this embodiment, a target color weakness type is obtained according to a detection result of a color weakness detection chart, the target color weakness type and the color weakness degree corresponding to a user are automatically matched, the intelligence of a screen color gamut adjusting device is improved, the display effect of the screen color gamut adjusting device is also improved, a color adjusting matrix corresponding to the target color weakness type is obtained, a first color of each pixel point in screen display content is obtained, a second color corresponding to the first color in a color space is obtained based on the color adjusting matrix, and each pixel point in the screen display content is displayed based on the second color. The color displayed on the screen is changed according to the color weakness type, the color gamut is adjusted to the range visible by color weakness people, the range of people suitable for the screen color gamut adjusting device is enlarged, and the display effect of the screen color gamut adjusting device is improved. And calculating a color adjustment matrix according to the initial color gamut matrix of the initial color gamut and the target color gamut matrix of the target color gamut, and mapping the colors of all pixel points into the target color gamut according to the color adjustment matrix, so that the accuracy of color gamut adjustment is improved, and the accuracy of color display is further improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (10)

1. A method for screen color gamut adjustment, the method comprising:
acquiring the input target color intensity type;
acquiring a color adjustment matrix corresponding to the target color weakness type;
acquiring a first color of each pixel point in screen display content, and acquiring a corresponding second color of the first color in a color space based on the color adjustment matrix;
and displaying each pixel point in the screen display content based on the second color.
2. The method of claim 1, wherein before obtaining the input target color weakness type, further comprising:
obtaining a target color gamut corresponding to a target color weakness type in at least one color weakness type;
acquiring target vertex color coordinates of a target color gamut, generating a target color gamut matrix based on the target vertex color coordinates, acquiring initial vertex color coordinates of an initial color gamut, and generating an initial color gamut matrix based on the initial vertex color coordinates;
and generating a color adjusting matrix corresponding to the target color weakness type based on the initial color gamut matrix and the target color gamut matrix, wherein a result obtained by multiplying the target color gamut matrix and the color adjusting matrix is the initial color gamut matrix.
3. The method of claim 2, wherein obtaining target vertex color coordinates of a target color gamut and generating a target color gamut matrix based on the target vertex color coordinates, obtaining initial vertex color coordinates of an initial color gamut and generating an initial color gamut matrix based on the initial vertex color coordinates comprises:
acquiring color coordinates of a target red color point, a target green color point and a target blue color point of a target color gamut in a color space respectively, and generating a target color gamut matrix based on the color coordinates of the target red color point, the target green color point and the target blue color point;
color coordinates of an initial red point, an initial green point and an initial blue point of an initial color gamut in a color space are obtained, and an initial color gamut matrix is generated based on the color coordinates of the initial red point, the initial green point and the initial blue point.
4. The method of claim 1, wherein the obtaining the input target color weakness type comprises:
and displaying the color weakness detection graphic card, and determining a target color weakness type based on a detection result aiming at the color weakness detection graphic card.
5. The method of claim 4, wherein the displaying the color weakness detection chart, and determining the target color weakness type based on the detection result for the color weakness detection chart comprises:
displaying a color weakness detection chart, and determining a target color weakness type and a color weakness degree corresponding to the target color weakness type based on a detection result aiming at the color weakness detection chart;
the obtaining of the color adjustment matrix corresponding to the target color intensity type includes:
and acquiring a color adjustment matrix corresponding to the target color weakness type and the color weakness degree.
6. The method of claim 1, wherein the obtaining a first color of each pixel in the screen display content, and obtaining a corresponding second color of the first color in a color space based on the color adjustment matrix comprises:
acquiring a first color coordinate of a first color of a target pixel point in screen display content in a color space;
and acquiring a second color coordinate corresponding to the first color coordinate based on the color adjustment matrix, and acquiring a second color in the color space based on the second color coordinate.
7. The method according to claim 6, wherein obtaining a second color coordinate corresponding to the first color coordinate based on the color adjustment matrix and obtaining a second color in the color space based on the second color coordinate comprises:
generating a first color matrix based on the first color coordinate, and acquiring a second color matrix based on the color adjustment matrix and the first color matrix, wherein a result obtained by multiplying the color adjustment matrix and the second color matrix is the first color matrix;
and acquiring a second color coordinate corresponding to the second color matrix, and acquiring a second color in the color space based on the second color coordinate.
8. A screen color gamut adjusting apparatus, comprising:
the color weakness type acquisition module is used for acquiring the input target color weakness type;
the adjustment matrix acquisition module is used for acquiring a color adjustment matrix corresponding to the target color intensity type;
the color adjusting module is used for acquiring a first color of each pixel point in screen display content and acquiring a corresponding second color of the first color in a color space based on the color adjusting matrix;
and the display module is used for displaying each pixel point in the screen display content based on the second color.
9. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method steps according to any one of claims 1 to 7.
10. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 7.
CN202111036608.6A 2021-09-06 2021-09-06 Screen color gamut adjusting method and device, storage medium and electronic equipment Pending CN115774529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111036608.6A CN115774529A (en) 2021-09-06 2021-09-06 Screen color gamut adjusting method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111036608.6A CN115774529A (en) 2021-09-06 2021-09-06 Screen color gamut adjusting method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115774529A true CN115774529A (en) 2023-03-10

Family

ID=85387335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111036608.6A Pending CN115774529A (en) 2021-09-06 2021-09-06 Screen color gamut adjusting method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115774529A (en)

Similar Documents

Publication Publication Date Title
CN109298912B (en) Theme color adjusting method and device, storage medium and electronic equipment
US20200275035A1 (en) Method for Image Shooting, Terminal Device, and Storage Medium
CN109089043B (en) Shot image preprocessing method and device, storage medium and mobile terminal
CN109948093B (en) Expression picture generation method and device and electronic equipment
CN112839223B (en) Image compression method, image compression device, storage medium and electronic equipment
KR20090092035A (en) Method for generating mosaic image and apparatus for the same
US20220392130A1 (en) Image special effect processing method and apparatus
CN111459586A (en) Remote assistance method, device, storage medium and terminal
CN111127469A (en) Thumbnail display method, device, storage medium and terminal
CN113138816A (en) Message screen display theme display method and mobile device
CN111105474B (en) Font drawing method, font drawing device, computer device and computer readable storage medium
CN113157357A (en) Page display method, device, terminal and storage medium
CN114285936B (en) Screen brightness adjustment method and device, storage medium and terminal
US11600300B2 (en) Method and device for generating dynamic image
CN113487478A (en) Image processing method, image processing device, storage medium and electronic equipment
WO2024051541A1 (en) Special-effect image generation method and apparatus, and electronic device and storage medium
CN108604367B (en) Display method and handheld electronic device
CN111107264A (en) Image processing method, image processing device, storage medium and terminal
CN113126859A (en) Contextual model control method, contextual model control device, storage medium and terminal
CN115774529A (en) Screen color gamut adjusting method and device, storage medium and electronic equipment
CN113595662B (en) Signal prompting method, device, terminal equipment and storage medium
CN110597589B (en) Page coloring method and device, electronic equipment and storage medium
CN115880193A (en) Image processing method, image processing device, electronic equipment and storage medium
CN113852751A (en) Image processing method, device, terminal and storage medium
CN115314588B (en) Background synchronization method, device, terminal, equipment, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination