Color adjustment method and device, display device and storage medium
By obtaining the eye focus area and background color data on the OLED see-through screen and adjusting the color data using preset transparency and conversion matrix, the problem of ambient light influence is solved and the display effect is improved.
Patent Information
- Application Number
- CN202210712924.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-22
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2042-06-22
AI Technical Summary
OLED see-through screens are easily affected by ambient light, resulting in poor display effects.
By obtaining the eye focus area and background color data of the target object, the first color data is adjusted using the preset transparency and conversion matrix to generate second color data that adapts to background changes and is displayed in the eye focus area.
Reduce the impact of background changes on the display effect of the display device and provide the target object with a better visual experience.
Smart Images

Figure CN116797670B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of display, and in particular to a color adjustment method and apparatus, a display device, and a storage medium. Background Art
[0002] With the rapid development of science and technology, the application of see-through screens in the market is becoming more and more extensive.
[0003] Currently, see-through screens on the market primarily use organic light-emitting diode (OLED) display technology. OLEDs have self-luminous pixels, each of which generates visible light based on the electronic signal it receives. This light is then combined with the color mode (red, green, blue, RGB) to create bright colors with varying intensities.
[0004] However, the see-through screen using OLED is easily affected by ambient light, resulting in poor display effect of the see-through screen. Summary of the Invention
[0005] To overcome the problems existing in the related art, the present disclosure provides a color adjustment method and apparatus, a display device, and a storage medium.
[0006] According to a first aspect of an embodiment of the present disclosure, a color adjustment method is provided, comprising at least:
[0007] Acquire first color data of an eye focus area of a target object and background color data, wherein the eye focus area is a focus area of the target object's eye on a display device;
[0008] Adjusting the first color data based on the background color data to obtain adjusted second color data;
[0009] The second color data is displayed in the eye focus area.
[0010] In some embodiments, adjusting the first color data based on the background color data to obtain adjusted second color data includes:
[0011] Adjusting the first color data based on the preset transparency and the background color data to obtain adjusted third color data;
[0012] determining fourth color data based on a preset conversion matrix, the first color data, and the background color data;
[0013] Based on the preset transparency and the third color data, the fourth color data is adjusted to obtain the adjusted second color data.
[0014] In some embodiments, determining the fourth color data based on a preset conversion matrix, the first color data, and the background color data includes:
[0015] Based on the preset conversion matrix, the first color data and the background color data are converted respectively to obtain the spatial coordinates of the first color data and the spatial coordinates of the background color data;
[0016] determining the spatial coordinates of the fourth color data based on the spatial coordinates of the first color data and the spatial coordinates of the background color data;
[0017] Based on the inverse matrix of the preset conversion matrix, the spatial coordinates of the fourth color data are inversely converted to obtain the fourth color data.
[0018] In some embodiments, determining the spatial coordinates of the fourth color data based on the spatial coordinates of the first color data and the spatial coordinates of the background color data includes:
[0019] obtaining a first spatial distance between the first color data and the background color data based on the spatial coordinates of the first color data and the spatial coordinates of the background color data;
[0020] Based on the preset transparency and the first spatial distance, the spatial coordinates of the fourth color data are determined.
[0021] In some embodiments, determining the spatial coordinates of the fourth color data based on the preset transparency and the first spatial distance includes:
[0022] determining a second spatial distance between the fourth color data and the first color data based on the preset transparency and the first spatial distance;
[0023] The spatial coordinates of the fourth color data are determined based on the second spatial distance and the spatial coordinates of the first color data.
[0024] In some embodiments, adjusting the first color data based on the preset transparency and the background color data to obtain adjusted third color data includes:
[0025] Obtaining a first calculation result of each color component in the background color data based on each color component in the background color data and the preset transparency;
[0026] Obtaining a second calculation result for each color component in the first color data based on each color component in the first color data and the preset transparency;
[0027] The third color data is obtained based on the first calculation result and the second calculation result.
[0028] In some embodiments, adjusting the fourth color data based on the preset transparency and the third color data to obtain the adjusted second color data includes:
[0029] Obtaining a third calculation result for each color component in the third color data based on each color component in the third color data and the preset transparency;
[0030] Obtaining a fourth calculation result for each color component in the fourth color data based on each color component in the fourth color data and the preset transparency;
[0031] The second color data is obtained based on the third calculation result and the fourth calculation result.
[0032] According to a second aspect of an embodiment of the present disclosure, a color adjustment device is provided, comprising at least:
[0033] A data acquisition module, configured to acquire first color data of an eye focus area of a target object and background color data, wherein the eye focus area is a focus area of the target object's eye on a display device;
[0034] a data processing module, configured to adjust the first color data based on the background color data to obtain adjusted second color data;
[0035] A display module is configured to display the second color data in the eye focus area.
[0036] According to a third aspect of an embodiment of the present disclosure, a display device is provided, comprising: a processor, a memory, and a program or instruction stored in the memory and running on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the color adjustment method described in the first aspect.
[0037] According to a fourth aspect of the embodiments of the present disclosure, a storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed, the steps of the color adjustment method according to the first aspect are implemented.
[0038] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:
[0039] In an embodiment of the present disclosure, a color adjustment method includes: obtaining first color data and background color data of a target subject's eye-focusing area; adjusting the first color data based on the background color data to obtain adjusted second color data; and displaying the second color data in the eye-focusing area. In this way, the first color data of the eye-focusing area can be adjusted to the second color data based on the background color data, allowing the color data in the eye-focusing area to adapt to changes in the background, thereby reducing the impact of the changing background on the display device's display effect and providing the target subject with a better visual experience.
[0040] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0042] Figure 1 A schematic diagram of a color adjustment method provided in an embodiment of the present disclosure Figure 1 .
[0043] Figure 2 A schematic diagram of the positions of a target object, a display device, and a background provided in an embodiment of the present disclosure.
[0044] Figure 3 A schematic diagram of a color adjustment method provided in an embodiment of the present disclosure Figure 2 .
[0045] Figure 4 A schematic diagram of a color adjustment method provided in an embodiment of the present disclosure Figure 3 .
[0046] Figure 5 A schematic diagram of the spatial distances between background color data, first color data, third color data, and fourth color data provided in an embodiment of the present disclosure.
[0047] Figure 6 A schematic diagram of the spatial positions of background color data, first color data, third color data, and fourth color data provided in an embodiment of the present disclosure.
[0048] Figure 7 A schematic diagram of a color adjustment method provided in an embodiment of the present disclosure Figure 4 .
[0049] Figure 8 A schematic structural diagram of a color adjustment device provided in an embodiment of the present disclosure.
[0050] Figure 9 A schematic structural diagram of a display device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0051] The technical solution of the present disclosure is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present disclosure. The terms used herein in the specification of the present disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure. The term "and / or" as used herein includes any and all combinations of one or more related listed items.
[0052] The terms "first", "second", etc. in the specification and claims of the present disclosure are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present disclosure can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects related to each other are in an "or" relationship.
[0053] The technical solutions provided by various embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0054] Figure 1 A schematic diagram of a color adjustment method provided in an embodiment of the present disclosure Figure 1 See also Figure 1 The color adjustment method provided by the embodiment of the present disclosure may include the following steps:
[0055] Step 110: Acquire first color data of the target object's eye focus area and background color data, wherein the eye focus area is the focus area of the target object's eye on the display device;
[0056] Step 120: Adjust the first color data based on the background color data to obtain adjusted second color data;
[0057] Step 130: Display the second color data in the eye focus area.
[0058] In step 110, the target object may be a user using a display device; the display device may be a see-through screen, which may be applied to a home television, an exhibition display screen, a shopping mall display screen, and the like.
[0059] In the embodiments of the present disclosure, eye tracking technology can be used to obtain eye information of a target object in front of the display device using a video input device located in front of the display device. Based on this eye information, the eye focus area can be determined. The video input device can be, but is not limited to, a camera.
[0060] At the same time, facial recognition technology can also be used to obtain facial information of a target subject in front of the display device using a video input device located in front of the display device, and the eye focus area can be determined based on the facial information. For example, determining the eye focus area based on the facial information may include: determining the target subject's facial orientation based on the facial information; and determining the target subject's eye focus area based on the target subject's facial orientation.
[0061] In the disclosed embodiments, after determining the eye focus area on the display device using eye tracking technology, the display device can obtain first color data from the image information of the eye focus area. Furthermore, the display device can use its rear-mounted sensor to obtain a projection area perpendicular to the background of the eye focus area, and then obtain background color data from the image information of the projection area.
[0062] The first color data may be the RGB value of the eyeball focus area. The background color data may be the RGB value of the background area in the background of the display device; wherein the vertical projection of the eyeball focus area onto the background covers the background area.
[0063] For example, if Figure 2 As shown, it shows the positional relationship between the target object, the display device and the background, and the display device is located between the target object and the background, wherein the focusing area of the target object's eye on the display device forms the eye focusing area; the projection of the eye focusing area onto the background forms the above-mentioned background area on the background.
[0064] For example, the first color data can be represented by R a G a B a Indicates that background color data can be used with R b G b B b express.
[0065] In step 120 , the second color data may be color data obtained by adjusting the first color data of the eye focus area of the display device.
[0066] Understandably, after a background change, the display effect of the display device can be improved by adjusting the color data of the eye focus area. Background changes can include those caused by a change in location and scene. For example, if a display device is moved from a living room to a bedroom, the location and scene change, and the background of the display device also changes accordingly. Background changes can also include those caused by a change in the ambient light of the background. For example, if the lighting in the background area switches from a first color to a second color different from the first color.
[0067] In the disclosed embodiments, the display device may adjust the first color data, i.e., adjust the color data of the eye-focusing area on the display device. If the background of the display device changes, the display device may adjust the first color data based on the background color data to obtain new color data displayed in the eye-focusing area, i.e., the second color data.
[0068] It should be noted that adjusting the first color data to obtain the second color data may include at least one of the following: adjusting the transparency of the first color data to obtain the second color data; performing matrix change adjustment on the first color data to obtain the second color data; adjusting the spatial coordinates of the first color data to obtain the second color data; and adjusting the RGB value of the first color data to obtain the second color data.
[0069] In step 130 , the display device displays the second color data in the eye focus area, so that when the background changes, the display device improves its display effect by changing the color data of the eye focus area.
[0070] The color adjustment method provided by the disclosed embodiments obtains first color data and background color data of a target subject's eye-focusing area; adjusts the first color data based on the background color data to obtain adjusted second color data; and displays the second color data in the eye-focusing area. In this way, the first color data of the eye-focusing area can be adjusted to the second color data based on the background color data, allowing the color data in the eye-focusing area to adapt to changes in the background, thereby reducing the impact of the changing background on the display device's display effect and providing the target subject with a better visual experience.
[0071] In one embodiment of the present disclosure, step 120 may be implemented in various ways.
[0072] A specific implementation example is given below. It should be noted that the following is only an example and is not intended to be limiting.
[0073] Figure 3 A schematic diagram of a color adjustment method provided in an embodiment of the present disclosure Figure 2See also Figure 3 , step 120 in the color adjustment method provided in the embodiment of the present disclosure may include the following steps:
[0074] Step 121: Adjust the first color data based on the preset transparency and the background color data to obtain adjusted third color data;
[0075] Step 122: Determine fourth color data based on a preset conversion matrix, the first color data, and the background color data;
[0076] Step 123: Adjust the fourth color data based on the preset transparency and the third color data to obtain adjusted second color data.
[0077] The color adjustment method provided by the embodiment of the present disclosure is such that, during the process of adjusting the first color data, the display device takes into account the influence of the preset transparency and the preset conversion matrix. The adjusted second color data can correspond to more filter effects, thereby better adapting to background changes, reducing the impact of the changing background on the display effect of the display device, and providing a better visual experience for the target object.
[0078] In step 121, the preset transparency may be the transparency of the display device, for example, the preset transparency may be 40%. The third color data may be the color data obtained by adjusting the first color data and the background color data based on the preset transparency; for example, the third color data may be R n G n B n express.
[0079] In the disclosed embodiments, alpha can be used to set transparency in Cascading Style Sheets (CSS) filters. The identifier for a CSS filter is "filter," and CSS filters can be categorized into basic filters and advanced filters. CSS filters are classified as basic filters, which can be applied directly to an object and take effect immediately. Advanced filters require scripting to produce more complex effects.
[0080] In one embodiment, the specific process of adjusting the first color data based on the preset transparency and the background color data in step 121 to obtain the adjusted third color data may include:
[0081] Obtaining a first calculation result of each color component in the background color data based on each color component in the background color data and the preset transparency;
[0082] Obtaining a second calculation result for each color component in the first color data based on each color component in the first color data and the preset transparency;
[0083] The third color data is obtained based on the first calculation result and the second calculation result.
[0084] In this way, each color component in the third color data can be obtained through the preset transparency and the first calculation result of each color component in the background color data, and the preset transparency and the second calculation result of each color component in the first color data, that is, the third color data is obtained, so as to better obtain the color data of the first color data and the background color data after adjustment based on the preset transparency, and prepare for the subsequent adjustment of the color data of the eye focus area.
[0085] Here, the color component can be R, G, or B in RGB. The RGB model is an additive color model, and any color can be described by the amount of radiation emitted by R, G, and B. When a computer defines a color, the values of the three components R, G, and B range from 0 to 255, where 0 indicates no stimulation and 255 indicates maximum stimulation. When R, G, and B are all 255, the result is white, and when R, G, and B are all 0, the result is black. This model is often used when displaying color definitions on a display device. For example, images used in television, slides, the internet, and multimedia generally use the RGB model.
[0086] In the embodiment of the present disclosure, obtaining the first calculation result for each color component in the background color data based on each color component in the background color data and a preset transparency may include: obtaining the difference between the preset value and the preset transparency; and obtaining the first calculation result for each color component in the background color data based on the product of the difference and each color component in the background color data. The preset value may be set according to actual circumstances and is not limited in the embodiment of the present disclosure. For example, the preset value may be set to 1.
[0087] The above-mentioned second calculation result of each color component in the first color data based on each color component in the first color data and the preset transparency may include: obtaining the second calculation result of each color component in the first color data based on the product of each color component in the first color data and the preset transparency.
[0088] The above-mentioned method of obtaining the third color data based on the first calculation result and the second calculation result may include: obtaining the calculation result of each color component in the third color data based on the sum of the first calculation result of each color component in the background color data and the second calculation result of each color component in the corresponding first color data; and constructing the third color data based on the calculation result of each color component in the third color data.
[0089] For example, by calculating the preset transparency of 40% and the preset value of 1, based on the preset transparency and background color data R b G b B b , for the first color data R a G a B a Adjust to obtain the third color data R n G n B n The calculation process can be expressed as formula (1).
[0090]
[0091] Among them, R a , G a 、B a It can be three color components of the first color data; R b , G b 、B b Can be the three color components of background color data; R n , G n 、B n It can be three color components of the third color data.
[0092] In step 122, a preset conversion matrix can be used to convert RGB values into three-dimensional spatial coordinates in a color stereogram model. The color stereogram model is a color system that represents the relationship between lightness, hue, and purity in three-dimensional space. The color system can be a systematic color system that organizes and categorizes colors according to these three attributes.
[0093] It should be noted that the preset conversion matrix can be set according to actual application conditions, and the present disclosure embodiment does not limit this. For example, the preset conversion matrix can be:
[0094]
[0095] In the embodiment of the present disclosure, the fourth color data may be the corresponding color data in the three-dimensional space obtained by converting the first color data and the background color data based on a preset conversion matrix. x G x B x Specifically, the first color data and the background color data can be converted into three-dimensional space coordinates based on a preset conversion matrix, and then the spatial coordinates of the fourth color data are calculated in the color stereo model. Finally, the fourth color data is obtained by reverse conversion based on the inverse matrix of the preset conversion matrix.
[0096] In one embodiment, in step 123, the fourth color data is adjusted based on the preset transparency and the third color data to obtain the adjusted second color data. The specific process may include:
[0097] Obtaining a third calculation result for each color component in the third color data based on each color component in the third color data and the preset transparency;
[0098] Obtaining a fourth calculation result for each color component in the fourth color data based on each color component in the fourth color data and the preset transparency;
[0099] The second color data is obtained based on the third calculation result and the fourth calculation result.
[0100] In this way, each color component in the second color data can be obtained by the preset transparency and the third calculation result of each color component in the third color data, and the preset transparency and the fourth calculation result of each color component in the fourth color data, that is, the second color data is obtained, so as to better obtain the color data displayed in the eye focus area and provide a better visual experience for the target object.
[0101] In the embodiment of the present disclosure, obtaining the third calculation result for each color component in the third color data based on each color component in the third color data and a preset transparency may include: obtaining the difference between the preset value and the preset transparency; and obtaining the third calculation result for each color component in the third color data based on the product of the difference and each color component in the third color data. The preset value may be set according to actual circumstances and is not limited in the embodiment of the present disclosure. For example, the preset value may be set to 1.
[0102] The above-mentioned fourth calculation result of each color component in the fourth color data based on each color component in the fourth color data and the preset transparency may include: obtaining the fourth calculation result of each color component in the fourth color data based on the product of each color component in the fourth color data and the preset transparency.
[0103] The above-mentioned obtaining of the second color data based on the third calculation result and the fourth calculation result may include: obtaining the calculation result of each color component in the second color data based on the sum of the third calculation result of each color component in the third color data and the fourth calculation result of each color component in the fourth color data; and constructing the second color data based on the calculation result of each color component in the second color data.
[0104] For example, by calculating the preset transparency of 40% and the preset value of 1, based on the preset transparency and the third color data R n G n B n , for the fourth color data R x G x B x Adjust to obtain the second color data R a′ G a′ B a′ The calculation process can be expressed as formula (2).
[0105]
[0106] Among them, R n , G n 、B n It can be three color components of the third color data; R x , G x 、B x It can be three color components of the fourth color data; R a′ , G a′ 、B a′ It can be three color components of the second color data.
[0107] In one embodiment of the present disclosure, step 122 may be implemented in various ways.
[0108] A specific implementation example is given below. It should be noted that the following is only an example and is not intended to be limiting.
[0109] Figure 4 A schematic diagram of a color adjustment method provided in an embodiment of the present disclosure Figure 3 See also Figure 4 , step 122 in the color adjustment method provided by the embodiment of the present disclosure may include the following steps:
[0110] Step 122a: Based on the preset conversion matrix, convert the first color data and the background color data respectively to obtain the spatial coordinates of the first color data and the spatial coordinates of the background color data;
[0111] Step 122b: determining the spatial coordinates of the fourth color data based on the spatial coordinates of the first color data and the spatial coordinates of the background color data;
[0112] Step 122c: Based on the inverse matrix of the preset transformation matrix, perform inverse transformation on the spatial coordinates of the fourth color data to obtain the fourth color data.
[0113] The color adjustment method provided by the embodiment of the present disclosure can adjust the first color data and the background color data from the dimension of the spatial coordinate to obtain the fourth color data, thereby preparing for the subsequent adjustment of the color data of the eye focus area, better reducing the impact of background elements on the display effect of the display device, and providing the target object with a better visual experience.
[0114] In step 122a, the above-mentioned conversion of the first color data and the background color data based on the preset conversion matrix to obtain the spatial coordinates of the first color data and the spatial coordinates of the background color data may include: obtaining a first column vector based on each color component in the first color data; obtaining the spatial coordinates of the first color data based on the product of the preset conversion matrix and the first column vector; obtaining a second column vector based on each color component in the background color data; and obtaining the spatial coordinates of the background color data based on the product of the preset conversion matrix and the second column vector.
[0115] It is understood that a column vector can be formed based on each color component of the first color data, and the preset conversion matrix can be multiplied by the column vector to obtain the spatial coordinates corresponding to each color component of the first color data. Similarly, a column vector can be formed based on each color component of the background color data, and the preset conversion matrix can be multiplied by the column vector to obtain the spatial coordinates corresponding to each color component of the background color data.
[0116] For example, the first color data can be represented by R a G a B a Indicates that background color data can be used with R b G b B b Represented; Accordingly, the spatial coordinates of the first color data can be represented by X a Y a Z a Indicates that the spatial coordinates of the background color data can be expressed as X b Y b Z b Based on the preset conversion matrix, the process of converting the first color data and the background color data can be represented by formula (3).
[0117]
[0118] It can be understood that the color component R of the first color data a , G a 、B a Input into formula (3) for calculation, and the spatial coordinate X of the first color data can be output. a Y a Z aSimilarly, the color component R of the background color data b , G b 、B b Input into formula (3) for calculation, and the spatial coordinate X of the background color data can be output. b Y b Z b .
[0119] In step 122b, the spatial positions of the first color data and the background color data can be determined based on the spatial coordinates of the first color data and the background color data. Then, in the three-dimensional spatial coordinate system, a point on the reverse extension line of the first color data and the background color data is set as the spatial position of the fourth color data. For example, the spatial coordinates of the fourth color data can be expressed as X x Y x Z x express.
[0120] In one embodiment, the specific process of determining the spatial coordinates of the fourth color data based on the spatial coordinates of the first color data and the spatial coordinates of the background color data in step 122b may include:
[0121] obtaining a first spatial distance between the first color data and the background color data based on the spatial coordinates of the first color data and the spatial coordinates of the background color data;
[0122] Based on the preset transparency and the first spatial distance, the spatial coordinates of the fourth color data are determined.
[0123] In this way, the spatial coordinates of the fourth color data can be determined by the spatial coordinates of the first color data and the background color data in the three-dimensional space coordinate system, and then the fourth color data of another dimension after adjusting the first color data can be obtained, preparing for the subsequent adjustment of the color data of the eye focus area.
[0124] In an embodiment of the present disclosure, the above-mentioned determination of the spatial coordinates of the fourth color data based on the preset transparency and the first spatial distance may include: determining the spatial distance between the first color data and the third color data and the spatial distance between the background color data and the third color data based on the preset transparency and the first spatial distance; determining the spatial distance between the fourth color data and the first color data based on the preset proportional relationship and the spatial distance between the first color data and the third color data; and calculating the spatial coordinates of the fourth color data based on the spatial coordinates of the first color data and the spatial distance between the fourth color data and the first color data.
[0125] Among them, the preset proportional relationship can be: the ratio of the spatial distance between the first color data and the third color data to the spatial distance between the background color data and the third color data is equal to the ratio of the spatial distance between the fourth color data and the first color data to the spatial distance between the first color data and the third color data.
[0126] For example, if Figure 5 As shown, the third color data R n G n B n With the first color data R a G a B a The spatial distance between The third color data R n G n B n and background color data R b G b B b The spatial distance between Fourth color data R x G x B x With the first color data R a G a B a The spatial distance between Then the preset proportional relationship can be expressed as:
[0127] In one embodiment, the specific process of determining the spatial coordinates of the fourth color data based on the preset transparency and the first spatial distance may include:
[0128] determining a second spatial distance between the fourth color data and the first color data based on the preset transparency and the first spatial distance;
[0129] The spatial coordinates of the fourth color data are determined based on the second spatial distance and the spatial coordinates of the first color data.
[0130] In this way, the spatial coordinates of the fourth color data can be calculated in the three-dimensional space coordinate system based on the spatial coordinates of the first color data and the second spatial distance between the fourth color data and the first color data, and then the fourth color data of another dimension after adjusting the first color data can be obtained, preparing for the subsequent adjustment of the color data of the eye focus area.
[0131] In an embodiment of the present disclosure, determining the second spatial distance between the fourth color data and the first color data based on the preset transparency and the first spatial distance may include: determining the spatial distance between the first color data and the third color data and the spatial distance between the background color data and the third color data based on the preset transparency and the first spatial distance; and calculating the second spatial distance based on a preset proportional relationship and the spatial distance between the first color data and the third color data. The preset proportional relationship may be such that the ratio of the spatial distance between the first color data and the third color data to the spatial distance between the background color data and the third color data is equal to the ratio of the second spatial distance to the spatial distance between the first color data and the third color data.
[0132] For ease of understanding, combined Figure 5 and Figure 6 , here is an example:
[0133] For example, the first color data R a G a B a and background color data R b G b B b The first spatial distance between them can be d. n G n B n is the first color data R a G a B a and background color data R b G b B b Based on the color data after the preset transparency, when the preset transparency is 40%, the third color data R n G n B n With the first color data R a G a B a The spatial distance between It can be 0.6d, the third color data R n G n B n and background color data R b G b B b The spatial distance between It can be 0.4d. Then, based on The fourth color data R can be calculated based on the preset ratio relationship. x G x B x With the first color data R a G a Ba The second spatial distance between Finally, based on the spatial coordinate X of the first color data a Y a Z a and the second spatial distance The spatial coordinate X of the fourth color data can be calculated x Y x Z x .
[0134] In step 122c, the spatial coordinates of the fourth color data are reversely transformed based on the inverse matrix of the preset conversion matrix to obtain the fourth color data, which may include: determining the inverse matrix of the preset conversion matrix based on the preset conversion matrix; obtaining a third column vector based on the spatial coordinates of the fourth color data; obtaining each color component in the fourth color data based on the product of the inverse matrix of the preset conversion matrix and the third column vector; and constructing the fourth color data based on each color component in the fourth color data.
[0135] It can be understood that the inverse matrix of the preset transformation matrix is first obtained based on the inverse operation rule of the matrix; then a column vector composed of the spatial coordinates of the fourth color data is multiplied by the inverse matrix of the preset transformation matrix to obtain each color component in the fourth color data, and each color component in the fourth color data can constitute the fourth color data.
[0136] For example, the preset conversion matrix may be P, and the inverse matrix of the preset conversion matrix may be P -1 Based on the inverse matrix of the preset conversion matrix, the process of reversely converting the spatial coordinates of the fourth color data can be expressed as formula (4).
[0137]
[0138] It can be understood that the spatial coordinate X of the fourth color data x 、Y x , Z x Input into formula (4) for calculation, and the color component R of the fourth color data can be output. x , G x 、B x , that is, the fourth color data R can be obtained x G x B x .
[0139] Figure 7 A schematic diagram of a color adjustment method provided in an embodiment of the present disclosure Figure 4 .like Figure 7As shown, the color adjustment method provided in the embodiment of the present disclosure is only an example and not a limitation, and is intended to help those skilled in the art better understand the technical solution of the present disclosure. Figure 7 The color adjustment method provided by the embodiment of the present disclosure may include:
[0140] Step 701: Acquire first color data of an eye focus area of a target object and background color data, wherein the eye focus area is a focus area of the target object's eye on a display device;
[0141] Step 702: Adjust the first color data based on the preset transparency and the background color data to obtain adjusted third color data;
[0142] Step 703: Based on a preset conversion matrix, convert the first color data and the background color data respectively to obtain the spatial coordinates of the first color data and the spatial coordinates of the background color data;
[0143] Step 704: Obtain a first spatial distance between the first color data and the background color data based on the spatial coordinates of the first color data and the spatial coordinates of the background color data;
[0144] Step 705: Determine a second spatial distance between the fourth color data and the first color data based on the preset transparency and the first spatial distance;
[0145] Step 706: Determine the spatial coordinates of the fourth color data based on the second spatial distance and the spatial coordinates of the first color data;
[0146] Step 707: Based on the inverse matrix of the preset conversion matrix, perform inverse conversion on the spatial coordinates of the fourth color data to obtain the fourth color data;
[0147] Step 708: Adjust the fourth color data based on the preset transparency and the third color data to obtain adjusted second color data;
[0148] Step 709: Display the second color data in the eye focus area.
[0149] The color adjustment method provided by the embodiment of the present disclosure can adjust the background color data and the first color data to the third color data based on the preset transparency. At the same time, the fourth color data can be obtained through the preset conversion matrix, the first color data and the background color data. The third color data and the fourth color data are then adjusted to the second color data based on the preset transparency, so that the color data of the eye focus area can adapt to the changes in the background, thereby reducing the impact of the changing background on the display effect of the display device and providing the target object with a better visual experience.
[0150] Figure 8 This is a schematic diagram of the structure of a color adjustment device provided by an embodiment of the present disclosure. Figure 8 The color adjustment device 800 provided in the embodiment of the present disclosure can be applied to a cloud server and may include: a data acquisition module 810, a data processing module 820 and a display module 830.
[0151] The data acquisition module 810 is used for first color data of the target object's eye focus area and background color data, wherein the eye focus area is the focus area of the target object's eye on the display device;
[0152] A data processing module 820 is configured to adjust the first color data based on the background color data to obtain adjusted second color data;
[0153] The display module 830 is configured to display the second color data in the eye focus area.
[0154] The color adjustment device provided in the embodiments of the present disclosure obtains first color data of a target subject's eye-focusing area and background color data; adjusts the first color data based on the background color data to obtain adjusted second color data; and displays the second color data in the eye-focusing area. In this way, the first color data of the eye-focusing area can be adjusted to the second color data based on the background color data, allowing the color data in the eye-focusing area to adapt to changes in the background, thereby reducing the impact of the changing background on the display effect of the display device and providing the target subject with a better visual experience.
[0155] for Figure 8 In the technical solution shown, in one possible implementation method, the data processing module 830 can be specifically used to: adjust the first color data based on the preset transparency and the background color data to obtain adjusted third color data; determine the fourth color data based on the preset conversion matrix, the first color data and the background color data; adjust the fourth color data based on the preset transparency and the third color data to obtain adjusted second color data.
[0156] for Figure 8 In the technical solution shown, in one possible implementation, the data processing module 830 can be specifically used to: based on the preset conversion matrix, convert the first color data and the background color data respectively to obtain the spatial coordinates of the first color data and the spatial coordinates of the background color data; based on the spatial coordinates of the first color data and the spatial coordinates of the background color data, determine the spatial coordinates of the fourth color data; based on the inverse matrix of the preset conversion matrix, reversely convert the spatial coordinates of the fourth color data to obtain the fourth color data.
[0157] for Figure 8 In the technical solution shown, in one possible implementation method, the data processing module 830 can be specifically used to: obtain a first spatial distance between the first color data and the background color data based on the spatial coordinates of the first color data and the spatial coordinates of the background color data; and determine the spatial coordinates of the fourth color data based on the preset transparency and the first spatial distance.
[0158] for Figure 8 In the technical solution shown, in one possible implementation method, the data processing module 830 can be specifically used to: determine the second spatial distance between the fourth color data and the first color data based on the preset transparency and the first spatial distance; determine the spatial coordinates of the fourth color data based on the second spatial distance and the spatial coordinates of the first color data.
[0159] for Figure 8 In the technical solution shown, in one possible implementation, the data processing module 830 can also be used to: obtain a first calculation result for each color component in the background color data based on each color component in the background color data and the preset transparency; obtain a second calculation result for each color component in the first color data based on each color component in the first color data and the preset transparency; and obtain the third color data based on the first calculation result and the second calculation result.
[0160] for Figure 8 In the technical solution shown, in one possible implementation, the data processing module 830 can also be used to: obtain a third calculation result of each color component in the third color data based on each color component in the third color data and the preset transparency; obtain a fourth calculation result of each color component in the fourth color data based on each color component in the fourth color data and the preset transparency; and obtain the second color data based on the third calculation result and the fourth calculation result.
[0161] It should be noted that the color adjustment device provided in the embodiment of the present disclosure corresponds to the color adjustment method mentioned above. For related content, please refer to the description of the color adjustment method above, and no further details will be given here.
[0162] Figure 9 A display device is provided in accordance with an embodiment of the present disclosure. Figure 9 The display device 900 provided in the embodiment of the present disclosure may be, for example, a see-through screen for a home TV, a see-through screen for an exhibition display, or a see-through screen for a shopping mall display.
[0163] Reference Figure 9 , the display device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .
[0164] The processing component 902 generally controls the overall operation of the display device 900, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 902 may include one or more modules to facilitate interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
[0165] The memory 904 is configured to store various types of data to support operations on the display device 900. Examples of such data include instructions for any application or method operating on the display device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0166] The power supply component 906 provides power to the various components of the display device 900. The power supply component 906 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the display device 900.
[0167] The multimedia component 908 includes a screen that provides an output interface between the display device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the display device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0168] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the display device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.
[0169] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.
[0170] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the display device 900. For example, the sensor assembly 914 can detect the open / closed state of the display device 900, the relative positioning of components, such as the display and keypad of the display device 900. The sensor assembly 914 can also detect changes in the position of the display device 900 or a component of the display device 900, the presence or absence of user contact with the display device 900, the orientation or acceleration / deceleration of the display device 900, and temperature changes of the display device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0171] The communication component 916 is configured to facilitate wired or wireless communication between the display device 900 and other devices. The display device 900 can access a wireless network based on a communication standard, such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0172] In an exemplary embodiment, the display device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described methods.
[0173] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 920 of the display device 900 to perform the above method. For example, the storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0174] A storage medium, when instructions stored in the storage medium are executed by a processor of a display device, enables the display device to perform a color adjustment method. The method comprises: obtaining first color data and background color data of a target subject's eye-focusing area; adjusting the first color data based on the background color data to obtain adjusted second color data; and displaying the second color data in the eye-focusing area. In this way, the first color data in the eye-focusing area can be adjusted to the second color data based on the background color data, allowing the color data in the eye-focusing area to adapt to background changes, thereby reducing the impact of the changing background on the display device's display effect and providing the target subject with a better visual experience.
[0175] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0176] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0177] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0178] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0179] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0180] Memory may include non-permanent storage in the form of random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash RAM. Memory is an example of a computer storage medium.
[0181] Computer storage media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer storage media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0182] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0183] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0184] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A color adjustment method, characterized in that: include: Acquire first color data of an eye focus area of a target object and background color data, wherein the eye focus area is a focus area of the target object's eye on a display device; Adjusting the first color data based on the background color data to obtain adjusted second color data; displaying the second color data in the eye focus area; The adjusting the first color data based on the background color data to obtain adjusted second color data includes: Adjusting the first color data based on the preset transparency and the background color data to obtain adjusted third color data; determining fourth color data based on a preset conversion matrix, the first color data, and the background color data; Based on the preset transparency and the third color data, the fourth color data is adjusted to obtain the adjusted second color data.
2. The method according to claim 1, characterized in that The determining of the fourth color data based on the preset conversion matrix, the first color data, and the background color data includes: Based on the preset conversion matrix, the first color data and the background color data are converted respectively to obtain the spatial coordinates of the first color data and the spatial coordinates of the background color data; determining the spatial coordinates of the fourth color data based on the spatial coordinates of the first color data and the spatial coordinates of the background color data; Based on the inverse matrix of the preset conversion matrix, the spatial coordinates of the fourth color data are inversely converted to obtain the fourth color data.
3. The method according to claim 2, characterized in that The determining the spatial coordinates of the fourth color data based on the spatial coordinates of the first color data and the spatial coordinates of the background color data includes: obtaining a first spatial distance between the first color data and the background color data based on the spatial coordinates of the first color data and the spatial coordinates of the background color data; Based on the preset transparency and the first spatial distance, the spatial coordinates of the fourth color data are determined.
4. The method according to claim 3, characterized in that The determining the spatial coordinates of the fourth color data based on the preset transparency and the first spatial distance includes: determining a second spatial distance between the fourth color data and the first color data based on the preset transparency and the first spatial distance; The spatial coordinates of the fourth color data are determined based on the second spatial distance and the spatial coordinates of the first color data.
5. The method according to claim 1, wherein The adjusting the first color data based on the preset transparency and the background color data to obtain adjusted third color data includes: Obtaining a first calculation result of each color component in the background color data based on each color component in the background color data and the preset transparency; Obtaining a second calculation result for each color component in the first color data based on each color component in the first color data and the preset transparency; The third color data is obtained based on the first calculation result and the second calculation result.
6. The method according to claim 1, characterized in that The adjusting the fourth color data based on the preset transparency and the third color data to obtain the adjusted second color data includes: Obtaining a third calculation result for each color component in the third color data based on each color component in the third color data and the preset transparency; Obtaining a fourth calculation result for each color component in the fourth color data based on each color component in the fourth color data and the preset transparency; The second color data is obtained based on the third calculation result and the fourth calculation result.
7. A color adjustment device, characterized in that: include: A data acquisition module, configured to acquire first color data of an eye focus area of a target object and background color data, wherein the eye focus area is a focus area of the target object's eye on a display device; a data processing module, configured to adjust the first color data based on the background color data to obtain adjusted second color data; A display module, configured to display the second color data in the eye focus area; The data processing module is specifically used for: Adjusting the first color data based on the preset transparency and the background color data to obtain adjusted third color data; determining fourth color data based on a preset conversion matrix, the first color data, and the background color data; Based on the preset transparency and the third color data, the fourth color data is adjusted to obtain the adjusted second color data.
8. A display device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and running on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the color adjustment method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium stores a program or instruction, and when the program or instruction is executed, the steps of the color adjustment method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Headup Display, Display Method for Headup Display and Program for Headup Display
US20140253579A1