Color data acquisition method and device based on image acquisition, equipment and medium
The Lab data of the color output by the printing press is obtained through the image acquisition method, which solves the problems of high cost and low efficiency of spectrophotometers, achieves rapid and economical color data acquisition, and improves color management efficiency.
Patent Information
- Application Number
- CN202310871540.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-17
- Publication Date
- 2025-01-17
AI Technical Summary
In the prior art, the use of spectrophotometers to obtain Lab data of the printing press output color is costly and inefficient, especially when the number of color blocks is large, the measurement speed is slow, which affects the color management efficiency.
Using an image acquisition-based method, by controlling the printing press to print color target images, using a spectrophotometer and an image acquisition device to collect color data, establish a lookup table, and then quickly obtain the Lab data of the image to be tested, avoiding the use of the spectrophotometer.
It realizes rapid acquisition of Lab data without a spectrophotometer, improves the efficiency and speed of color data acquisition, reduces costs, and saves resources.
Smart Images

Figure CN119321816A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of printing technology, and in particular to a method, device, equipment and medium for acquiring color data based on image acquisition. Background Art
[0002] Printing presses are widely used in outdoor advertising, label printing, textile printing, ceramic printing, printed electronics, home decoration and other fields. In order to ensure the printing effect of the printing press, it is necessary to perform color management on the printing press, such as making a color management profile for the printing press to control the overall printing color effect of the printing press. Making a color management profile often requires obtaining color data such as the Lab value of the color output by the printing press. The existing method of obtaining Lab data is to directly use a professional spectrophotometer to measure and obtain the color output by the printing press, such as controlling the printing press to print a color target chart containing multiple colors, and then using a spectrophotometer to scan each color block one by one. However, this method requires the purchase of a relatively expensive spectrophotometer that is not used very frequently, resulting in a waste of resources. In addition, because the color blocks need to be scanned one by one, when the number of color blocks is large, the measurement speed is slow and time-consuming. In addition, there is another method which directly converts the RGB data of the color block into XYZ data and then into Lab data. However, the Lab data obtained by this direct conversion method is quite different from the actual Lab data, which ultimately affects the efficiency of color management. Therefore, how to quickly and easily obtain Lab data without a professional spectrophotometer is of great practical significance and application value. Summary of the invention
[0003] In view of this, the embodiments of the present invention provide a method, device, equipment and medium for acquiring color data based on image acquisition, so as to solve the problem of high cost and low efficiency in acquiring Lab data using a spectrophotometer in the prior art.
[0004] In a first aspect, an embodiment of the present invention provides a method for acquiring color data based on image acquisition, the method comprising:
[0005] Controlling the printing machine to print the first color target image to obtain the second color target image;
[0006] Using a spectrophotometer to collect the second color target image to obtain first color data;
[0007] Using an image acquisition device to acquire the second color target image to obtain second color data;
[0008] Acquire a first lookup table according to the second color data and the first color data;
[0009] The target color data of the image to be measured is acquired using the image acquisition device and the first lookup table, wherein the target color data is any one of Lab data, XYZ data or spectral data.
[0010] Preferably, the first color target image includes N color blocks with different color values, wherein N is a natural number greater than or equal to 1.
[0011] Preferably, 3000≤N≤256 3 .
[0012] Preferably, the printing press comprises any one of a digital inkjet printing press, a lithographic printing press, a gravure printing press, a letterpress printing press, and a stencil printing press.
[0013] Preferably, before controlling the printing press to print the first color target image to obtain the second color target image, the method further comprises:
[0014] Obtaining the color gamut of the printing press;
[0015] Determine the number N of color blocks according to the color gamut of the printing press;
[0016] The first color target image is constructed according to the number N of color blocks.
[0017] Preferably, the using the image acquisition device and the first lookup table to acquire the target color data of the image to be measured comprises:
[0018] Using the image acquisition device to acquire the image to be tested to obtain an electronic version of the image to be tested;
[0019] Acquire color data to be converted according to the electronic version of the image to be tested;
[0020] The target color data is acquired according to the color data to be converted and the first lookup table.
[0021] Preferably, the method further comprises:
[0022] Calibrate the image acquisition device at preset time intervals;
[0023] The target color data of the image to be measured is acquired according to the calibrated image acquisition device and the first lookup table.
[0024] Preferably, calibrating the image acquisition device at preset intervals includes:
[0025] Print the first color target image at a preset time interval to obtain a third color target image;
[0026] Using the image acquisition device to acquire the third color target image to obtain third color data;
[0027] acquiring a first calibration file according to the third color data and the second color data;
[0028] The image acquisition device is calibrated according to the first calibration file.
[0029] Preferably, the image acquisition device is any one of a CCD scanner, a CCD camera or a CCD video camera.
[0030] In a second aspect, an embodiment of the present invention provides a color data acquisition device based on image acquisition, the device comprising:
[0031] A printing module, used for controlling a printing machine to print a first color target image to obtain a second color target image;
[0032] A first acquisition module, used for acquiring the second color target image using a spectrophotometer to obtain first color data;
[0033] A second acquisition module, used for acquiring the second color target image using an image acquisition device to obtain second color data;
[0034] A table building module, used for acquiring a first lookup table according to the second color data and the first color data;
[0035] The target color data acquisition module is used to use the image acquisition device and the first lookup table to acquire the target color data of the image to be measured, wherein the target color data is any one of Lab data, XYZ data or spectral data.
[0036] In a third aspect, an embodiment of the present invention provides a color data acquisition device based on image acquisition, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, and when the computer program instructions are executed by the processor, the method of the first aspect in the above embodiment is implemented.
[0037] In a fourth aspect, an embodiment of the present invention provides a storage medium having computer program instructions stored thereon, which implements the method of the first aspect in the above-mentioned embodiment when the computer program instructions are executed by a processor.
[0038] In summary, the beneficial effects of the present invention are as follows:
[0039] The color data acquisition method, device, equipment and medium based on image acquisition provided by the embodiments of the present invention control a printing press to print a first color target image to obtain a second color target image; use a spectrophotometer to acquire the second color target image to acquire first color data; use an image acquisition device to acquire the second color target image to acquire second color data; acquire a first lookup table according to the second color data and the first color data; and then use the image acquisition device and the first lookup table to acquire target color data such as Lab data of the image to be tested. The method provided by the embodiments of the present invention does not require the use of a spectrophotometer but only uses the image acquisition device and the first lookup table to quickly acquire target color data such as Lab data of the image to be tested, and the image acquisition device can acquire the image to be tested in a large area and at one time. Compared with the method of using a spectrophotometer to acquire colors one by one, the efficiency is higher and the speed of acquiring target color data is faster. The image acquisition device is cheaper than the spectrophotometer and can save more costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.
[0041] Figure 1 It is a flowchart of a method for acquiring color data based on image acquisition according to an embodiment of the present invention.
[0042] Figure 2 Schematic diagram of a first color target diagram according to an embodiment of the present invention.
[0043] Figure 3 Schematic diagram of color gamut sampling of a printing press according to an embodiment of the present invention.
[0044] Figure 4 It is a structural schematic diagram of a color data acquisition device based on image acquisition according to an embodiment of the present invention.
[0045] Figure 5 It is a structural schematic diagram of a color data acquisition device based on image acquisition according to an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and Examples. 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 the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.
[0047] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0048] Embodiment 1
[0049] See also Figure 1 The embodiment of the present invention provides a method for acquiring color data based on image acquisition, which is applicable to printing presses, including digital printing presses (such as reciprocating scanning inkjet printing presses, OnePass inkjet printing presses, high-speed SinglePass inkjet printing presses, etc.), lithographic printing presses, gravure printing presses, letterpress printing presses, stencil printing presses, etc. The method includes:
[0050] S1: Control the printing machine to print the first color target image to obtain the second color target image;
[0051] S2: using a spectrophotometer to collect the second color target image to obtain first color data;
[0052] S3: using an image acquisition device to acquire the second color target image to obtain second color data;
[0053] S4: acquiring a first lookup table according to the second color data and the first color data;
[0054] S5: Using the image acquisition device and the first lookup table to obtain target color data of the image to be measured, wherein the target color data and the first color data are the same type of color data.
[0055] The first color target image here is an image recorded in an electronic document. In some embodiments, the first color target image can be an international standard color target (such as IT8.7-2 / 1993, etc.), or a color target image designed by the user according to actual application conditions. Preferably, the first color target image is a color image including N color blocks with 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. For example, Figure 2 As shown, the first color target diagram contains multiple color blocks with different RGB values, and the value of at least one of the three color channels (R, G and B) of each color block is different from that of other color blocks. The first color target diagram contains as many color blocks with different color values as possible. The more color blocks with different color values there are, the richer the color data contained in the first color target diagram, and the more accurate the color conversion performed by the first lookup table established based on these color data is. Preferably, N is greater than or equal to 1000. In one embodiment, R value, G value and B value are selected from 0-255 at intervals of 15, 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, and the corresponding color blocks are generated according to the 4913 color values to obtain the first color target diagram. In other embodiments, R values, G values, and B values may be selected at intervals of 1, 2, 5, 10, etc., and color values may be arranged and combined to obtain corresponding color blocks to form a first color target image.
[0056] In other embodiments, the C value, M value, Y value and K value in the CMYK four-color channel can be selected at intervals of 1, 2, 3, 5, 10, etc., and the color values can be arranged and combined to obtain the corresponding color blocks to form the first color target image. Exemplarily, the C value, M value, Y value and K value are selected at intervals of 1 from 0-100, that is, C={0, 1, 2, ..., 100}, M={0, 1, 2, ..., 100}, Y={0, 1, 2, ..., 100}, K={0, 1, 2, ..., 100}, and the CMYK values are arranged and combined to obtain 100 4 color values and generate corresponding color blocks to obtain the first color target image.
[0057] In other embodiments, in addition to the CMYK four-color channels, the digital printing presses used in the digital printing industry will also be provided with several spot color channels for printing spot color inks. Therefore, the C value, M value, Y value, and K value in the CMYK four-color channels can be selected at intervals of 1, 2, 3, 5, 10, and the color value arrangement and combination of the spot color channels can be used to obtain the corresponding color blocks to form the first color target image. Exemplarily, assuming that the digital printing press also includes a spot color channel P, and the C value, M value, Y value, K value, and P value are selected at intervals of 2 from 0-100, that is, C={0, 2, 4, ..., 100}, M={0, 2, 4, ..., 100}, Y={0, 2, 4, ..., 100}, K={0, 2, 4, ..., 100}, P={0, 2, 4, ..., 100}, and the CMYKP values are arranged and combined to obtain the first color target image composed of 51 5 In one embodiment, the first color target image is determined according to the color gamut of the printing press. Preferably, before controlling the printing press to print the first color target image to obtain the second color target image, the method further includes:
[0058] Obtaining the color gamut of the printing press;
[0059] Determine the number N of color blocks according to the color gamut of the printing press;
[0060] The first color target image is constructed according to the number N of color blocks.
[0061] Specifically, the value of N is determined according to the color gamut size of the printer. The color gamut of the printer here refers to the color gamut presented by the printer in the Lab color space. The color gamut size of the printer directly determines the number of colors that the printer can output. Figure 3 As shown, it is a schematic diagram of the color gamut of a printer in the Lab color space. The color gamut of the printer is sampled, and each sampling point corresponds to a color value (the color value of the sampling point in the Lab color space is a Lab value, and the Lab can be converted into a CMKY value or an RGB value). The first color target diagram is constructed according to the color value of each sampling point and the number of sampling points. The more sampling points there are, the more color information is contained in the first color target diagram, and the more accurate the color conversion is performed according to the first lookup table established based on these color data. Assume that N sampling points are determined from the color gamut of the printer, and the Lab values corresponding to the N sampling points are obtained, and the Lab is converted into a CMKY value or an RGB value, and a color block is constructed for each sampling point accordingly, and all the color blocks constitute the first color target diagram.
[0062] After obtaining the first color target image, the printer is controlled to print the first color target image recorded in the form of an electronic document onto a substrate to obtain a second color target image, where the substrate can be materials such as paper, wood, glass, crystal, PVC, ABS, acrylic, metal, plastic, stone, leather, cloth and other textiles. After obtaining the second color target image, on the one hand, a spectrophotometer is used to collect the color information of each color block in the second color target image to obtain the first color data. The first color data is any one of Lab data, XYZ data or spectral data, preferably, the first color data is Lab data. On the other hand, an image acquisition device (such as a CCD / CMOS scanner, a CCD / CMOS camera, a CCD / CMOS camera, etc.) is used to collect the second color target image, and the second color target image (physical image) is converted into an electronic image, and the information of each color in the electronic image of the second color target image is obtained to obtain the second color data. The second color data can be RGB data or CMYK data. The data types of the second color data and the first color data are different due to different acquisition equipment / device types.
[0063] Since the first color data and the second color data are both obtained based on the second color target image, there is a one-to-one correspondence between the first color data and the color blocks in the second color target image, and similarly there is a one-to-one correspondence between the second color data and the color blocks in the second color target image. According to these correspondences, a one-to-one mapping relationship between the first color data and the second color data can be established, or a first lookup table for converting the second color data of the image acquisition device to the first color data can be generated according to these correspondences. For example, when the first color data is Lab data and the second color data is RGB data, the generated first lookup table is an RGB-Lab lookup table. When it is necessary to measure a certain image to be measured (physical image) and it is desired to obtain the Lab data of each color in the image, the image acquisition device can be directly used to acquire the image to be measured to obtain an electronic version of the image to be measured (recorded as the electronic version of the image to be measured), and the RGB data of each color in the electronic version of the image to be measured can be obtained. After the RGB data is obtained, the Lab data corresponding to each RGB data can be directly obtained according to the mapping relationship or the RGB-Lab lookup table, thereby obtaining the Lab data of the image to be measured. In other embodiments, the first color data may also be XYZ data or spectral data, and the second color data may also be CMYK data. For example, when the first color data is XYZ data and the second color data is CMYK data, a mapping relationship between CMYK data and XYZ data is established, or a CMYK-XYZ lookup table is generated. When it is necessary to measure a certain image to be measured (physical image) and it is desired to obtain the XYZ data of each color in the image, the image acquisition device can be used directly to acquire the image to be measured to obtain an electronic version of the image to be measured, and the CMYK data of each color in the electronic version of the image to be measured can be obtained. Then, according to the mapping relationship (or CMYK-XYZ lookup table), the XYZ data corresponding to each CMYK data can be directly obtained, thereby obtaining the XYZ data of the image to be measured.
[0064] In this embodiment, the Lab data of the image to be tested can be quickly acquired by using the image acquisition device and the first lookup table without using a spectrophotometer, and the image acquisition device can acquire the image to be tested in a large area and at one time. Compared with the method of using a spectrophotometer to acquire colors one by one, the efficiency is higher and the speed of acquiring color data is faster. In addition, the image acquisition device is cheaper than a spectrophotometer, which can save more costs.
[0065] In addition, it is worth pointing out that as time goes by, the state of the image acquisition device may change (such as wear and tear, aging, etc.). At this time, the RGB (or CMYK) color data collected by the image acquisition device is very different from the RGB (or CMYK) color data collected before the state change, resulting in a large error in the Lab data finally obtained. Preferably, the current state of the image acquisition device can be calibrated after a period of time, so as to ensure that even if the state of the image acquisition device changes and the image color information collected by the image acquisition device after the state changes, it can still be consistent with that before the state changes, thereby avoiding differences in the collected RGB (or CMYK) color data, and ultimately ensuring the accuracy of color data conversion using the first lookup table. In one embodiment, the color data acquisition method based on image acquisition also includes:
[0066] Calibrate the image acquisition device at preset time intervals;
[0067] The target color data of the image to be measured is acquired according to the calibrated image acquisition device and the first lookup table.
[0068] Preferably, calibrating the image acquisition device at preset intervals includes:
[0069] Print the first color target image at a preset time interval to obtain a third color target image;
[0070] Using the image acquisition device to acquire the third color target image to obtain third color data;
[0071] acquiring a first calibration file according to the third color data and the second color data;
[0072] The image acquisition device is calibrated according to the first calibration file.
[0073] Since the first lookup table is generated using the second color data, and the second color data is the color data obtained by collecting the second color target image when the image acquisition device is in the initial state (no state change occurs), the second color data reflects the maximum color gamut that the image acquisition device can present in the initial state, which is recorded as the second color gamut. After the preset time, the first color target image is printed again to obtain the third color target image; the third color target image is collected to obtain the third color data, and the third color data reflects the maximum color gamut that the image acquisition device (with state changes) can present after the preset time, which is recorded as the third color gamut. Due to aging or use loss of the image acquisition device, the third color gamut may be different from the second color gamut, resulting in a difference in the color data collected twice before and after the preset time. In order to ensure the consistency of the colors collected by the image acquisition device after the preset time, it is necessary to establish a mapping relationship between the third color gamut and the second color gamut. Therefore, the second color gamut is used as the target color gamut, and the third color gamut is used as the source color gamut for color gamut mapping. Since the third color data is a sampling point in the third color gamut, and the second color data is a sampling point in the second color gamut, the second color data is used as an image, and the third color data is used as an original image. A mapping relationship between the second color data and the third color data is established, and the mapping relationship is recorded in the first calibration file. When performing subsequent image acquisition, the image acquisition device is calibrated using the first calibration file, and then the calibrated image acquisition device is used to acquire the image to be tested to obtain an electronic version of the image to be tested, thereby ensuring that the color acquired by the image acquisition device remains consistent regardless of whether the state of the image acquisition device changes. Then, the target color data (Lab data) corresponding to the color data to be converted is obtained according to the first lookup table.
[0074] In summary, the color data acquisition method based on image acquisition provided in the embodiment of the present invention controls a printer to print a first color target image to obtain a second color target image; uses a spectrophotometer to acquire the second color target image to acquire first color data; uses an image acquisition device to acquire the second color target image to acquire second color data; acquires a first lookup table according to the second color data and the first color data; and then uses the image acquisition device and the first lookup table to acquire target color data such as Lab data of the image to be tested. In this embodiment, there is no need to use a spectrophotometer, but only the image acquisition device and the first lookup table can quickly acquire target color data such as Lab data of the image to be tested, and the image acquisition device can complete the acquisition of the image to be tested in a large area and at one time. Compared with the method of using a spectrophotometer to acquire colors one by one, the efficiency is higher and the speed of acquiring target color data is faster. In addition, the image acquisition device is cheaper than the spectrophotometer, which can save more costs.
[0075] Embodiment 2
[0076] See also Figure 4The embodiment of the present invention provides a color data acquisition device 200 based on image acquisition, and the device 200 includes:
[0077] Printing module 201, used for controlling a printer to print a first color target image to obtain a second color target image;
[0078] A first acquisition module 202 is used to acquire the second color target image using a spectrophotometer to obtain first color data;
[0079] The second acquisition module 203 is used to acquire the second color target image using an image acquisition device to obtain second color data;
[0080] A table building module 204, configured to obtain a first lookup table according to the second color data and the first color data;
[0081] The target color data acquisition module 205 is used to acquire the target color data of the image to be measured using the image acquisition device and the first lookup table, wherein the target color data is any one of Lab data, XYZ data or spectral data.
[0082] Preferably, the first color target image in the printing module includes N color blocks with different color values, wherein N is a natural number greater than or equal to 1000.
[0083] Preferably, the device 200 further includes:
[0084] A printing press color gamut acquisition module, used for acquiring the color gamut of the printing press;
[0085] A number determination module, used to determine the number N of color blocks according to the color gamut of the printing press;
[0086] A construction module is used to construct the first color target image according to the number N of color blocks.
[0087] Preferably, the target color data acquisition module 205 includes:
[0088] A first acquisition unit, configured to acquire the image to be measured using the image acquisition device to obtain an electronic version of the image to be measured;
[0089] A conversion unit, used for acquiring color data to be converted according to the electronic version of the image to be tested;
[0090] An acquiring unit is used to acquire the target color data according to the color data to be converted and the first lookup table.
[0091] Preferably, the device 200 further includes:
[0092] A calibration module, used for calibrating the image acquisition device at preset time intervals;
[0093] An updating module is used to obtain target color data of the image to be measured according to the calibrated image acquisition device and the first lookup table.
[0094] Preferably, the calibration module comprises:
[0095] A printing unit, printing the first color target image at a preset time interval to obtain a third color target image;
[0096] A second acquisition unit uses the image acquisition device to acquire the third color target image to obtain third color data;
[0097] a calibration file acquiring unit, configured to acquire a first calibration file according to the third color data and the second color data;
[0098] A calibration unit is used to calibrate the image acquisition device according to the first calibration file.
[0099] In summary, the color data acquisition device based on image acquisition provided in the embodiment of the present invention controls a printer to print a first color target image to obtain a second color target image; uses a spectrophotometer to acquire the second color target image to acquire first color data; uses an image acquisition device to acquire the second color target image to acquire second color data; acquires a first lookup table according to the second color data and the first color data; and then uses the image acquisition device and the first lookup table to acquire target color data such as Lab data of the image to be tested. In this embodiment, there is no need to use a spectrophotometer, but only the image acquisition device and the first lookup table can be used to quickly acquire target color data such as Lab data of the image to be tested, and the image acquisition device can complete the acquisition of the image to be tested in a large area and at one time. Compared with the method of using a spectrophotometer to acquire colors one by one, the efficiency is higher and the speed of acquiring target color data is faster. In addition, the image acquisition device is cheaper than the spectrophotometer, which can save more costs.
[0100] Embodiment 3
[0101] In addition, the color data acquisition method based on image acquisition according to the embodiment of the present invention may be implemented by a color data acquisition device based on image acquisition. Figure 5 A schematic diagram of the hardware structure of a color data acquisition device based on image acquisition provided by an embodiment of the present invention is shown.
[0102] The color data acquisition device based on image acquisition may include a processor 301 and a memory 302 storing computer program instructions.
[0103] Specifically, the processor 301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0104] The memory 302 may include a large capacity memory for data or instructions. For example, but 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 appropriate cases, the memory 302 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 302 may be inside or outside the data processing device. In a specific embodiment, the memory 302 is a non-volatile solid-state memory. In a specific embodiment, the memory 302 includes a read-only memory (ROM). In appropriate cases, 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.
[0105] The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement any one of the color data acquisition methods based on image acquisition in the above embodiments.
[0106] In one example, the color data acquisition device based on image acquisition may further include a communication interface 303 and a bus 310. Figure 5 As shown, the processor 301, the memory 302, and the communication interface 303 are connected via a bus 310 and communicate with each other.
[0107] The communication interface 303 is mainly used to implement the communication between the modules, devices, units and / or equipment in the embodiment of the present invention.
[0108] Bus 310 includes hardware, software or both, and the components of the color data acquisition device based on image acquisition are coupled to each other. For example, but not limitation, bus 310 may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnect (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 310 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.
[0109] Embodiment 4
[0110] In addition, in combination with the color data acquisition method based on image acquisition in the above embodiments, the embodiment of the present invention can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor 301, any one of the color data acquisition methods based on image acquisition in the above embodiments is implemented.
[0111] In summary, the color data acquisition method, device, equipment and medium based on image acquisition provided by the embodiments of the present invention obtain a second color target image by controlling a printing press to print a first color target image; using a spectrophotometer to acquire the second color target image to acquire first color data; using an image acquisition device to acquire the second color target image to acquire second color data; acquiring a first lookup table according to the second color data and the first color data; and then using the image acquisition device and the first lookup table to acquire target color data such as Lab data of the image to be tested. In this embodiment, there is no need to use a spectrophotometer, but only the image acquisition device and the first lookup table can quickly acquire target color data such as Lab data of the image to be tested, and the image acquisition device can complete the acquisition of the image to be tested in a large area and at one time. Compared with the method of using a spectrophotometer to acquire colors one by one, the efficiency is higher and the speed of acquiring target color data is faster. In addition, the image acquisition device is cheaper than the spectrophotometer, which can save more costs.
[0112] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is 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, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0113] The functional blocks shown in the above-described block diagram 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 function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0114] 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 performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0115] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. A color data acquisition method based on image acquisition, characterized in that: The method comprises: Controlling the printing machine to print the first color target image to obtain the second color target image; Using a spectrophotometer to collect the second color target image to obtain first color data; Using an image acquisition device to acquire the second color target image to obtain second color data; Acquire a first lookup table according to the second color data and the first color data; The target color data of the image to be measured is acquired using the image acquisition device and the first lookup table, wherein the target color data is any one of Lab data, XYZ data or spectral data.
2. The color data acquisition method based on image acquisition according to claim 1, characterized in that: The first color target image includes N color blocks with different color values, where N is a natural number greater than or equal to 1.
3. The color data acquisition method based on image acquisition according to claim 1, characterized in that: The printing press includes any one of a digital inkjet printing press, a lithographic printing press, a gravure printing press, a letterpress printing press, and a stencil printing press.
4. The color data acquisition method based on image acquisition according to claim 2, characterized in that: Before controlling the printing press to print the first color target image to obtain the second color target image, the method further includes: Obtaining the color gamut of the printing press; Determine the number N of color blocks according to the color gamut of the printing press; The first color target image is constructed according to the number N of color blocks.
5. The color data acquisition method based on image acquisition according to claim 1, characterized in that: The using the image acquisition device and the first lookup table to obtain target color data of the image to be measured comprises: Using the image acquisition device to acquire the image to be tested to obtain an electronic version of the image to be tested; Acquire color data to be converted according to the electronic version of the image to be tested; The target color data is acquired according to the color data to be converted and the first lookup table.
6. The color data acquisition method based on image acquisition according to claim 1, characterized in that: The method further comprises: Calibrate the image acquisition device at preset time intervals; The target color data of the image to be measured is acquired according to the calibrated image acquisition device and the first lookup table.
7. The color data acquisition method based on image acquisition according to claim 5, characterized in that: The calibrating the image acquisition device at preset intervals includes: Print the first color target image at a preset time interval to obtain a third color target image; Using the image acquisition device to acquire the third color target image to obtain third color data; acquiring a first calibration file according to the third color data and the second color data; The image acquisition device is calibrated according to the first calibration file.
8. A color data acquisition device based on image acquisition, characterized in that: The device comprises: A printing module, used for controlling a printing machine to print a first color target image to obtain a second color target image; A first acquisition module, used for acquiring the second color target image using a spectrophotometer to obtain first color data; A second acquisition module, used for acquiring the second color target image using an image acquisition device to obtain second color data; A table building module, used for acquiring a first lookup table according to the second color data and the first color data; The target color data acquisition module is used to use the image acquisition device and the first lookup table to acquire the target color data of the image to be measured, wherein the target color data is any one of Lab data, XYZ data or spectral data.
9. A color data acquisition device based on image acquisition, characterized in that: include: At least one processor, at least one memory and computer program instructions stored in the memory, when the computer program instructions are executed by the processor, implement the method according to any one of claims 1 to 7.
10. A storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.