Printing data processing method and system
By simulated printing and color compensation on the printing data, the problem of color deviation in traditional color management methods is solved, the quality and consistency of printed materials are improved, and more efficient printing data processing is achieved.
Patent Information
- Application Number
- CN202411039386.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-31
AI Technical Summary
Traditional color management methods have problems in the printing industry with slow processing speed, low accuracy, high resource consumption and difficulty in dealing with complex and changing printing environments and material characteristics, resulting in frequent color deviation problems and affecting the quality of printed materials.
By simulated printing of the printed data, abnormal color data are determined and color compensation is performed, the color difference between the actual printing color and the expected color is reduced, and the color data is analyzed and curved fitted using the preset printing data analysis model, and the compensation value is determined to adjust Color parameters.
It improves the efficiency and accuracy of printing data processing, reduces color deviation, and ensures consistency and accuracy of print quality.
Smart Images

Figure CN118570317B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of printing technology, and more specifically, to a printing data processing method and system. Background Art
[0002] In the printing industry, color management is a key link to ensure the consistency and accuracy of printed products. However, traditional color management methods often rely on manual experience and trial and error, and have problems such as slow processing speed, low precision, and high resource consumption. It is also difficult to cope with complex and changing printing environments and material characteristics. In addition, various color deviation problems may occur during the printing process, such as hue shift, insufficient or excessive saturation, etc. These problems will have a corresponding impact on the quality of printed products.
[0003] Therefore, the prior art has defects and is in urgent need of improvement. Summary of the invention
[0004] In view of the above problems, the object of the present invention is to provide a printing data processing method and system, which can reduce the color difference between the actual printed color and the expected color by simulating the printing of the printing data and performing color compensation on the abnormal color data in the printing data.
[0005] A first aspect of the present invention provides a printing data processing method, comprising:
[0006] Obtaining data to be printed;
[0007] Determine a plurality of first color data based on the used colors of the data to be printed, determine second color data by simulating printing of the first color data through a preset printing data analysis model, and determine first abnormal color data according to a color difference between the second color data and the first color data;
[0008] Determine an abnormal color display interval by using adjacent first color data and the first abnormal color data;
[0009] Select a plurality of third color data from the abnormal color display interval according to a preset color distance interval; determine a compensation value k (k) of the third color data according to a color ratio of the third color data and the fourth color data corresponding to the printed color; c , k m , k y , k k );
[0010] The compensation value k(k c , k m , k y , k k ) performing curve fitting to determine a compensation curve for the abnormal color display interval;
[0011] marking the color data in the abnormal color display interval in the data to be printed as second abnormal color data;
[0012] determining a first compensation value of the second abnormal color data based on a compensation curve of the abnormal color display interval where the second abnormal color data is located;
[0013] Performing color compensation on the second abnormal color data based on the first compensation value, and determining a first printing parameter of the second abnormal color data;
[0014] The second printing parameters of the data to be printed in each color layer are determined according to the first printing parameters of each color data in the data to be printed.
[0015] This plan also includes:
[0016] Acquire historical printing data; the historical printing data at least includes historical data to be printed and corresponding actual printing data, printing environment data and printing material data;
[0017] Performing data cleaning and data integration on the historical printing data to establish a historical printing data database;
[0018] The historical printing data in the historical printing data database is analyzed to determine a preset printing data analysis model.
[0019] In this solution, the method of determining a plurality of first color data based on the use color of the data to be printed, determining second color data by simulating printing of the first color data through a preset printing data analysis model, and determining first abnormal color data according to the color difference between the second color data and the first color data includes:
[0020] Determining a first color region from a color gamut diagram based on the used colors of the data to be printed;
[0021] selecting a plurality of first color data from the color gamut map based on the first color region;
[0022] Get print impact data;
[0023] The first color data is simulated for printing by using a preset printing data analysis model, and the second color data of the printing color corresponding to the first color data is determined according to the printing influence data and the printing order of each color layer;
[0024] Calculate the color difference between the first color data and the second color data;
[0025] The first color data whose color difference is greater than a preset color difference threshold is determined as first abnormal color data, otherwise it is determined as normal color data.
[0026] In this solution, determining the abnormal color display interval by using adjacent first color data and the first abnormal color data includes:
[0027] determining a plurality of color display intervals according to adjacent first color data;
[0028] Determine a color display interval with first abnormal color data at both ends as an abnormal color display interval;
[0029] Determine the color display interval other than the abnormal color display interval as the pending color display interval;
[0030] Determine a new color display interval based on the intermediate color data of the undetermined color display interval, and perform abnormal color display interval determination again;
[0031] When both ends of the color display interval are normal color data and the color length of the color display interval is less than a first preset length, the color display interval is determined as a normal color display interval;
[0032] When one end of the color display interval is first abnormal color data and the other end is normal color data, and the color length of the color display interval is less than a second preset length, the color display interval is determined as an abnormal color display interval.
[0033] This plan also includes:
[0034] The third color data is simulated for printing by using a preset printing data analysis model, and the fourth color data of the printing color corresponding to the third color data is determined according to the printing influence data and the printing order of each color layer.
[0035] This plan also includes:
[0036] determining color data that exists simultaneously in a plurality of abnormal color display intervals as fifth color data;
[0037] adjusting the compensation value of the fifth color data based on the curvature of the compensation curve corresponding to each abnormal color display interval of the fifth color data;
[0038] The compensation curve corresponding to the abnormal color display interval where the fifth color data is located is adjusted based on the adjusted compensation value of the fifth color data.
[0039] This plan also includes:
[0040] determining the color data not in the color display interval as sixth color data;
[0041] Draw a perpendicular line to the line segment corresponding to the surrounding color display interval based on the color coordinates of the sixth color data, and determine the color data corresponding to the foot of the perpendicular as the seventh color data;
[0042] Calculate the color distance from the color coordinates of the sixth color data to the corresponding line segment of the surrounding color display interval based on the seventh color data;
[0043] Two color display intervals with the smallest color distance are selected, and the compensation value of the sixth color data is calculated according to the pixel distance and the compensation value of the seventh color data.
[0044] This plan also includes:
[0045] Determine the printing grade of the printing area according to the printing content of the printing area;
[0046] determining the printing data of the first printing level printing area as the third printing data;
[0047] determining a candidate color region in the color gamut diagram based on color coordinates of eighth color data within the third printing data and a preset radius;
[0048] Select one or more candidate color data in the candidate color area; the number of color layers of the candidate color data in the CMYK color space is less than the number of color layers of the eighth color data;
[0049] Calculate the color score of each candidate color data according to the CMYK value of each candidate color data and the color difference between the eighth color data;
[0050] The candidate color data having the highest color score is selected as the color data of the eighth color data.
[0051] A second aspect of the present invention provides a printing data processing system, comprising:
[0052] A data acquisition module, used for acquiring data to be printed;
[0053] A first analysis module, configured to determine a plurality of first color data based on the used colors of the data to be printed, determine second color data by simulating printing of the first color data using a preset printing data analysis model, and determine first abnormal color data according to a color difference between the second color data and the first color data;
[0054] The second analysis module is used to determine the abnormal color display interval through the adjacent first color data and the first abnormal color data; select a plurality of third color data from the abnormal color display interval according to a preset color distance interval; determine the compensation value k (k c , k m , k y , k k); compensation value k (k c , k m , k y , k k ) performing curve fitting to determine a compensation curve for the abnormal color display interval;
[0055] A printing parameter calculation module is used to mark the color data in the abnormal color display interval in the data to be printed as second abnormal color data; determine the first compensation value of the second abnormal color data based on the compensation curve of the abnormal color display interval where the second abnormal color data is located; perform color compensation on the second abnormal color data based on the first compensation value to determine the first printing parameter of the second abnormal color data; and determine the second printing parameter of the data to be printed in each color layer according to the first printing parameter of each color data in the data to be printed.
[0056] A third aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a printing data processing method program. When the printing data processing method program is executed by a processor, the steps of the printing data processing method as described above are implemented.
[0057] The present invention discloses a printing data processing method and system, the method comprising: determining first color data based on data to be printed, simulating printing of the first color data through a preset printing data analysis model to determine second color data, and determining first abnormal color data according to the color difference between the second color data and the first color data; determining an abnormal color display interval through adjacent first color data and first abnormal color data, calculating a compensation value of third color data in the abnormal color display interval, and determining a compensation curve for the abnormal color display interval; determining a first compensation value through the compensation curve, performing color compensation on the second abnormal color data, and determining a first printing parameter of the second abnormal color data; and determining a second printing parameter of the data to be printed in each color layer according to the first printing parameter of each color data in the data to be printed. The present invention reduces the difference between the actual printed color and the expected color by performing color compensation on the printing data. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 A flow chart of a printing data processing method provided by the present invention is shown;
[0059] Figure 2 A flow chart showing a first abnormal color data determination method provided by the present invention is shown;
[0060] Figure 3 A flow chart showing a method for determining an abnormal color display interval provided by the present invention is shown;
[0061] Figure 4 A block diagram of a printing data processing system provided by the present invention is shown. DETAILED DESCRIPTION
[0062] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0063] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0064] Figure 1 A flow chart of a printing data processing method provided by the present invention is shown.
[0065] like Figure 1 As shown, the present invention discloses a printing data processing method, comprising:
[0066] S102, obtaining data to be printed;
[0067] S104, determining a plurality of first color data based on the used colors of the data to be printed, determining second color data by simulating printing of the first color data using a preset printing data analysis model, and determining first abnormal color data according to a color difference between the second color data and the first color data;
[0068] S106, determining an abnormal color display interval according to adjacent first color data and first abnormal color data;
[0069] S108, selecting a plurality of third color data from the abnormal color display interval according to a preset color distance interval; determining a compensation value k (k c , k m , k y , k k );
[0070] S110, the compensation values k(k c , k m , k y , k k ) performing curve fitting to determine a compensation curve for an abnormal color display interval;
[0071] S112, marking the color data in the abnormal color display interval in the data to be printed as second abnormal color data;
[0072] S114, determining a first compensation value of the second abnormal color data based on a compensation curve of the abnormal color display interval where the second abnormal color data is located;
[0073] S116, performing color compensation on the second abnormal color data based on the first compensation value, and determining a first printing parameter of the second abnormal color data;
[0074] S118, determining the second printing parameters of the data to be printed in each color layer according to the first printing parameters of each color data in the data to be printed.
[0075] According to an embodiment of the present invention, the data to be printed can be obtained by scanning a physical image provided by a user through a color detection device or by drawing through a drawing software such as PS. By analyzing and traversing the data to be printed, the color data existing in the data to be printed is determined as the use color of the data to be printed. According to the distribution of the color coordinates of each use color in the color gamut diagram, according to the first color data selection condition preset by the system, multiple first color data are determined within the color coordinate distribution range of the use color of the data to be printed. Among them, the color data (including the first color data, the second color data, etc.) defaults to using CMYK color data. When the acquired color data is RGB or other color data, it is preferentially converted into CMYK color data.
[0076] The first color data is simulated printed using a preset printing data analysis model to determine the second color data of the printing color corresponding to the first color data. The color difference between the first color data and the second color data is determined based on the color distance between the second color data and the first color data on the color gamut diagram, and the difference is compared with the preset color difference to determine whether the first color data is first abnormal color data or normal color data. The color display interval composed of adjacent first color data is analyzed using the system's preset color display interval abnormality judgment rule to determine the abnormal color display interval and the normal color display interval. The third color data in the abnormal color display interval is simulated printed using a preset printing data analysis model to determine the fourth color data of the printing color corresponding to the third color data. The compensation value k (k c , k m , k y , k k ), k c , k m , k y , k kThe compensation values of the color data in the cyan color layer (C), magenta color layer (M), yellow color layer (Y), and black color layer (K) are respectively corresponding. The preset color distance interval is set by the system, and the third color data of the abnormal color display interval can also be determined by random sampling. The compensation value of each color layer is curve fitted in turn to determine the compensation curve of each color layer, and the compensation curve of each color layer is integrated to determine the compensation curve of the abnormal color display interval.
[0077] The colors used in the data to be printed are analyzed in turn, and the color data in the abnormal color display interval is marked as the second abnormal color data. The first compensation value k1 (k c1 , k m1 , k y1 , k k1 ), the color data of the second abnormal color data P (c, m, y, k) in each color layer are respectively compared with the corresponding first compensation value k1 (k c1 , k m1 , k y1 , k k1 ) to determine the first printing parameter P'(k c1 c.k m1 m, k y1 y, k k1 k). The first printing parameter of the normal color data is the same as its color data.
[0078] The first printing parameter of the data to be printed is determined according to the first printing parameter of each color data (including the second abnormal color data and the normal color data) in the data to be printed, and the data to be printed is layered according to the color layer to determine the second printing data of each color layer. When the data to be printed is image printed, the second printing data of each color layer is converted into a digital signal and sent to the printing control module of the corresponding color.
[0079] According to an embodiment of the present invention, it also includes:
[0080] Acquire historical printing data; the historical printing data at least includes historical to-be-printed data and corresponding actual printing data, printing environment data and printing material data;
[0081] Clean and integrate historical printing data and establish a historical printing data database;
[0082] Analyze the historical printing data in the historical printing data database and determine the preset printing data analysis model.
[0083] It should be noted that the historical printing data is obtained by collecting various data generated during the historical printing process. Among them, the actual printing data can be obtained by scanning the printed image obtained by the color detection device, and the printing environment data is the environmental data that affects the printing quality, such as temperature, humidity, etc. The printing materials include ink, paper, etc. In the process of collecting historical printing data, priority is given to collecting the printing data corresponding to the first color data determined by the system. Data cleaning includes processing duplicate values, missing values and outliers, integrating the processed data, and establishing a historical printing data database. By analyzing the historical printing data in the historical printing data database, a preset printing data analysis model for the data to be printed and the actual printing data under the influence of the printing environment and printing materials is established.
[0084] Figure 2 A flow chart of a first abnormal color data determination method provided by the present invention is shown.
[0085] like Figure 2 As shown, according to an embodiment of the present invention, a plurality of first color data are determined based on the use color of the data to be printed, second color data are determined by simulating printing of the first color data through a preset printing data analysis model, and first abnormal color data is determined according to the color difference between the second color data and the first color data, including:
[0086] S202, determining a first color area from a color gamut diagram based on the used color of the data to be printed;
[0087] S204, selecting a plurality of first color data from the color gamut diagram based on the first color region;
[0088] S206, obtaining printing impact data;
[0089] S208, simulating printing of the first color data by using a preset printing data analysis model, and determining second color data of the printing color corresponding to the first color data according to the printing influence data and the printing order of each color layer;
[0090] S210, calculating a color difference between first color data and second color data;
[0091] S212, determining the first color data whose color difference is greater than a preset color difference threshold as first abnormal color data, otherwise as normal color data.
[0092] It should be noted that, by traversing the data to be printed, the color data existing in the data to be printed is determined as the use color of the data to be printed, and one or more first color areas are selected according to the distribution of the color coordinates of each use color in the color gamut diagram and the system preset selection conditions (such as the color distance of the color coordinates, etc.). The first color data is determined by the system, and the color distances between adjacent first color data in the horizontal and vertical directions are the same. Printing influencing data include printing environment data (such as temperature, humidity, etc.) and printing materials (such as ink, paper, etc.). The printing order of each color layer is determined by those skilled in the art according to actual needs, usually from light to dark, that is, cyan is printed first, then magenta, then yellow, and finally black. The color difference between the first color data and the second color data is determined by calculating the color distance between the first color data and the second color data on the color gamut diagram. Among them, the preset color difference threshold is determined by those skilled in the art according to actual needs.
[0093] The historical data to be printed including the first color data are selected, and the historical data to be printed including the first color data are analyzed based on the printing impact data corresponding to the data to be printed to determine the printing color corresponding to the first color data, that is, the second color data.
[0094] Figure 3 A flow chart of the method for determining an abnormal color display interval provided by the present invention is shown.
[0095] like Figure 3 As shown, according to an embodiment of the present invention, determining an abnormal color display interval by using adjacent first color data and first abnormal color data includes:
[0096] S302, determining a plurality of color display intervals according to adjacent first color data;
[0097] S304, determining a color display interval with first abnormal color data at both ends as an abnormal color display interval;
[0098] S306, determining the color display intervals other than the abnormal color display interval as the pending color display interval;
[0099] S308, determining a new color display interval based on the intermediate color data of the undetermined color display interval, and performing abnormal color display interval determination again;
[0100] S310, when both ends of the color display interval are normal color data and the color length of the color display interval is less than a first preset length, determining the color display interval as a normal color display interval;
[0101] S312: When one end of the color display interval is first abnormal color data and the other end is normal color data, and the color length of the color display interval is less than a second preset length, the color display interval is determined as an abnormal color display interval.
[0102] It should be noted that the abnormality determination is performed on the color display interval to be determined by selecting the intermediate color data for multiple times, including determining the color display interval with both ends of the color display interval being the first abnormal color data as the abnormal color display interval; determining the color display interval with both ends of the color display interval being normal color data and the color length of the color display interval being less than the first preset length as the normal color display interval; determining the color display interval with the first abnormal color data at one end and the normal color data at the other end and the color length being less than the second preset length display interval as the normal color display interval. In the abnormal determination process, if the color display interval does not meet the above determination conditions, a new color display interval is determined according to the intermediate color data of the color display interval, and the abnormal color display interval determination is performed again until the above determination conditions are met. Among them, the first preset length and the second preset length are determined by those skilled in the art according to actual needs, and the first preset length is greater than or equal to the second preset length.
[0103] According to an embodiment of the present invention, it also includes:
[0104] The third color data is simulated for printing by using a preset printing data analysis model, and the fourth color data of the printing color corresponding to the third color data is determined according to the printing influence data and the printing order of each color layer.
[0105] It should be noted that, when the third color data is the first color data, the historical to-be-printed data containing the third color data is selected, and the printing color corresponding to the third color data, i.e., the fourth color data, is determined based on the printing influence data corresponding to the to-be-printed data. Conversely, two or more first color data having color coordinates adjacent to the third color data are selected based on the color gamut diagram, and the fourth color data of the printing color corresponding to the third color data is determined based on the second color data corresponding to each first color data.
[0106] According to an embodiment of the present invention, it also includes:
[0107] determining color data that exists simultaneously in a plurality of abnormal color display intervals as fifth color data;
[0108] adjusting the compensation value of the fifth color data based on the curvature of the compensation curve corresponding to each abnormal color display interval of the fifth color data;
[0109] The compensation curve corresponding to the abnormal color display interval where the fifth color data is located is adjusted based on the adjusted compensation value of the fifth color data.
[0110] It should be noted that the color data of the overlapping color coordinates of multiple abnormal color display intervals are determined as the fifth color data, and each abnormal color display interval is represented by abnormal color display interval 1, abnormal color display interval 2, ..., abnormal color display interval n. The curvature of the fifth color data on the compensation curve corresponding to each abnormal color display interval is represented by curvature 1, curvature 2, ..., curvature n; the compensation value of the fifth color data in each abnormal color display interval is compensation value 1, compensation value 2, ..., compensation value n. The influence weight corresponding to the compensation value n is determined by the curvature n. The larger the curvature, the smaller the influence weight, and the influence weight of all compensation values is 1. The compensation value of the fifth color data in each abnormal color display interval is multiplied by the corresponding influence weight, and the calculated results are accumulated to determine the adjusted compensation value of the fifth color data. The compensation value adjusted by the fifth color data is adjusted in turn for the compensation curve corresponding to each abnormal color display interval where the fifth color data is located, and the compensation value adjusted by the fifth color data is replaced with the original compensation value. The compensation curve is curve-fitted based on the replaced compensation value to determine the compensation curve corresponding to the abnormal color display interval where the fifth color data is located.
[0111] According to an embodiment of the present invention, it also includes:
[0112] determining the color data not in the color display interval as sixth color data;
[0113] Draw a perpendicular line to the line segment corresponding to the surrounding color display interval based on the color coordinates of the sixth color data, and determine the color data corresponding to the foot of the perpendicular as the seventh color data;
[0114] Calculate the color distance from the color coordinates of the sixth color data to the corresponding line segment of the surrounding color display interval based on the seventh color data;
[0115] Two color display intervals with the smallest color distance are selected, and the compensation value of the sixth color data is calculated according to the pixel distance and the compensation value of the seventh color data.
[0116] It should be noted that when the color data of the data to be printed do not satisfy any color display interval (including normal color display interval and abnormal color display interval), it is determined as the sixth color data, and the corresponding line segment of the color display interval is determined according to the line segment formed by the color coordinates of the two end points of the color display interval, and the color distance to the corresponding line segments of at least two surrounding color display intervals (including normal color display interval and abnormal color display interval) is calculated by the color coordinates of the sixth color data. A perpendicular line is drawn through the color coordinates of the sixth color data to the corresponding line segment of the color display interval, and the color data corresponding to the foot of the perpendicular is determined as the seventh color data. The color distance between the sixth color data and the seventh color data is the color distance from the color coordinates of the sixth color data to the corresponding line segment of the display interval.
[0117] The two color display intervals with the smallest selected color distance can be represented by color display interval a and color display interval b, and the corresponding seventh color data are respectively seventh color data a and seventh color data b, the compensation value of the seventh color data a is represented by compensation value a, and the compensation value of the seventh color data b is represented by compensation value b, and the corresponding color distances are respectively color distance a and color distance b. The number of selected color display intervals is at least two.
[0118] The influence weights of compensation value a and compensation value b are determined by color distance a and color distance b, respectively. The shorter the color distance, the greater the influence weight of the compensation value. The influence weight of all the compensation values of the seventh color data is 1. The compensation value a and the compensation value b are multiplied by the corresponding influence weights, and the calculation results are accumulated to determine the compensation value of the sixth color data.
[0119] According to an embodiment of the present invention, it also includes:
[0120] Determine the printing grade of the printing area according to the printing content of the printing area;
[0121] determining the printing data of the first printing level printing area as the third printing data;
[0122] determining a candidate color region in the color gamut diagram based on color coordinates of eighth color data within the third printing data and a preset radius;
[0123] Select one or more candidate color data in the candidate color area; the number of color layers of the candidate color data in the CMYK color space is less than the number of color layers of the eighth color data;
[0124] Calculate the color score of each candidate color data according to the CMYK value of each candidate color data and the color difference between the eighth color data;
[0125] The candidate color data having the highest color score is selected as the color data of the eighth color data.
[0126] It should be noted that the printing level of the printing area is determined according to the printing accuracy requirements, such as very fine lines and colored texts have a higher printing level, and the printing level of a large area of the same color printing area is handed over. In order to avoid the situation that each color layer is not printed in the same position due to wear of printing equipment parts, etc., causing blurring of printing data, etc., affecting the printing effect. Based on printing accuracy, the printing content is divided into three printing levels, namely the first printing level, the second printing level and the third printing level. Among them, the first printing level printing area is the printing area corresponding to the printing data with a higher printing level of very fine lines and colored text. The color data existing in the third printing data is determined as the eighth color data, and each eighth color data in the third printing data is analyzed in turn, and one or more alternative color data are selected in the alternative color area, and the number of color layers used by the alternative color data is determined according to the CMYK value of the alternative color data, and the color difference is determined according to the color distance between the alternative color data and the eighth color data in the color gamut diagram. The color layer number and the color difference value are respectively assigned corresponding influence weights, and the color layer number and the color difference value are respectively multiplied by the corresponding influence weights, and the calculation results are accumulated to determine the color score of the alternative color data. The system preset color score is set according to the printing accuracy required by the user (the higher the printing accuracy, the higher the system preset color score), and the candidate color data with the highest color score and greater than the system preset color score is used as the color data of the eighth color data. When there is no candidate color data with a color layer number less than the color layer number of the eighth color data in the eighth color data, the color data with the smallest C value, M value, Y value and K value is selected in the candidate color area in sequence as the candidate color data. The printing parameters of the third printing data can be determined by integrating all the eighth color data in the third printing data.
[0127] Figure 4 A block diagram of a printing data processing system provided by the present invention is shown.
[0128] like Figure 4 As shown, the second aspect of the present invention provides a printing data processing system, comprising:
[0129] A data acquisition module, used for acquiring data to be printed;
[0130] A first analysis module is used to determine a plurality of first color data based on the use color of the data to be printed, to determine second color data by simulating printing of the first color data through a preset printing data analysis model, and to determine first abnormal color data according to a color difference between the second color data and the first color data;
[0131] The second analysis module determines the abnormal color display interval through the adjacent first color data and the first abnormal color data; selects a plurality of third color data from the abnormal color display interval according to a preset color distance interval; determines the compensation value k (k c , k m , k y , k k ); compensation value k (k c , k m , k y , k k ) performing curve fitting to determine a compensation curve for an abnormal color display interval;
[0132] A printing parameter calculation module is used to mark color data in an abnormal color display interval in the data to be printed as second abnormal color data; determine a first compensation value for the second abnormal color data based on a compensation curve in the abnormal color display interval where the second abnormal color data is located; perform color compensation on the second abnormal color data based on the first compensation value to determine a first printing parameter for the second abnormal color data; and determine a second printing parameter for each color layer of the data to be printed based on the first printing parameter of each color data in the data to be printed.
[0133] A third aspect of the present invention provides a computer-readable storage medium, which includes a printing data processing method program. When the printing data processing method program is executed by a processor, the steps of the above printing data processing method are implemented.
[0134] The information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals (including but not limited to signals transmitted between user terminals and other devices, etc.) involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, the "data to be printed" and "historical printing data" involved in this disclosure are all obtained with full authorization.
[0135] The present invention discloses a printing data processing method and system, the method comprising: determining first color data based on data to be printed, simulating printing of the first color data to determine second color data through a preset printing data analysis model, determining first abnormal color data according to the color difference between the second color data and the first color data; determining an abnormal color display interval through adjacent first color data and first abnormal color data, calculating a compensation value of third color data in the abnormal color display interval, and determining a compensation curve for the abnormal color display interval; determining a first compensation value through the compensation curve, color compensation for the second abnormal color data, and determining a first printing parameter for the second abnormal color data; determining a second printing parameter of the data to be printed in each color layer according to the first printing parameter of each color data in the data to be printed. The present invention reduces the difference between the actual printed color and the expected color by color compensation for the printing data.
[0136] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0137] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0138] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0139] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0140] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
Claims
1. A printing data processing method, characterized in that: include: Obtaining data to be printed; Determine a plurality of first color data based on the used colors of the data to be printed, determine second color data by simulating printing of the first color data through a preset printing data analysis model, and determine first abnormal color data according to a color difference between the second color data and the first color data; Determine an abnormal color display interval by using adjacent first color data and the first abnormal color data; Select a plurality of third color data from the abnormal color display interval according to a preset color distance interval; determine a compensation value k (k) of the third color data according to a color ratio of the third color data and the fourth color data corresponding to the printed color; c , k m , k y , k k ); The compensation value k(k c , k m , k y , k k ) performing curve fitting to determine a compensation curve for the abnormal color display interval; marking the color data in the abnormal color display interval in the data to be printed as second abnormal color data; determining a first compensation value of the second abnormal color data based on a compensation curve of the abnormal color display interval where the second abnormal color data is located; Performing color compensation on the second abnormal color data based on the first compensation value, and determining a first printing parameter of the second abnormal color data; The second printing parameters of the data to be printed in each color layer are determined according to the first printing parameters of each color data in the data to be printed.
2. The printing data processing method according to claim 1, characterized in that: Also includes: Get historical printing data; The historical printing data at least includes historical to-be-printed data and corresponding actual printing data, printing environment data and printing material data; Performing data cleaning and data integration on the historical printing data to establish a historical printing data database; The historical printing data in the historical printing data database is analyzed to determine a preset printing data analysis model.
3. The printing data processing method according to claim 1, characterized in that: The method of determining a plurality of first color data based on the use color of the data to be printed, determining second color data by simulating printing of the first color data through a preset printing data analysis model, and determining first abnormal color data according to a color difference between the second color data and the first color data includes: Determining a first color region from a color gamut diagram based on the used colors of the data to be printed; selecting a plurality of first color data from the color gamut map based on the first color region; Get print impact data; The first color data is simulated for printing by using a preset printing data analysis model, and the second color data of the printing color corresponding to the first color data is determined according to the printing influence data and the printing order of each color layer; Calculate the color difference between the first color data and the second color data; The first color data whose color difference is greater than a preset color difference threshold is determined as first abnormal color data, otherwise it is determined as normal color data.
4. The printing data processing method according to claim 3, characterized in that: The determining the abnormal color display interval by using adjacent first color data and the first abnormal color data includes: determining a plurality of color display intervals according to adjacent first color data; Determine a color display interval with first abnormal color data at both ends as an abnormal color display interval; Determine the color display interval other than the abnormal color display interval as the pending color display interval; Determine a new color display interval based on the intermediate color data of the undetermined color display interval, and perform abnormal color display interval determination again; When both ends of the color display interval are normal color data and the color length of the color display interval is less than a first preset length, the color display interval is determined as a normal color display interval; When one end of the color display interval is first abnormal color data and the other end is normal color data, and the color length of the color display interval is less than a second preset length, the color display interval is determined as an abnormal color display interval.
5. The printing data processing method according to claim 1, characterized in that: Also includes: The third color data is simulated for printing by using a preset printing data analysis model, and the fourth color data of the printing color corresponding to the third color data is determined according to the printing influence data and the printing order of each color layer.
6. The printing data processing method according to claim 1, characterized in that: Also includes: determining color data that exists simultaneously in a plurality of abnormal color display intervals as fifth color data; adjusting the compensation value of the fifth color data based on the curvature of the compensation curve corresponding to each abnormal color display interval of the fifth color data; The compensation curve corresponding to the abnormal color display interval where the fifth color data is located is adjusted based on the adjusted compensation value of the fifth color data.
7. The printing data processing method according to claim 4, characterized in that: Also includes: determining the color data not in the color display interval as sixth color data; Draw a perpendicular line to the line segment corresponding to the surrounding color display interval based on the color coordinates of the sixth color data, and determine the color data corresponding to the foot of the perpendicular as the seventh color data; Calculate the color distance from the color coordinates of the sixth color data to the corresponding line segment of the surrounding color display interval based on the seventh color data; Two color display intervals with the smallest color distance are selected, and the compensation value of the sixth color data is calculated according to the pixel distance and the compensation value of the seventh color data.
8. The printing data processing method according to claim 1, characterized in that: Also includes: Determine the printing grade of the printing area according to the printing content of the printing area; determining the printing data of the first printing level printing area as the third printing data; determining a candidate color region in the color gamut diagram based on color coordinates of eighth color data within the third printing data and a preset radius; Select one or more candidate color data in the candidate color area; the number of color layers of the candidate color data in the CMYK color space is less than the number of color layers of the eighth color data; Calculate the color score of each candidate color data according to the CMYK value of each candidate color data and the color difference between the eighth color data; The candidate color data having the highest color score is selected as the color data of the eighth color data.
9. A printing data processing system, used to implement the printing data processing method according to any one of claims 1 to 8, characterized in that: include: A data acquisition module, used for acquiring data to be printed; A first analysis module, configured to determine a plurality of first color data based on the used colors of the data to be printed, determine second color data by simulating printing of the first color data using a preset printing data analysis model, and determine first abnormal color data according to a color difference between the second color data and the first color data; The second analysis module is used to determine the abnormal color display interval through the adjacent first color data and the first abnormal color data; select a plurality of third color data from the abnormal color display interval according to a preset color distance interval; determine the compensation value k (k c , k m , k y , k k ); compensation value k (k c , k m , k y , k k ) performing curve fitting to determine a compensation curve for the abnormal color display interval; A printing parameter calculation module, used for marking the color data in the abnormal color display interval in the to-be-printed data as second abnormal color data; Determine a first compensation value of the second abnormal color data based on a compensation curve of the abnormal color display interval where the second abnormal color data is located; perform color compensation on the second abnormal color data based on the first compensation value, and determine a first printing parameter of the second abnormal color data; The second printing parameters of the data to be printed in each color layer are determined according to the first printing parameters of each color data in the data to be printed.
10. The printing data processing system according to claim 9, characterized in that: The method of determining a plurality of first color data based on the use color of the data to be printed, determining second color data by simulating printing of the first color data through a preset printing data analysis model, and determining first abnormal color data according to a color difference between the second color data and the first color data includes: Determining a first color region from a color gamut diagram based on the used colors of the data to be printed; selecting a plurality of first color data from the color gamut map based on the first color region; Get print impact data; The first color data is simulated for printing by using a preset printing data analysis model, and the second color data of the printing color corresponding to the first color data is determined according to the printing influence data and the printing order of each color layer; Calculate the color difference between the first color data and the second color data; The first color data whose color difference is greater than a preset color difference threshold is determined as first abnormal color data, otherwise it is determined as normal color data.
