Image Color Calibration Method, Device, Equipment and Storage Medium

By generating and using calibration files of calibration color cards and preset color block diagrams to perform color inconsistency on the image, the color inconsistency caused by changes in the state of the image acquisition device is solved, and the efficiency and consistency of color calibration are improved.

CN116533647BActive Publication Date: 2025-07-18SHENZHEN HOSONSOFT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210086541.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-25
Publication Date
2025-07-18
Estimated Expiration
2042-01-25

AI Technical Summary

Technical Problem

In the prior art, the state changes of the image acquisition equipment lead to poor color consistency between the copied image and the sample surface image, and when the equipment is frequently replaced, multiple color calibration files need to be remade, which is inefficient.

Method used

By obtaining the calibration color card and the preset color block diagram, the first and second calibration files are generated, and the original image is colored twice respectively to ensure the color consistency when the state of the image acquisition device changes, and to avoid repeated production of color calibration files.

Benefits of technology

It realizes that the copied image is consistent with the color of the sample surface image when the state of the image acquisition device changes, improves the color calibration efficiency and reduces the time for making multiple calibration files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116533647B_ABST
    Figure CN116533647B_ABST
Patent Text Reader

Abstract

The present invention discloses an image color calibration method, apparatus, device and storage medium, relating to the technical field of image processing. The method obtains a first calibration file and a second calibration file according to a calibration color card and a preset color block diagram, and uses these two calibration files to perform two color adjustments on the original image corresponding to the sample surface image provided by the user, so that the colors of the finally obtained reproduced image and the sample surface image are kept consistent regardless of whether the state of the image acquisition device changes. Calibrating the original image using the first calibration file is actually to calibrate the image based on the gamut consistency of the image acquisition device, and the color differences generated due to different states of the image acquisition device after calibration will be eliminated. Then, the first calibrated image is calibrated color-related using the second calibration file, so as to ensure that the reproduced images obtained at the current state and after a period of time can all keep the same color as the sample surface image provided by the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular, to an image color calibration method, apparatus, device, and storage medium. Background Art

[0002] In actual production applications, it is often necessary to print based on the image on the surface of a sample provided by a user (such as a textile with a pattern, a photo painting, a promotional brochure, etc.) to obtain a replicated image with the same color as the image on the surface of the sample. Currently, the method for replicating the image on the surface of a user sample is to use an image acquisition device (scanner, camera, video camera, etc.) to collect the image and color information on the surface of the sample to obtain an electronic document of the image on the surface of the sample, also known as the original image, and then use a printer to print the electronic document of the original image into a physical replicated image. Then, according to the color difference between the image on the surface of the customer sample and the physical replicated image, the electronic document is manually color-adjusted. Usually, the number of color adjustment times is related to the experience and level of the color adjustment personnel, with great uncertainty and low efficiency. Moreover, with changes in factors such as usage duration, temperature, and humidity, the image acquisition device may age and wear, resulting in color deviations when collecting the same physical sample. In the prior art, color management software such as i1Profiler is often used to calibrate scanners, cameras, and video cameras to generate a characteristic file (ICC) according to international standards, thereby controlling the stability of the image acquisition device. When the color of the image acquisition device deviates, calibrating the image acquisition device with an international standard color card can keep the state of the information acquisition device stable. However, when the collected image electronic document is output using a printer, the obtained replicated image often has inconsistent color with the image on the surface of the sample. Therefore, calibrating the image acquisition device with an international standard color card does not substantially help in quickly replicating the color of the image on the surface of the user sample.

[0003] In addition, in the actual production process, there are often multiple different printing devices, inks of different batches, or printing materials. Then, a corresponding color calibration file needs to be made for each different situation, resulting in multiple color calibration files. And when the state of the image acquisition device changes after a period of time, causing color deviations in the collected images, all the previously made color calibration files will become invalid. At this time, all the color calibration files need to be regenerated according to the current state of the image acquisition device. This method is inefficient and time-consuming. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide an image color calibration method, apparatus, device, and storage medium to solve the problem in the prior art that the color consistency between the replicated image and the image on the surface of the sample is poor due to changes in the state of the image acquisition device.

[0005] In a first aspect, an embodiment of the present invention provides an image color calibration method, the method comprising:

[0006] Obtaining a first calibration file according to a calibration color card;

[0007] Obtaining a second calibration file according to a preset color block diagram;

[0008] Collecting a surface image of a sample to obtain an original image;

[0009] Performing color calibration on the original image according to the first calibration file to obtain a first calibrated image;

[0010] Performing color calibration on the first calibrated image according to the second calibration file to obtain a second calibrated image;

[0011] Obtaining a copied image of the surface image of the sample according to the second calibrated image.

[0012] Preferably, the obtaining a first calibration file according to a calibration color card includes:

[0013] Collecting the calibration color card to obtain a first color block diagram;

[0014] Obtaining first color data according to the first color block diagram;

[0015] Obtaining a first color gamut according to the first color data;

[0016] Compressing the first color gamut to obtain second color data;

[0017] Generating the first calibration file according to the mapping relationship between the first color data and the second color data.

[0018] Preferably, the obtaining a second calibration file according to a preset color block diagram includes:

[0019] Obtaining reference color data according to the preset color block diagram;

[0020] Printing the preset color block diagram to obtain a preset printed color block diagram;

[0021] Collecting the preset printed color block diagram to obtain a second color block diagram;

[0022] Obtaining third color data according to the second color block diagram;

[0023] Obtaining the second calibration file according to the third color data and the reference color data.

[0024] Preferably, the obtaining the second calibration file according to the third color data and the reference color data includes:

[0025] Generate a color lookup table based on the third color data and the reference color data;

[0026] Generate the second calibration file based on the color lookup table.

[0027] Preferably, the color calibration of the original image according to the first calibration file to obtain the first calibrated image includes:

[0028] Obtain the color information in the original image, denoted as the fourth color data;

[0029] According to the mapping relationship in the first calibration file, obtain the mapped value corresponding to the fourth color data, denoted as the fifth color data;

[0030] Adjust the color of the original image according to the fifth color data to obtain the first calibrated image.

[0031] Preferably, the color calibration of the first calibrated image according to the second calibration file to obtain the second calibrated image includes:

[0032] Obtain the color information in the first calibrated image, denoted as the sixth color data;

[0033] According to the color lookup table in the second calibration file, obtain the output value corresponding to the sixth color data, denoted as the seventh color data;

[0034] Adjust the color of the first calibrated image according to the seventh color data to obtain the second calibrated image.

[0035] Preferably, the method further includes:

[0036] Collect the calibration color card after a preset time to obtain a third color patch map;

[0037] Obtain the eighth color data according to the third color patch map;

[0038] Obtain a third calibration file according to the eighth color data and the second color data;

[0039] Update the first calibration file according to the third calibration file.

[0040] In a second aspect, an embodiment of the present invention provides an image color calibration device, and the device includes:

[0041] A first calibration file acquisition module, configured to obtain a first calibration file according to a calibration color card;

[0042] A second calibration file acquisition module, configured to obtain a second calibration file according to a preset color patch map;

[0043] An acquisition module for acquiring an original image by collecting an image of the sample surface;

[0044] A first calibration module for color-calibrating the original image according to a first calibration file to obtain a first calibrated image;

[0045] A second calibration module for color-calibrating the first calibrated image according to the second calibration file to obtain a second calibrated image;

[0046] A copying module for obtaining a copied image of the sample surface image according to the second calibrated image.

[0047] In a third aspect, an embodiment of the present invention provides an image color calibration device, including: at least one processor, at least one memory, and computer program instructions stored in the memory, which implement the method of the first aspect in the above-mentioned embodiment when the computer program instructions are executed by the processor.

[0048] In a fourth aspect, an embodiment of the present invention provides a storage medium, on which computer program instructions are stored, which implement the method of the first aspect in the above-mentioned embodiment when the computer program instructions are executed by the processor.

[0049] In summary, the beneficial effects of the present invention are as follows:

[0050] The image color calibration method, device, equipment, and storage medium provided by the embodiments of the present invention obtain a first calibration file and a second calibration file according to a calibration color card and a preset color block diagram, and use these two calibration files to perform two color adjustments on the original image corresponding to the sample surface image provided by the user, so that the color of the finally printed copied image and the sample surface image remains consistent regardless of whether the state of the image acquisition device changes. Especially in the case of copying the same sample using different printers, it is possible to avoid re-making different color calibration files. Only need to make the first calibration file once. After the image acquisition device acquires the original image, use this first calibration file to perform a color calibration on the color data of the original image, and then different printers perform another color calibration according to their corresponding color calibration files (relative to the second calibration file), ensuring that the color of the copied images printed by different printers and the sample surface image remains consistent regardless of whether the state of the image acquisition device changes, greatly saving the production of multiple different color calibration files, saving time, and improving the efficiency of image color calibration. Description of the Drawings

[0051] To more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for use in the embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings, and all of these are within the protection scope of the present invention.

[0052] Figure 1 It is a schematic flowchart of the image color calibration direction of the embodiments of the present invention.

[0053] Figure 2a It is a schematic diagram of the calibration color card of the embodiments of the present invention.

[0054] Figure 2b It is a schematic diagram of the preset color block diagram of the embodiments of the present invention.

[0055] Figure 3 is Figure 1 The specific flowchart of step S1 in.

[0056] Figure 4 is Figure 1 The specific flowchart of step S2 in.

[0057] Figure 5 is Figure 1 The specific flowchart of step S3 in.

[0058] Figure 6 is Figure 1 The specific flowchart of step S4 in.

[0059] Figure 7 It is a schematic structural diagram of the image color calibration device of the embodiments of the present invention.

[0060] Figure 8 It is a schematic structural diagram of the image color calibration device of the embodiments of the present invention. Detailed implementation manners

[0061] The following will describe in detail the features and exemplary embodiments of various aspects of the present invention. To make the purpose, technical solutions and advantages of the present invention clearer and more understandable, the following will further describe the present invention in detail in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by showing examples of the present invention.

[0062] It should be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the said element.

[0063] Embodiment 1

[0064] Please refer to Figure 1 , an embodiment of the present invention provides an image color calibration method, which includes the following specific steps:

[0065] S1: Obtain a first calibration file according to a calibration color card;

[0066] S2: Obtain a second calibration file according to a preset color block diagram;

[0067] S3: Collect an original image of the sample surface;

[0068] S4: Perform color calibration on the original image according to the first calibration file to obtain a first calibrated image;

[0069] S5: Perform color calibration on the first calibrated image according to the second calibration file to obtain a second calibrated image;

[0070] S6: Obtain a copy image of the sample surface image according to the second calibrated image.

[0071] Specifically, the calibration color card can be an international standard color card (such as IT8.7-2 / 1993 and other international calibration color cards) or a physical calibration color card obtained by the user designing an electronic draft of the calibration color card according to the actual application situation and printing out the electronic draft. For example Figure 2aShown is a schematic diagram of a calibration color card. The preset color block diagram is an image designed by the user according to the actual application situation and recorded in the form of an electronic document. This image is a color image containing various color information. The preset color block diagram is stored in devices such as a computer or a host computer in a printing system and can be displayed through an image display device such as a monitor. Obtain and record the information of various colors (i.e., the corresponding color values of various colors) in the preset color block diagram to obtain reference color data. Preferably, the preset color block diagram is a color block including N different color values, where N is a natural number greater than or equal to 1. The color value here can be an RGB value or a CMYK value. Exemplarily, as Figure 2b shown, the preset color block diagram contains multiple color blocks with different RGB values. In at least one of the three color channels (R, G, and B) of each color block, the value is different from that of other color blocks. The preset color block diagram contains as many color blocks with different color values as possible. The more the number of color blocks with different color values, the more reference color data is obtained, and the more accurate the second calibration file obtained using the reference color data and the color calibration of the user sample according to this second calibration file will be. Preferably, N is greater than or equal to 1000. In one embodiment, the R value, G value, and B value are selected at intervals of 15 from 0 to 255, that is, R = {0, 15, 30,..., 255}, G = {0, 15, 30,..., 255}, B = {0, 15, 30,..., 255}, and the R value, B value, and G value are arranged and combined to obtain 4913 color values. According to these 4913 color values, corresponding color blocks are generated to obtain the preset color block diagram. In other embodiments, the R value, G value, and B value can also be selected at intervals of 1, 2, 5, 10, etc., and the color values are arranged and combined to obtain the corresponding color blocks to form the preset color block diagram. The more the number of color blocks in the preset color block diagram, the more color information is included, and the more accurate the subsequent color calibration will be. In this embodiment, the first calibration file and the second calibration file are obtained according to the calibration color card and the preset color block diagram respectively, and the original image corresponding to the surface image of the sample provided by the user (obtained by collecting the image on the surface of the user sample) is color-adjusted twice using these two calibration files, that is, the original image is calibrated according to the first calibration file to obtain the first calibrated image; the first calibrated image is calibrated again according to the second calibration file to obtain the second calibrated image; thus, no matter whether the state of the image acquisition device changes, the finally printed image can be made to be consistent with the color of the sample surface image.

[0072] Preferably, please refer to Figure 3 , the obtaining of the first calibration file according to the calibration color card includes:

[0073] S11: Collect the calibration color card to obtain the first color block diagram;

[0074] S12: Obtain the first color data according to the first color block diagram;

[0075] S13: Obtain a first color gamut according to the first color data;

[0076] S14: Compress the first color gamut to obtain second color data;

[0077] S15: Generate the first calibration file according to the mapping relationship between the first color data and the second color data. Use an image acquisition device to collect a calibration color card to generate a first color patch map. Here, the image acquisition device is any one of devices such as a scanner, a camera, a video camera, etc., which can convert the calibration color card into a first color patch map recorded in an electronic document format. Obtain the information (color values) of each color in the first color patch map to get the first color data. The first color data can be RGB values or CMYK values.

[0078] At this time, the first color data obtained records or reflects the maximum color gamut of the acquisition device in the current state. However, as time changes or after long-term use, the aging of the image acquisition device will cause the maximum color gamut range to decrease, resulting in the color data collected after a period of time being unable to be consistent with the color data collected in the current state. Therefore, the maximum color gamut of the image acquisition device can be compressed in the current state to pre-simulate the color gamut range of the image acquisition device after a period of time, and use this compressed color gamut range as the color gamut range corresponding to the standard state of the image acquisition device, so as to ensure that the color data obtained when using the image acquisition device to collect the same image after a period of time is consistent.

[0079] Use the first color data to obtain the maximum color gamut range of the image acquisition device in the current state, denoted as the first color gamut, and perform color gamut compression on the first color gamut to obtain a second color gamut. The second color gamut is the maximum color gamut that simulates the image acquisition device can present after a certain period of time and use. Subsequently, the second color gamut will be used as the standard color gamut that the image acquisition device can present. Since the first color data is the sampling points in the first color gamut, after compressing the first color gamut to obtain the second color gamut, obtain the color values corresponding to these sampling points in the second color gamut, and the second color data can be obtained. Taking the second color data as the image and the first color data as the original image, obtain the mapping relationship between the first color data and the second color data, and generate the first calibration file according to this mapping relationship. Using the first calibration file to calibrate the original image is actually to calibrate the image based on the color gamut consistency of the image acquisition device, so as to ensure that the color data collected by the image acquisition device in the current state and the color data collected by the image acquisition device after a certain period of time are at least consistent in the device color gamut range.

[0080] Preferably, please refer to Figure 4 , the obtaining the second calibration file according to the preset color patch map includes:

[0081] S21: Obtain reference color data according to the preset color patch diagram;

[0082] S22: Print the preset color patch diagram to obtain a preset printed color patch diagram;

[0083] S23: Collect the preset printed color patch diagram to obtain a second color patch diagram;

[0084] S24: Obtain third color data according to the second color patch diagram;

[0085] S25: Obtain the second calibration file according to the third color data and the reference color data.

[0086] Specifically, first obtain the color data of each color patch in the preset color patch diagram, denoted as reference color data; then use a printer to print the preset color patch diagram recorded in electronic document form onto a printing substrate to obtain a preset printed color patch diagram. Here, the printing substrate can be materials such as paper, wood board, glass, crystal, PVC, ABS, acrylic, metal, plastic, stone, leather, cloth, and other textiles. After the preset color patch diagram is input into the printer, image processing is performed by the RIP software in the printer host computer, and then it is output to the lower computer for printing. After obtaining the preset printed color patch diagram, use an image acquisition device to collect the preset printed color patch diagram to generate a second color patch diagram. Here, the image acquisition device is any one of devices such as a scanner, a camera, and a video camera, which can convert the preset printed color patch diagram (physical image) into a second color patch diagram recorded in electronic document form. Obtain the information (color value) of each color in the first color patch diagram to obtain third color data. The third color data can be RGB values or CMYK values, and the data type of the third color data is the same as that of the reference color data. For example, when the reference color data is RGB values, the third color data is also RGB values; or when the reference color data is CMYK values, the third color data is also CMYK values. Due to the different color spaces between devices, the color values of each color patch in the second color patch diagram obtained by using the image acquisition device are not exactly the same as the color values of each color patch in the preset color patch diagram, and the obtained second color data is not exactly the same as the reference color data.

[0087] Preferably, the obtaining the second calibration file according to the third color data and the reference color data includes:

[0088] Generate a color lookup table according to the third color data and the reference color data;

[0089] Generate the second calibration file according to the color lookup table.

[0090] The reference color data records or reflects the color characteristics and color space (target space) of the target color gamut, while the third color data is the color data obtained after the printer prints a preset color patch map to obtain the preset printed color patches and then through image acquisition by an image acquisition device. The third color data records or reflects the color characteristics and color space (source space) of the image acquisition device plus the printer. Therefore, the reference color data obtained according to the preset color patch map is the color value of the sampling points (the color points corresponding to each color patch in the preset color patch map) in the target space, and the third color data obtained according to the second color patch map is the color value of the sampling points in the source space. A color lookup table is established (the establishment of the color lookup table is a prior art and will not be elaborated here again). According to this color lookup table, a color calibration file (such as an LUT file) is generated, that is, the second calibration file is obtained.

[0091] In order to better reproduce the color of the sample surface image, before printing and replicating the sample surface image provided by the user, it is necessary to perform color calibration processing on the original image obtained according to the sample surface image by using the first calibration file and the second calibration file respectively.

[0092] Preferably, please refer to Figure 5 , the color calibration of the original image according to the first calibration file to obtain the first calibration image includes:

[0093] S41: Obtain the color information in the original image, denoted as the fourth color data;

[0094] S42: According to the mapping relationship in the first calibration file, obtain the mapped value corresponding to the fourth color data, denoted as the fifth color data;

[0095] S43: Adjust the color in the original image according to the fifth color data to obtain the first calibration image.

[0096] Specifically, integrate the first calibration file into the first image processing software. When replicating the user's sample surface image, first, it is necessary to use an image acquisition device to acquire the sample surface image to obtain the original image in electronic form, and input the original image in electronic form into the first image processing software integrated with this first calibration file. Here, the first image processing software is installed in the printer host computer or a PC. The first image processing software will call this first calibration file and use the mapping relationship of this first calibration file to adjust the color data (the fourth color data) of the acquired original image. Specifically, it is to obtain the mapped value corresponding to the fourth color data to get the fifth color data, and then adjust the color of the original image according to the fifth color data, thereby completing the first color calibration of the original image and generating the first calibration image.

[0097] Next, perform a second color calibration on the first calibration image using the second calibration file. Preferably, refer to Figure 6 , the color calibration of the first calibration image according to the second calibration file to obtain a second calibration image includes:

[0098] S51: Obtain the color information in the first calibration image, denoted as the sixth color data;

[0099] S52: According to the color lookup table in the second calibration file, obtain the output data corresponding to the sixth color data, denoted as the seventh color data;

[0100] S53: Adjust the color in the first calibration image according to the seventh color data to obtain the second calibration image.

[0101] Similarly, integrate the second calibration file into the second image processing software (the second image processing software can be the same software as the first image processing software or different software). When performing the second color calibration, input the first calibration image that has undergone the first color calibration into this second image processing software (the second image processing software and the first image processing software are installed in the same printer host computer or PC). The second image processing software will call the second calibration file and use the color lookup table of this file to adjust the color of the first calibration image. Specifically, obtain the color data of the first calibration image, denoted as the sixth color data, find the position of the color point corresponding to the sixth color data according to the color lookup table, and use interpolation to reconstruct its color value to obtain the output value corresponding to the sixth color data, denoted as the seventh color data. Adjust the color of the first calibration image according to the seventh color data, thereby completing the second color calibration of the original image and generating the second calibration image. In addition to generating the second calibration file using the color lookup table, in some other embodiments, an ICC file can also be established using the gamut mapping relationship between the first color data and the reference color data as the second calibration file. At this time, the second image processing software will call this ICC file and use the gamut mapping relationship of this file to adjust the color of the first calibration image to generate the second calibration image.

[0102] After the original image is calibrated twice to obtain the second calibrated image, the second calibrated image is input into the RIP software of the printer. After RIP processing, printing is performed, and the resulting product will be consistent with the image and color on the surface of the sample provided by the user. This method has a better color calibration effect, better color consistency, and higher efficiency compared to technical solutions such as manual comparison and repeated color adjustment. Since the original image is calibrated using the first calibration file, it is actually a calibration of the image based on the color gamut consistency of the image acquisition device, thereby ensuring that the color data collected by the image acquisition device in the current state and the color data collected by the image acquisition device after a certain period of time are at least consistent in the device color gamut range. Even if the state of the image acquisition device changes subsequently and the collected color data is different from before, after calibrating the collected original image using the first calibration file to obtain the first calibrated image, the resulting color difference is eliminated, and then the first calibrated image is color-related calibrated using the second calibration file, thereby ensuring that the copied images obtained in the current state and after a period of time are both consistent with the color of the image on the surface of the sample provided by the user.

[0103] In actual printing, different printers (or different batches of ink) may be used to print the original image. To ensure that the image products printed by each printer are consistent with the color of the image on the surface of the sample, different color calibration files need to be made for different printers. Exemplarily, if two different printers (the first printer and the second printer) are used to print the same image on the surface of the sample, to ensure that the images printed by both printers are consistent with the color of the image on the surface of the user sample, the first printer color calibration file and the second printer color calibration file will be made respectively for the first printer and the second printer. The acquisition of these two color files depends on using an image acquisition device (such as a scanner) to collect the image on the surface of the sample for production. As time passes or the image acquisition device ages, if the image on the surface of the sample is collected using this image acquisition device, and then the color data of the original image corresponding to the collected image on the surface of the sample is calibrated according to the original first printer color calibration file and the second printer color calibration file, it will cause the image products printed by both printers to have a color difference from the sample, then the first printer color calibration file and the second printer color calibration file cannot be used continuously, and need to be remade according to the current state of the image acquisition device. If there are a lot of color calibration file data that need to be remade, then it will take a very long time.

[0104] However, by using the method provided in this embodiment, it is possible to avoid remaking the color calibration file. Only the first calibration file needs to be made once. After the image acquisition device acquires the original image of the sample surface, the color data of the original image is calibrated once using the first calibration file. Then, different printers perform another color calibration according to their respective color calibration files (relative to the second calibration file), ensuring that the colors of the reproduced images printed by different printers after a period of time are consistent with the colors of the sample surface image. This greatly saves the production of multiple different color calibration files, saves time, and improves the efficiency of color calibration.

[0105] In addition, when the state of the image acquisition device changes over time, at this time, the color data acquired by the image acquisition device is significantly different from the color data acquired before the state change. Preferably, after a certain period of time, the first calibration file can be regenerated according to the current state of the image acquisition device, that is, the first calibration file is continuously updated, so as to ensure that even if the state of the image acquisition device changes and the color information of the images acquired by the image acquisition device after the state change can still be consistent with that before the state change (at the initial standard state). Specifically, the steps for updating the first calibration file include:

[0106] S70: After a preset time, collect the calibration color card to obtain a third color patch map;

[0107] S71: Obtain the eighth color data according to the third color patch map;

[0108] S72: Obtain a third calibration file according to the eighth color data and the second color data;

[0109] S73: Update the first calibration file according to the third calibration file.

[0110] Since the second color gamut is set as the target color gamut when making the first calibration file, that is, the second color gamut is used as the standard color gamut that the image acquisition device can present. At this time, when updating the first calibration file, the second color gamut is also used as the target color gamut. The maximum color gamut that the current image acquisition device can present is obtained according to the currently acquired color data, denoted as the third color gamut. The third color gamut is mapped into the second color gamut, and the first calibration file is updated according to this mapping relationship. Specifically, a calibration color card (the same color card as the one used to acquire the first color patch image) is acquired to obtain a third color patch image. The eighth color data is obtained according to the third color patch image, the third color gamut is obtained according to the eighth color data, the second color gamut is obtained according to the second color data. With the second color gamut as the target color gamut and the third color gamut as the source color gamut for color gamut mapping, this mapping relationship is recorded in the third calibration file, and the third calibration file is used as the updated first calibration file. When subsequently replicating the sample surface image, the third calibration file is used for the first color calibration to obtain the first calibrated image, and then the second calibration file is used for the second color calibration to obtain the second calibrated image. Then, the sample surface image is printed and replicated according to the second calibrated image, ensuring that even if the state of the image acquisition device changes, the finally obtained replicated image can maintain the same color as the sample surface image provided by the user.

[0111] In summary, the image color calibration method provided by the embodiments of the present invention obtains a first calibration file and a second calibration file according to a calibration color card and a preset color block diagram, and uses these two calibration files to perform two color adjustments on the original image corresponding to the sample surface image provided by the user, so that the colors of the finally obtained reproduced image and the sample surface image are kept consistent regardless of whether the state of the image acquisition device changes. Compared with the color calibration methods such as manually comparing and repeatedly adjusting colors, this method has better color calibration effect, better color consistency and higher efficiency. Calibrating the original image with the first calibration file is actually to calibrate the image based on the color gamut consistency of the image acquisition device. After calibration, the color differences caused by different states of the image acquisition device will be eliminated. Then, the first calibrated image is calibrated for color related using the second calibration file, so as to ensure that the reproduced images obtained at the current state and after a period of time can both keep the same color as the sample surface image provided by the user. Especially in the case of reproducing the same sample surface image using different printers, it is possible to avoid remaking different color calibration files. Only need to make the first calibration file once. After the image acquisition device acquires the sample surface image to obtain the original image, use this first calibration file to calibrate the color data of the original image once, and then different printers perform another color calibration according to their corresponding color calibration files (relative to the second calibration file), ensuring that the reproduced images printed by different printers and the sample surface image have the same color regardless of whether the state of the image acquisition device changes, greatly saving the production of multiple different color calibration files, saving time and improving the efficiency of color calibration.

[0112] Embodiment 2

[0113] Please refer to Figure 7 , the embodiments of the present invention provide an image color calibration device 200, and the device 200 includes:

[0114] A first calibration file acquisition module 201, configured to obtain a first calibration file according to a calibration color card;

[0115] A second calibration file acquisition module 202, configured to obtain a second calibration file according to a preset color block diagram;

[0116] An acquisition module 203, configured to acquire a sample surface image to obtain an original image;

[0117] A first calibration module 204, configured to perform color calibration on the original image according to the first calibration file to obtain a first calibrated image;

[0118] A second calibration module 205, configured to perform color calibration on the first calibrated image according to the second calibration file to obtain a second calibrated image;

[0119] A replication module 206, configured to obtain a replicated image of the sample surface image according to the second calibration image.

[0120] Preferably, the first calibration file acquisition module 201 includes:

[0121] A first acquisition unit, configured to acquire the calibration color card and obtain a first color patch map;

[0122] A first color data acquisition unit, configured to obtain first color data according to the first color patch map;

[0123] A first color gamut acquisition unit, configured to obtain a first color gamut according to the first color data;

[0124] A second color data acquisition unit, configured to compress the first color gamut and obtain second color data;

[0125] A first calibration file acquisition unit, configured to generate the first calibration file according to the mapping relationship between the first color data and the second color data.

[0126] Preferably, the second calibration file acquisition module 202 includes:

[0127] A reference color data acquisition unit, configured to obtain reference color data according to the preset color patch map;

[0128] A preset color patch map printing unit, configured to print the preset color patch map to obtain a preset printed color patch map;

[0129] A second acquisition unit, configured to acquire the preset printed color patch map and obtain a second color patch map;

[0130] A third color data acquisition unit, configured to obtain third color data according to the second color patch map;

[0131] A second calibration file acquisition unit, configured to obtain the second calibration file according to the third color data and the reference color data.

[0132] Further, the second calibration file acquisition unit includes:

[0133] A color lookup table acquisition unit, configured to generate a color lookup table according to the third color data and the reference color data;

[0134] A second generation unit, configured to generate the second calibration file according to the color lookup table.

[0135] Further, the first calibration module 204 includes:

[0136] A fourth color data acquisition unit, configured to obtain color information in the original image, denoted as fourth color data;

[0137] A fourth color data acquisition unit, configured to obtain a mapped value corresponding to the fourth color data according to the mapping relationship in the first calibration file, denoted as fifth color data;

[0138] A first calibration unit, configured to adjust the color of the original image according to the fifth color data to obtain the first calibrated image.

[0139] Further, the second calibration module 205 includes:

[0140] A sixth color data acquisition unit, configured to obtain color information in the first calibrated image, denoted as sixth color data;

[0141] A seventh color data acquisition unit, configured to obtain an output value corresponding to the sixth color data according to the color lookup table in the second calibration file, denoted as seventh color data;

[0142] A second calibration unit, configured to adjust the color of the first calibrated image according to the seventh color data to obtain the second calibrated image.

[0143] Further, the device 200 further includes:

[0144] A third color patch diagram acquisition module, configured to collect the calibration color patch after a preset time to obtain a third color patch diagram;

[0145] An eighth color data acquisition module, configured to obtain eighth color data according to the third color patch diagram;

[0146] A third calibration file acquisition module, configured to obtain a third calibration file according to the eighth color data and the second color data;

[0147] An update module, configured to update the first calibration file according to the third calibration file.

[0148] In summary, the image color calibration device provided by the embodiments of the present invention obtains a first calibration file and a second calibration file according to a calibration color card and a preset color block diagram, and uses these two calibration files to perform two color adjustments on the original image corresponding to the sample surface image provided by the user. Therefore, regardless of whether the state of the image acquisition device changes, the colors of the finally obtained copied image and the sample surface image are kept consistent. Compared with the technical solutions such as manually comparing and repeatedly adjusting colors, this method has better color calibration effect, better color consistency and higher efficiency. Using the first calibration file to calibrate the original image is actually to calibrate the image based on the color gamut consistency of the image acquisition device. After calibration, the color differences caused by different states of the image acquisition device will be eliminated. Then, the first calibrated image is calibrated for color-related calibration using the second calibration file, so as to ensure that the copied images obtained at the current state and after a period of time can all be consistent with the color of the sample surface image provided by the user. Especially in the case of copying the same sample using different printers, it is possible to avoid re-making different color calibration files. Only one first calibration file needs to be made. After the image acquisition device acquires the sample surface image to obtain the original image, the color data of the original image is calibrated using the first calibration file. Then, different printers perform another color calibration according to their corresponding color calibration files (relative to the second calibration file), ensuring that regardless of whether the state of the image acquisition device changes, the colors of the copied images printed by different printers and the sample surface image are kept consistent, greatly saving the production of multiple different color calibration files, saving time and improving the efficiency of color calibration.

[0149] Embodiment 3

[0150] In addition, the image color calibration method of the embodiments of the present invention can be implemented by an image color calibration device. Figure 8 FIG. shows a schematic hardware structure diagram of the image color calibration device provided by the embodiments of the present invention.

[0151] The image color calibration device may include a processor 301 and a memory 302 storing computer program instructions.

[0152] Specifically, the above-mentioned processor 301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.

[0153] The memory 302 may include a mass storage for data or instructions. By way of example and not limitation, the memory 302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In a suitable case, the memory 302 may include removable or non-removable (or fixed) media. In a suitable case, the memory 302 may be internal or external to the data processing device. In a particular embodiment, the memory 302 is a non-volatile solid-state memory. In a particular embodiment, the memory 302 includes a read-only memory (ROM). In a suitable case, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.

[0154] The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement any one of the image color calibration methods in the above embodiments.

[0155] In one example, the image color calibration device may further include a communication interface 303 and a bus 310. Among them, as Figure 8 shown, the processor 301, the memory 302, and the communication interface 303 are connected through the bus 310 to complete the communication with each other.

[0156] The communication interface 303 is mainly used to implement the communication between the modules, devices, units, and / or devices in the embodiments of the present invention.

[0157] The bus 310 includes hardware, software, or both, and couples the components of the image color calibration device to each other. By way of example and not limitation, the bus 310 may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industry standard architecture (EISA) bus, a front-side bus (FSB), a hyperTransport (HT) interconnect, an industry standard architecture (ISA) bus, an InfiniBand interconnect, a low-pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable buses, or a combination of two or more of these. In a suitable case, the bus 310 may include one or more buses. Although the embodiments of the present invention describe and illustrate specific buses, the present invention contemplates any suitable bus or interconnect.

[0158] Embodiment 4

[0159] In addition, in combination with the image color calibration method in the above embodiments, an embodiment of the present invention can provide a computer-readable storage medium to implement. Computer program instructions are stored on the computer-readable storage medium; when the computer program instructions are executed by the processor 301, any one of the image color calibration methods in the above embodiments is implemented.

[0160] In summary, the image color calibration method, device, equipment, and storage medium provided by the embodiments of the present invention obtain a first calibration file and a second calibration file according to a calibration color card and a preset color block diagram, and use these two calibration files to perform two color adjustments on the original image corresponding to the sample surface image provided by the user, so that regardless of whether the state of the image acquisition device changes, the finally obtained copied image and the image color of the sample are kept consistent. This method has a better color calibration effect, better color consistency, and higher efficiency compared to technical solutions such as using manual comparison and repeated color adjustment. Using the first calibration file to calibrate the original image is actually to calibrate the image based on the color gamut consistency of the image acquisition device. After calibration, the color differences caused by different states of the image acquisition device will be eliminated. Then, the second calibration file is used to perform color-related calibration on the first calibrated image, so as to ensure that the copied images obtained at the current state and after a period of time can all be consistent with the color of the sample surface image provided by the user. Especially in the case of copying the same sample using different printers, it is possible to avoid re-making different color calibration files. Only need to make the first calibration file once. After the image acquisition device acquires the original image of the sample surface image, use this first calibration file to calibrate the color data of the original image once, and then different printers perform another color calibration according to their corresponding color calibration files (relative to the second calibration file), ensuring that regardless of whether the state of the image acquisition device changes, the copied images printed by different printers and the sample surface image color are kept consistent, greatly saving the production of multiple different color calibration files, saving time, and improving the efficiency of color calibration.

[0161] It should be clear that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions after understanding the spirit of the present invention, or change the order between steps.

[0162] The functional blocks shown in the above-described structural block diagrams can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a functional card, and so on. When implemented in software, the elements of the present invention are programs or code segments for performing the required tasks. The program or code segment can be stored in a machine-readable medium or transmitted via a data signal carried in a carrier wave on a transmission medium or a communication link. A "machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and so on. The code segment can be downloaded via a computer network such as the Internet, an intranet, and so on.

[0163] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be executed in the order mentioned in the embodiments, can be different from the order in the embodiments, or several steps can be executed simultaneously.

[0164] As described above, the above is only the specific implementation manner of the present invention. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present invention.

Claims

1. An image color calibration method, characterized in that, The method includes: Obtaining a first calibration file according to a calibration color card; Obtaining a second calibration file according to a preset color patch map, where the preset color patch map includes a plurality of color patches with different color values, and at least one color channel value in each color patch is different from that of other color patches; the more color patches with different color values included in the preset color patch map, the more reference color data is obtained; Collecting a surface image of a sample to obtain an original image; Performing color calibration on the original image according to the first calibration file to obtain a first calibrated image; Performing color calibration on the first calibrated image according to the second calibration file to obtain a second calibrated image; Obtaining a copied image of the surface image of the sample according to the second calibrated image; Wherein, the obtaining of the second calibration file according to the preset color patch map includes: Obtaining reference color data according to the preset color patch map; Printing the preset color patch map to obtain a preset printed color patch map; Collecting the preset printed color patch map to obtain a second color patch map; Obtaining third color data according to the second color patch map; Obtaining the second calibration file according to the third color data and the reference color data, including: generating a color lookup table according to the third color data and the reference color data; generating the second calibration file according to the color lookup table.

2. The image color calibration method according to claim 1, wherein The obtaining of the first calibration file according to the calibration color card includes: Collecting the calibration color card to obtain a first color patch map; Obtaining first color data according to the first color patch map; Obtaining a first color gamut according to the first color data; Compressing the first color gamut to obtain second color data; Generating the first calibration file according to the mapping relationship between the first color data and the second color data.

3. The image color calibration method according to claim 1, characterized in that The performing of color calibration on the original image according to the first calibration file to obtain a first calibrated image includes: Obtaining color information in the original image, denoted as fourth color data; Obtaining a mapped value corresponding to the fourth color data according to the mapping relationship in the first calibration file, denoted as fifth color data; Adjusting the color of the original image according to the fifth color data to obtain the first calibrated image.

4. The image color calibration method according to any one of claims 1-3, characterized in that, The performing of color calibration on the first calibrated image according to the second calibration file to obtain a second calibrated image includes: Obtaining color information in the first calibrated image, denoted as sixth color data; Obtaining an output value corresponding to the sixth color data according to the color lookup table in the second calibration file, denoted as seventh color data; Adjusting the color of the first calibrated image according to the seventh color data to obtain the second calibrated image.

5. The image color calibration method according to claim 2, wherein The method further includes: Collecting the calibration color card after a preset time to obtain a third color patch map; Obtaining eighth color data according to the third color patch map; Obtaining a third calibration file according to the eighth color data and the second color data; Updating the first calibration file according to the third calibration file.

6. An image color calibration device, characterized in that, The device includes: A first calibration file obtaining module, configured to obtain a first calibration file according to a calibration color card; The second calibration file acquisition module is used to acquire a second calibration file according to a preset color patch map. The preset color patch map contains multiple color patches with different color values, and at least one color channel value in each color patch is different from that of other color patches. The more color patches with different color values are included in the preset color patch map, the more reference color data can be obtained. The acquisition of the second calibration file according to the preset color patch map includes: obtaining reference color data according to the preset color patch map; printing the preset color patch map to obtain a preset printed color patch map; collecting the preset printed color patch map to obtain a second color patch map; obtaining third color data according to the second color patch map; obtaining the second calibration file according to the third color data and the reference color data, including: generating a color lookup table according to the third color data and the reference color data; generating the second calibration file according to the color lookup table; The acquisition module is used to acquire an original image by collecting an image of the sample surface; The first calibration module is used to perform color calibration on the original image according to a first calibration file to obtain a first calibrated image; The second calibration module is used to perform color calibration on the first calibrated image according to the second calibration file to obtain a second calibrated image; The copying module is used to obtain a copied image of the sample surface image according to the second calibrated image.

7. An image color calibration device, characterized in that, including: At least one processor, at least one memory, and computer program instructions stored in the memory, which implement the method according to any one of claims 1-5 when the computer program instructions are executed by the processor.

8. A storage medium, on which computer program instructions are stored, characterized in that, When the computer program instructions are executed by the processor, the method according to any one of claims 1-5 is implemented.

Citation Information

Patent Citations

  • Color detection method and terminal

    CN109155071A

  • Image color correction method, device and equipment and computer readable storage medium

    CN109743472A