CN113885823A - Image color value adjustment method, device, device, system and storage medium - Google Patents
Image color value adjustment method, device, device, system and storage medium Download PDFInfo
- Publication number
- CN113885823A CN113885823A CN202010625420.4A CN202010625420A CN113885823A CN 113885823 A CN113885823 A CN 113885823A CN 202010625420 A CN202010625420 A CN 202010625420A CN 113885823 A CN113885823 A CN 113885823A
- Authority
- CN
- China
- Prior art keywords
- color value
- value information
- display
- image
- information
- 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.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/147—Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/02—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
- Image Processing (AREA)
Abstract
The embodiment of the invention provides a method, a device, equipment, a system and a storage medium for adjusting image color values, wherein the method comprises the following steps: acquiring initial color value information corresponding to an image to be displayed, and displaying the image according to the initial color value information; receiving environment color value information acquired by environment color value acquisition equipment, wherein the environment color value acquisition equipment is arranged on display equipment; receiving display color value information of an image acquired by display color value acquisition equipment, wherein the display color value acquisition equipment is arranged towards the display equipment and is used for shooting the image displayed by the display equipment to determine the display color value information of the image; according to the environment color value information, the display color value information and the initial color value information, the adjusted color value information corresponding to the image is determined, the image is displayed according to the adjusted color value information, the color value of the image can be adjusted quickly according to the environment light source information and the actual display effect, and the image display effect and the adjustment efficiency are effectively improved.
Description
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method, an apparatus, a device, a system, and a storage medium for adjusting color values of an image.
Background
With the advent of the big data era, the data large screen visualization display technology gradually becomes the mainstream data display mode. The data large-screen visual display technology can display data information in an image mode, so that a user can observe data efficiently and intuitively, and the data display effect is improved.
In the large-screen display process, because external environment light can change, the display effect of the large screen can change, and in order to ensure the display effect, the display parameter of the large screen needs to be manually adjusted to realize the adjustment of the large-screen display effect.
The prior art has the defects that the adjustment process of the large screen depends on manual adjustment, and the large screen is not flexible and convenient, and has complicated steps and low efficiency.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a system for adjusting image color values and a storage medium, which are used for solving the technical problem of low efficiency of adjusting the image color values.
In a first aspect, an embodiment of the present invention provides an image color value adjustment method, which is applied to a display device, and the method includes:
acquiring initial color value information corresponding to an image to be displayed, and displaying the image according to the initial color value information;
receiving environment color value information acquired by environment color value acquisition equipment, wherein the environment color value acquisition equipment is arranged on the display equipment;
receiving display color value information of the image acquired by display color value acquisition equipment, wherein the display color value acquisition equipment is arranged towards the display equipment and is used for shooting the image displayed by the display equipment to determine the display color value information of the image;
and determining the adjusted color value information corresponding to the image according to the environment color value information, the display color value information and the initial color value information, and displaying the image according to the adjusted color value information.
Optionally, the number of the environmental color value collecting devices is four, and the four environmental color value collecting devices are respectively arranged on four vertex angles of the display device;
determining, according to the environment color value information, the display color value information, and the initial color value information, adjusted color value information corresponding to the image, including:
dividing a screen of the display device into four regions, the four regions including: an upper left region, a lower left region, an upper right region, and a lower right region;
and aiming at each region, determining the adjusted color value information corresponding to the region according to the environment color value information acquired by the environment color value acquisition equipment corresponding to the region, the display color value information of the region and the initial color value information of the region.
Optionally, determining the adjusted color value information corresponding to the region according to the environment color value information acquired by the environment color value acquisition device corresponding to the region, the display color value information of the region, and the initial color value information of the region, includes:
acquiring at least one element positioned in the region in the image, wherein each element corresponds to a plurality of pixel points, and the color values of the pixel points corresponding to the element are equal for each element;
and aiming at each element of the area, determining the adjusted color value information corresponding to the element according to the environment color value information corresponding to the element, the display color value information of the element and the initial color value information of the element.
Optionally, determining, according to the environment color value information corresponding to the element, the display color value information of the element, and the initial color value information of the element, the adjusted color value information corresponding to the element includes:
calculating the ratio between the initial color value information corresponding to the pixel point and the display color value information corresponding to the pixel point aiming at each pixel point;
and multiplying the ratio by the environmental color value information corresponding to the pixel point, and determining the adjusted color value information corresponding to the pixel point according to the obtained product.
Optionally, determining the adjusted color value information corresponding to the region according to the environment color value information acquired by the environment color value acquisition device corresponding to the region, the display color value information of the region, and the initial color value information of the region, includes:
determining the light source data proportion of the environment color value acquisition equipment according to the screen width and the screen height of the display equipment and the optimal imaging distance coefficient of the environment color value acquisition equipment corresponding to the region;
determining modified environment color value information according to the environment color value information acquired from the environment color value acquisition equipment and the light source data proportion of the environment color value acquisition equipment;
and determining the adjusted color value information corresponding to the region according to the corrected environment color value information corresponding to the region, the display color value information of the region and the initial color value information of the region.
Optionally, the method further includes:
acquiring display brightness information of the display equipment, which is acquired by display color value acquisition equipment;
and adjusting the brightness of the display equipment according to the display brightness information.
Optionally, the display brightness information includes display brightness information corresponding to each pixel point of the display device;
correspondingly, adjusting the brightness of the display device according to the display brightness information includes:
searching the lowest display brightness information in the display brightness information corresponding to each pixel point, and calculating the difference value between the display brightness information corresponding to each pixel point and the lowest display brightness information;
and adjusting the brightness of the display equipment according to the difference value between the display brightness information corresponding to each pixel point and the lowest display brightness information.
Optionally, adjusting the brightness of the display device according to the difference between the display brightness information corresponding to each pixel point and the lowest display brightness information includes:
for each pixel point, multiplying the difference value corresponding to the pixel point by a preset correction coefficient to obtain a brightness correction value corresponding to the pixel point;
and adjusting the brightness of the display equipment according to the brightness correction corresponding to each pixel point.
In a second aspect, the present invention provides an image color value adjusting apparatus, applied to a display device, the apparatus comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring initial color value information corresponding to an image to be displayed and displaying the image according to the initial color value information;
the first receiving module is used for receiving environment color value information acquired by environment color value acquisition equipment, wherein the environment color value acquisition equipment is arranged on the display equipment;
the second receiving module is used for receiving the display color value information of the image acquired by the display color value acquisition equipment, wherein the display color value acquisition equipment is arranged towards the display equipment and is used for shooting the image displayed by the display equipment to determine the display color value information of the image;
and the determining module is used for determining the adjusted color value information corresponding to the image according to the environment color value information, the display color value information and the initial color value information, and displaying the image according to the adjusted color value information.
Optionally, the number of the environmental color value collecting devices is four, and the four environmental color value collecting devices are respectively arranged on four vertex angles of the display device;
correspondingly, when the adjusted color value information corresponding to the image is determined according to the environment color value information, the display color value information and the initial color value information, the adjusting module is specifically configured to:
dividing a screen of the display device into four regions, the four regions including: an upper left region, a lower left region, an upper right region, and a lower right region;
and aiming at each region, determining the adjusted color value information corresponding to the region according to the environment color value information acquired by the environment color value acquisition equipment corresponding to the region, the display color value information of the region and the initial color value information of the region.
Optionally, when determining the adjusted color value information corresponding to the region according to the environment color value information acquired by the environment color value acquisition device corresponding to the region, the display color value information of the region, and the initial color value information of the region, the adjusting module is specifically configured to:
acquiring at least one element positioned in the region in the image, wherein each element corresponds to a plurality of pixel points, and the color values of the pixel points corresponding to the element are equal for each element;
and aiming at each element of the area, determining the adjusted color value information corresponding to the element according to the environment color value information corresponding to the element, the display color value information of the element and the initial color value information of the element.
Optionally, when the adjusted color value information corresponding to the element is determined according to the environment color value information corresponding to the element, the display color value information of the element, and the initial color value information of the element, the adjusting module is specifically configured to:
calculating the ratio between the initial color value information corresponding to the pixel point and the display color value information corresponding to the pixel point aiming at each pixel point;
and multiplying the ratio by the environmental color value information corresponding to the pixel point, and determining the adjusted color value information corresponding to the pixel point according to the obtained product.
Optionally, when determining the adjusted color value information corresponding to the region according to the environment color value information acquired by the environment color value acquisition device corresponding to the region, the display color value information of the region, and the initial color value information of the region, the adjusting module is specifically configured to:
determining the light source data proportion of the environment color value acquisition equipment according to the screen width and the screen height of the display equipment and the optimal imaging distance coefficient of the environment color value acquisition equipment corresponding to the region;
determining modified environment color value information according to the environment color value information acquired from the environment color value acquisition equipment and the light source data proportion of the environment color value acquisition equipment;
and determining the adjusted color value information corresponding to the region according to the corrected environment color value information corresponding to the region, the display color value information of the region and the initial color value information of the region.
Optionally, the adjusting module is further configured to:
acquiring display brightness information of the display equipment, which is acquired by display color value acquisition equipment;
and adjusting the brightness of the display equipment according to the display brightness information.
Optionally, the display brightness information includes display brightness information corresponding to each pixel point of the display device;
correspondingly, when the brightness of the display device is adjusted according to the display brightness information, the adjusting module is specifically configured to:
searching the lowest display brightness information in the display brightness information corresponding to each pixel point, and calculating the difference value between the display brightness information corresponding to each pixel point and the lowest display brightness information;
and adjusting the brightness of the display equipment according to the difference value between the display brightness information corresponding to each pixel point and the lowest display brightness information.
Optionally, when the brightness of the display device is adjusted according to the difference between the display brightness information corresponding to each pixel point and the lowest display brightness information, the adjusting module is specifically configured to:
for each pixel point, multiplying the difference value corresponding to the pixel point by a preset correction coefficient to obtain a brightness correction value corresponding to the pixel point;
and adjusting the brightness of the display equipment according to the brightness correction corresponding to each pixel point.
In a third aspect, an embodiment of the present invention provides a display device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of image color value adjustment according to any one of the first aspects.
In a fourth aspect, an embodiment of the present invention provides an image color value adjustment system, including: the device comprises an environment color value acquisition device, a display color value acquisition device and the display device of the third aspect;
the environment color value acquisition equipment is used for acquiring environment color value information and sending the environment color value information to the display equipment;
the display color value acquisition equipment is used for acquiring display color value information corresponding to the image displayed by the display equipment and sending the display color value information to the display equipment.
In a fifth aspect, the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the computer-executable instructions are used to implement the image color value adjustment method according to any one of the first aspect.
According to the image color value adjusting method, the device, the equipment, the system and the storage medium provided by the embodiment of the invention, the initial color value information corresponding to the image to be displayed is obtained, the image is displayed according to the initial color value information, the environmental color value information obtained by the environmental color value acquisition equipment is received, the display color value information of the image obtained by the display color value acquisition equipment is received, the adjusted color value information corresponding to the image is determined according to the environmental color value information, the display color value information and the initial color value information, the image is displayed according to the adjusted color value information, the color value of the image can be adjusted quickly according to the environmental light source information and the actual display effect, and the image display effect and the adjustment efficiency are effectively improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present invention;
FIG. 2 is a schematic diagram of an image color value adjustment method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an image color value adjustment method according to an embodiment of the present invention;
fig. 4 is a schematic position diagram of an acquisition device according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating another method for adjusting color values of an image according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an image color value adjusting apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a display device according to an embodiment of the present invention.
With the above figures, certain embodiments of the invention have been illustrated and described in more detail below. The drawings and the description are not intended to limit the scope of the inventive concept in any way, but rather to illustrate it by those skilled in the art with reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The following describes the technical solutions of the present invention and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
The following explains an application scenario provided by an embodiment of the present invention:
the scheme provided by the embodiment of the invention can be applied to a large data visualization screen. Data visualization can enhance the data presentation effect, so that a user can observe data in a more intuitive mode conveniently, and hidden information in the data can be found. Data visualization can display data in the form of charts and the like, and can be particularly applied to the fields of network data visualization, traffic data visualization, text data visualization, data mining visualization, biomedical visualization, social visualization and the like.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present invention. As shown in fig. 1, the embodiment of the present invention may be applied to a large screen, where data may be displayed through a chart, such as a histogram in the chart, and a user may visually observe the data through the large screen. The display condition of the large screen may be affected by light sources such as sunlight and light, so that the color value stored in the background of the image is inconsistent with the color value of the image seen by the user on the large screen.
In order to solve the problems of poor large-screen display effect and low adjustment efficiency, embodiments of the present invention provide an image color value adjustment method, which can obtain initial color value information of an image to be displayed on a large screen, and calculate adjusted color value information according to the initial color value information, environmental color value information, and display color value information of the image displayed on the large screen, so as to display the image according to the adjusted color value information, fully consider the influence of an environmental light source and the color value information actually displayed on the large screen, correct the initial color value information, enhance the relevance between the large-screen display and the actual environmental light source, improve the large-screen display effect, and have a flexible and convenient adjustment process and high efficiency.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The features of the embodiments and examples described below may be combined with each other without conflict between the embodiments.
Fig. 2 is a schematic diagram illustrating an image color value adjustment method according to an embodiment of the present invention. The method in the embodiment of the invention can be applied to display equipment, and the display equipment can be a large screen as shown in fig. 1, and can also be any other type of display equipment, such as a common display screen. The display device in the embodiment of the invention can be used for displaying a chart converted from data and the like, and can also be used for displaying other images, such as a shot picture and the like.
The display device can be connected with the acquisition device, and color value adjustment of the large-screen image is achieved through the assistance of the acquisition device. Specifically, in the embodiment of the present invention, two types of collecting devices are provided, one is an environment color value collecting device for collecting an environment color value, and the other is a display color value collecting device for collecting a color value actually displayed by an image. The environment color value collection equipment and the display color value collection equipment can send the collected environment color value information and the collected display color value information to the display equipment, so that the display equipment can adjust the color value of the image according to the environment color value information and the display color value information, and the display effect of the image is enhanced.
Fig. 3 is a method for adjusting color values of an image according to an embodiment of the present invention. As shown in fig. 3, the method in this embodiment may include:
The initial color value information may be a content color value in the image, that is, a color value corresponding to a color of the image itself. The image may be an RGB image comprising three color channels Red (Red), Green (Green), Blue (Blue). RGB images can be made in a wide variety of colors by varying the colors red, green, and blue and superimposing them on each other. The color values may comprise values of the image corresponding to the three color channels: r value, G value and B value. After the initial color value information is obtained, the image may be displayed according to the initial color value information.
Optionally, the environment color value collection equipment can be a camera, can shoot the surrounding environment, and determines the environment color value information according to the shot environment image. The environment color value information represents the condition of the current environment of the large screen.
Optionally, the display color value collecting equipment can be a camera, and the display color value collecting equipment can be arranged just opposite to the large screen to shoot images displayed on the large screen. According to the shot image, display color value information can be determined, and the display color value information represents the actual display condition of the image to be displayed.
And step 304, determining the adjusted color value information corresponding to the image according to the environment color value information, the display color value information and the initial color value information, and displaying the image according to the adjusted color value information.
According to the environment color value information, the display color value information, and the initial color value information, the specific implementation manner of determining the adjusted color value information corresponding to the image may be set according to actual needs, which is not limited in this embodiment.
In an optional embodiment, a functional relationship between the environment color value information, the display color value information, the initial color value information, and the adjusted color value information may be set through big data analysis, and the adjusted color value information corresponding to the image may be determined according to the current environment color value information, the display color value information, and the initial color value information in an actual use process through the determined functional relationship.
In another optional embodiment, a neural network model for color value adjustment may be established, the neural network model is trained through sample data, and in an actual use process, the adjusted color value information may be calculated according to the neural network model obtained through training. In addition, the sample data can be updated according to the color value information which is actually collected, so that the neural network model can be continuously optimized.
According to the image color value adjusting method provided by the embodiment, the initial color value information corresponding to the image to be displayed is acquired, the image is displayed according to the initial color value information, the environment color value information acquired by the environment color value acquisition equipment is received, the display color value information of the image acquired by the display color value acquisition equipment is received, the adjusted color value information corresponding to the image is determined according to the environment color value information, the display color value information and the initial color value information, the image is displayed according to the adjusted color value information, the color value of the image can be adjusted quickly according to the environment light source information and the actual display effect, and the image display effect and the adjustment efficiency are effectively improved.
On the basis of the technical scheme provided by the embodiment, optionally, the environment color value acquisition equipment can be provided with a plurality of color value acquisition equipment, and color value information of the ambient environment light source is acquired through the plurality of environment color value acquisition equipment, so that the precision of image processing is improved.
Optionally, the number of the environment color value collecting devices may be four, and the four environment color value collecting devices are respectively arranged on four vertex angles of the display device.
Fig. 4 is a schematic position diagram of an acquisition device according to an embodiment of the present invention. As shown in fig. 4, the rectangular frame represents a display device, and the four top corners of the display device, such as the positions of the dotted circles at the four corners in the figure, may be respectively provided with an environment color value collecting device.
The display color value collecting equipment can be arranged on a central vertical line of the display equipment, namely, a connecting line between the display color value collecting equipment and a central point (namely, a position shown by a central dotted line circle in a graph) of the display equipment can be vertical to a plane where a screen of the display equipment is located, so that the display color value collecting equipment can collect a picture displayed by the screen of the display equipment.
Optionally, the distance between the display color value collection device and the display device is set to be R, and the distance satisfies a formula tan (θ/2) ═ sw/2)/R1, where θ is a viewing angle of the display color value collection device, sw is a screen width of the display device, and R1 is an optimal imaging distance coefficient of the display color value collection device, and the position of the display color value collection device can be determined by the above formula, so that the color value collection effect is improved.
The shooting direction of the environment color value collection device may be opposite to the shooting direction of the display color value collection device. Specifically, the display color value collection device may shoot toward the display device, and the environment color value collection device may shoot away from the display device to acquire information of the ambient light source.
Under the condition that display device normally shows, gather to the image of same scene, same moment through above five collection equipment, obtain image characteristic data, according to the environment color value collection equipment that four apex angles of display device correspond, can with display device's screen divides into four regions, four regions include: upper left area, lower left area, upper right area, and lower right area.
Wherein the image characteristic data of each region may include: GetAttr () { ((RGB (r, g, b), RGBe (r, g, b)), camatr) … }, where RGB (r, g, b) is display color value information of the region acquired by the display color value acquisition device, RGBe (r, g, b) is environment color value information of the region acquired by the environment color value acquisition device, and camatr is an attribute set of five acquisition devices. The adjustment of the image color values can be realized through the image characteristic data.
Fig. 5 is a schematic flowchart of another method for adjusting color values of an image according to an embodiment of the present invention. The embodiment provides a specific flow for adjusting the color values of the graphics on the basis of the embodiment. As shown in fig. 5, the method in this embodiment may include:
In this embodiment, the specific implementation principle and process of step 501 to step 502 may refer to the foregoing embodiments, and are not described herein again.
And step 503, preprocessing and storing the data according to the initial color value information, the environment color value information and the display color value information.
Optionally, the preprocessing and storing may specifically include the following operations:
setting the identification sets of the acquisition equipment at 4 corners of the large screen and 1 acquisition equipment just opposite to the large screen, wherein the identification sets Cam of 5 acquisition equipmentattrThe method comprises the following steps of { (CamID 1, …, CamID n) }, wherein n ═ 5, corresponds to five acquisition devices respectively, and CamID is a unique identification subject number of the acquisition devices.
Attribute set Cam corresponding to environment color value acquisition equipmentsattrThe environment color value acquisition device comprises { EAttr 1, …, EAttr m }, wherein m is 4, and corresponds to four environment color value acquisition devices respectively, and an attribute set EAttr corresponding to each environment color value acquisition device is { environment color value acquisition device position, environment color value information, and imaging optimal distance coefficient of the environment color value acquisition device }.
Attribute set Cam corresponding to display color value acquisition equipmentmattrThe color value acquisition device comprises { MAttr 1, …, MAttr m }, wherein m is 4, corresponds to four regions of upper left, lower left, upper right and lower right, and corresponds to four environment color value acquisition devices one by one, so that subsequent calculation is facilitated. And (3) MAttr of each region is { the position of the color value display acquisition equipment, color value display information and the optimal imaging distance coefficient of the color value display acquisition equipment }.
Initial color value information is recorded and stored, and the initial color value information of the images of the four areas when the display device normally displays is defined as RGB (r, g, b) i, wherein i is a positive integer and is more than or equal to 1 and less than or equal to 4, namely the initial color value information comprises RGB (r, g, b)1, … and RGB (r, g, b)4, wherein r, g and b represent three color channels.
Setting the attribute set of the initial color value information as follows: srpos { (srpos 1 ═ SAttr 1), …, (srpos n ═ SAttr n) }, where SAttr i ═ the positions of the display color value collection device and the ambient color value collection device, the initial color value information, the optimal viewing angle coefficient of the display device }.
Through the preprocessing and storing operations, initial color value information, environment color value information and display color value information can be stored, and other information for assisting in realizing color value adjustment, such as an optimal imaging distance coefficient of the acquisition device, a position of the acquisition device, an optimal viewing angle coefficient of the display device, and the like, can also be stored.
And step 504, determining the adjusted color value information corresponding to the image according to the data obtained after the preprocessing and storing operation.
The data obtained after the preprocessing and storing operations include environment color value information, display color value information and initial color value information, so as to determine the adjusted color value information corresponding to the image according to the environment color value information, the display color value information and the initial color value information.
As can be seen from the foregoing, determining the adjusted color value information corresponding to the image according to the environment color value information, the display color value information, and the initial color value information may include: dividing a screen of the display device into four regions, the four regions including: an upper left region, a lower left region, an upper right region, and a lower right region; and aiming at each region, determining the adjusted color value information corresponding to the region according to the environment color value information acquired by the environment color value acquisition equipment corresponding to the region, the display color value information of the region and the initial color value information of the region.
For example, for the upper left region, the environmental color value information corresponding to the environmental color value collecting device at the upper left corner and the display color value information of the image of the upper left region collected by the display color value collecting device under the action of the environmental light source may be selected, and the initial color value information of the image of the upper left region is adjusted to obtain the adjusted color value information corresponding to the upper left region.
Optionally, determining the adjusted color value information corresponding to the region according to the environment color value information acquired by the environment color value acquisition device corresponding to the region, the display color value information of the region, and the initial color value information of the region, may include: acquiring at least one element positioned in the region in the image, wherein each element corresponds to a plurality of pixel points, and the color values of the pixel points corresponding to the element are equal for each element; and aiming at each element of the area, determining the adjusted color value information corresponding to the element according to the environment color value information corresponding to the element, the display color value information of the element and the initial color value information of the element.
For example, by combining the above sets, the set Attr of color value attributes of the image can be obtained(a,k)=GetColorAtrr(CamID,Camattr(a,k),Cammattr(a,k),Scrpos(a,k)) And k is a value in 1, 2, 3, and 4, and represents any one of the four regions, and a is an element in the region, where the element may include a plurality of pixels. For each element, the color values of a plurality of pixel points corresponding to the element are all equal, that is, the element refers to a part of content of the same color in the image, and if the element may be a cylinder in the histogram, the whole cylinder may present a color.
GetColorAtrrRepresenting acquisition of CamID,Camattr(a,k),Cammattr(a,k),Scrpos(a,k)Store these contents to the set Attr(a,k)And (c) removing the residue.
The adjusted color value information is calculated using the function: sk=CalColor(Attr(a,k),Attr(b,k),…,Attr(m,k)) Where a, b, …, m represent the individual elements in region k.
The specific implementation manner of the Calcolor can be set according to actual needs. In practical application, the corresponding relation between each parameter in the set and the adjusted color value information can be determined through big data and multiple times of experimental analysis. Optionally, a correspondence table between each parameter in the set and the adjusted color value information may be set, so as to determine the adjusted color value information according to the correspondence table.
In an optional implementation manner, the initial color value information and the adjusted color value information may be in a positive correlation relationship, for example, the larger the color value information of a certain pixel in the initial color value information is, the larger the corresponding adjusted color value information is. The display color value information and the adjusted color value information may be in a negative correlation relationship, and the larger the display color value information is, the smaller the color value information of the image should be for the same initial color value information, without considering other factors. The environmental color value information and the adjusted color value information can be in a positive correlation relationship, and under the condition that other factors are not considered, the larger the environmental color value information is, the larger the color value information of the image can be adjusted to counteract the influence brought by the environmental light source.
Optionally, determining the adjusted color value information corresponding to the element according to the environment color value information corresponding to the element, the display color value information of the element, and the initial color value information of the element may include: calculating the ratio between the initial color value information corresponding to the pixel point and the display color value information corresponding to the pixel point aiming at each pixel point; and multiplying the ratio by the environmental color value information corresponding to the pixel point, and determining the adjusted color value information corresponding to the pixel point according to the obtained product.
Optionally, the adjusted color value information may be the product, or may be a result of multiplying the product by a coefficient.
In addition, the adjustment of the color value information may also be realized by other manners, for example, the adjusted color value information may be calculated by a neural network model, and the like.
And 505, performing brightness equalization on the display equipment.
In this embodiment, the brightness equalization is an optional step, and the image color value of the display device may be directly adjusted according to the adjusted color value information after the adjusted color value information is acquired. Or after the adjusted color value information is acquired, further performing brightness equalization on the display device.
Optionally, the brightness equalization may include: acquiring display brightness information of the display equipment, which is acquired by display color value acquisition equipment; and adjusting the brightness of the display equipment according to the display brightness information.
The display brightness information may be brightness information corresponding to an image displayed by the display device, which is acquired by the display color value acquisition device.
The specific representation mode of the display brightness information may be various, for example, the whole screen of the display device may correspond to one display brightness information, and the brightness of the display device may be adjusted by one display brightness information.
Or, the display brightness information may include display brightness information corresponding to each pixel point of the display device, the display brightness information corresponding to each pixel point may be different, and the display color value collection device may be provided with a brightness information collection module capable of collecting the display brightness information corresponding to each pixel point.
Specifically, the display color value collecting device may collect display color value information and display luminance information corresponding to each pixel point, where the display color value information includes three specific numerical values corresponding to three channels, and the display luminance information includes one specific numerical value, so that information collected by one pixel point may include at least four specific numerical values.
Correspondingly, adjusting the brightness of the display device according to the display brightness information may include: searching the lowest display brightness information in the display brightness information corresponding to each pixel point, and calculating the difference value between the display brightness information corresponding to each pixel point and the lowest display brightness information; and adjusting the brightness of the display equipment according to the difference value between the display brightness information corresponding to each pixel point and the lowest display brightness information.
Optionally, adjusting the brightness of the display device according to the difference between the display brightness information corresponding to each pixel point and the lowest display brightness information may include: for each pixel point, multiplying the difference value corresponding to the pixel point by a preset correction coefficient to obtain a brightness correction value corresponding to the pixel point; and adjusting the brightness of the display equipment according to the brightness correction corresponding to each pixel point.
Specifically, the acquired display brightness information of each pixel point may be recorded as Lum (i, j) pos, where i and j may be x and y coordinates of the pixel point, respectively, and the minimum display brightness information min { Lum (i, j) pos } is searched in the display brightness information corresponding to each pixel point.
And subtracting the lowest display brightness information min { Lum (i, j) pos } from the display brightness information Lum (i, j) pos of each pixel point to obtain a difference value delta Lum (i, j) which is used for representing the unbalance of the image display brightness.
And multiplying the unbalance amount delta Lum (i, j) by a preset correction coefficient mu to obtain the brightness correction amount delta Lum (i, j) pos corresponding to the pixel point. And the error of the acquisition equipment can be corrected by multiplying the preset correction coefficient, so that the brightness balance effect is improved.
Specifically, the display device may adjust the initial brightness of each pixel to a brightness value obtained by subtracting the corresponding brightness correction amount from the initial brightness, or to a brightness value obtained by adding a coefficient after subtracting the brightness correction amount from the initial brightness. The overall display effect of the display device can be better through the brightness balance.
And step 506, displaying the image according to the adjusted color value information.
In this embodiment, the displaying of the image according to the adjusted color value information may be implemented by modifying a Cascading Style Sheets (CSS) of the large-screen web page. Optionally, the elements in each region of the page to be displayed by the display device may be acquired, and specifically, the elements may be implemented by Element GetElement (Pos, Element id), where Element is an Element in the page, Pos is a position of the Element, and Element id is an identifier of the Element, and the elements in the page may be acquired through the position and the identifier.
After each element of the page is found according to the position and the identification, the page can be searched by SetColor (C:)&Element, wherein GetColorPos () may include the set of image color value attributes GetColorAtrrIn the case of considering luminance information, GetColorPos () { (GetColor)AtrrΔ Lum (i, j) pos) }, the color value information and the luminance information of the display device are adjusted by the graphic color value attribute set and the luminance correction amount.
In practical application, display color value collection equipment and environment color value collection equipment can gather display device's display color value information and environment color value information respectively. It can be understood that the information collected by the collecting device can be embodied as an image, the image comprises a plurality of pixel points, and the pixel points collected by the collecting device can be corresponding to the pixel points in the display device.
For example, the display color value acquisition device shoots a screen of the display device, an area where the screen is located can be extracted from the shot picture, and pixel points in the area and pixel points in the screen of the display device are in one-to-one correspondence. For another example, the environmental color value collecting device arranged at the upper left corner of the display device may shoot the surrounding environment, extract the corresponding region of the upper left region of the screen in the shot picture, and implement the one-to-one correspondence of the pixel points. The corresponding operation of the pixel points of the acquisition equipment and the display equipment can be finished by manual debugging, or can be automatically matched according to an algorithm.
In practical application, the adjustment of the color value information can be realized based on the pixel points. For example, if a pixel in the image is set to a certain color, the corresponding color value includes values corresponding to three channel components, which are: the R value is a1, the G value is a2, and the B value is a3, then the color of the pixel point can be displayed through a1, a2, a 3. Considering the influence of the environmental light and other factors, the initial color value information a1, a2 and a3 can be adjusted through the environmental color value information and the display color value information, and if the color values corresponding to the pixel point after adjustment are b1, b2 and b3, the colors of the pixel point can be displayed through the b1, b2 and b3, so that the display effect of the large screen is improved.
According to the image color value adjusting method provided by the embodiment, the screen of the display device can be divided into a plurality of areas, the environment color value collecting devices are respectively and correspondingly arranged, the collecting precision of the environment color value information is improved, meanwhile, the display brightness information of the display device can be obtained, the brightness balance is carried out on the display device according to the display brightness information, and the display effect of the display device and the visualization effect of data are further improved.
On the basis of the technical scheme provided by the above embodiment, optionally, the light source data proportions of the ambient color value acquisition devices at the four vertex angles of the display device may also be set. Wherein, the light source data proportion G of any environment color value acquisition equipmentλAnd swsh/4R 2, wherein sh is the screen height of the display device, sw is the screen width of the display device, and R2 is the optimal distance coefficient for imaging of the ambient color value acquisition device.
Accordingly, the image characteristic data of each region may include: GetAttr () { ((RGB (r, G, b), RGBe (r, G, b))) GλCamatr) …, where RGB (r, G, b) is display color value information of the region collected by the display color value collection device, RGBe (r, G, b) is environment color value information of the region collected by the environment color value collection device, RGBe (r, G, b)) × GλAccording to light source data proportion GλAnd the Camattr is an attribute set of five acquisition devices according to the obtained corrected environment color value information. The specific implementation scheme for adjusting the color value through the corrected environment color value information is similar to the specific implementation scheme for adjusting the color value directly through the uncorrected environment color value information, and is not described herein again.
The environment color value information of gathering is revised to the best distance coefficient of formation of image through environment color value collection equipment, can distinguish the environment color value collection equipment of difference and to the collection ability of environment, further improves the effect of color value adjustment.
Fig. 6 is a schematic structural diagram of an image color value adjusting apparatus according to an embodiment of the present invention. As shown in fig. 6, the image color value adjusting apparatus provided in this embodiment may include:
the acquiring module 601 is configured to acquire initial color value information corresponding to an image to be displayed, and display the image according to the initial color value information;
a first receiving module 602, configured to receive environment color value information acquired by an environment color value acquisition device, where the environment color value acquisition device is disposed on the display device;
a second receiving module 603, configured to receive display color value information of the image, where the display color value information is acquired by a display color value acquisition device, and the display color value acquisition device is arranged towards the display device, and is configured to shoot the image displayed by the display device to determine the display color value information of the image;
a determining module 604, configured to determine, according to the environment color value information, the display color value information, and the initial color value information, adjusted color value information corresponding to the image, and display the image according to the adjusted color value information.
Optionally, the number of the environmental color value collecting devices is four, and the four environmental color value collecting devices are respectively arranged on four vertex angles of the display device;
when determining the adjusted color value information corresponding to the image according to the environment color value information, the display color value information, and the initial color value information, the adjusting module 604 is specifically configured to:
dividing a screen of the display device into four regions, the four regions including: an upper left region, a lower left region, an upper right region, and a lower right region;
and aiming at each region, determining the adjusted color value information corresponding to the region according to the environment color value information acquired by the environment color value acquisition equipment corresponding to the region, the display color value information of the region and the initial color value information of the region.
Optionally, when determining the adjusted color value information corresponding to the region according to the environment color value information acquired by the environment color value acquisition device corresponding to the region, the display color value information of the region, and the initial color value information of the region, the adjusting module 604 is specifically configured to:
acquiring at least one element positioned in the region in the image, wherein each element corresponds to a plurality of pixel points, and the color values of the pixel points corresponding to the element are equal for each element;
and aiming at each element of the area, determining the adjusted color value information corresponding to the element according to the environment color value information corresponding to the element, the display color value information of the element and the initial color value information of the element.
Optionally, when determining the adjusted color value information corresponding to the element according to the environment color value information corresponding to the element, the display color value information of the element, and the initial color value information of the element, the adjusting module 604 is specifically configured to:
calculating the ratio between the initial color value information corresponding to the pixel point and the display color value information corresponding to the pixel point aiming at each pixel point;
and multiplying the ratio by the environmental color value information corresponding to the pixel point, and determining the adjusted color value information corresponding to the pixel point according to the obtained product.
Optionally, when determining the adjusted color value information corresponding to the region according to the environment color value information acquired by the environment color value acquisition device corresponding to the region, the display color value information of the region, and the initial color value information of the region, the adjusting module 604 is specifically configured to:
determining the light source data proportion of the environment color value acquisition equipment according to the screen width and the screen height of the display equipment and the optimal imaging distance coefficient of the environment color value acquisition equipment corresponding to the region;
determining modified environment color value information according to the environment color value information acquired from the environment color value acquisition equipment and the light source data proportion of the environment color value acquisition equipment;
and determining the adjusted color value information corresponding to the region according to the corrected environment color value information corresponding to the region, the display color value information of the region and the initial color value information of the region.
Optionally, the adjusting module 604 is further configured to:
acquiring display brightness information of the display equipment, which is acquired by display color value acquisition equipment;
and adjusting the brightness of the display equipment according to the display brightness information.
Optionally, the display brightness information includes display brightness information corresponding to each pixel point of the display device;
correspondingly, when the brightness of the display device is adjusted according to the display brightness information, the adjusting module 604 is specifically configured to:
searching the lowest display brightness information in the display brightness information corresponding to each pixel point, and calculating the difference value between the display brightness information corresponding to each pixel point and the lowest display brightness information;
and adjusting the brightness of the display equipment according to the difference value between the display brightness information corresponding to each pixel point and the lowest display brightness information.
Optionally, when the brightness of the display device is adjusted according to the difference between the display brightness information corresponding to each pixel point and the lowest display brightness information, the adjusting module 604 is specifically configured to:
for each pixel point, multiplying the difference value corresponding to the pixel point by a preset correction coefficient to obtain a brightness correction value corresponding to the pixel point;
and adjusting the brightness of the display equipment according to the brightness correction corresponding to each pixel point.
The image color value adjusting apparatus provided in this embodiment may implement the technical solutions of the method embodiments shown in fig. 1 to fig. 5, and the implementation principles and technical effects thereof are similar, and are not described herein again.
Fig. 7 is a schematic structural diagram of a display device according to an embodiment of the present invention. As shown in fig. 7, the display device provided in this embodiment may include: at least one processor 71 and memory 72;
the memory 72 stores computer-executable instructions;
the at least one processor 71 executes the computer-executable instructions stored in the memory 72 to cause the at least one processor 71 to perform the image color value adjustment method of any of the embodiments described above.
Wherein the memory 72 and the processor 71 may be connected by a bus 73.
It will be appreciated that the display device may also include display means such as a display screen or the like.
For specific implementation principles and effects of the display device provided in this embodiment, reference may be made to relevant descriptions and effects corresponding to the embodiments shown in fig. 1 to fig. 5, which are not described herein in detail.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method for adjusting color values of an image according to any one of the embodiments shown in fig. 1 to fig. 5 of the present invention.
The computer readable storage medium may be, among others, ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010625420.4A CN113885823A (en) | 2020-07-02 | 2020-07-02 | Image color value adjustment method, device, device, system and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010625420.4A CN113885823A (en) | 2020-07-02 | 2020-07-02 | Image color value adjustment method, device, device, system and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN113885823A true CN113885823A (en) | 2022-01-04 |
Family
ID=79012248
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010625420.4A Withdrawn CN113885823A (en) | 2020-07-02 | 2020-07-02 | Image color value adjustment method, device, device, system and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113885823A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090231463A1 (en) * | 2008-03-14 | 2009-09-17 | Asia Optical Co., Inc. | Calculation method for the correction of white balance |
| CN102479499A (en) * | 2010-11-30 | 2012-05-30 | 英业达股份有限公司 | Electronic device and method for automatically adjusting display color temperature |
| CN105760868A (en) * | 2016-02-03 | 2016-07-13 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for adjusting target selection tendency in images |
| CN108965835A (en) * | 2018-08-23 | 2018-12-07 | Oppo广东移动通信有限公司 | A kind of image processing method, image processing apparatus and terminal device |
| CN109618146A (en) * | 2018-12-05 | 2019-04-12 | 维沃移动通信有限公司 | An image processing method and terminal device |
| CN110808002A (en) * | 2019-11-28 | 2020-02-18 | 北京迈格威科技有限公司 | Screen display compensation method and device and electronic equipment |
-
2020
- 2020-07-02 CN CN202010625420.4A patent/CN113885823A/en not_active Withdrawn
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090231463A1 (en) * | 2008-03-14 | 2009-09-17 | Asia Optical Co., Inc. | Calculation method for the correction of white balance |
| CN102479499A (en) * | 2010-11-30 | 2012-05-30 | 英业达股份有限公司 | Electronic device and method for automatically adjusting display color temperature |
| CN105760868A (en) * | 2016-02-03 | 2016-07-13 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for adjusting target selection tendency in images |
| CN108965835A (en) * | 2018-08-23 | 2018-12-07 | Oppo广东移动通信有限公司 | A kind of image processing method, image processing apparatus and terminal device |
| CN109618146A (en) * | 2018-12-05 | 2019-04-12 | 维沃移动通信有限公司 | An image processing method and terminal device |
| CN110808002A (en) * | 2019-11-28 | 2020-02-18 | 北京迈格威科技有限公司 | Screen display compensation method and device and electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107666606B (en) | Method and device for acquiring binocular panoramic image | |
| CN107516319B (en) | High-precision simple interactive matting method, storage device and terminal | |
| CN106060493A (en) | Multi-source projection seamless edge stitching method and system | |
| CN107071376B (en) | A kind of projection tiled display bearing calibration and device | |
| CN101425179B (en) | A method and device for re-illuminating a human face image | |
| US20200412942A1 (en) | Photographing Method and Device, and Related Electronic Apparatus | |
| WO2020215861A1 (en) | Picture display method, picture display apparatus, electronic device and storage medium | |
| CN103714525A (en) | Integration band adjusting method for image integration processing, adjusting device and integration band adjusting system for image integration processing | |
| CN113724175A (en) | Image processing method and device based on artificial intelligence and electronic equipment | |
| CN108416700A (en) | An interior decoration design system based on AR virtual reality technology | |
| CN111145135A (en) | Image descrambling processing method, device, equipment and storage medium | |
| CN114845158B (en) | Video cover generation method, video release method and related equipment | |
| CN110136166A (en) | A kind of automatic tracking method of multichannel picture | |
| CN104853172B (en) | A kind of information processing method and a kind of electronic equipment | |
| CN107358577A (en) | A kind of quick joining method of cubic panorama | |
| CN113709949B (en) | Lighting device control method and device, electronic device and storage medium | |
| WO2021128593A1 (en) | Facial image processing method, apparatus, and system | |
| WO2025035931A1 (en) | Picture projection method and apparatus, device, storage medium and program product | |
| CN114860184A (en) | Processing device, system and method for blackboard writing display | |
| CN114331835A (en) | Panoramic image splicing method and device based on optimal mapping matrix | |
| CN105654424B (en) | Adjustment ratio display methods, display system, display device and the terminal of image | |
| CN110751668B (en) | Image processing method, device, terminal, electronic equipment and readable storage medium | |
| CN114078104B (en) | A method for automatically splicing and fusing concrete cracks | |
| WO2025118999A1 (en) | Display difference correction method and apparatus, and display apparatus, device and medium | |
| CN107436675A (en) | A kind of visual interactive method, system and equipment |
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 | ||
| WW01 | Invention patent application withdrawn after publication | ||
| WW01 | Invention patent application withdrawn after publication |
Application publication date: 20220104 |