Color correction method for augmented reality equipment and related equipment

By obtaining the maximum grayscale value and gamma value of the augmented reality device and performing color correction using a fixed parameter set, the problem of color display deviation in augmented reality devices is solved, simplifying operation and improving display quality and user experience.

CN121983000APending Publication Date: 2026-05-05SHENZHENSHI YUZHAN PRECISION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511946428.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-19
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

Existing augmented reality devices have inaccuracies in color display, and the correction methods are complex and dependent on the external environment, affecting the integration of virtual objects with the real environment and the user experience.

Method used

By obtaining the maximum grayscale value of the target color channel of the augmented reality device, measuring the color image using a fixed parameter group, calculating the gamma value and making corrections, the operation is simplified and does not depend on the external environment.

Benefits of technology

It enables simple color correction, improves the display quality and user experience of augmented reality devices, and ensures a high degree of integration between virtual information and the real environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121983000A_ABST
    Figure CN121983000A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of augmented reality equipment and the technical field of color correction, in particular to a color correction method of augmented reality equipment and related equipment. The method comprises the following steps: acquiring a gray scale maximum value of a target color channel; displaying a first color picture based on the first parameter group; performing color measurement on the first color picture to obtain a first measurement value; calculating a measured gray scale gamma value corresponding to the target color channel according to the first measured value, a first preset value and a gray scale maximum value; displaying a second color picture based on the second parameter group; the first preset value and the second preset value are fixed values smaller than the maximum value; performing color measurement on the second color picture to obtain a second measurement value; calculating a measurement brightness gamma value corresponding to the target color channel according to the second measurement value, a second preset value and a gray scale maximum value; and if the measured gray scale gamma value does not conform to the first preset condition or the measured brightness gamma value does not conform to the second preset condition, performing color correction on the augmented reality device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of augmented reality device technology and color correction technology, and more particularly to a color correction method and related equipment for augmented reality devices. Background Technology

[0002] Augmented Reality (AR) technology provides users with entirely new interactive experiences by overlaying virtual information onto the real world. For AR devices, such as AR glasses or helmets, the color accuracy of the display is crucial, directly affecting the realism of the integration of virtual objects with the real environment and the user's visual comfort. Currently, color display calibration for AR devices faces the following challenges: First, due to the spectral characteristics of optical modules (such as waveguides and prisms), individual differences in microdisplays, and the influence of ambient light, color display deviations are prone to occur after the devices leave the factory.

[0003] Therefore, there is an urgent need in the field for a color correction method that can correct the characteristics of color channels and luminance channels, is easy to operate, and does not depend on complex external environments, in order to improve the display quality and user experience of augmented reality devices. Summary of the Invention

[0004] In view of this, the present invention provides a color correction method and related equipment for augmented reality devices, which is not dependent on complex external environments and is easy to operate.

[0005] In a first aspect, embodiments of the present invention provide a color correction method for an augmented reality device, comprising: Obtain the maximum grayscale value of the augmented reality device in the target color channel; The augmented reality device is controlled to display a first color image based on a first parameter group; wherein, the value of the brightness channel in the first parameter group is the maximum value, and the value of the target color channel is a first preset value; Perform color measurements on the first color image to obtain a first measurement value; Calculate the measured grayscale gamma value corresponding to the target color channel based on the first measured value, the first preset value, and the maximum grayscale value; Determine whether the measured grayscale gamma value meets the first preset condition; If the measured grayscale gamma value does not meet the first preset condition, then color correction is performed on the augmented reality device; If the measured grayscale gamma value meets the first preset condition, the augmented reality device is controlled to display a second color image based on the second parameter group; wherein, the target color channel in the second parameter group takes the maximum value, and the brightness channel takes the second preset value; the first preset value and the second preset value are both fixed values ​​less than the maximum value; Perform color measurements on the second color image to obtain a second measurement value; The measured luminance gamma value corresponding to the target color channel is calculated based on the second measured value, the second preset value, and the maximum grayscale value. Determine whether the measured brightness gamma value meets the second preset condition; If the measured brightness gamma value does not meet the second preset condition, then color correction is performed on the augmented reality device.

[0006] In one possible implementation, obtaining the maximum grayscale value of the augmented reality device in the target color channel includes: The augmented reality device is controlled to display a third color image based on a third parameter group; wherein, the values ​​of the target color channel and the luminance channel in the third parameter group are both maximum values, and the values ​​of the other color channels besides the target color channel are all minimum values; Color measurements are performed on the third color image to obtain the maximum grayscale value of the target color channel.

[0007] In one possible implementation, the values ​​of all color channels in the first and second parameter groups, except for the target color channel, are the minimum values.

[0008] In one possible implementation, if the measured grayscale gamma value does not meet the first preset condition, color correction is performed on the augmented reality device, including: Determine the first difference between the measured grayscale gamma value and the first preset gamma value; If the first difference is not zero, it is determined that the measured grayscale gamma value does not meet the first preset condition, and a first correction value is determined based on the first difference. Adjust the grayscale gamma value of the target color channel according to the first correction value.

[0009] In one possible implementation, if the measured luminance gamma value does not meet the second preset condition, color correction is performed on the augmented reality device, including: Determine the second difference between the measured brightness gamma value and the second preset gamma value; If the second difference is not zero, it is determined that the measured brightness gamma value does not meet the second preset condition, and a second correction value is determined based on the second difference; Adjust the luminance gamma value of the target color channel according to the second correction value.

[0010] In one possible implementation, the target color channel is any one of the red, green, and blue color channels.

[0011] Secondly, embodiments of the present invention provide a color correction device for an augmented reality device, comprising: The acquisition module is used to acquire the maximum grayscale value of the augmented reality device in the target color channel; The control module is configured to control the augmented reality device to display a first color image based on a first parameter group, wherein the value of the luminance channel in the first parameter group is a maximum value and the value of the target color channel is a first preset value; and to control the augmented reality device to display a second color image based on a second parameter group, wherein the value of the target color channel in the second parameter group is a maximum value and the value of the luminance channel is a second preset value; both the first preset value and the second preset value are fixed values ​​less than the maximum value; The measurement module is used to perform color measurement on the first color image to obtain a first measurement value; and to perform color measurement on the second color image to obtain a second measurement value. The processing module is configured to calculate the measured grayscale gamma value corresponding to the target color channel based on the first measured value, the first preset value, and the maximum grayscale value; and to calculate the measured luminance gamma value corresponding to the target color channel based on the second measured value, the second preset value, and the maximum grayscale value. The judgment module is used to determine whether the measured grayscale gamma value meets a first preset condition; and; and to determine whether the measured brightness gamma value meets a second preset condition; The correction module is used to perform color correction on the augmented reality device when the judgment module determines that the measured grayscale gamma value does not meet the first preset condition; and when the judgment module determines that the measured brightness gamma value does not meet the second preset condition, it is used to perform color correction on the augmented reality device.

[0012] In one possible implementation, the values ​​of all color channels in the first and second parameter groups, except for the target color channel, are the minimum values.

[0013] Thirdly, embodiments of the present invention provide an electronic device, comprising: At least one processor; and At least one memory communicatively connected to the processor, wherein: The memory stores program instructions that can be executed by the processor, and the processor can execute the method described in the first aspect by calling the program instructions.

[0014] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing computer instructions that cause the computer to perform the method described in the first aspect.

[0015] In this embodiment of the invention, by controlling the augmented reality device to display a monochrome color image according to a fixed set of parameters, and then detecting the monochrome color image to obtain the measured gamma value of the corresponding color channel, color correction of the augmented reality device can be achieved without the need for professional equipment or complicated operations. Attached Figure Description

[0016] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 A flowchart illustrating a color correction method for an augmented reality device provided in an embodiment of the present invention; Figure 2a This is a schematic diagram of the deployment location of an ambient light sensor provided in an embodiment of the present invention; Figure 2b This is a schematic diagram of another ambient light sensor deployment location provided in an embodiment of the present invention; Figure 2c This is a schematic diagram of another ambient light sensor deployment location provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of a color correction device for an augmented reality device provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0018] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0019] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0020] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0021] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0022] To address the complexity of color correction operations and dependence on complex external environments in current augmented reality (AR) devices, this invention provides a color correction method for AR devices. This method corrects the gamma values ​​of the target color channel and the gamma values ​​of the luminance channel, achieving color correction for AR devices in a simple and independent manner. Figure 1 This is a flowchart illustrating a color correction method for an augmented reality device according to an embodiment of the present invention. Figure 1 As shown, the method includes: Step 101: Obtain the maximum grayscale value of the augmented reality device in the target color channel.

[0023] Taking the RGB color mode as an example, it consists of four channels: red, green, blue, and a luminance channel. Each of the three color channels is also called a grayscale channel. In this embodiment of the invention, the target color channel refers to any one of the three color channels (red, green, blue). The maximum grayscale value is based on the channel content, i.e., the luminance data of one pixel in that channel. Taking 8 bits as an example, each channel has 256 grayscale values, ranging from 0 to 255.

[0024] In this embodiment of the invention, obtaining the maximum grayscale value of the target color channel refers to the measured value obtained after measuring the displayed grayscale value of the target color channel when the grayscale value of the target color channel is set to the maximum value and displayed. That is, the maximum grayscale value that the target color channel can display is obtained through measurement.

[0025] Step 102: Control the augmented reality device to display a first color image based on a first parameter group. In this first parameter group, the brightness channel value is the maximum value, and the target color channel value is a first preset value. The first preset value is a fixed value less than the maximum value.

[0026] In the first parameter group, all color channels except the target color channel have their minimum values. Taking an 8-bit data size where the target color channel is red as an example, the values ​​of the three RGB channels in the first parameter group are (first preset value, 0, 0), and the value of the luminance channel is 255. Specifically, the three values ​​in the first parameter group represent the values ​​of the red, green, and blue color channels, respectively.

[0027] Step 103: Perform color measurement on the first color image to obtain the first measurement value.

[0028] Taking the target color channel as red as an example, the first measurement value obtained after measuring the first color image is (first measurement value, 0, 0), and the brightness channel is 255.

[0029] Step 104: Calculate the measured grayscale gamma value corresponding to the target color channel based on the first measured value, the first preset value, and the maximum grayscale value.

[0030] The gamma value represents the exponential relationship between input and output, a concept derived from the response curve of a monitor or television, which describes the non-linear relationship between brightness and input voltage. In augmented reality devices, the input grayscale value and output grayscale value typically exhibit an exponential relationship of 2.2. That is, when the gamma value is 2.2, the output grayscale value = (input grayscale value) 2.2 Taking an 8-bit size as an example, the output grayscale value = (input grayscale value / 255). 2.2 .

[0031] The measured grayscale gamma value corresponding to the target color channel can then be calculated based on the first preset value, the first measured value, and the maximum grayscale value.

[0032] Specifically, taking 8-bit size as an example, the color image displayed by an augmented reality device is composed of three parts added together: W R (Max) R (Gray) R / 255)(Rγ gray (Bright / Bright) max (Rγ) Bright )+W G (Max) G (Gray) G / 255)(Gγ gray (Bright / Bright) max (Gγ) Bright )+W B (Max) B (Gray) B / 255)(Bγ gray(Bright / Bright) max (Bγ) Bright ).

[0033] Among them, W R W G and W B These are the weight values ​​for the red, green, and blue color channels, respectively. R Max G and Max B These represent the maximum gray levels for the red, green, and blue color channels, respectively. R Gray G and Gray B These are the current display values ​​for the red, green, and blue color channels, respectively. Rγ gray Gγ gray and Bγ gray These are the grayscale gamma values ​​for the red, green, and blue color channels, respectively. Bright represents the display value for the luminance channel. max This represents the maximum value of the luminance channel. Rγ Bright Gγ Bright and Bγ Bright These are the gamma values ​​for the red, green, and blue color channels, respectively.

[0034] Taking the red color channel as an example, the specific steps for calculating the measured grayscale gamma value of the red color channel using the above-mentioned color image composition formula are as follows: Since the grayscale values ​​of the green and blue color channels in the first parameter group are both the minimum value of 0, the color display consists only of the red portion. That is, the first measured value = (Max... R (Gray) R / 255)(Rγ gray (Bright / Bright) max (Rγ) Bright ).

[0035] Since the value of the brightness channel in the first parameter group is the maximum value, therefore Bright = Bright max , will Gray R Substituting the first preset value into the above formula and after preliminary simplification, we get: First measured value = (Max) R (First preset value / 255) (Rγ) gray ) After rearranging the above formula, we get: log(first measured value / MaxR) = (Rγgray)log(first preset value / 255) After rearranging the above formula, we get: Rγgray=log(first measured value / MaxR) / log(first preset value / 255) The measured grayscale gamma value of the red color channel can be calculated using the method described above.

[0036] The above method can be used to calculate the measured grayscale gamma value of any one of the three color channels: red, green, and blue. The calculation steps for the green and blue color channels are the same as those for the red color channel in the example above, and will not be repeated here.

[0037] Step 105: Determine whether the measured grayscale gamma value meets the first preset condition. If it does, proceed to step 106; otherwise, proceed to step 110.

[0038] Step 106: Control the augmented reality device to display a second color image based on the second parameter group. In the second parameter group, the target color channel value is the maximum value, and the brightness channel value is a second preset value. The second preset value is a fixed value less than the maximum value.

[0039] In the second parameter group, all color channels except the target color channel have their minimum values. Taking an 8-bit data size where the target color channel is red as an example, the values ​​of the three RGB channels in the second parameter group are (255, 0, 0), and the value of the luminance channel is the second preset value. The three values ​​in the second parameter group are, in order, the values ​​of the red color channel, the green color channel, and the blue color channel.

[0040] Step 107: Perform color measurement on the second color image to obtain the second measurement value.

[0041] The second measurement value obtained after color measurement of the second color image is (255,0,0) with the target color channel being red as an example, and the brightness channel is the second measurement value.

[0042] Step 108: Calculate the measured brightness gamma value corresponding to the target color channel based on the second measured value, the second preset value, and the maximum grayscale value.

[0043] For measuring the gamma value of the target color channel, taking an 8-bit red color channel as an example. Since the grayscale values ​​of the green and blue color channels in the second parameter group are both the minimum value of 0, and the maximum grayscale value of the red color channel is 255, the value of the brightness channel is the second preset value. Therefore, the second measured value = (Max... R(255 / 255) (Rγ) gray (Second preset value / Bright) max (Rγ) Bright ) After rearranging the above formula, we get: Second measured value = (Max) R (Second preset value / Bright) max (Rγ) Bright ) After rearranging the above formula, we get: log(second measured value / Max) R ) = (Rγ Bright )log(second preset value / Bright) max ) After rearranging the above formula, we get: Rγ Bright =log(second measurement value / Max) R / log (second preset value / Bright) max ).

[0044] The above method can be used to calculate the measured gamma value of any one of the three color channels: red, green, and blue. The calculation steps for the green and blue color channels are the same as those for the red color channel in the example above, and will not be repeated here.

[0045] Step 109: Determine whether the measured luminance gamma value meets the second preset condition. If it does, end the color calibration. If it does not, proceed to step 110.

[0046] Step 110: Perform color calibration on the augmented reality device.

[0047] Specifically, for measuring grayscale gamma values, a first difference can be determined between the measured grayscale gamma value and a first preset gamma value. If the first difference is not zero, it is determined that the measured grayscale gamma value does not meet the first preset condition, and a first correction value is determined based on the first difference. Then, the grayscale gamma value of the target color channel is adjusted according to the first correction value.

[0048] For measuring the luminance gamma value, a second difference can be determined between the measured luminance gamma value and a second preset gamma value. If the second difference is not zero, it is determined that the measured luminance gamma value does not meet the second preset condition, and a second correction value is determined based on the second difference. Then, the luminance gamma value of the target color channel is adjusted according to the second correction value.

[0049] The augmented reality device (AR) includes a projector, a highly integrated, extremely demanding miniature image generator. The projector's technology choice (Micro-OLED, LCoS, LBS, etc.) directly determines the AR device's display quality, size, brightness, and final price, making it one of the most critical and technologically challenging components. At the factory, the projector is set to have a gamma value of 2.2 for all color and luminance channels. However, the final effect of the light emitted by the projector after passing through internal components and external objects may not be 2.2. This refers to the measured grayscale gamma value and measured luminance gamma value. Therefore, when the measured grayscale gamma value and measured luminance gamma value are not 2.2, a correction value is determined based on the difference between the measured grayscale gamma value and 2.2. The projector then modifies its parameters based on this correction value to complete color correction.

[0050] In the above embodiments, calculating both the measured grayscale gamma value and the measured luminance gamma value requires the maximum grayscale value of the target color channel. The maximum grayscale value of the target color channel is obtained as follows: The augmented reality device is controlled to display a third color image based on a third parameter group. In this third parameter group, the target color channel and luminance channel have their maximum values, while all other color channels have their minimum values. Color measurements are performed on the third color image to obtain the maximum grayscale value of the target color channel.

[0051] Taking the target color channel as an 8-bit red color channel as an example, the values ​​for the red, green, and blue color channels in the third parameter group are (255, 0, 0), and the value for the luminance channel is 255. Therefore, the measured value obtained after color measurement of the third color image = (Max... R (255 / 255) (Rγ) gray (Bright) max / Bright max (Rγ) Bright )+W G (Max) G (0 / 255)(Gγ) gray (Bright / Bright) max (Gγ) Bright )+W B (Max) B (0 / 255) (Bγ) gray (Bright / Bright) max (Bγ) Bright ) After rearranging the above formula, we get: Measured value = Max R That is, the measured value obtained after measuring the third color image is the maximum grayscale value of the target color channel.

[0052] By measuring sequentially using the above method, the maximum grayscale values ​​of the red, green, and blue color channels can be obtained.

[0053] To improve the calibration efficiency of augmented reality devices, this embodiment of the invention provides a calibration process. Specifically, the augmented reality device sequentially displays (255,0,0) + Bright. max (0,255,0)+Bright max And (0,0,255)+Bright max Three sets of parameters are used to obtain the maximum grayscale values ​​of the red, green, and blue color channels. Then, the values ​​are displayed sequentially as (first preset value, 0, 0) + Bright. max (0, first preset value, 0) + Bright max and (0,0, first preset value)+Bright max Three sets of parameters are used to obtain the measured grayscale gamma values ​​for the red, green, and blue color channels. Then, it is verified that the measured grayscale gamma values ​​for all three color channels are 2.2. If not, calibration is performed. If yes, the three sets of parameters (255,0,0) + second preset value, (0,255,0) + second preset value, and (0,0,255) + second preset value are displayed sequentially to obtain the measured luminance gamma values ​​for the red, green, and blue color channels. Then, it is verified that the measured luminance gamma values ​​for all three color channels are 2.2. If not, calibration is performed. If yes, calibration ends.

[0054] In some embodiments, when measuring the colors of the first color image, the second color image, and the third color image, an ambient light sensor (ALS) can be used. The ALS can be deployed at any position on the optical path between the projector and the imaging module. Figures 2a to 2c The diagram illustrates three deployment locations for ALS (Augmented Reality System). The augmented reality device is the augmented reality glasses; 201 is the projector, the light source; 202 is the imaging module, the lens of the augmented reality glasses; and 203 is the ALS device. Figures 2a to 2c As shown, the ALS203 can be deployed at any location along the optical path.

[0055] It should be noted that, Figures 2a to 2c Three ALS deployment locations are shown as examples only, and are not intended to limit ALS deployment locations to any specific location. Figures 2a to 2cIn the three scenarios shown, the ALS is deployed at any location where it can receive the light source emitted by the Projector.

[0056] Corresponding to the color correction method for augmented reality devices described above, this embodiment of the invention provides a color correction device for augmented reality devices. Figure 3 This is a schematic diagram of the structure of a color correction device for an augmented reality device provided in an embodiment of the present invention. Figure 3 As shown, the device includes: an acquisition module 301, a control module 302, a measurement module 303, a processing module 304, a judgment module 305, and a correction module 306.

[0057] The acquisition module 301 is used to acquire the maximum grayscale value of the augmented reality device in the target color channel.

[0058] Control module 302 is used to control the augmented reality device to display a first color image based on a first parameter group. The first parameter group contains a maximum value for the luminance channel and a first preset value for the target color channel. It is also used to control the augmented reality device to display a second color image based on a second parameter group. The second parameter group contains a maximum value for the target color channel and a second preset value for the luminance channel. Both the first and second preset values ​​are fixed values ​​less than the maximum value.

[0059] The measurement module 303 is used to perform color measurement on the first color image to obtain a first measurement value, and to perform color measurement on the second color image to obtain a second measurement value.

[0060] Processing module 304 is used to calculate the measured grayscale gamma value corresponding to the target color channel based on the first measured value, the first preset value, and the maximum grayscale value. It is also used to calculate the measured luminance gamma value corresponding to the target color channel based on the second measured value, the second preset value, and the maximum grayscale value.

[0061] The judgment module 305 is used to determine whether the measured grayscale gamma value meets the first preset condition, and whether the measured brightness gamma value meets the second preset condition.

[0062] The correction module 306 is used to perform color correction on the augmented reality device when the judgment module determines that the measured grayscale gamma value does not meet the first preset condition. It is also used to perform color correction on the augmented reality device when the judgment module determines that the measured brightness gamma value does not meet the second preset condition.

[0063] Figure 3 The color correction device for an augmented reality device provided in the illustrated embodiment can be used to execute this specification. Figure 1The implementation principle and technical effects of the method embodiment shown in -2 can be further referred to the relevant descriptions in the method embodiment.

[0064] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention, such as... Figure 4 As shown, the aforementioned electronic device may include at least one processor and at least one memory communicatively connected to the processor, wherein the memory stores program instructions executable by the processor, and the processor can execute this specification by calling the program instructions. Figure 1 The embodiment shown in -2 provides a color correction method for an augmented reality device.

[0065] like Figure 4 As shown, the electronic device is represented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: one or more processors 410, communication interface 420 and memory 430, and a communication bus 440 connecting different system components (including memory 430, communication interface 420 and processor 410).

[0066] Communication bus 440 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) buses, Micro Channel Architecture (MAC) buses, Enhanced ISA buses, Video Electronics Standards Association (VESA) local buses, and Peripheral Component Interconnect (PCI) buses.

[0067] Electronic devices typically include a variety of computer-readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, and removable and non-removable media.

[0068] Memory 430 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. Memory 430 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments described herein.

[0069] A program / utility having a set (at least one) of program modules may be stored in memory 430. Such program modules include—but are not limited to—an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. The program modules typically perform the functions and / or methods described in the embodiments of this specification.

[0070] Processor 410 executes various functional applications and data processing by running programs stored in memory 430, such as implementing the functions described in this specification. Figure 1 The embodiment shown in -2 provides a color correction method for an augmented reality device.

[0071] This specification provides a computer program product, which includes a computer program that, when executed by a processor, performs the functions described in this specification. Figure 1 The embodiment shown in -2 provides a color correction method for an augmented reality device.

[0072] This specification provides a computer-readable storage medium storing computer instructions that cause a computer to execute this specification. Figure 1 The embodiment shown in -2 provides a color correction method for an augmented reality device.

[0073] The aforementioned computer-readable storage medium may be any combination of one or more computer-readable media. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory, optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium that contains or stores a program that may be used by or in connection with an instruction execution system, apparatus, or device.

[0074] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0075] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this specification. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0076] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this specification, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0077] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this specification includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which the embodiments of this specification pertain.

[0078] Depending on the context, the word "if" as used here can be interpreted as "when," "when," "in response to determination," or "in response to detection." Similarly, depending on the context, the phrase "if determination" or "if detection (of the stated condition or event)" can be interpreted as "when determination," "in response to determination," "when detection (of the stated condition or event)," or "in response to detection (of the stated condition or event)."

[0079] It should be noted that the devices involved in the embodiments of this specification may include, but are not limited to, personal computers (PCs), personal digital assistants (PDAs), wireless handheld devices, tablet computers, mobile phones, MP3 displays, MP4 displays, etc.

[0080] In the several embodiments provided in this specification, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0081] Furthermore, the functional units in the various embodiments of this specification can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units.

[0082] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, a connector, or a network device, etc.) or a processor to execute some steps of the methods described in the various embodiments of this specification. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0083] The above description is merely a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of protection of this specification.

[0084] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the device embodiments and terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.

Claims

1. A color correction method for an augmented reality device, characterized in that, include: Obtain the maximum grayscale value of the augmented reality device in the target color channel; The augmented reality device is controlled to display a first color image based on a first parameter group; wherein, the value of the brightness channel in the first parameter group is the maximum value, and the value of the target color channel is a first preset value; Perform color measurements on the first color image to obtain a first measurement value; Calculate the measured grayscale gamma value corresponding to the target color channel based on the first measured value, the first preset value, and the maximum grayscale value; Determine whether the measured grayscale gamma value meets the first preset condition; If the measured grayscale gamma value does not meet the first preset condition, then color correction is performed on the augmented reality device; If the measured grayscale gamma value meets the first preset condition, the augmented reality device is controlled to display a second color image based on the second parameter group; wherein, the target color channel in the second parameter group takes the maximum value, and the brightness channel takes the second preset value; the first preset value and the second preset value are both fixed values ​​less than the maximum value; Perform color measurements on the second color image to obtain a second measurement value; The measured luminance gamma value corresponding to the target color channel is calculated based on the second measured value, the second preset value, and the maximum grayscale value. Determine whether the measured brightness gamma value meets the second preset condition; If the measured brightness gamma value does not meet the second preset condition, then color correction is performed on the augmented reality device.

2. The method according to claim 1, characterized in that, The step of obtaining the maximum grayscale value of the augmented reality device in the target color channel includes: The augmented reality device is controlled to display a third color image based on a third parameter group; wherein, the values ​​of the target color channel and the luminance channel in the third parameter group are both maximum values, and the values ​​of the other color channels besides the target color channel are all minimum values; Color measurements are performed on the third color image to obtain the maximum grayscale value of the target color channel.

3. The method according to claim 1, characterized in that, In both the first and second parameter groups, the values ​​of all color channels other than the target color channel are the minimum values.

4. The method according to claim 1, characterized in that, If the measured grayscale gamma value does not meet the first preset condition, then color correction is performed on the augmented reality device, including: Determine the first difference between the measured grayscale gamma value and the first preset gamma value; If the first difference is not zero, it is determined that the measured grayscale gamma value does not meet the first preset condition, and a first correction value is determined based on the first difference. Adjust the grayscale gamma value of the target color channel according to the first correction value.

5. The method according to claim 1, characterized in that, If the measured brightness gamma value does not meet the second preset condition, then color correction is performed on the augmented reality device, including: Determine the second difference between the measured brightness gamma value and the second preset gamma value; If the second difference is not zero, it is determined that the measured brightness gamma value does not meet the preset conditions, and a second correction value is determined based on the second difference; Adjust the luminance gamma value of the target color channel according to the second correction value.

6. The method according to claim 1, characterized in that, The target color channel is any one of the red, green, and blue color channels.

7. A color correction device for an augmented reality device, characterized in that, include: The acquisition module is used to acquire the maximum grayscale value of the augmented reality device in the target color channel; The control module is configured to control the augmented reality device to display a first color image based on a first parameter group, wherein the value of the luminance channel in the first parameter group is a maximum value and the value of the target color channel is a first preset value; and to control the augmented reality device to display a second color image based on a second parameter group, wherein the value of the target color channel in the second parameter group is a maximum value and the value of the luminance channel is a second preset value; both the first preset value and the second preset value are fixed values ​​less than the maximum value; The measurement module is used to perform color measurement on the first color image to obtain a first measurement value; and to perform color measurement on the second color image to obtain a second measurement value. The processing module is configured to calculate the measured grayscale gamma value corresponding to the target color channel based on the first measured value, the first preset value, and the maximum grayscale value; and to calculate the measured luminance gamma value corresponding to the target color channel based on the second measured value, the second preset value, and the maximum grayscale value. The judgment module is used to determine whether the measured grayscale gamma value meets a first preset condition; and; and to determine whether the measured brightness gamma value meets a second preset condition; The correction module is configured to perform color correction on the augmented reality device when the judgment module determines that the measured grayscale gamma value does not meet the first preset condition; and to perform color correction on the augmented reality device when the judgment module determines that the measured brightness gamma value does not meet the second preset condition.

8. The apparatus according to claim 7, characterized in that, In both the first and second parameter groups, the values ​​of all color channels other than the target color channel are the minimum values.

9. An electronic device, characterized in that, include: At least one processor; as well as At least one memory communicatively connected to the processor, wherein: The memory stores program instructions that can be executed by the processor, and the processor can execute the method as described in any one of claims 1 to 6 by calling the program instructions.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause the computer to perform the method as described in any one of claims 1 to 6.