Visual color compensation method, device and computer readable storage medium

By collecting and comparing color values ​​in a head-mounted device for color compensation, the problem of visually impaired patients and patients with visual differences being unable to experience true colors has been solved, achieving iterative color compensation and the experience of normal colors.

CN115941912BActive Publication Date: 2026-04-14GEER TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GEER TECH CO LTD
Filing Date
2022-11-28
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

Patients with different visual impairments and visual differences cannot process colors in the same way as ordinary people, resulting in their inability to experience the true colors of the world.

Method used

By comparing the actual color value of the target color mark with the visual perception value of the human eye, a color compensation value is generated, and color compensation is performed in the display area of ​​the head-mounted device. The process is iteratively adjusted until the color compensation value is within a preset threshold range.

Benefits of technology

It enables visually impaired patients and those with visual aberrations to experience the world of normal colors through head-mounted devices, thus improving their color discrimination ability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115941912B_ABST
    Figure CN115941912B_ABST
Patent Text Reader

Abstract

The application discloses a visual color compensation method, device and computer readable storage medium. The visual color compensation method comprises the following steps: collecting an actual first color value of a target color standard; comparing the first color value with a second color value to obtain a color compensation value, wherein the second color value is a visual perception value of the target color standard observed by the human eye; and performing color compensation on a display area of a head-mounted device based on the color compensation value. That is, the color compensation value corresponding to a user is obtained by comparing the actual color value with the sensory color value of the user, and then the display of the head-mounted device is color compensated based on the color compensation value. The color compensation value is repeatedly calculated, so that the display area of the head-mounted device can iteratively perform color compensation on the human eye of the user, thereby enabling special groups such as visually impaired patients and visually different patients to experience a normal color world by means of the head-mounted device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of visual technology, and in particular to a visual color compensation method, device and computer-readable storage medium. Background Technology

[0002] Currently, in many applications that provide visual experiences, rendering and processing are typically done for general situations, and devices are generally calibrated for color based on the sensory standards of ordinary people. However, this does not take into account the visual differences between individuals, nor does it consider the usage scenarios of people with color vision disorders or visual impairments. Furthermore, the situations of different people with visual impairments and visual impairments vary, so these special groups cannot be processed for colors in the same way as ordinary people. They have weaker color discrimination abilities and therefore cannot experience the true colors of the world.

[0003] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention

[0004] The main purpose of this application is to provide a visual color compensation method, device and computer-readable storage medium, which aims to solve the technical problem that some special groups of people cannot process colors in the same way as ordinary people, have weak color discrimination ability, and thus cannot experience the true colors of the world.

[0005] To achieve the above objectives, this application provides a visual color compensation method, which includes the following steps:

[0006] Collect the actual first color value of the target color mark;

[0007] A color compensation value is obtained by comparing the first color value with the second color value, wherein the second color value is the visual perception value of the human eye when viewing the target color mark;

[0008] Color compensation is performed on the display area of ​​the head-mounted device based on the aforementioned color compensation value.

[0009] Furthermore, the step of performing color compensation on the display area of ​​the head-mounted device based on the color compensation value includes:

[0010] The color corresponding to the color compensation value is displayed on the display area so that the display area can perform color compensation for the human eye.

[0011] Furthermore, the target color mark is a target color chart, the display area includes a first display area, and the step of collecting the actual first color value of the target color mark includes:

[0012] Output a preset first prompt message, which is used to prompt the first display area to be aligned with the target color chart;

[0013] When the first display area is detected to be aligned with the target color chart, the image captured by the visual sensor on the head-mounted device is used as the target color chart image;

[0014] The color value of the target color card region in the target color card image is used as the first color value.

[0015] Furthermore, the display area includes a second display area, and after the step of acquiring the first color value of the target color chart, the method includes:

[0016] Output a preset second prompt message, which is used to prompt the user to select the color of the target color chart seen in the first display area on the second display area.

[0017] Use the color value of the selected area on the second display area as the second color value.

[0018] Furthermore, after the step of performing color compensation on the display area of ​​the head-mounted device based on the color compensation value, the method includes:

[0019] Determine whether the color compensation value is within a preset threshold range;

[0020] If the color compensation value is not within the preset threshold range, then the color range displayed in the second display area is reduced based on the selected area, and the step of outputting the preset second prompt information is executed;

[0021] If the color compensation value is within a preset threshold range, a color compensation mapping relationship is generated based on each historical color compensation value, wherein the color compensation mapping relationship corresponds to the color of the target color card.

[0022] Furthermore, after the step of generating the color compensation mapping relationship based on each historical color compensation value, the method includes:

[0023] After the target color mark changes color, the step of collecting the actual first color value of the target color mark is executed until the color compensation mapping relationship corresponding to the color on each target color mark is obtained.

[0024] The aforementioned color compensation mapping relationships are used as full color gamut compensation information, which serves as the basis for compensating the human eye through the display area.

[0025] Furthermore, the visual color compensation method also includes:

[0026] Collect the actual image corresponding to the visual area when the human eye views through the display area;

[0027] Color compensation is performed on the display area based on the actual image and the full color gamut compensation information.

[0028] Furthermore, the step of performing color compensation on the display area based on the actual image and the full color gamut compensation information includes:

[0029] Obtain the actual color value at each location on the actual image;

[0030] Determine the color compensation value corresponding to each actual color value in the full color gamut compensation information;

[0031] Based on the positional correspondence between the actual image and the display area, the colors of each color compensation value are displayed on the display area to perform color compensation on the display area.

[0032] In addition, to achieve the above objectives, this application also provides a visual color compensation device, which includes: a memory, a processor, and a visual color compensation program stored in the memory and executable on the processor. When the visual color compensation program is executed by the processor, it implements the steps of the visual color compensation method as described above.

[0033] In addition, to achieve the above objectives, this application also provides a computer-readable storage medium storing a visual color compensation program, which, when executed by a processor, implements the steps of the visual color compensation method as described above.

[0034] This application proposes a visual color compensation method, device, and computer-readable storage medium. The method involves acquiring the actual first color value of a target color mark using a head-mounted device; comparing the first color value with a second color value to obtain a color compensation value, where the second color value is the visual perception value of the target color mark as viewed by the human eye; performing color compensation on the display area of ​​the head-mounted device based on the color compensation value; determining whether the color compensation value is within a preset threshold range; if the color compensation value is not within the preset threshold range, performing color compensation on the display area to obtain a new second color value, and repeating the step of comparing the first color value with the second color value to obtain the color compensation value; if the color compensation value is within the preset threshold range, the color iteration compensation of the display area is completed. In other words, by comparing the actual color value with the user's perceived color value to obtain the user's corresponding color compensation value, and then performing color compensation on the head-mounted device display based on this color compensation value, the color compensation value is repeatedly calculated, allowing the head-mounted device's display area to iteratively perform color compensation on the user's eye. This enables visually impaired patients and patients with visual aberrations to experience a world of normal color through the head-mounted device. Attached Figure Description

[0035] Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of this application;

[0036] Figure 2 This is a flowchart illustrating the first embodiment of the visual color compensation method of this application;

[0037] Figure 3 This is a flowchart illustrating the second embodiment of the visual color compensation method of this application;

[0038] Figure 4 This is a flowchart illustrating the third embodiment of the visual color compensation method of this application;

[0039] Figure 5 This is a schematic diagram illustrating a usage scenario of the head-mounted device in the visual color compensation method of this application;

[0040] Figure 6 This is a schematic diagram illustrating another application scenario of the head-mounted device in the visual color compensation method of this application.

[0041] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0042] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0043] The main solution of this application embodiment is: to collect the actual first color value of the target color mark; to compare the first color value with the second color value to obtain a color compensation value, wherein the second color value is the visual perception value of the human eye when viewing the target color mark; and to perform color compensation on the display area of ​​the head-mounted device based on the color compensation value.

[0044] Because visually impaired patients and those with visual aberrations cannot process colors in the same way as ordinary people when experiencing visual sensations, they are unable to experience the true colors of the world.

[0045] This application provides a solution that obtains the color compensation value corresponding to the user by comparing the actual color value with the user's perceived color value, and then performs color compensation on the display of the head-mounted device based on the color compensation value, so that special groups such as visually impaired patients and patients with visual differences can experience the world of normal colors with the help of the head-mounted device.

[0046] like Figure 1 As shown, Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of this application.

[0047] The device in this application embodiment can be a head-mounted device, or an electronic terminal device with display function such as a smartphone, PC, tablet computer, or portable computer.

[0048] like Figure 1 As shown, the device may include: a processor 1001, such as a CPU; a network interface 1004; a user interface 1003; a memory 1005; and a communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0049] Optionally, the device may also include a camera, RF (Radio Frequency) circuitry, sensors, audio circuitry, a WiFi module, and so on. Sensors may include light sensors, motion sensors, and other sensors. Specifically, light sensors may include ambient light sensors and proximity sensors. The ambient light sensor can adjust the display brightness according to the ambient light level, while the proximity sensor can turn off the display and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, a gravity accelerometer can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity, and can be used for applications that identify the mobile terminal's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition functions (such as pedometers, taps), etc. Of course, the mobile terminal may also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, which will not be elaborated here.

[0050] Those skilled in the art will understand that Figure 1 The device structure shown does not constitute a limitation on the terminal and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0051] like Figure 1 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a visual color compensation program.

[0052] exist Figure 1 In the device shown, network interface 1004 is mainly used to connect to the backend server and communicate data with it; user interface 1003 is mainly used to connect to the client (user terminal) and communicate data with it; while processor 1001 can be used to call the visual color compensation program stored in memory 1005 and perform the following operations:

[0053] Collect the actual first color value of the target color mark;

[0054] A color compensation value is obtained by comparing the first color value with the second color value, wherein the second color value is the visual perception value of the human eye when viewing the target color mark;

[0055] Color compensation is performed on the display area of ​​the head-mounted device based on the aforementioned color compensation value.

[0056] Furthermore, the processor 1001 can call the visual color compensation program stored in the memory 1005 and also perform the following operations:

[0057] The step of performing color compensation on the display area of ​​the head-mounted device based on the color compensation value includes:

[0058] The color corresponding to the color compensation value is displayed on the display area so that the display area can perform color compensation for the human eye.

[0059] Furthermore, the processor 1001 can call the visual color compensation program stored in the memory 1005 and also perform the following operations:

[0060] The target color mark is a target color chart, the display area includes a first display area, and the step of collecting the actual first color value of the target color mark includes:

[0061] Output a preset first prompt message, which is used to prompt the first display area to be aligned with the target color chart;

[0062] When the first display area is detected to be aligned with the target color chart, the image captured by the visual sensor on the head-mounted device is used as the target color chart image;

[0063] The color value of the target color card region in the target color card image is used as the first color value.

[0064] Furthermore, the processor 1001 can call the visual color compensation program stored in the memory 1005 and also perform the following operations:

[0065] The display area includes a second display area. After the step of acquiring the first color value of the target color chart, the method includes:

[0066] Output a preset second prompt message, which is used to prompt the user to select the color of the target color chart seen in the first display area on the second display area.

[0067] Use the color value of the selected area on the second display area as the second color value.

[0068] Furthermore, the processor 1001 can call the visual color compensation program stored in the memory 1005 and also perform the following operations:

[0069] After the step of performing color compensation on the display area of ​​the head-mounted device based on the color compensation value, the method includes:

[0070] Determine whether the color compensation value is within a preset threshold range;

[0071] If the color compensation value is not within the preset threshold range, then the color range displayed in the second display area is reduced based on the selected area, and the step of outputting the preset second prompt information is executed;

[0072] If the color compensation value is within a preset threshold range, a color compensation mapping relationship is generated based on each historical color compensation value, wherein the color compensation mapping relationship corresponds to the color of the target color card.

[0073] Furthermore, the processor 1001 can call the visual color compensation program stored in the memory 1005 and also perform the following operations:

[0074] After the step of generating a color compensation mapping relationship based on each historical color compensation value, the method includes:

[0075] After the target color mark changes color, the step of collecting the actual first color value of the target color mark is executed until the color compensation mapping relationship corresponding to the color on each target color mark is obtained.

[0076] The aforementioned color compensation mapping relationships are used as full color gamut compensation information, which serves as the basis for compensating the human eye through the display area.

[0077] Furthermore, the processor 1001 can call the visual color compensation program stored in the memory 1005 and also perform the following operations:

[0078] The visual color compensation method also includes:

[0079] Collect the actual image corresponding to the visual area when the human eye views through the display area;

[0080] Color compensation is performed on the display area based on the actual image and the full color gamut compensation information.

[0081] Furthermore, the processor 1001 can call the visual color compensation program stored in the memory 1005 and also perform the following operations:

[0082] The step of performing color compensation on the display area based on the actual image and the full color gamut compensation information includes:

[0083] Obtain the actual color value at each location on the actual image;

[0084] Determine the color compensation value corresponding to each actual color value in the full color gamut compensation information;

[0085] Based on the positional correspondence between the actual image and the display area, the colors of each color compensation value are displayed on the display area to perform color compensation on the display area.

[0086] Reference Figure 2 The first embodiment of the visual color compensation method of this application includes:

[0087] Step S10: Collect the actual first color value of the target color mark;

[0088] In this embodiment, the implementing entity of the above method can be a head-mounted device. When a user wears the head-mounted device, the user can see the content displayed on the head-mounted device or view the real world through the head-mounted device. The head-mounted device includes augmented reality devices, such as AR (Augmented Reality) devices. The actual first color value of the target color mark can be acquired through the head-mounted device. The first color value is the actual RGB (Red, Green, Blue) color value of the target color mark, and the first color value can be (R1, G1, B1). Since the target color mark can be content displayed on the head-mounted device that can be directly viewed by the user, the first color value can be directly obtained from the image signal displaying the target color mark, and the corresponding first color value is the actual color value of the target color mark.

[0089] Furthermore, the target color mark is a target color chart, the display area includes a first display area, and the step of collecting the actual first color value of the target color mark includes: outputting a preset first prompt message, the preset first prompt message being used to prompt the first display area to be aligned with the target color chart; when the first display area is detected to be aligned with the target color chart, using the image collected by the visual sensor on the head-mounted device as the target color chart image; and using the color value of the target color chart area in the target color chart image as the first color value.

[0090] Specifically, to ensure that the color compensation effect for the user in this embodiment corresponds to the real world, the target color swatch can be a physical color card, i.e., a target color card. The display area of ​​the head-mounted device includes a first display area, through which the user can see the target color card. When the user uses the head-mounted device for the first time, or selects the color compensation function, the user first puts on the head-mounted device, and then the head-mounted device sends a preset first prompt message to the user. The first prompt message can be a voice message, a text message, or an animated image message. The first prompt message is used to prompt the user to align the real target color card with the first display area. If the first display area also has a positioning mark, the same applies to the target color card. The target color card will be placed in a fixed position. After hearing the first prompt message, the user wearing the head-mounted device can move their own position to align the positioning mark in the first display area with the positioning mark on the target color card, thus completing the alignment between the target color card and the first display area. It can be understood that the above alignment steps are used to ensure that the user can see the target color card through the first display area and that the head-mounted device can capture the image of the target color card. After the head-mounted device issues its first prompt to the user, the visual sensor (such as a camera) on the device can be activated to acquire images and the acquired images can be detected in real time. When a preset image scene is detected, it is determined that the first display area and the target color chart are aligned, and the image acquired by the sensor at this time is taken as the target color chart image. It is understood that since both the first display area and the target color chart have positioning marks, the image of the target color chart acquired by the visual sensor after the positioning marks in the first display area and the positioning marks in the target color chart are aligned can be used as the preset image scene. Based on this, after acquiring the target color chart image, the color value of the target color chart area on the target color chart image is taken as the first color. Identifying the target color chart area in the target color chart image can be achieved through image recognition technology, which will not be elaborated here.

[0091] For reference Figure 5 This is a schematic diagram illustrating a usage scenario of a head-mounted device in the visual color compensation method of this application. The display area of ​​the head-mounted device includes a first display area and a second display area. The first display area includes a positioning mark, and the target color chart has the same positioning mark. When aligning the first display area and the target color chart, the positioning mark in the first display area is aligned with the positioning mark on the target color chart. The second display area will then display a variety of different colors for the user to choose from.

[0092] Step S20: Compare the first color value with the second color value to obtain a color compensation value, wherein the second color value is the visual perception value of the human eye when viewing the target color mark;

[0093] Furthermore, the display area includes a second display area. After the step of acquiring the first color value of the target color chart, the method includes: outputting a preset second prompt message, the second prompt message being used to prompt the selection of a color of the target color chart seen through the first display area on the second display area; and using the color value of the selected area on the second display area as the second color value.

[0094] Specifically, the head-mounted device's display area also includes a second display area. This second display area can display various shades of color. After the head-mounted device acquires a first color value, it can send a second prompt to the user. This second prompt prompts the user to select a color from the target color chart seen in the first display area, or to select a color seen in the first display area. The color value of the selected area in the second display area is then used as the second color value. For example, the RGB color value of the second color value is (R2, G2, B2). This second color value represents the visual perception of the target color chart as seen by the user's eye through the first display area, or the color directly seen in the first display area. The selection can be made by the user using an input device (such as a controller) that is paired with the head-mounted device to move a cursor or ray on the display area.

[0095] It should be noted that for certain special groups (such as colorblind individuals), under conditions of vibrant colors, high saturation, and bright lighting, they can still distinguish colors like normal people. In this embodiment, the area where the user selects colors is the second display area on the head-mounted device. This second display area can be configured by a technician to provide conditions of vibrant colors, high saturation, and bright lighting, thereby ensuring that the colors viewed by the user on the second display area are consistent with the colors perceived by the user's visual senses. This means that the second color value is the visual perception value of the target color card viewed by the human eye.

[0096] For reference Figure 6 This application illustrates another usage scenario of the head-mounted device in the visual color compensation method. The display area of ​​the head-mounted device includes a first display area and a second display area. The user can select an area in the second display area that is the same as or similar to the color of the target color card in the first display area.

[0097] It should be noted that if the user of the head-mounted device is a general population, the first color value and the second color value will usually be the same or very similar. Conversely, if the user is a special population, there will be a certain difference between the first and second color values. Based on the difference between the first and second color values, visual color compensation can be applied to the user. Specifically, the first color value is compared with the second color value. For example, the difference between the first and second color values ​​is used to obtain the color compensation value ((R1, G1, B1) - (R2, G2, B2) = (R1 - R2, G1 - G2, B1 - B2) = (R-complement, G-complement, B-complement)), and the corresponding color compensation is (R-complement, G-complement, B-complement).

[0098] Step S30: Perform color compensation on the display area of ​​the head-mounted device based on the color compensation value.

[0099] Furthermore, the color corresponding to the color compensation value is displayed on the display area so that the display area provides color compensation for the human eye.

[0100] Specifically, the colors corresponding to the color compensation values ​​(R-complement, G-complement, B-complement) are displayed on the display area of ​​the head-mounted device. When users view the outside world through the display area showing the colors corresponding to the color compensation values, or when they view an image on the display area that combines the colors corresponding to the color compensation values ​​with the actual content being played, they can experience true colors. This allows special groups such as visually impaired patients and patients with visual differences to experience a world of normal colors.

[0101] Step S40: Determine whether the color compensation value is within a preset threshold range;

[0102] It should be noted that in this embodiment, to ensure the accuracy of color compensation, the color compensation value will be repeatedly calculated iteratively. Specifically, after color compensation is performed on the display area of ​​the head-mounted device, it is determined whether the obtained color compensation value is within a preset threshold range. The preset threshold range can be set by the technician. Alternatively, it can be directly determined whether the color compensation value is zero. Correspondingly, the judgment condition of subsequent steps can be changed from "if the color compensation value is not within the preset threshold range" to "if the color compensation value is not zero"; "if the color compensation value is within the preset threshold range" can be changed to "if the color compensation value is zero".

[0103] Step S50: If the color compensation value is not within the preset threshold range, then after color compensation is performed on the human eye through the display area, a new second color value is obtained, and the step of comparing the first color value and the second color value to obtain the color compensation value is executed.

[0104] It is understandable that if the color compensation value is not within the preset threshold range, it means that the second color value of the target color mark seen by the user before color compensation is significantly different from the actual first color value of the target color mark. Therefore, after color compensation is performed on the user's eyes through the display area, a new second color value is obtained again to calculate a new color compensation value for iterative compensation, thereby reducing the gap between the color perceived by the user and the actual color. Here, color compensation on the user's eyes through the display area means that the user views the target color mark again through the color-compensated display area.

[0105] Furthermore, the step of obtaining the new second color value includes: narrowing the color range displayed in the second display area based on the selected area, performing the step of outputting the preset second prompt information to obtain the new selected area; and using the color value corresponding to the new selected area as the new second color value.

[0106] Based on the above, considering the display area includes a first display area and a second display area, it's understandable that to ensure the user selects a more accurate color region on the second display area, the area around the selected region is magnified. This reduces the corresponding color range displayed on the second display area, but the color values ​​at each coordinate point become more precise. The step of outputting the preset second prompt information is then executed again, meaning the color compensation value is recalculated based on the already color-compensated first display area. The specific calculation process can be found in the above embodiment and will not be repeated here. It is understood that in this embodiment, by repeatedly calculating the color compensation value, iterative color compensation can be performed on the display area of ​​the head-mounted device, thereby providing the user with a more realistic visual experience through the head-mounted device.

[0107] Step S60: If the color compensation value is within a preset threshold range, then the color iteration compensation of the display area is completed.

[0108] Conversely, if the color compensation value is within the preset threshold range, it means that the color value perceived by the user as the target color mark is similar to the actual color value of the target color mark. Therefore, the color compensation value does not need to be calculated further, and the color iteration compensation of the display area is completed.

[0109] Furthermore, after the color iteration compensation of the display area is completed, the method includes: fitting and generating a color compensation mapping relationship based on each historical color compensation value, wherein the color compensation mapping relationship corresponds to the color of the target color card, and the color compensation mapping relationship serves as the basis for performing monochrome color compensation on the display area.

[0110] Specifically, the aforementioned historical color compensation values ​​are calculated before the color compensation values ​​fall within a preset threshold range. If the calculated color compensation values ​​fall within the preset threshold range, iterative calculation of color compensation values ​​is no longer necessary. Instead, a color compensation mapping relationship is generated based on each historical color compensation value. This color compensation mapping relationship can be a color compensation curve, which is fitted by the coordinate points corresponding to each historical color compensation value. The coordinate points corresponding to the historical color compensation values ​​can be composed of the historical color compensation value itself and the sum of the first color value corresponding to that historical color compensation value and the compensated value. For example, if the initial first color value is 'a', the second color value is 'b', and the difference between 'a' and 'b' is 'c' (color compensation value), then the coordinate point corresponding to the color compensation value 'c' is (c, a). Further, after compensation based on 'c', the second color value is 'b1', and the difference between 'a' and 'b1' is 'c1'. The coordinate point corresponding to 'c1' is (c1, a+c), and so on. The fitting method can be linear regression. Alternatively, other fitting methods can be selected by the technicians, which will not be elaborated here. Furthermore, there is a correspondence between the color compensation mapping relationship and the colors of the target color chart used above. It is understandable that, given the obtained color compensation mapping relationship, when the user's visual scene changes, the color compensation value can be directly obtained based on the color compensation mapping relationship for compensation.

[0111] In this embodiment, the head-mounted device of this application collects the actual first color value of the target color mark; compares the first color value with a second color value to obtain a color compensation value, wherein the second color value is the visual perception value of the target color mark viewed by the human eye; performs color compensation on the display area of ​​the head-mounted device based on the color compensation value; determines whether the color compensation value is within a preset threshold range; if the color compensation value is not within the preset threshold range, then performs color compensation on the human eye through the display area to obtain a new second color value, and executes the step of comparing the first color value with the second color value to obtain the color compensation value; if the color compensation value is within the preset threshold range, then the color iteration compensation of the display area is completed. That is, by comparing the actual color value with the user's perceived color value to obtain the color compensation value corresponding to the user, and then performing color compensation on the display of the head-mounted device based on the color compensation value, the color compensation value is repeatedly calculated, so that the display area of ​​the head-mounted device can iteratively perform color compensation on the user's human eye, thereby enabling special groups such as visually impaired patients and patients with visual differences to experience the world of normal colors with the help of the head-mounted device.

[0112] Furthermore, refer to Figure 3 Based on the first embodiment of the visual color compensation method of this application, a second embodiment of this application is proposed.

[0113] After the step of generating a color compensation mapping relationship based on each historical color compensation value, the method includes:

[0114] Step S111: After the color of the target color mark changes, the step of collecting the actual first color value of the target color mark is executed until the color compensation mapping relationship corresponding to the color on each target color mark is obtained.

[0115] Step S112: The color compensation mapping relationships are used as full color gamut compensation information, which serves as the basis for full color compensation of the display area.

[0116] Specifically, after obtaining the color compensation mapping relationship for a color, the color of the target color mark can be changed, such as changing the color of the target color chart or directly changing the color displayed on the first display area. Then, the step of collecting the first color value of the target color chart is executed again, i.e., the color compensation mapping relationship corresponding to the changed color is generated again, until the color compensation mapping relationships corresponding to the preset colors of each target color mark are obtained. Taking color compensation curves as an example, the surface formed by combining the obtained color compensation curves is used as full color gamut compensation information. The surface can be obtained by interpolation calculations based on each color compensation curve. It can be understood that the obtained full color gamut compensation information can be associated and stored with the user's personal information, so that the user can obtain full color gamut compensation information corresponding to themselves when using the head-mounted device. This full color gamut compensation information can be used as the basis for full color compensation of the display area, and the display area performs color compensation for the human eye.

[0117] Furthermore, refer to Figure 4 Based on the second embodiment of the visual color compensation method of this application, a third embodiment of this application is proposed.

[0118] The visual color compensation method also includes:

[0119] Step S400: Acquire the actual image corresponding to the visual area when the human eye views through the display area;

[0120] Step S500: Perform color compensation on the display area based on the actual image and the full color gamut compensation information.

[0121] Furthermore, the actual color values ​​at each position on the actual image are obtained; the color compensation value corresponding to each actual color value in the full color gamut compensation information is determined; and the color of each color compensation value is displayed on the display area according to the positional correspondence between the actual image and the display area, so as to perform color compensation on the display area.

[0122] In this embodiment, the obtained full color gamut compensation information can be directly used for color compensation for the user. Specifically, the head-mounted device acquires the actual image corresponding to the visual area viewed by the user's eyes through the display area. It can be understood that the actual image can be the content to be played on the display area, or it can be the image of the real world viewed by the user through the display area. Obtaining the actual color value at each position on the actual image is equivalent to obtaining the first color value at each position on the actual image. The full color gamut compensation information is actually the mapping relationship between the first color value and the color compensation value. Based on the full color gamut compensation information, the color compensation value at each position on the actual image can be obtained. Moreover, since the actual image is obtained based on the display area, each position on the actual image has a corresponding position on the display area. Based on this positional correspondence, the colors of each color compensation value are displayed on the display area. For example, the color at the geometric center of the actual image is color value 1. According to the full color gamut compensation information, color value 1 corresponds to color compensation value 1. Then, the color corresponding to color compensation value 1 is displayed at the geometric center of the display area. In this way, color compensation of the display area is completed, so that the display area of ​​the head-mounted device can compensate for the user's eyes, allowing special groups such as visually impaired patients and patients with visual differences to experience the world of normal colors with the help of the head-mounted device.

[0123] In addition, to achieve the above objectives, this application also provides a visual color compensation device, which includes: a memory, a processor, and a visual color compensation program stored in the memory and executable on the processor. When the visual color compensation program is executed by the processor, it implements the steps of the visual color compensation method as described above.

[0124] The specific implementation of the visual color compensation device in this application is basically the same as the embodiments of the visual color compensation method described above, and will not be repeated here.

[0125] In addition, to achieve the above objectives, this application also provides a computer-readable storage medium storing a visual color compensation program, which, when executed by a processor, implements the steps of the visual color compensation method as described above.

[0126] The specific implementation of the computer-readable storage medium in this application is basically the same as the embodiments of the above-described visual color compensation method, and will not be repeated here.

[0127] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0128] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0129] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, head-mounted device, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0130] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A visual color compensation method, characterized in that, The visual color compensation method includes the following steps: The step of acquiring the actual first color value of the target color mark, wherein the target color mark is a target color chart, includes: outputting a preset first prompt message, the preset first prompt message being used to prompt the first display area of ​​the head-mounted device to align with the target color chart; when the first display area is detected to be aligned with the target color chart, using the image acquired by the visual sensor on the head-mounted device as the target color chart image; and using the color value of the target color chart area in the target color chart image as the first color value. The method includes, after the step of acquiring the actual first color value of the target color mark, the following: Output a preset second prompt message, which prompts the user to select the color of the target color chart seen in the first display area on the second display area of ​​the head-mounted device. Use the color value corresponding to the selected area on the second display area as the second color value; A color compensation value is obtained by comparing the first color value with the second color value, wherein the second color value is the visual perception value of the human eye when viewing the target color mark; Color compensation is performed on the display area of ​​the head-mounted device based on the aforementioned color compensation value; Determine whether the color compensation value is within a preset threshold range; If the color compensation value is not within the preset threshold range, then after color compensation is performed on the human eye through the display area, a new second color value is obtained, and the step of comparing the first color value with the second color value to obtain the color compensation value is executed. If the color compensation value is within a preset threshold range, then the color iteration compensation of the display area is completed; The step of performing color compensation on the display area of ​​the head-mounted device based on the color compensation value includes: The color corresponding to the color compensation value is displayed on the display area so that the display area can perform color compensation for the human eye. The step of obtaining the new second color value further includes: Then, based on the selected area, the color range displayed in the second display area is narrowed, and the step of outputting the preset second prompt information is executed to obtain a new selected area; The color value corresponding to the new selected area is used as the new second color value.

2. The visual color compensation method as described in claim 1, characterized in that, After the color iteration compensation in the display area is completed, the method includes: A color compensation mapping relationship is generated based on the fitting of each historical color compensation value, wherein the color compensation mapping relationship corresponds to the color of the target color card, and the color compensation mapping relationship serves as the basis for performing monochrome color compensation on the display area.

3. The visual color compensation method as described in claim 2, characterized in that, After the step of generating a color compensation mapping relationship based on each historical color compensation value, the method includes: After the target color mark changes color, the step of collecting the actual first color value of the target color mark is executed until the color compensation mapping relationship corresponding to the color on each target color mark is obtained. The aforementioned color compensation mapping relationships are used as full color gamut compensation information, which serves as the basis for performing full color compensation on the display area.

4. The visual color compensation method as described in claim 3, characterized in that, The visual color compensation method also includes: Collect the actual image corresponding to the visual area when the human eye views through the display area; Color compensation is performed on the display area based on the actual image and the full color gamut compensation information.

5. The visual color compensation method as described in claim 4, characterized in that, The step of performing color compensation on the display area based on the actual image and the full color gamut compensation information includes: Obtain the actual color value at each location on the actual image; Determine the color compensation value corresponding to each actual color value in the full color gamut compensation information; Based on the positional correspondence between the actual image and the display area, the colors of each color compensation value are displayed on the display area to perform color compensation on the display area.

6. A visual color compensation device, characterized in that, The visual color compensation device includes: a memory, a processor, and a visual color compensation program stored in the memory and executable on the processor, wherein when the visual color compensation program is executed by the processor, it implements the steps of the visual color compensation method as described in any one of claims 1 to 5.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a visual color compensation program, which, when executed by a processor, implements the steps of the visual color compensation method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Image processing method, device and equipment, computer program product and storage medium

    CN113379855A

  • Image generating apparatus, and image display system

    JP2009177735A

  • Color correction method, correctable display method, electronic device, and chip

    WO2022199332A1