CN114527950A - Picture color adjusting method, device, equipment and storage medium - Google Patents

Picture color adjusting method, device, equipment and storage medium Download PDF

Info

Publication number
CN114527950A
CN114527950A CN202210175279.1A CN202210175279A CN114527950A CN 114527950 A CN114527950 A CN 114527950A CN 202210175279 A CN202210175279 A CN 202210175279A CN 114527950 A CN114527950 A CN 114527950A
Authority
CN
China
Prior art keywords
color
target
determining
current picture
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210175279.1A
Other languages
Chinese (zh)
Inventor
吴晓霞
付谨学
陈洪波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202210175279.1A priority Critical patent/CN114527950A/en
Publication of CN114527950A publication Critical patent/CN114527950A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Abstract

The invention belongs to the technical field of display terminals and discloses a picture color adjusting method, device, equipment and storage medium. The method comprises the following steps: when a user starts visual assistance, acquiring the color proportion of a target color in a current picture; when the color proportion is larger than a preset proportion, determining the pixel distance between a first target color area and a second target color area in the current picture; determining a target coefficient according to the pixel distance; and adjusting the colors of the areas except the preset color area in the current picture according to the target coefficient. Through the method, the color proportion of the target color in the current picture is determined, when the color proportion is larger than the preset proportion, it is indicated that the colors which can be distinguished by the color vision disorder user can be mixed into the similar colors by the visual assistance, and the colors except the preset color area are optimized, so that the problem that the color vision disorder user cannot distinguish the colors which can be distinguished originally and the preset color is color cast is avoided.

Description

Picture color adjusting method, device, equipment and storage medium
Technical Field
The present invention relates to the field of display terminal technologies, and in particular, to a method, an apparatus, a device, and a storage medium for adjusting a picture color.
Background
At present, television manufacturers, computers, games and various APPs develop a color vision assisting function for color blindness and color weakness crowds aiming at color vision disorder crowds, and help the color blindness and color weakness crowds to distinguish originally indistinguishable pictures more easily.
The visual assistance method comprises the following steps:
after an RGB original image is taken, a color blindness and color weakness simulation matrix is utilized to calculate a picture R ' G ' B ' seen by dyschromatopsia, and the subtraction of the picture R ' G ' B ' and the picture R ' G ' B ' is the color which cannot be seen by a dyschromatopsia user. And performing color conversion on the RGB original image by using a matrix, mapping information which cannot be seen by color vision disorder into a color gamut (color channel) which can be seen by the color vision disorder, and finally superposing the mapped information onto the RGB original image to obtain an optimized picture. When users with color vision disorder watch such pictures, the users can distinguish the color information which cannot be seen originally.
However, the above method has the following problems: for example, for red blind, blue is superimposed on red and becomes purple because red and green are not clear, so that red and green can be distinguished, but when red and blue/purple exist in a picture at the same time, the 'color vision assistance' is turned on, so that colors such as red, blue/purple and the like cannot be distinguished. In addition, due to the fact that the skin colors displayed by the display are various and are reddish, greenish and the like, the skin colors can be affected badly after the vision auxiliary matrix, so that the skin colors are seriously color-shifted and are not friendly to people with color blindness and weak colors.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a picture color adjusting method, a picture color adjusting device, picture color adjusting equipment and a picture color adjusting storage medium, and aims to solve the technical problems that in the prior art, a user with color vision disorder cannot distinguish a color with a color vision auxiliary function and preset color cast can be avoided.
In order to achieve the above object, the present invention provides a picture color adjusting method, comprising the steps of:
when a user starts visual assistance, acquiring the color proportion of a target color in a current picture;
when the color proportion is larger than a preset proportion, determining the pixel distance between a first target color area and a second target color area in the current picture;
determining a target coefficient according to the pixel distance;
and adjusting the colors of the areas except the preset color area in the current picture according to the target coefficient.
Optionally, before the obtaining the color ratio of the target color in the current picture, the method further includes:
acquiring color information of each pixel point in the current picture;
determining the color type of each pixel point according to the color information;
the obtaining of the color proportion of the target color in the current picture includes:
and determining the color proportion of the target color in the current picture according to the color type.
Optionally, the determining a color ratio of a target color in the current picture according to the color type includes:
acquiring the total number of pixel points of the current picture;
determining a target pixel point corresponding to the target color type according to the color type of each pixel point;
and determining the color proportion of the target color according to the number of the target pixel points and the total number of the pixel points.
Optionally, the determining a pixel distance between a first target color region and a second target color region in the current picture includes:
determining a first target color area and a second target color area in the current picture according to the color type of each pixel point in the current picture;
determining a first position according to the coordinate information of each pixel point in the first target color region;
determining a second position according to the coordinate information of each pixel point in the second target color region;
determining a pixel distance between the first target color region and the second target color region according to the first position and the second position.
Optionally, the adjusting the color of the region other than the preset color region in the current frame according to the target coefficient includes:
determining a color-blind matrix based on the selected color-blind category of the user;
and adjusting the colors of the areas except the preset color area in the current picture according to the target coefficient and the color blindness matrix.
Optionally, the adjusting the color of the region other than the preset color region in the current picture according to the target coefficient and the color blindness matrix includes:
determining a preset color area in the current picture according to the color type of each pixel in the current picture;
determining a region to be adjusted in the current picture according to the preset color region;
and adjusting the color in the area to be adjusted according to the target coefficient and the color blindness matrix.
Optionally, the preset color region includes a skin color region.
In addition, to achieve the above object, the present invention further provides a picture color adjusting apparatus, including:
the ratio acquisition module is used for acquiring the color ratio of the target color in the current picture when the user starts the visual assistance;
the distance determining module is used for determining the pixel distance between a first target color area and a second target color area in the current picture when the color proportion is larger than a preset proportion;
the coefficient determining module is used for determining a target coefficient according to the pixel distance;
and the color adjusting module is used for adjusting the colors of the areas except the preset color area in the current picture according to the target coefficient.
Further, to achieve the above object, the present invention also provides a picture color adjusting apparatus including: a memory, a processor and a picture color adjustment program stored on the memory and executable on the processor, the picture color adjustment program being configured to implement the steps of the picture color adjustment method as described above.
Furthermore, to achieve the above object, the present invention further provides a storage medium having a picture color adjustment program stored thereon, which when executed by a processor implements the steps of the picture color adjustment method as described above.
According to the invention, when a user starts visual assistance, the color proportion of the target color in the current picture is obtained; when the color proportion is larger than a preset proportion, determining the pixel distance between a first target color area and a second target color area in the current picture; determining a target coefficient according to the pixel distance; and adjusting the colors of the areas except the preset color area in the current picture according to the target coefficient. Through the method, the color proportion of the target color in the current picture is determined, when the color proportion is larger than the preset proportion, it is indicated that the colors which can be distinguished by the color vision disorder user can be mixed into the similar colors by the visual assistance, and the colors except the preset color area are optimized, so that the problem that the color vision disorder user cannot distinguish the colors which can be distinguished originally and the preset color is color cast is avoided.
Drawings
FIG. 1 is a schematic diagram of a picture color adjustment device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for adjusting image color according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of a color area of an embodiment of a method for adjusting a color of a picture according to the invention;
FIG. 4 is a block diagram of a first embodiment of a device for adjusting image color according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a picture color adjusting apparatus in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the picture color adjustment apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
It will be appreciated by those skilled in the art that the arrangement shown in figure 1 does not constitute a limitation of the picture color adjusting apparatus and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a screen color adjustment program.
In the picture color adjustment apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the picture color adjustment apparatus of the present invention may be provided in a picture color adjustment apparatus that calls a picture color adjustment program stored in the memory 1005 through the processor 1001 and executes a picture color adjustment method provided by an embodiment of the present invention.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a method for adjusting a color of a picture according to the present invention.
In this embodiment, the method for adjusting the color of the picture includes the following steps:
step S10: and when the user starts the visual assistance, acquiring the color proportion of the target color in the current picture.
It should be understood that the main body of the method of the embodiment may be a picture color adjusting device with data processing and program running functions, for example, a television, or other display devices capable of implementing the same or similar functions, and the embodiment is not limited thereto.
It is understood that the visual assistance mode is a mode specifically set for a user with color blindness and color weakness, and the user selects the corresponding visual assistance mode after the visual assistance mode is turned on, for example: when the user is red blind, then the user may select the red blind visual assistance mode. The above is merely an example, and the present embodiment is not limited thereto.
In specific implementation, based on different visual auxiliary modes, corresponding target colors are different, when the visual auxiliary mode is a red blind visual auxiliary mode, the target colors include red, blue/purple, when the red and blue/purple exist in the current picture at the same time, it is indicated that the visual auxiliary mode can cause the user to be unable to distinguish the colors which can be distinguished originally, so that the impression experience is reduced, when the visual auxiliary mode does not exist at the same time, the viewing experience of the user is not influenced, and the picture does not need to be adjusted. Similarly, when the visual assistance modes are different, the corresponding target colors are also different, and this embodiment does not limit this.
Further, in order to determine the color ratio of the target color in the current picture more accurately, before the obtaining the color ratio of the target color in the current picture, the method further includes: acquiring color information of each pixel point in the current picture; determining the color type of each pixel point according to the color information; the obtaining of the color proportion of the target color in the current picture includes: and determining the color proportion of the target color in the current picture according to the color type.
Note that, since similar colors in a screen are not simply the same RGB value, for example: # f47983 is pink, # db596b is red cherry, and # c93756 is a different color, but both are red, and the same type of color is not recognizable to red blind users, so it is necessary to identify the same type of color as the same color.
Since the colors in the current picture are all reflected in each pixel, color information of each pixel in the current picture is obtained first, the color information includes saturation and hue value, the hue value is used as abscissa, the saturation is used as ordinate to arrange the colors of each pixel in a coordinate system, and then the arranged colors are divided into a plurality of areas, for example, 36 × 9 areas, as shown in fig. 3, the color areas in 1 are all skin color types, the color areas in 2 are all red types, and the color areas in 3 are all blue/purple types. And after the color type to which each color belongs is determined, determining the color type of the pixel point according to the color on the pixel point.
Further, the determining the color proportion of the target color in the current picture according to the color type includes: acquiring the total number of pixel points of the current picture; determining a target pixel point corresponding to the target color type according to the color type of each pixel point; and determining the color proportion of the target color according to the number of the target pixel points and the total number of the pixel points.
In a specific implementation, since the carriers for displaying colors in the display are pixel points, the color proportion can be determined according to the pixel points. The target color also has a corresponding color type, for example, if the color type corresponding to the target color is a red type, then pixel points of which the colors are the same as the red type are searched in the current picture and are used as target pixel points, then the number of the target pixel points is counted, and the number of the target pixel points is divided by the total number of the pixel points in the current picture to obtain the color proportion of the target color. For example, the total number of pixels in the current frame is 1920 × 1080, and the number of target pixels is 100000, so that the color ratio of the target color is 100000/(1920 × 1080) × 100% — 4.8%.
Step S20: and when the color proportion is larger than a preset proportion, determining the pixel distance between a first target color area and a second target color area in the current picture.
It can be understood that, when the color ratio of the target color is greater than the preset ratio, it indicates that the vision assistance may cause a plurality of colors that can be distinguished by the color vision disorder user to be mixed into a similar color, which causes the color vision disorder user not to distinguish the color that can be distinguished originally, and at this time, the color conversion strategy of the vision assistance mode needs to be adjusted, so as to optimize the viewing experience of the user.
It should be noted that, when the user starts the red visual assistance mode, the first target color region is a region where the color type of the pixel point in the image is red, and the second target color region is a region where the color type of the pixel point in the image is blue/violet. The first target color region and the second target color region are associated with a user-activated visual assistance mode.
Further, the determining a pixel distance between a first target color region and a second target color region in the current picture includes: determining a first target color area and a second target color area in the current picture according to the color type of each pixel point in the current picture; determining a first position according to the coordinate information of each pixel point in the first target color region; determining a second position according to the coordinate information of each pixel point in the second target color region; determining a pixel distance between the first target color region and the second target color region according to the first position and the second position.
It can be understood that when the distance between the first target color region and the second target color region is too close, the colors in the first target color region and the second target color region are more similar after the colors in the picture are converted through the visual auxiliary mode, resulting in the reduction of the viewability of the picture. Therefore, it is necessary to determine the degree of adjustment of the color in the screen by the visual aid based on the pixel distance between the first target color region and the second target color region.
In a specific implementation, the coordinate information is pixel coordinates of pixel points in pixels, when the areas of the first target color region and the second target color region are both smaller than the area of a preset region, pixel mean value coordinates of the pixel points in the first target color region and the first pixel mean value coordinates are calculated, the pixel mean value coordinates are used as the position of the first target color region, the position of the second target color region is calculated in the same way, and the difference value of the two positions is the pixel distance. Pixel mean coordinates, such as: the pixel coordinates of the pixel point a are (3, 4), the pixel coordinates of the pixel point B are (5, 8), and the pixel mean coordinate is (4, 6).
It can be understood that, when the area of any one of the first target color region and the second target color region is larger than the area of the preset region, the pixel mean coordinate only represents the center position of the first target color region, and the edges of the first target color region and the second target color region may be relatively close, which may also cause the color to be difficult to distinguish after the visual assistance mode is turned on.
Step S30: and determining a target coefficient according to the pixel distance.
It should be understood that the color between two regions is easier to distinguish when the positional distance is larger, and thus the target coefficient is larger, and the color between two regions is harder to distinguish when the positional distance is smaller, and the corresponding target coefficient is smaller.
It should be noted that the preset mapping relationship table stores the corresponding relationship between the pixel distance and the target coefficient, so that the corresponding target coefficient can be directly found in the preset mapping relationship table after the pixel distance is determined.
Step S40: and adjusting the colors of the areas except the preset color area in the current picture according to the target coefficient.
It can be understood that the preset color in the preset color region may be set by a user, or may be automatically determined according to the current screen content, where the preset color region includes a skin color region, for example: in order to prevent the skin color in the picture from color cast, the preset color can be set as the skin color, so that the skin color area in the picture does not need to be subjected to color adjustment, the skin color area in the current picture needs to be determined, and the colors outside the skin color area need to be adjusted, so that the watching experience of a user is optimized.
Further, the adjusting the color of the area other than the preset color area in the current picture according to the target coefficient includes: determining a color-blind matrix based on the selected color-blind category of the user; and adjusting the colors of the areas except the preset color area in the current picture according to the target coefficient and the color blindness matrix.
In a specific implementation, the color blindness category includes red blindness, green blindness, blue-yellow blindness, and the like, and after the user starts the visual assistance, the user needs to select a corresponding visual assistance mode, for example, when the user is red blindness, the corresponding visual assistance mode is a red visual assistance mode, and when the user is green blindness, the corresponding visual assistance mode is a green visual assistance mode. When a different visual aid mode is selected, there are different color conversion strategies, for example, the color conversion strategy of the red visual aid mode is: r ' G ' B ═ a + α × S × RGB, where RGB is a color matrix of an original color, R ' G ' B ' is converted into a color matrix after conversion, a is a matrix of a fixed numerical value, α is a target coefficient, S is a matrix of a red visual auxiliary mode, and when visual auxiliary modes are different, matrices corresponding to S are different. Through the above formula, the red color in the picture can be converted into other color channels, so that a red blind user can also see the color of the red area in the picture.
It should be noted that the larger the target coefficient range is [0,1], the stronger the visual auxiliary function is, and conversely, the weaker the visual auxiliary function is. When α is 0, this means that there is no visual aid function, and the picture is played in the original color.
Further, the adjusting the color of the area except the preset color area in the current picture according to the target coefficient and the color blindness matrix includes: determining a preset color area in the current picture according to the color type of each pixel in the current picture; determining a region to be adjusted in the current picture according to the preset color region; and adjusting the color in the area to be adjusted according to the target coefficient and the color blindness matrix.
In a specific implementation, the pixel points belonging to the preset color type can be determined according to the color type corresponding to each pixel point in the current picture, a display area formed by the pixel points of the preset color type is the preset color area, a display area except the preset color area is the area to be adjusted, and the color in the area to be adjusted can be adjusted through the color conversion strategy.
According to the embodiment, when a user starts visual assistance, the color proportion of the target color in the current picture is obtained; when the color proportion is larger than a preset proportion, determining the pixel distance between a first target color area and a second target color area in the current picture; determining a target coefficient according to the pixel distance; and adjusting the colors of the areas except the preset color area in the current picture according to the target coefficient. Through the method, the color proportion of the target color in the current picture is determined, when the color proportion is larger than the preset proportion, it is indicated that the colors which can be distinguished by the color vision disorder user can be mixed into the similar colors by the visual assistance, and the colors except the preset color area are optimized, so that the problem that the color vision disorder user cannot distinguish the colors which can be distinguished originally and the preset color is color cast is avoided.
Furthermore, an embodiment of the present invention further provides a storage medium, where the storage medium stores a picture color adjustment program, and the picture color adjustment program, when executed by a processor, implements the steps of the picture color adjustment method as described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
Referring to fig. 4, fig. 4 is a block diagram of a first embodiment of a device for adjusting color of a picture according to the present invention.
As shown in fig. 4, the image color adjusting apparatus according to the embodiment of the present invention includes:
the ratio acquisition module is used for acquiring the color ratio of the target color in the current picture when the user starts the visual assistance;
the distance determining module is used for determining the pixel distance between a first target color area and a second target color area in the current picture when the color proportion is larger than a preset proportion;
and the coefficient determining module is used for determining a target coefficient according to the pixel distance.
And the color adjusting module is used for adjusting the colors of the areas except the preset color area in the current picture according to the target coefficient.
In an embodiment, the ratio obtaining module 10 is further configured to obtain color information of each pixel point in the current picture; determining the color type of each pixel point according to the color information; the obtaining of the color ratio of the target color in the current picture includes: and determining the color proportion of the target color in the current picture according to the color type.
In an embodiment, the proportion obtaining module 10 is further configured to obtain a total number of pixels of the current frame; determining a target pixel point corresponding to the target color type according to the color type of each pixel point; and determining the color proportion of the target color according to the number of the target pixel points and the total number of the pixel points.
In an embodiment, the distance determining module 20 is further configured to determine a first target color region and a second target color region in the current picture according to a color type of each pixel point in the current picture; determining a first position according to the coordinate information of each pixel point in the first target color region; determining a second position according to the coordinate information of each pixel point in the second target color region; determining a pixel distance between the first target color region and the second target color region according to the first position and the second position.
In an embodiment, the color adjustment module 40 is further configured to determine a color blindness matrix based on the selected color blindness category of the user; and adjusting the colors of the areas except the preset color area in the current picture according to the target coefficient and the color blindness matrix.
In an embodiment, the color adjustment module 40 is further configured to determine a preset color region in the current frame according to a color type of each pixel in the current frame; determining a region to be adjusted in the current picture according to the preset color region; and adjusting the color in the area to be adjusted according to the target coefficient and the color blindness matrix.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
In the embodiment, when a user starts visual assistance, the color proportion of the target color in the current picture is obtained; when the color proportion is larger than a preset proportion, determining the pixel distance between a first target color area and a second target color area in the current picture; determining a target coefficient according to the pixel distance; and adjusting the colors of the areas except the preset color area in the current picture according to the target coefficient. Through the method, the color proportion of the target color in the current picture is determined, when the color proportion is larger than the preset proportion, it is indicated that the colors which can be distinguished by the color vision disorder user can be mixed into the similar colors by the visual assistance, and the colors except the preset color area are optimized, so that the problem that the color vision disorder user cannot distinguish the colors which can be distinguished originally and the preset color is color cast is avoided.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment can be referred to the picture color adjustment method provided in any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A picture color adjusting method, comprising:
when a user starts visual assistance, acquiring the color proportion of a target color in a current picture;
when the color proportion is larger than a preset proportion, determining the pixel distance between a first target color area and a second target color area in the current picture;
determining a target coefficient according to the pixel distance;
and adjusting the colors of the areas except the preset color area in the current picture according to the target coefficient.
2. The method of claim 1, wherein before obtaining the color scale of the target color in the current frame, further comprising:
acquiring color information of each pixel point in the current picture;
determining the color type of each pixel point according to the color information;
the obtaining of the color proportion of the target color in the current picture includes:
and determining the color proportion of the target color in the current picture according to the color type.
3. The method as claimed in claim 2, wherein the determining the color ratio of the target color in the current picture according to the color category comprises:
acquiring the total number of pixel points of the current picture;
determining a target pixel point corresponding to the target color type according to the color type of each pixel point;
and determining the color proportion of the target color according to the number of the target pixel points and the total number of the pixel points.
4. The method of claim 1, wherein the determining a pixel distance between a first target color region and a second target color region in the current picture comprises:
determining a first target color area and a second target color area in the current picture according to the color type of each pixel point in the current picture;
determining a first position according to the coordinate information of each pixel point in the first target color region;
determining a second position according to the coordinate information of each pixel point in the second target color region;
determining a pixel distance between the first target color region and the second target color region according to the first position and the second position.
5. The method of claim 1, wherein the adjusting the color of the region of the current frame other than the predetermined color region according to the target coefficient comprises:
determining a color-blind matrix based on the selected color-blind category of the user;
and adjusting the colors of the areas except the preset color area in the current picture according to the target coefficient and the color blindness matrix.
6. The method of claim 5, wherein the adjusting the color of the region of the current frame other than a predetermined color region according to the target coefficient and the color blindness matrix comprises:
determining a preset color area in the current picture according to the color type of each pixel in the current picture;
determining a region to be adjusted in the current picture according to the preset color region;
and adjusting the color in the area to be adjusted according to the target coefficient and the color blindness matrix.
7. The method of any of claims 1 to 6, wherein the preset color region comprises a skin color region.
8. A picture color adjustment apparatus, comprising:
the ratio acquisition module is used for acquiring the color ratio of the target color in the current picture when the user starts the visual assistance;
the distance determining module is used for determining the pixel distance between a first target color area and a second target color area in the current picture when the color proportion is larger than a preset proportion;
the coefficient determining module is used for determining a target coefficient according to the pixel distance;
and the color adjusting module is used for adjusting the colors of the areas except the preset color area in the current picture according to the target coefficient.
9. A picture color adjustment apparatus, characterized in that the apparatus comprises: a memory, a processor, and a picture color adjustment program stored on the memory and executable on the processor, the picture color adjustment program configured to implement the picture color adjustment method of any one of claims 1 to 7.
10. A storage medium having stored thereon a picture color adjustment program which, when executed by a processor, implements the picture color adjustment method according to any one of claims 1 to 7.
CN202210175279.1A 2022-02-23 2022-02-23 Picture color adjusting method, device, equipment and storage medium Pending CN114527950A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210175279.1A CN114527950A (en) 2022-02-23 2022-02-23 Picture color adjusting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210175279.1A CN114527950A (en) 2022-02-23 2022-02-23 Picture color adjusting method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114527950A true CN114527950A (en) 2022-05-24

Family

ID=81624988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210175279.1A Pending CN114527950A (en) 2022-02-23 2022-02-23 Picture color adjusting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114527950A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866809A (en) * 2022-06-13 2022-08-05 百果园技术(新加坡)有限公司 Video conversion method, device, equipment, storage medium and program product

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866809A (en) * 2022-06-13 2022-08-05 百果园技术(新加坡)有限公司 Video conversion method, device, equipment, storage medium and program product
CN114866809B (en) * 2022-06-13 2024-02-23 百果园技术(新加坡)有限公司 Video conversion method, apparatus, device, storage medium, and program product

Similar Documents

Publication Publication Date Title
CN108376539B (en) Image color compensation method and device
JP4303956B2 (en) Image processing apparatus for faithfully transmitting color and image data providing method
EP2573670B1 (en) Character display method and device
JP2006332908A (en) Color image display apparatus, color image display method, program, and recording medium
CN114527950A (en) Picture color adjusting method, device, equipment and storage medium
EP3905672B1 (en) Color space mapping method and device, computer readable storage medium and apparatus
JP2003076355A (en) Picture display device, picture display method, recording medium, and program
CN111933074B (en) Display effect enhancement method, device and equipment
KR101967416B1 (en) Technique for color profiling of a display device
EP3975043A1 (en) Image processing method, terminal, and storage medium
US6930691B2 (en) Color transformation in 3D color space
Laird et al. Development and evaluation of gamut extension algorithms
EP4207075A1 (en) Image processing method and apparatus, and computer device and storage medium
US8295539B2 (en) Method and system of immersive sensation enhancement for video sequence displaying
CN112801858A (en) Color conversion method, device, equipment and storage medium
JP3385979B2 (en) Display screen design device and display screen change device
CN114677983B (en) Display calibration method and related device
CN112330763B (en) Method and device for determining atmosphere color of picture, computer equipment and storage medium
CN114582268B (en) Method, device and equipment for calculating Demura compensation parameters
CN116681786A (en) Background color generation method, device, equipment and storage medium
CN107450814B (en) Menu brightness automatic adjusting method, user equipment and storage medium
CN115482170A (en) Display image compensation method, device, equipment and storage medium
Kim Visual assessment of viewing direction based on color discrimination
CN115797537A (en) Image rendering method, display device, and storage medium
KR100787665B1 (en) Image processing device for transmitting color with fidelity and image data providing method

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