Color conversion method, device, equipment and storage medium
By obtaining the user's perceptual setting instructions and the degree of color vision disorder, and converting RGB colors to the LMS color space, the problem of color vision disorders being unable to distinguish colors in videos is solved, and the scene resolution ability and user experience are improved.
Patent Information
- Application Number
- CN202011612899.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-29
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2040-12-29
AI Technical Summary
People with color perception disorders cannot distinguish some colors when watching videos, resulting in poor scene resolution.
By obtaining the user's perceptual setting instructions, determining the degree and mode of color perception disorder, converting the color of the RGB color space to the LMS color space, and then converting the colors that the user cannot perceive into perceptible colors to generate a target image.
It improves the scene resolution ability and viewing comfort of color-sensing disorders, allowing users to distinguish all colors of the picture, greatly improving the user experience.
Smart Images

Figure CN112801858B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display technology, and in particular to a color conversion method, device, equipment and storage medium. Background Art
[0002] There are tens of millions of people with color vision impairment in China. Like us, they have strong demands for video viewing and content consumption, but it is difficult to satisfy them with the support of existing products. Unable to distinguish colors or grayscales, a football game with players wearing different jerseys competing fiercely is a melee for them, and exciting movies are a bleak scene for them. Starting from the causes of color blindness and color weakness, the present invention converts the color space into the LMS color gamut space. LMS is a color space represented by the responses of the three cones of the human eye, named after its response (sensitivity) peaks at long wavelengths (long), medium wavelengths (medium) and short wavelengths (short), so that the video wavelength is migrated from damaged or insensitive areas to sensitive areas, thereby improving the scene resolution ability of people with color vision impairment and improving viewing comfort.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a color conversion method, device, equipment and storage medium, aiming to solve the technical problem in the prior art that people with color vision impairment cannot distinguish some colors when watching videos, resulting in poor scene resolution ability.
[0005] To achieve the above object, the present invention provides a color conversion method, device, equipment and storage medium method, the method comprising the following steps:
[0006] Obtain the user's perception setting instructions;
[0007] determining the user's degree of color vision impairment according to the perception setting instruction;
[0008] Determining a corresponding color impairment mode according to the degree of color vision impairment;
[0009] Determining a color to be converted in the image to be converted according to the color barrier pattern;
[0010] The color to be converted is converted into a corresponding color to obtain a target color of the image to be converted.
[0011] Optionally, determining the degree of color vision impairment of the user according to the perception setting instruction includes:
[0012] Obtaining the color vision impairment type of the user according to the perception setting instruction;
[0013] Obtaining the color vision offset of the user according to the perception setting instruction;
[0014] The degree of the color vision impairment of the user is determined according to the color vision impairment type and the color vision offset.
[0015] Optionally, determining a corresponding color disorder mode according to the degree of color vision disorder includes:
[0016] Determining a preset conversion ratio according to the degree of color vision impairment;
[0017] A corresponding color impairment mode is determined according to the preset conversion ratio and the degree of color impairment.
[0018] Optionally, determining a corresponding color impairment mode according to the preset conversion ratio and the degree of color impairment includes:
[0019] Determine a color conversion matrix according to a preset conversion ratio and the degree of color vision impairment;
[0020] The color barrier pattern is generated according to the color conversion matrix.
[0021] Optionally, the color conversion matrix includes: at least one of a red conversion matrix, a green conversion matrix, and a blue conversion matrix;
[0022]
[0023]
[0024]
[0025] Among them, T CR is the red transformation matrix, T CG is the green conversion matrix, T CB is the blue conversion matrix, γ is the preset conversion ratio, and αR, αG, and αB are the color vision impairment degrees of the corresponding colors.
[0026] Optionally, determining the color to be converted in the image to be converted according to the color barrier pattern includes:
[0027] Get the image to be converted;
[0028] Convert the original color of the RGB color space in the image into the spatial color of the LMS color space;
[0029] A color to be converted in the image to be converted is determined according to the spatial color and the color barrier pattern.
[0030] Optionally, after converting the color to be converted into a corresponding color to obtain a target color of the image to be converted, the method further includes:
[0031] Convert the target color in the image to be converted into a color in the RGB color space to obtain a corrected color;
[0032] The corrected color is superimposed on the original color of the image to be converted to obtain a target image.
[0033] In addition, to achieve the above object, the present invention further provides a color conversion device, the color conversion device comprising:
[0034] An acquisition module, used to acquire a user's perception setting instruction;
[0035] A determination module, configured to determine the degree of color vision impairment of the user according to the perception setting instruction;
[0036] The determination module is further used to determine a corresponding color disorder mode according to the degree of color vision disorder;
[0037] The determination module is further used to determine the color to be converted in the image to be converted according to the color barrier pattern;
[0038] The conversion module is used to convert the color to be converted into a corresponding color to obtain a target color of the image to be converted.
[0039] In addition, to achieve the above-mentioned purpose, the present invention also proposes a color conversion device, which includes: a memory, a processor, and a color conversion program stored in the memory and executable on the processor, wherein the color conversion program is configured to implement the steps of the color conversion method described above.
[0040] In addition, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which a color conversion program is stored, and when the color conversion program is executed by a processor, the steps of the color conversion method described above are implemented.
[0041] The present invention obtains the user's perception setting instruction; determines the user's color vision impairment degree according to the perception setting instruction; determines the corresponding color impairment mode according to the color vision impairment degree; determines the color to be converted in the image to be converted according to the color impairment mode; converts the color to be converted to the corresponding color to obtain the target color of the image to be converted. Through the above method, the corresponding color impairment mode can be determined according to the different color vision impairment conditions of different users, and the user's imperceptible colors are converted into the best screen for the user according to the color impairment mode. Through the customized color conversion scheme, the user can distinguish all the colors of the screen, which improves the user's scene resolution ability and greatly improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a structural schematic diagram of a color conversion device in a hardware operating environment involved in an embodiment of the present invention;
[0043] Figure 2 It is a schematic diagram of the flow chart of the first embodiment of the color conversion method of the present invention;
[0044] Figure 3 A response spectrum diagram of an embodiment of a color conversion method of the present invention;
[0045] Figure 4 It is an overall flow chart of an embodiment of a color conversion method of the present invention;
[0046] Figure 5 FIG. 1 is a structural block diagram of a first embodiment of a color conversion device according to the present invention.
[0047] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0048] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0049] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the structure of a color conversion device in a hardware operating environment involved in an embodiment of the present invention.
[0050] like Figure 1As shown, the color conversion device 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. Among them, the communication bus 1002 is used to realize the connection and 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 and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0051] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the color conversion device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0052] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a color conversion program.
[0053] exist Figure 1 In the color conversion device shown, 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 color conversion device of the present invention can be set in the color conversion device, and the color conversion device calls the color conversion program stored in the memory 1005 through the processor 1001, and executes the color conversion method provided by the embodiment of the present invention.
[0054] The embodiment of the present invention provides a color conversion method, referring to Figure 2 , Figure 2 FIG. 4 is a flow chart of a first embodiment of a color conversion method according to the present invention.
[0055] In this embodiment, the color conversion method includes the following steps:
[0056] Step S10: Obtain the user's perception setting instruction.
[0057] It should be noted that the execution subject of this embodiment may be a terminal device including a color display screen, such as a television and a monitor.
[0058] It is understandable that each user has different color vision impairments, so a display solution should be developed specifically for each user. Therefore, when developing a display solution, it is necessary to display different preset color images to the user to determine the user's color vision impairment type. For example, when a user is red-green color blind, the user cannot distinguish between green and orange. The user's color vision impairment type can be obtained by selecting a preset color image that cannot be distinguished.
[0059] It should be noted that when a user has a specific type of color vision deficiency, not all colors of the corresponding type are unable to be distinguished. When the user is red-green color blind, the user cannot distinguish between green and red colors, but when the user is red-green color weak, not all green and red colors are unable to be distinguished. Each user with a certain type of color vision deficiency has different sensitivity to colors. Therefore, further measurement of the user's color sensitivity is needed.
[0060] In a specific implementation, different colors of the same series need to be displayed to the user, and the user's perception setting instructions are generated according to the perceptible colors selected by the user.
[0061] Step S20: determining the degree of color vision impairment of the user according to the perception setting instruction.
[0062] Further, step S20 includes: obtaining the color vision impairment type of the user according to the perception setting instruction; obtaining the color vision offset of the user according to the perception setting instruction; and determining the degree of color vision impairment of the user according to the color vision impairment type and the color vision offset.
[0063] It is understandable that the perception setting instruction includes the user's color vision impairment type, such as red color blindness, red color weakness, green color blindness, tritanopia, etc.
[0064] It should be noted that the user's color vision offset can be determined based on the user's perception of the color of the color vision disorder. For example, the cells that perceive red in the human eye are red cone cells. Since the peak wavelength range of red cone cells is 564nm-580nm, if the L cell, i.e., the red cone cell response curve, is offset by 30nm, it is basically impossible to distinguish red. Based on the user's selection of perceptible colors, the user's color sensitivity can be determined, thereby determining the offset of the user's color cone cells.
[0065] In a specific implementation, the degree of color vision impairment indicates the sensitivity of the color vision impairment user to the color of color vision impairment. For example, for a user with red color vision impairment, the degree of red color vision impairment is normalized to When his color vision offset is 30, that is, αR When it is 1, it is a color blind user. When his color vision offset is less than 30, that is, α R When it is less than 1, the user is color-blind.
[0066] It should be noted that the peak wavelength range of green cone cells, namely M cells, is 534nm-555nm. Therefore, if the response curve of green cone cells is offset by 30nm, it is basically impossible to distinguish green. The degree of green color vision impairment can be normalized to
[0067] Since the peak wavelength range of S cells, i.e. blue cone cells, is 420nm-440nm, and the wavelength range of S cells is 400nm-500nm, a 60nm shift will result in the inability to perceive blue. The degree of blue color vision impairment can be normalized to
[0068] It is understandable that the degree of color vision impairment more comprehensively reflects the color vision impairment of the user, and the displayed image can be corrected according to the degree of color vision impairment of the user.
[0069] Step S30: determining a corresponding color impairment mode according to the degree of color impairment.
[0070] Further, step S30 includes: determining a preset conversion ratio according to the degree of color vision impairment;
[0071] A corresponding color impairment mode is determined according to the preset conversion ratio and the degree of color impairment.
[0072] It should be noted that different degrees of color vision impairment may correspond to different preset conversion ratios, and the preset conversion ratio is used to convert color types that the user cannot perceive or perceives weakly to color types that the user perceives normally or strongly according to the preset conversion ratio. For example, the preset conversion ratio may be 70%.
[0073] Furthermore, determining a corresponding color disorder mode according to the preset conversion ratio and the color vision disorder degree includes: determining a color conversion matrix according to the preset conversion ratio and the color vision disorder degree; and generating the color disorder mode according to the color conversion matrix.
[0074] It should be noted that the color barrier mode is a color conversion strategy generated according to the color conversion matrix. The image to be converted can be converted according to the color conversion strategy to obtain the best picture for the user to watch.
[0075] It can be understood that different color conversion matrices can be generated for converting colors according to different degrees of color vision impairment and preset conversion ratios.
[0076] Further, the color conversion matrix includes: at least one of a red conversion matrix, a green conversion matrix, and a blue conversion matrix;
[0077]
[0078]
[0079]
[0080] Among them, T CR is the red transformation matrix, T CG is the green conversion matrix, T CB is the blue conversion matrix, γ is the preset conversion ratio, and αR, αG, and αB are the color vision impairment degrees of the corresponding colors.
[0081] In a specific implementation, for example, a red color blind user cannot perceive the colors of the red series. The color disorder mode includes the colors that the red color blind user can perceive and the colors that cannot be perceived. At this time, 70% of the colors of the red series can be converted to other colors, that is, 70% of the colors of the L channel in the LMS color space are converted to the M channel and the S channel. Taking the preset conversion ratio of 70% as an example, the red conversion matrix T CR Can be:
[0082]
[0083] Step S40: determining the color to be converted in the image to be converted according to the color barrier pattern.
[0084] Further, step S40 includes: acquiring an image to be converted; converting the original color of the RGB color space in the image into the spatial color of the LMS color space; and determining the color to be converted in the image to be converted according to the spatial color and the color barrier pattern.
[0085] It should be noted that when the original image, i.e., the image to be converted, is obtained, the color of the original image needs to be converted from the RGB color space to the LMS color space, and the color that the user cannot perceive in the image to be converted, i.e., the color to be converted, is obtained from the color of the LMS color space.
[0086] It should be noted that there are three types of cone cells in the human eye, which have different spectral sensitivities. These three types of cone cells are called short (S), medium (M), and long (L) cone cell types in the order of their spectral sensitivity peak wavelengths. The normalized response spectra of S, M, and L cone cells to monochromatic spectral stimulation are as follows: Figure 3As shown. Since the physiological causes of color blindness and color weakness are related to the lack or defects of the three types of LMS cells, the current color space is first transferred to the LMS space. Since the physiological causes of color blindness and color weakness are related to the lack or defects of the three types of LMS cells, the current color space is first transferred to the LMS space. If the current screen input is the commonly used RGB color space, it needs to be transferred to the LMS space first. It is known that the conversion matrix from RGB space to LMS space is X, then LMS = X*RGB, and the matrix X is a prior art and will not be repeated.
[0087] In a specific implementation, the color that the user can perceive can be identified through the color barrier mode. The image is recorded as LpMpSp, and the color that the user cannot perceive is: LepMEpSEp=LMS-LpMpSp. The above formula can be used to obtain the color that the user cannot perceive in the image to be converted, that is, the color to be converted. For example: a green color blind user cannot perceive the color of the green series. The color barrier mode of this user identifies the colors of other color series in the image and obtains the color of the green series. At this time, the color of the green series in the image is the color to be converted.
[0088] Step S50: converting the color to be converted into a corresponding color to obtain a target color of the image to be converted.
[0089] In the specific implementation, the colors that color-deficient users cannot perceive are mapped to the color gamut they can see through the color conversion matrix Tc to obtain the target color. For example, 70% of the L channel color that red color-deficient users cannot see is dispersed into the M channel, and 70% of the L channel color is dispersed into the S channel. The corresponding red color-deficient conversion matrix is:
[0090]
[0091] The corrected color expression is LSEp MSEp SSEp, that is, LSEp MSEp SSEp = Tc*LEp MEpSEp.
[0092] Furthermore, after step S50, the method further includes:
[0093] The target color in the image to be converted is converted into a color in the RGB color space to obtain a corrected color.
[0094] It can be understood that the LMS color gamut space is converted to the original RGB color gamut space, and the conversion matrix from the LMS space to RGB is recorded as X', and the matrix after the conversion is recorded as R'G'B', then R'G'B'=X'LSEp MSEp SSEp.
[0095] The corrected color is superimposed on the original color of the image to be converted to obtain a target image.
[0096] It should be noted that R'G'B' is superimposed on the RGB original image to obtain an optimized image, that is, RcGcBc=RGB+R'G'B'. When users with color vision impairment view the image, they can distinguish color information that they cannot perceive originally.
[0097] Arrange the flow chart as follows Figure 4 As shown, the color of the original image is converted from the RGB color space to the LMS color space, the user-perceivable color is obtained according to the user's selection, the user-imperceivable color in the original image is obtained, the imperceivable color is converted to the user-perceivable color gamut, the converted color is converted to the RGB color space, and superimposed with the original image to obtain a corrected image.
[0098] This embodiment obtains the user's perception setting instruction; determines the user's color vision impairment level according to the perception setting instruction; determines the corresponding color impairment mode according to the color vision impairment level; determines the color to be converted in the image to be converted according to the color impairment mode; converts the color to be converted into the corresponding color to obtain the target color of the image to be converted; converts the target color in the image to be converted into a color in the RGB color space to obtain a corrected color; superimposes the corrected color with the original color of the image to be converted to obtain the target image. Through the above method, the corresponding color impairment mode can be determined according to the different color vision impairment conditions of different users, and by converting the color that the user cannot perceive into the best picture for the user according to the color impairment mode, the user can distinguish all the colors of the picture through a customized color conversion scheme, thereby improving the user's scene resolution ability and greatly improving the user experience.
[0099] In addition, an embodiment of the present invention further provides a storage medium, on which a color conversion program is stored. When the color conversion program is executed by a processor, the steps of the color conversion method described above are implemented.
[0100] Reference Figure 5 , Figure 5 FIG. 4 is a structural block diagram of a first embodiment of a color conversion device according to the present invention.
[0101] like Figure 5 As shown, the color conversion device proposed in the embodiment of the present invention includes:
[0102] An acquisition module 10 is used to acquire a user's perception setting instruction;
[0103] A determination module 20, configured to determine the degree of color vision impairment of the user according to the perception setting instruction;
[0104] The determination module 20 is further configured to determine a corresponding color impairment mode according to the degree of color impairment;
[0105] The determination module 20 is further used to determine the color to be converted in the image to be converted according to the color barrier pattern;
[0106] The conversion module 30 is used to convert the color to be converted into a corresponding color to obtain a target color of the image to be converted.
[0107] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.
[0108] This embodiment obtains the user's perception setting instruction; determines the user's color vision impairment level according to the perception setting instruction; determines the corresponding color impairment mode according to the color vision impairment level; determines the color to be converted in the image to be converted according to the color impairment mode; converts the color to be converted to the corresponding color to obtain the target color of the image to be converted. Through the above method, the corresponding color impairment mode can be determined according to the different color vision impairment conditions of different users, and the user's imperceptible colors are converted into the best screen for the user according to the color impairment mode. Through the customized color conversion scheme, the user can distinguish all the colors of the screen, which improves the user's scene resolution ability and greatly improves the user experience.
[0109] In one embodiment, the determination module 20 is further used to obtain the color vision impairment type of the user according to the perception setting instruction; obtain the color vision offset of the user according to the perception setting instruction; and determine the degree of color vision impairment of the user according to the color vision impairment type and the color vision offset.
[0110] In one embodiment, the determination module 20 is further configured to determine a preset conversion ratio according to the degree of color vision impairment; and determine a corresponding color impairment mode according to the preset conversion ratio and the degree of color vision impairment.
[0111] In one embodiment, the determination module 20 is further configured to determine a color conversion matrix according to a preset conversion ratio and a degree of color vision impairment; and generate the color impairment pattern according to the color conversion matrix.
[0112] In one embodiment, the determination module 20 is further used to determine a color conversion matrix according to a preset conversion ratio and a degree of color vision impairment, wherein the color conversion matrix includes at least one of a red conversion matrix, a green conversion matrix, and a blue conversion matrix;
[0113]
[0114]
[0115]
[0116] Among them, T CR is the red transformation matrix, T CG is the green conversion matrix, T CB is the blue conversion matrix, γ is the preset conversion ratio, and αR, αG, and αB are the color vision impairment degrees of the corresponding colors.
[0117] In one embodiment, the determination module 20 is further used to obtain an image to be converted; convert the original color of the RGB color space in the image into the spatial color of the LMS color space; and determine the color to be converted in the image to be converted based on the spatial color and the color barrier pattern.
[0118] In one embodiment, the conversion module 30 is further used to convert the target color in the image to be converted into a color in the RGB color space to obtain a corrected color; and superimpose the corrected color with the original color of the image to be converted to obtain a target image.
[0119] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.
[0120] In addition, for technical details not fully described in this embodiment, reference can be made to the color conversion method provided in any embodiment of the present invention, and will not be repeated here.
[0121] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0122] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0124] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A color conversion method, characterized in that: The color conversion method comprises: Obtain the user's perception setting instructions; determining the user's degree of color vision impairment according to the perception setting instruction; Determining a corresponding color impairment mode according to the degree of color vision impairment; Determining a color to be converted in the image to be converted according to the color barrier pattern; Convert the color to be converted into a corresponding color to obtain a target color of the image to be converted; Determining the corresponding color impairment mode according to the degree of color vision impairment includes: Determining a preset conversion ratio according to the degree of color vision impairment; Determining a corresponding color impairment mode according to the preset conversion ratio and the degree of color impairment; The determining the corresponding color impairment mode according to the preset conversion ratio and the degree of color vision impairment includes: Determine a color conversion matrix according to a preset conversion ratio and the degree of color vision impairment; generating the color barrier pattern according to the color conversion matrix; The color conversion matrix includes: at least one of a red conversion matrix, a green conversion matrix and a blue conversion matrix; Among them, T CR is the red transformation matrix, T CG is the green conversion matrix, T CB is the blue conversion matrix, γ is the preset conversion ratio, and αR, αG, and αB are the color vision impairment degrees of the corresponding colors.
2. The method according to claim 1, characterized in that The determining the degree of color vision impairment of the user according to the perception setting instruction includes: Obtaining the color vision impairment type of the user according to the perception setting instruction; Obtaining the color vision offset of the user according to the perception setting instruction; The degree of the color vision impairment of the user is determined according to the color vision impairment type and the color vision offset.
3. The method according to claim 1, characterized in that The step of determining the color to be converted in the image to be converted according to the color barrier pattern comprises: Get the image to be converted; Convert the original color of the RGB color space in the image into the spatial color of the LMS color space; A color to be converted in the image to be converted is determined according to the spatial color and the color barrier pattern.
4. The method according to any one of claims 1 to 3, characterized in that After converting the color to be converted into a corresponding color to obtain a target color of the image to be converted, the method further includes: Convert the target color in the image to be converted into a color in the RGB color space to obtain a corrected color; The corrected color is superimposed on the original color of the image to be converted to obtain a target image.
5. A color conversion device, characterized in that: The color conversion device comprises: An acquisition module, used to acquire a user's perception setting instruction; A determination module, configured to determine the degree of color vision impairment of the user according to the perception setting instruction; The determination module is further used to determine a corresponding color disorder mode according to the degree of color vision disorder; The determination module is further used to determine the color to be converted in the image to be converted according to the color barrier pattern; A conversion module, used for converting the color to be converted into a corresponding color to obtain a target color of the image to be converted; The determination module is further used to determine a preset conversion ratio according to the degree of color vision impairment; The determination module is further configured to determine a corresponding color impairment mode according to the preset conversion ratio and the degree of color impairment; The determination module is further used to determine the color conversion matrix according to a preset conversion ratio and the degree of color vision impairment; The determination module is further used to generate the color barrier pattern according to the color conversion matrix; The color conversion matrix includes: at least one of a red conversion matrix, a green conversion matrix and a blue conversion matrix; Among them, T CR is the red transformation matrix, T CG is the green conversion matrix, T CB is the blue conversion matrix, γ is the preset conversion ratio, and αR, αG, and αB are the color vision impairment degrees of the corresponding colors.
6. A color conversion device, characterized in that: The device comprises: a memory, a processor, and a color conversion program stored in the memory and executable on the processor, wherein the color conversion program is configured to implement the steps of the color conversion method according to any one of claims 1 to 4.
7. A storage medium, characterized in that: The storage medium stores a color conversion program, and when the color conversion program is executed by the processor, the steps of the color conversion method according to any one of claims 1 to 4 are implemented.
