Color alignment correction method and device

By performing a color accuracy test on the first electronic device and sending the conversion parameters to the second electronic device, the color control file is directly generated, which solves the problem of long color accuracy correction in the existing technology and achieves faster and more economical color accuracy correction. process.

CN118694906APending Publication Date: 2024-09-24GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310290181.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing color accuracy correction method collects sample image data on the PC. After algorithm verification and color accuracy algorithm processing, a control file is generated that can be written directly to the entire machine. The entire correction process takes a long time.

Method used

By obtaining the sample image data of the first color space, the actual image data is obtained based on the conversion parameters, and the color accuracy test is performed. If it passes, the conversion parameters are sent to the second electronic device. The second electronic device directly based on the received parameters and image data Obtain corrected data, generate color control files to control monitor display, optimize transmission content, and shorten correction work.

Benefits of technology

It shortens the time for color calibration, reduces the cost of color calibration, and reduces the entire calibration time by nearly half.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694906A
    Figure CN118694906A
Patent Text Reader

Abstract

The embodiment of the invention relates to the field of color alignment correction, and discloses a color alignment correction method and device. The method comprises the following steps: acquiring first sample image data of a first color space; obtaining first actual image data based on a first conversion parameter and the first sample image data; obtaining first corrected image data based on a second conversion parameter and the first actual image data; performing color accuracy test on the first corrected image data; and if the first corrected image data passes the color accuracy test, sending the first conversion parameter and the second conversion parameter to a second electronic device. According to the method and the device, the first electronic equipment is used for disassembling the color accuracy correction, setting a part of algorithms on the first electronic equipment, including color space conversion and color accuracy test on the first sample image data, and then setting a part of algorithms on the second electronic equipment, so that the transmission content is optimized, the whole correction time can be shortened, and the correction efficiency is improved. And the time cost of color alignment correction can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of color calibration, and more particularly to a color calibration method and device. Background Art

[0002] Electronic devices with displays, such as televisions, usually require color calibration before leaving the factory.

[0003] However, the existing color calibration method collects sample image data on the PC side, and after algorithm verification and color calibration algorithm processing, generates a control file that can be directly written by the entire machine. The entire calibration process takes a long time. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a color calibration method and device, which can shorten the overall color calibration time.

[0005] To solve the above technical problems, the embodiments of the present application adopt the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a color accuracy correction method, which is applied to a first electronic device, and the method includes:

[0007] Acquire first sample image data in a first color space;

[0008] Based on the first conversion parameter and the first sample image data, obtaining first actual image data;

[0009] Obtaining first corrected image data based on a second conversion parameter and the first actual image data;

[0010] Performing a color accuracy test on the first corrected image data;

[0011] If the first corrected image data passes the color accuracy test, the first conversion parameter and the second conversion parameter are sent to a second electronic device.

[0012] In some embodiments, obtaining the first actual image data based on the first conversion parameter and the first sample image data includes:

[0013] Based on the third conversion parameter and the first sample image data, obtaining first intermediate image data in a second color space;

[0014] Based on the first conversion parameter and the first intermediate image data, the first actual image data is obtained.

[0015] In some embodiments, performing a color accuracy test on the first corrected image data includes:

[0016] comparing the first corrected image data with theoretical image data;

[0017] If the color accuracy difference between the first corrected image data and the theoretical image data is within a preset range, determining that the first corrected image data passes the color accuracy test;

[0018] If the color accuracy difference between the first corrected image data and the theoretical image data is greater than the preset range, it is determined that the first corrected image data fails the color accuracy test.

[0019] In some embodiments, the method further comprises:

[0020] If the corrected image data fails the color accuracy test, adjusting the first conversion parameter and the second conversion parameter to obtain a first adjusted conversion parameter and a second adjusted conversion parameter;

[0021] Acquire second sample image data in the first color space;

[0022] obtaining second actual image data based on the first adjustment conversion parameter and the second sample image data;

[0023] obtaining second corrected image data based on the second adjustment conversion parameter and the second actual image data;

[0024] Performing a color accuracy test on the second corrected image data;

[0025] If the second corrected image data passes the color accuracy test, the first adjustment conversion parameter and the second adjustment conversion parameter are sent to the second electronic device.

[0026] In a second aspect, the present application provides a color accuracy correction method, which is applied to a second electronic device, and the method includes:

[0027] receiving a first conversion parameter and a second conversion parameter;

[0028] Acquire first image data in a first color space;

[0029] obtaining third actual image data based on the first conversion parameter and the first image data;

[0030] obtaining first correction data of the first image data based on the third actual image data and the second conversion parameter;

[0031] Obtaining a color control file based on the first calibration data;

[0032] The display of the display is controlled based on the color control file.

[0033] In some embodiments, obtaining third actual image data based on the first conversion parameter and the first image data includes:

[0034] obtaining second intermediate image data in a second color space based on a third conversion parameter and the first image data;

[0035] The third actual image data is obtained based on the first conversion parameter and the second intermediate image data.

[0036] In a third aspect, the present application further provides a color accuracy correction device, applied to a first electronic device, the device comprising:

[0037] A first acquisition module, used to acquire first sample image data in a first color space;

[0038] A first data acquisition module, configured to obtain first actual image data based on a first conversion parameter and the first sample image data;

[0039] A corrected image acquisition module, configured to obtain first corrected image data based on a second conversion parameter and the first actual image data;

[0040] A testing module, used for performing a color accuracy test on the first corrected image data;

[0041] A sending module is used to send the first conversion parameter and the second conversion parameter to a second electronic device if the first corrected image data passes the color accuracy test.

[0042] In a fourth aspect, the present application further provides a color accuracy correction device, applied to a second electronic device, the device comprising:

[0043] A receiving module, configured to receive a first conversion parameter and a second conversion parameter;

[0044] A second acquisition module, used for acquiring first image data in a first color space;

[0045] A third data acquisition module, configured to obtain third actual image data based on the first conversion parameter and the first image data;

[0046] A correction data acquisition module, configured to obtain first correction data of the first image data based on the third actual image data and the second conversion parameter;

[0047] A file acquisition module, used for obtaining a color control file based on the first calibration data;

[0048] A display module is used to control the display of a display based on the color control file.

[0049] In a fifth aspect, the present application further provides a first electronic device, the first electronic device comprising:

[0050] A first processor and a first memory communicatively connected to the first processor;

[0051] The first memory stores computer program instructions, and when the computer program instructions are called by the first processor, the first processor executes the method as described in any one of the first aspects.

[0052] In a sixth aspect, the present application further provides a second electronic device, the second electronic device comprising:

[0053] a second processor and a second memory communicatively connected to the second processor;

[0054] The second memory stores computer program instructions, and when the computer program instructions are called by the second processor, the second processor executes the method as described in any one of the second aspects.

[0055] In the seventh aspect, the present application also provides a non-volatile computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a first electronic device, the steps of the color accuracy correction method as described in any one of the first aspects are implemented, and / or when the computer-executable instructions are executed by a second electronic device, the steps of the color accuracy correction method as described in any one of the second aspects are implemented.

[0056] Beneficial effects of the embodiments of the present application: Different from the prior art, the color accuracy correction method and device provided by the embodiments of the present application, when one electronic device displays image data, if the display of another electronic device also wants to display the image data, color accuracy correction is required. Therefore, the first electronic device obtains the first sample image data of the first color space, and obtains the first corrected image data based on the first conversion parameter and the second conversion parameter. If the first corrected image data passes the color accuracy test, only the first conversion parameter and the second conversion parameter are sent to the second electronic device, and there is no need to send all the files related to the color accuracy test to the second electronic device. After receiving the first conversion parameter and the second conversion parameter, the second electronic device directly obtains the corrected data based on the first conversion parameter, the second conversion parameter and the first image data, which is the first corrected data, and obtains the color control file based on the first corrected data, and controls the display of the second electronic device based on the color control file, so that part of the algorithm is implemented in the first electronic device and part of the algorithm is implemented in the second electronic device. Since the first electronic device transmits parameters to the second electronic device, the transmission content can be optimized, the correction time can be shortened, and the cost of color accuracy correction can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0058] Figure 1 It is a schematic diagram of a scenario in which a first electronic device and a second electronic device interact with each other in the present application;

[0059] Figure 2 It is a schematic diagram of the flow of interaction between the first electronic device and the second electronic device of the present application;

[0060] Figure 3 It is a flowchart of an embodiment of the color accuracy correction method of the present application;

[0061] Figure 4 It is a flowchart of another embodiment of the color accuracy correction method of the present application;

[0062] Figure 5 It is a structural schematic diagram of an embodiment of the color accuracy correction device of the present application;

[0063] Figure 6 It is a structural schematic diagram of another embodiment of the color accuracy correction device of the present application;

[0064] Figure 7 is a schematic diagram of the hardware structure of a controller in an embodiment of the first electronic device of the present application;

[0065] Figure 8 It is a schematic diagram of the hardware structure of a controller in an embodiment of the second electronic device of the present application. DETAILED DESCRIPTION

[0066] The present application is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present application, but do not limit the present application in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements can also be made without departing from the concept of the present application. These all belong to the protection scope of the present application.

[0067] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0068] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, all within the scope of protection of the present application. In addition, although the functional module division is performed in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a sequence different from the module division in the device or the flow chart. In addition, the words "first", "second", "third", etc. used herein do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.

[0069] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in this specification and in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.

[0070] In addition, the technical features involved in each embodiment of the present application described below can be combined with each other as long as they do not conflict with each other.

[0071] like Figure 1 As shown, Figure 1 This is a schematic diagram of a scene in which a first electronic device interacts with a second electronic device. The first electronic device 100 may be a PC, such as a mobile phone, a tablet computer, a laptop computer, etc., and the second electronic device 200 may be a complete device, such as a display terminal with a display, such as a TV set, etc. The first electronic device 100 interacts with the second electronic device 200 via a network. When performing color calibration, the following knowledge about color calibration is required:

[0072] The concept of white balance is: no matter under any light source, white objects can be restored to white. Then, the images of other scenes will be close to the color vision habits of the human eye. Therefore, the process of adjusting white balance is called white balance adjustment.

[0073] White balance adjustment actually adjusts the gain of RGB.

[0074] In the process of white balance correction, all colors are transformed according to the efficiency of the white field because it is too rough. However, in fact, there may be some colors that do not meet this transformation consistency. Therefore, the correction effect may not be obvious enough. Therefore, a proper correction method is needed to minimize the color difference.

[0075] Color space is a mathematical model that describes color using a set of numerical values. Color space can also be called color space, color model, color model, color system, etc. Color can be described through color space.

[0076] Common color models include: red, green, blue (RGB) color space, hue, saturation, value (HSV) color space, International Illumination Commission (commission internationalede L'Eclairage, CIE) XYZ color space, CIE Lab LCH color space, etc.

[0077] The RGB color space can also be described by a three-dimensional cube. R, G, and B are the three coordinate axes of the Cartesian coordinate system, and one vertex of the cube is located at the origin of the coordinates. The three edges adjacent to the vertex are located on the coordinate axis. Any color light can be added and mixed by the three primary colors of R, G, and B in different proportions. When the components of the three primary colors are all 0 (weakest), the mixed color light is black; when the components of the three primary colors are all the strongest, the mixed color light is white.

[0078] CIE XYZ color space, also known as CIE 1931 color space, is a primary color system similar to RGB, but more suitable for color calculation. That is, ideal primary colors are used instead of actual three primary colors, so that the spectral three stimulus values ​​and chromaticity coordinates R, G, B in the RGB color space become positive values. In the CIE XYZ color space, the XYZ three primary color values ​​from one wavelength to another are represented by a cone formed by connecting a curved surface to the origin, and all XYZ stimulus values ​​fall within this cone in the positive XYZ quadrant. The origin of the coordinate axis is equivalent to black without light. The curve is the spectrum trajectory, and the color on the spectrum trajectory represents the maximum saturation that the color can achieve. Since the three primary colors X / Y / Z in the CIE XYZ color space are imaginary and do not actually exist, it is impossible to perform color accuracy testing. The data used in the CIE XYZ color space is obtained by converting the data in the RGB color space.

[0079] CIE Lab color space is a color system based on physiological characteristics. This means that CIE Lab color space is a digital method to describe human visual perception. The L component in the Lab color space is used to represent the brightness of the pixel (light), and the value range is [0,100], which means from pure black to pure white. Brightness can also be called lightness; a represents the range from red to green, and the value range is [127,-128]; b represents the range from yellow to blue, and the value range is [127,-128]. The Lab color space is the same as the LCH color space chromaticity diagram, but the coordinates are different. In the LCH color space, L represents the lightness value; C represents the saturation value and H represents the hue angle value.

[0080] Compared with the XYZ color space coordinate system, the colors represented by the coordinates of the CIELab color space are more linear in visual difference and closer to the visual perception result. Therefore, colorimeter mostly uses CIELAB color space to express the measurement results instead of XYZ. Moreover, since the CIE Lab color space has stronger linearity, it is more reasonable to use the CIE Lab color space when calculating color difference. Then, the collected sample image data is usually in the RGB color space, and the image data in the RGB color space needs to be converted to the CIE Lab color space for color accuracy testing.

[0081] In addition, since the image data in the RGB color space cannot be directly converted to the CIE Lab color space, it is necessary to use the CIE XYZ color space, that is, first convert the image data in the RGB color space to the CIE XYZ color space, and then convert the data to the CIE Lab color space through the CIE XYZ color space to achieve color accuracy testing.

[0082] In some embodiments, during color calibration, if the first electronic device 100 sends the bin file generated after the calibration to the second electronic device 200, and the bin file data is about 130k, and the time it takes to send it to the second electronic device 200 is about 7s, then the second electronic device 200 needs about 40s to calibrate and send the image data during the entire process of the first electronic device 100, which will result in a longer calibration time. After receiving the calibrated bin file, the second electronic device 200 directly writes it. Therefore, in order to reduce the time cost of color calibration, a color calibration method of the present application is proposed.

[0083] like Figure 2 As shown, it is an exemplary interaction flow chart between a first electronic device and a second electronic device, where the first electronic device obtains first sample image data of a first color space, obtains first actual image data based on first conversion parameters and the first sample image data; obtains first corrected image data based on second conversion parameters and the first actual image data; performs a color accuracy test on the first corrected image data; and if the first corrected image data passes the color accuracy test, sends the first conversion parameters and the second conversion parameters to the second electronic device.

[0084] The second electronic device receives the first conversion parameter and the second conversion parameter; obtains the first image data of the first color space; obtains the third actual image data based on the first conversion parameter and the first image data; obtains the first correction data of the first image data based on the third actual image data and the second conversion parameter; obtains the color control file based on the first correction data; and controls the display of the display based on the color control file.

[0085] The color accuracy correction is disassembled by the first electronic device, and part of the algorithm is set on the first electronic device, including color space conversion and color accuracy test of the first sample image data. Then part of the algorithm is set on the second electronic device, including using the conversion parameters related to the color accuracy test of the first electronic device to calculate, convert and write the first image data. Since the data transmitted from the first electronic device to the second electronic device only includes related parameters and the data volume is small, the transmission content is optimized, the entire correction time can be reduced, which is beneficial to reducing the time cost of color accuracy correction.

[0086] It has been found through experiments that the color accuracy correction method of the present application reduces the entire correction time by nearly half compared with the existing correction time, from about 40s to 20s.

[0087] See also Figure 3 , Figure 3 1 is a flow chart of an embodiment of a color calibration method applied to the present application. The method is applied to a first electronic device 100 and includes steps S301 to S305.

[0088] S301: Acquire first sample image data in a first color space.

[0089] The first electronic device may collect a preset number of sample images through a color analyzer, and the preset number may be 36. The first color space may be an RGB color space.

[0090] S302: Obtain first actual image data based on the first conversion parameter and the first sample image data.

[0091] Since the image data in the RGB color space cannot be directly converted to the CIE Lab color space, it is necessary to use the CIE XYZ color space, that is, first convert the first sample image data in the RGB color space to the CIE XYZ color space, and then convert the data to the CIE Lab color space through the CIE XYZ color space to obtain the first corrected image data, so as to realize the color accuracy test.

[0092] Therefore, in some embodiments, obtaining first actual image data based on the first conversion parameter and the first sample image data includes:

[0093] Based on the third conversion parameter and the first sample image data, obtaining first intermediate image data in a second color space;

[0094] Based on the first conversion parameter and the first intermediate image data, first actual image data is obtained.

[0095] Specifically, the second color space may be a CIE XYZ color space, and the third conversion parameter may be represented by a conversion variable matrix a. By the following formula 1, the first intermediate image data in the CIE XYZ color space is obtained.

[0096]

[0097] in, represents the first intermediate image data in the second color space (CIE XYZ color space), represents the third conversion parameter, which is the conversion variable matrix a; The first sample image data represents a first color space (RGB color space).

[0098] It is understandable that Formula 1 will be different under different color temperatures or different color gamuts.

[0099] Next, using Formula 2, based on the first conversion parameter and the first intermediate image data, the first actual image data is obtained.

[0100]

[0101] in, represents the first actual image data in the CIE Lab color space, Represents the first transformation parameter, which is the transformation variable matrix b.

[0102] S303: Obtain first corrected image data based on the second conversion parameter and the first actual image data.

[0103] After obtaining the first actual image data, the first corrected image data is obtained based on the second conversion parameter and the first actual image data, which can be obtained using Formula 3.

[0104]

[0105] Among them, the second conversion parameter is 6 3×3 matrices, represents the first corrected image data.

[0106] It can be understood that in the CIE Lab color space, in the first actual image data Converted into the first corrected image data In the process, interpolation processing can be performed, and the interpolation processing adopts the second conversion parameter.

[0107] S304: Perform a color accuracy test on the first corrected image data.

[0108] Specifically, in the CIE Lab color space, a color accuracy test is performed on the first corrected image data.

[0109] In some implementations, performing a color accuracy test on the first corrected image data may include:

[0110] comparing the first corrected image data with the theoretical image data;

[0111] If the color accuracy difference between the first corrected image data and the theoretical image data is within a preset range, determining that the first corrected image data passes the color accuracy test;

[0112] If the color accuracy difference between the first corrected image data and the theoretical image data is greater than a preset range, it is determined that the first corrected image data fails the color accuracy test.

[0113] Specifically, in the CIE Lab color space, the first corrected image data and the theoretical image data are compared, and the color accuracy difference ΔE between the first corrected image data and the theoretical image data is calculated; if the color accuracy difference ΔE between the first corrected image data and the theoretical image data is within a preset range, that is, within the color accuracy error range, it is determined that the first corrected image data passes the color accuracy test.

[0114] On the contrary, if the color accuracy difference ΔE between the first corrected image data and the theoretical image data is greater than the preset range, it means that the color accuracy difference ΔE is too large, and it is determined that the first corrected image data fails the color accuracy test.

[0115] S305: If the first corrected image data passes the color accuracy test, the first conversion parameter and the second conversion parameter are sent to the second electronic device.

[0116] Specifically, if the first corrected image data passes the color accuracy test, the first conversion parameters (conversion variable matrix b) and the second conversion parameters (six 3×3 matrices) are sent to the second electronic device.

[0117] Since the data transmitted from the first electronic device to the second electronic device only includes relevant parameters and the data volume is small, the transmission content is optimized, so the entire correction time can be accelerated, which is beneficial to reducing the time cost of color accuracy correction.

[0118] In some embodiments, the method further comprises:

[0119] If the first corrected image data fails the color accuracy test, adjusting the first conversion parameter and the second conversion parameter to obtain the first adjusted conversion parameter and the second adjusted conversion parameter;

[0120] Acquire second sample image data in the first color space;

[0121] Based on the first adjustment conversion parameter and the second sample image data, obtaining second actual image data;

[0122] Based on the second adjustment conversion parameter and the second actual image data, obtaining second corrected image data;

[0123] Performing a color accuracy test on the second corrected image data;

[0124] If the second corrected image data passes the color accuracy test, the first adjustment conversion parameter and the second adjustment conversion parameter are sent to the second electronic device.

[0125] Specifically, if the first corrected image data does not pass the color accuracy test, the first conversion parameter and the second conversion parameter are adjusted to obtain the first adjusted conversion parameter and the second adjusted conversion parameter, and then the image is resampled, and steps S201 to S204 are executed again in a loop, and the new conversion parameters are used for calculation to obtain the second corrected image data, and the color accuracy test is performed on the second corrected image data again. If the color accuracy test passes, the first adjusted conversion parameter and the second adjusted conversion parameter are sent to the second electronic device.

[0126] If the color accuracy test fails, the relevant conversion parameters will not be sent to the second electronic device.

[0127] In an embodiment of the present application, a first electronic device obtains first sample image data of a first color space, and obtains first corrected image data based on first conversion parameters and second conversion parameters. If the first corrected image data passes the color accuracy test, only the first conversion parameters and the second conversion parameters are sent to the second electronic device. There is no need to send all files related to the color accuracy test to the second electronic device, thereby optimizing the transmission content, shortening the correction time, and reducing the cost of color accuracy correction.

[0128] Figure 4 This is a flow chart of a color calibration method provided in an embodiment of the present application. The color calibration method is applied to a second electronic device 200, and the method includes steps S401 to S406.

[0129] S401: Receive a first conversion parameter and a second conversion parameter.

[0130] The first conversion parameter and the second conversion parameter are related formula parameters sent by the first electronic device for the image data passing the color accuracy test. The first conversion parameter can be the above-mentioned conversion variable matrix b, and the second conversion parameter can be the above-mentioned 6 3×3 matrices.

[0131] S402: Acquire first image data in a first color space.

[0132] S403: Obtain third actual image data based on the first conversion parameter and the first image data.

[0133] In some embodiments, obtaining the third actual image data based on the first conversion parameter and the first image data includes:

[0134] obtaining second intermediate image data in a second color space based on the third conversion parameter and the first image data;

[0135] The third actual image data is obtained based on the first conversion parameter and the second intermediate image data.

[0136] Specifically, similar to the processing of the first electronic device, the first color space may be an RGB color space, the second color space may be a CIE Lab color space, and the third conversion parameter is the same as the third conversion parameter of the first electronic device, which is a conversion parameter that satisfies the color accuracy test, and is a conversion variable matrix a. Since the parameter is fixed, it does not need to be transmitted. It can be assumed that the first image data is Referring to formula 1, the second intermediate image data can be calculated

[0137] The third actual image data is obtained based on the first conversion parameter and the second intermediate image data, wherein the first conversion parameter is obtained by transmitting the first electronic device, and The third actual image data can be obtained by referring to formula 2:

[0138] S404: Obtain first correction data of the first image data based on the third actual image data and the second conversion parameter.

[0139] The second conversion parameter is obtained by the transmission of the first electronic device, which is 6 3×3 matrices. The first correction data can be obtained by referring to Formula 3: Correspondingly, in the CIE Lab color space, an interpolation process may be performed during the conversion into the first correction data, and the interpolation process adopts the second conversion parameter.

[0140] S405: Obtain a color control file based on the first calibration data.

[0141] S406: Control the display of the monitor based on the color control file.

[0142] Specifically, after obtaining the first correction data, the second electronic device converts the first correction data into a color control file required by the system, which is a bin file format, such as a 17*17*17 matrix, and the second electronic device controls the display based on the color control file.

[0143] In an embodiment of the present application, after receiving the first conversion parameter and the second conversion parameter, the second electronic device directly obtains corrected data based on the first conversion parameter, the second conversion parameter and the first image data, which is the first correction data, and obtains a color control file based on the first correction data, and controls the display of the second electronic device based on the color control file, thereby realizing that part of the algorithm is implemented in the first electronic device and part of the algorithm is implemented in the second electronic device, thereby shortening the entire correction process and reducing the time cost of color accuracy correction.

[0144] The present application also provides a color calibration device for use in a first electronic device. Figure 5 , which shows the structure of a color calibration device provided in an embodiment of the present application, the color calibration device 500 includes:

[0145] A first acquisition module 501, used to acquire first sample image data in a first color space;

[0146] A first data acquisition module 502, configured to obtain first actual image data based on first conversion parameters and first sample image data;

[0147] A corrected image acquisition module 503, configured to obtain first corrected image data based on the second conversion parameter and the first actual image data;

[0148] A testing module 504, configured to perform a color accuracy test on the first corrected image data;

[0149] The sending module 505 is configured to send the first conversion parameter and the second conversion parameter to the second electronic device if the first corrected image data passes the color accuracy test.

[0150] In an embodiment of the present application, a first electronic device obtains first sample image data of a first color space, and obtains first corrected image data based on first conversion parameters and second conversion parameters. If the first corrected image data passes the color accuracy test, only the first conversion parameters and the second conversion parameters are sent to the second electronic device. There is no need to send all files related to the color accuracy test to the second electronic device, thereby optimizing the transmission content, shortening the correction time, and reducing the cost of color accuracy correction.

[0151] In some embodiments, the first data acquisition module 502 is further used to:

[0152] Based on the third conversion parameter and the first sample image data, obtaining first intermediate image data in a second color space;

[0153] Based on the first conversion parameter and the first intermediate image data, first actual image data is obtained.

[0154] In some embodiments, the testing module 504 is further configured to:

[0155] comparing the first corrected image data with the theoretical image data;

[0156] If the color accuracy difference between the first corrected image data and the theoretical image data is within a preset range, determining that the first corrected image data passes the color accuracy test;

[0157] If the color accuracy difference between the first corrected image data and the theoretical image data is greater than a preset range, it is determined that the first corrected image data fails the color accuracy test.

[0158] In some embodiments, the apparatus 500 further includes an adjustment module 506, configured to:

[0159] If the first corrected image data fails the color accuracy test, adjusting the first conversion parameter and the second conversion parameter to obtain the first adjusted conversion parameter and the second adjusted conversion parameter;

[0160] Acquire second sample image data in the first color space;

[0161] Based on the first adjustment conversion parameter and the second sample image data, obtaining second actual image data;

[0162] Based on the second adjustment conversion parameter and the second actual image data, obtaining second corrected image data;

[0163] Performing a color accuracy test on the second corrected image data;

[0164] If the second corrected image data passes the color accuracy test, the first adjustment conversion parameter and the second adjustment conversion parameter are sent to the second electronic device.

[0165] Correspondingly, such as Figure 6 As shown, the embodiment of the present application also provides a color calibration device, which can be applied to electronic equipment, such as Figure 1 The second electronic device shown, the color calibration device 600 includes:

[0166] A receiving module 601, configured to receive a first conversion parameter and a second conversion parameter;

[0167] A second acquisition module 602, used to acquire first image data in a first color space;

[0168] A third data acquisition module 603, configured to obtain third actual image data based on the first conversion parameter and the first image data;

[0169] A correction data acquisition module 604, configured to obtain first correction data of the first image data based on the third actual image data and the second conversion parameter;

[0170] A file acquisition module 605, used to obtain a color control file based on the first calibration data;

[0171] The display module 606 is used to control the display based on the color control file.

[0172] In an embodiment of the present application, after receiving the first conversion parameter and the second conversion parameter, the second electronic device directly obtains corrected data based on the first conversion parameter, the second conversion parameter and the first image data, which is the first correction data, and obtains a color control file based on the first correction data, and controls the display of the second electronic device based on the color control file, thereby realizing that part of the algorithm is implemented in the first electronic device and part of the algorithm is implemented in the second electronic device, thereby shortening the entire correction process and reducing the time cost of color accuracy correction.

[0173] In some embodiments, the third data acquisition module 603 is further used to:

[0174] obtaining second intermediate image data in a second color space based on the third conversion parameter and the first image data;

[0175] The third actual image data is obtained based on the first conversion parameter and the second intermediate image data.

[0176] The color correction device in the embodiment of the present application can be a device, or a component, integrated circuit or chip in a terminal. The color correction device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0177] The color accuracy correction device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0178] The color calibration device provided in the embodiment of the present application can achieve Figure 3 or Figure 4To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0179] It should be noted that the above device can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in the device embodiment, please refer to the method provided in the embodiment of the present application.

[0180] Figure 7 FIG. 1 is a schematic diagram of the hardware structure of a controller of the first electronic device 100 in an embodiment of the first electronic device. Figure 7 As shown, the first controller includes:

[0181] One or more first processors 111 and a first memory 112 . Figure 7 In the figure, a first processor 111 and a first memory 112 are taken as an example.

[0182] The first processor 111 and the first memory 112 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0183] The first memory 112 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the color calibration method in the embodiment of the present application (for example, the attached Figure 5 The first processor 111 executes various functional applications and data processing of the controller by running the non-volatile software programs, instructions and modules stored in the first memory 112, that is, the color accuracy correction method of the above method embodiment is implemented.

[0184] The first memory 112 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created according to the use of the personnel entry and exit detection device, etc. In addition, the first memory 112 may include a high-speed random access first memory, and may also include a non-volatile first memory, such as at least one disk first storage device, a flash memory device, or other non-volatile solid-state first storage device. In some embodiments, the first memory 112 may optionally include a first memory remotely arranged relative to the first processor 111, and these remote first memories may be connected to the first electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0185] The one or more modules are stored in the first memory 112, and when executed by the one or more first processors 111, perform the color calibration method in any of the above method embodiments, for example, perform the above described Figure 3 Steps S301 to S305 of the method; implementing Figure 5 The functions of modules 501-506 in.

[0186] Accordingly, Figure 8 FIG. 1 is a schematic diagram of the hardware structure of a controller of the second electronic device 200 in an embodiment of the second electronic device. Figure 8 As shown, similar to the first electronic device, the second controller includes:

[0187] One or more second processors 211 and a second memory 212 . Figure 8 In the figure, a second processor 211 and a second memory 212 are taken as an example.

[0188] The second processor 211 and the second memory 212 may be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.

[0189] The hardware processing method of the second electronic device is similar to that of the first electronic device, and will not be described in detail here.

[0190] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.

[0191] The embodiment of the present application provides a non-volatile computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, such as Figure 7 A first processor 111 or Figure 8 A second processor 211 in the embodiment may enable the one or more processors to execute the color calibration method in any of the above method embodiments, for example, executing the above described Figure 3 Steps S301 to S305 of the method, Figure 4 Steps S401 to S406 of the method; implementing Figure 5 The functions of modules 501-506 in Figure 6 The functions of 601-607 in.

[0192] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0193] Through the description of the above embodiments, a person of ordinary skill in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, or of course by hardware. A person of ordinary skill in the art can understand that all or part of the processes in the above embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0194] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they may still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A color calibration method, applied to a first electronic device, It is characterized in that The method comprises: Acquire first sample image data in a first color space; Based on the first conversion parameter and the first sample image data, obtaining first actual image data; Obtaining first corrected image data based on a second conversion parameter and the first actual image data; Performing a color accuracy test on the first corrected image data; If the first corrected image data passes the color accuracy test, the first conversion parameter and the second conversion parameter are sent to a second electronic device.

2. The method according to claim 1, It is characterized in that The step of obtaining first actual image data based on the first conversion parameter and the first sample image data comprises: Based on the third conversion parameter and the first sample image data, obtaining first intermediate image data in a second color space; Based on the first conversion parameter and the first intermediate image data, the first actual image data is obtained.

3. The method according to claim 1, It is characterized in that The performing a color accuracy test on the first corrected image data comprises: comparing the first corrected image data with theoretical image data; If the color accuracy difference between the first corrected image data and the theoretical image data is within a preset range, determining that the first corrected image data passes the color accuracy test; If the color accuracy difference between the first corrected image data and the theoretical image data is greater than the preset range, it is determined that the first corrected image data fails the color accuracy test.

4. The method according to claim 1, It is characterized in that The method further comprises: If the first corrected image data fails the color accuracy test, adjusting the first conversion parameter and the second conversion parameter to obtain first adjusted conversion parameters and second adjusted conversion parameters; Acquire second sample image data in the first color space; obtaining second actual image data based on the first adjustment conversion parameter and the second sample image data; obtaining second corrected image data based on the second adjustment conversion parameter and the second actual image data; Performing a color accuracy test on the second corrected image data; If the second corrected image data passes the color accuracy test, the first adjustment conversion parameter and the second adjustment conversion parameter are sent to the second electronic device.

5. A color calibration method, applied to a second electronic device, It is characterized in that The method comprises: receiving a first conversion parameter and a second conversion parameter; Acquire first image data in a first color space; obtaining third actual image data based on the first conversion parameter and the first image data; obtaining first correction data of the first image data based on the third actual image data and the second conversion parameter; Obtaining a color control file based on the first calibration data; The display of the display is controlled based on the color control file.

6. The method according to claim 5, It is characterized in that The obtaining of third actual image data based on the first conversion parameter and the first image data comprises: obtaining second intermediate image data in a second color space based on a third conversion parameter and the first image data; The third actual image data is obtained based on the first conversion parameter and the second intermediate image data.

7. A color calibration device, applied to a first electronic device, It is characterized in that The device comprises: A first acquisition module, used to acquire first sample image data in a first color space; A first data acquisition module, configured to obtain first actual image data based on a first conversion parameter and the first sample image data; A corrected image acquisition module, configured to obtain first corrected image data based on a second conversion parameter and the first actual image data; A testing module, used for performing a color accuracy test on the first corrected image data; A sending module is used to send the first conversion parameter and the second conversion parameter to a second electronic device if the first corrected image data passes the color accuracy test.

8. A color calibration device, applied to a second electronic device, It is characterized in that The device comprises: A receiving module, configured to receive a first conversion parameter and a second conversion parameter; A second acquisition module, used for acquiring first image data in a first color space; A third data acquisition module, configured to obtain third actual image data based on the first conversion parameter and the first image data; A correction data acquisition module, configured to obtain first correction data of the first image data based on the third actual image data and the second conversion parameter; A file acquisition module, used for obtaining a color control file based on the first calibration data; A display module is used to control the display of a display based on the color control file.

9. A first electronic device, It is characterized in that The first electronic device comprises: A first processor and a first memory communicatively connected to the first processor; The first memory stores computer program instructions, and when the computer program instructions are called by the first processor, the first processor executes the method according to any one of claims 1 to 4.

10. A second electronic device, It is characterized in that The second electronic device comprises: a second processor and a second memory communicatively connected to the second processor; The second memory stores computer program instructions, and when the computer program instructions are called by the second processor, the second processor executes the method according to any one of claims 5 to 6.

11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed by a first electronic device, implement the steps of the color correction method as described in any one of claims 1 to 4, and / or when executed by a second electronic device, implement the steps of the color correction method as described in any one of claims 5 to 6.

Citation Information

Patent Citations

  • Image correction method and device, image acquisition equipment and readable storage medium

    CN108495101A

  • Method and device for correcting image color deviation

    CN109525749A

  • Micro LED depth color correction method and Micro LED depth color correction system

    CN112637579A

  • Calibration method and device for display of display equipment

    CN115705833A