Method and equipment for improving printing feathering uniformity and storage medium
By introducing technologies such as image recognition and convolutional computing into the printer, dynamically adjusting the feather template and point generation algorithms, the problem of insufficient feather uniformity of the printer is solved, and a higher quality and uniform printing effect is achieved.
Patent Information
- Application Number
- CN202510148770.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-10
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2045-02-10
AI Technical Summary
Existing printers have insufficient feather uniformity during printing, resulting in low printing quality and limiting the further development of printing technology.
By introducing an image input module, a printing control module and a feather template generation module into the printer, using technologies such as image recognition and convolutional computing, the feather template and point generation algorithm are dynamically adjusted, and a separate feather template is generated according to the real-time changes in the printing content, so as to achieve dynamic adjustment of the print feather effect.
Improve the uniformity of printing feathering, achieve a more delicate and natural printing effect, avoid the emergence of feathering trays, and enhance the printing quality and uniformity.
Smart Images

Figure CN120066430A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of printers, and in particular to a method, device and storage medium for improving the uniformity of printing feathering. Background Art
[0002] In the prior art, most printers use a fixed gradient feathering template for printing. Although this template has advantages in processing speed, it has deficiencies in uniformity and sometimes even produces feathering lines, which not only affects the printing quality but also limits the further development of printing technology. Therefore, there is an obvious room for optimization in this field, and innovative technical solutions are needed to solve these problems in order to improve the uniformity and quality of printing. Summary of the Invention
[0003] The present invention provides a method, device and storage medium for improving the uniformity of printing feathering in order to solve the above-mentioned existing technical problems.
[0004] The technical solution of the present invention is realized as follows:
[0005] A method for improving the uniformity of printing feathering includes the following steps:
[0006] S1. Use an image input module to input a picture to be printed, analyze each pixel point in the picture, and determine its position in the coordinate system and the corresponding color gray value;
[0007] S2. According to the printing requirements, select or generate a gray curve of the feathering template and a dot pattern generation algorithm, which is used for subsequent feathering processing;
[0008] S3. The printing control module determines the printing method of the printer according to the resolution and feathering degree requirements of the printed picture;
[0009] S4. During the printing process, the feathering template generation module dynamically superimposes the feathering template generation algorithm according to the content of each position of the picture scanned by the swath, generates a separate feathering template for each swath, and thus dynamically adjusts the feathering effect according to the real-time change of the printed content.
[0010] Preferably, in the step S1, the following sub-steps are further included:
[0011] S101. Establish a feathering template library, including a high-precision area, a medium-precision area and a low-precision area feathering template library;
[0012] S102. Collect information of the picture to be printed, identify the picture through image recognition, and divide the picture into a high-precision area with delicate colors, a medium-precision area with rich colors and obvious transitions, and a low-precision area with single colors or composed of multiple color blocks;
[0013] S103. Apply different templates to each area of the segmented image in step S102 according to the feathering module library in step S101.
[0014] Preferably, in step S2, a fusion of multiple dot pattern generation algorithms and feathering template gray curve generation methods is performed, including the following steps:
[0015] S201. Based on the image recognition result in step S102, judge each area of the image, and select a dot pattern generation algorithm according to the judgment result;
[0016] S202. Combine the application of different templates to each area of the segmented image in step S103, and apply different dot pattern generation algorithms to each area of the segmented image;
[0017] Preferably, the fusion of multiple dot pattern generation algorithms and feathering template gray curve generation methods further includes the following steps:
[0018] S203. Use edge computing to perform dot pattern shape fusion at the boundary of each different area.
[0019] Preferably, in step S4, the dynamic adjustment of the feathering effect according to the real-time change of the printing content is specifically to classify the pixel points into two categories: empty and non-empty according to the original image pixel content. After superimposing the gradient effect, the gray-scale image is reduced to a 2-bit color depth according to the feathering algorithm, and finally superimposed with the original image content.
[0020] Preferably, for the dynamic adjustment of the feathering effect according to the real-time change of the printing content, more specifically, the input image is parsed by pixel points to obtain the color value and brightness value of each pixel, and a pixel matrix is constructed; a two-dimensional array is designed to represent the feathering template, and the array element values correspond to different feathering weights, and the weight range is between 0 and 1, where 0 represents completely transparent and 1 represents opaque; the convolution operation is used to realize the superposition of the feathering template and the image pixels. The convolution kernel is the feathering template. By sliding the convolution kernel on the image pixel matrix, the template weight is multiplied by the corresponding pixel value and accumulated to obtain a new pixel value.
[0021] A device for improving the uniformity of printing feathering includes 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, the above method for improving the uniformity of printing feathering is implemented.
[0022] A storage medium stores computer program instructions, which implement the above method for improving the uniformity of printing feathering when executed by a processor.
[0023] The present invention enables it to dynamically adjust the feathering effect according to the real-time changes of the printed content, and by partitioning the picture and matching different-precision feathering templates, a more delicate and natural printing effect is achieved. In addition, by integrating multiple algorithms, different regions can be accurately processed. For example, in the high-precision region with delicate colors, a high-matching template and a suitable dot type algorithm are used to improve the ability to present details and make the printing effect clearer and more realistic. The dynamic adjustment mechanism adjusts the feathering effect according to the real-time changes of the printed content, and uses convolution operations and parameter dynamic optimization to make the feathering transition of the object edge natural, avoid feathering lines, and enhance the printing uniformity. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 is a schematic diagram of a method for improving the printing feathering uniformity of the present invention;
[0025] Figure 2 is a schematic diagram of the gray value obtained after analyzing the original example picture in the embodiment as in step S1;
[0026] Figure 3 is a schematic diagram of the feathering template generated according to step S4;
[0027] Figure 4 is a schematic diagram of the effect after superimposing the feathering template and the original picture according to step S4. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0028] To further elaborate on the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the exemplary embodiments will be described in detail herein, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of methods and systems consistent with some aspects of the present application as detailed in the appended claims.
[0029] The terms used in the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. The singular forms "a", "the", and "said" used in the present application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
[0030] Embodiment 1
[0031] As Figures 1-4 shown, a method for improving the printing feathering uniformity includes the following steps:
[0032] S1. Use the image input module to input the picture to be printed, analyze each pixel point in the picture, and determine its position in the coordinate system and the corresponding color gray value.
[0033] S2. According to the printing requirements, select or generate a feathering template gray curve and a dot pattern generation algorithm, which are used for subsequent feathering processing.
[0034] S3. The printing control module determines the printing method of the printer according to the resolution and feathering degree requirements of the printed picture.
[0035] S4. During the printing process, the feathering template generation module dynamically superimposes the feathering template generation algorithm according to the content of each position of the picture swept by the swath, generates a separate feathering template for each swath, so as to dynamically adjust the feathering effect according to the real-time change of the printing content.
[0036] Preferably, in the step S1, the following sub-steps are further included:
[0037] S101. Establish a feathering template library, including a high-precision area, a medium-precision area, and a low-precision area feathering template library.
[0038] S102. Collect the information of the picture to be printed, identify the picture through image recognition, and divide the picture into a high-precision area with delicate colors, a medium-precision area with rich and obvious color transitions, and a low-precision area with single colors or composed of multiple color blocks.
[0039] S103. According to the feathering module library in step S101, apply different templates to each area of the picture after partitioning in step S102.
[0040] Preferably, in the step S2, a variety of dot pattern generation algorithms and feathering template gray curve generation methods are fused, including the following steps:
[0041] S201. According to the image recognition result in step S102, judge each area of the picture, and select a dot pattern generation algorithm according to the judgment result.
[0042] S202. Combine the application of different templates to each area of the picture after partitioning in step S103, and apply different dot pattern generation algorithms to each area of the picture after partitioning.
[0043] Preferably, the fusion of a variety of dot pattern generation algorithms and feathering template gray curve generation methods further includes the following steps:
[0044] S203. Use edge computing to perform dot pattern shape fusion at the boundary of each different area.
[0045] Preferably, in step S4, the dynamic adjustment of the feathering effect according to the real-time change of the printing content is specifically to classify the pixel points into two categories: empty and non-empty according to the original image pixel content. After superimposing the gradient effect, the grayscale image is reduced to 2-bit color depth according to the feathering algorithm, and finally superimposed on the original image content.
[0046] Preferably, for the dynamic adjustment of the feathering effect according to the real-time change of the printing content, more specifically, the input image is parsed by pixel points to obtain the color value and brightness value of each pixel, and a pixel matrix is constructed; a two-dimensional array is designed to represent the feathering template, and the array element values correspond to different feathering weights, and the weight range is between 0 and 1, where 0 means completely transparent and 1 means opaque; the convolution operation is used to realize the superposition of the feathering template and the image pixels. The convolution kernel is the feathering template. By sliding the convolution kernel on the image pixel matrix, the template weight is multiplied by the corresponding pixel value and accumulated to obtain a new pixel value.
[0047] Obtain the resolution of the printed picture and the target feathering degree parameter. According to the above parameters, determine the basic shape and parameters of the initial feathering template, such as the size of the feathering template, the central position, and the initial weight distribution. The weight of the central area of the initial feathering template is 1, and the weight of the edge area gradually decreases to 0, forming a gradient effect.
[0048] During each line printing process, analyze the picture pixels of the current scanned line, and calculate the color change rate and brightness change gradient characteristics of the pixels. For example, by comparing the brightness values of adjacent pixels, calculate the brightness change gradient gradient = |pixel[i].Y - pixel[i+1].Y|, and the color change rate can be measured by calculating the Euclidean distance of the RGB values of adjacent pixels.
[0049] According to the analysis result of the picture content, dynamically adjust the parameters of the feathering template. If the pixel color changes violently and the brightness gradient is large in the current line, it indicates that there may be object edges or details in this area, and the feathering effect needs to be enhanced. At this time, increase the weight change slope of the template edge area to make the feathering transition more obvious; if the pixel changes gently, reduce the weight change slope to keep the feathering effect soft.
[0050] According to the adjusted parameters, generate the feathering template at the current printing position. Use the generated feathering template to perform convolution operation on the picture pixels of the current line, and superimpose the template weight and the pixel value to obtain the processed pixel value. For example, for the pixel pixel[i], its new value new_pixel[i] = pixel[i] * template[j][k] (j, k are the indexes of the corresponding positions in the template), to achieve the dynamic superimposed feathering effect.
[0051] After processing each row, check and optimize the feathering effect in the column direction. Since processing row by row may lead to discontinuous feathering in the column direction, fine-tune the feathering template by comparing the differences in corresponding column pixels between adjacent rows. If it is found that the feathering transition of a certain column of pixels is not natural between adjacent rows, appropriately adjust the weights of the corresponding template elements in that column to make the overall feathering effect smoother and more uniform.
[0052] Preferably, in step S4, where each swath generates a separate feathering template, it further includes extracting the feature information of the color, brightness, and contrast of the pixels within a certain range of the edge of the previous swath. When the next swath performs edge feathering processing, refer to these features to adjust the gray curve and dot pattern distribution of its own edge feathering template, making the color and brightness transitions at the edges of the two swaths more natural and avoiding obvious color or brightness mutations.
[0053] Gray curve adjustment: When the next swath generates the gray curve of the edge feathering template, refer to the color, brightness, and contrast features of the edge of the previous swath. If the edge of the previous swath has rich colors and high contrast, the change in the gray curve of the next swath at the edge should be steeper to highlight the color and brightness transitions; if the edge of the previous swath has a single color and low contrast, the gray curve should be flatter. For example, when it is detected that the color transition at the edge of the previous swath is natural and the brightness change is small, the change of the gray curve from the center to the edge can be set as a linear gradient with a small slope; if the color and brightness change violently, a non-linear gradient is used, increasing the slope in the key transition areas.
[0054] Dot pattern distribution adjustment: Adjust the dot pattern distribution of the edge feathering template of the next swath according to the features of the edge of the previous swath. If the edge of the previous swath has rich details, the next swath should increase the density of dots at the edge, and the dot pattern can be selected to be more complex and better able to simulate details, such as a dot pattern based on fractal geometry; if the edge of the previous swath is relatively smooth, the dot pattern can be selected to be simpler and more evenly distributed, such as evenly distributed circular dots. The size of the dots can also be adjusted according to the features. For areas with large brightness changes, appropriately reduce the size of the dots to achieve a finer transition.
[0055] Preferably, in step S4, where each swath generates a separate feathering template, it further includes using a texture analysis algorithm to identify the texture type and texture direction of the edge area of the previous swath. Transmit these texture features to the edge processing link of the next swath. During the edge feathering process of the next swath, simulate the texture features of the previous swath to make the texture transition between the two swaths more coherent and reduce the abruptness at the boundary.
[0056] An apparatus for improving the uniformity of printing feathering, comprising at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the above method for improving the uniformity of printing feathering.
[0057] A storage medium, on which computer program instructions are stored, which, when executed by the processor, implement the above method for improving the uniformity of printing feathering.
[0058] The above are only the preferred embodiments of the present invention, and do not impose any form of limitation on the present invention. Although the present invention has been disclosed above with the preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some changes or modifications to equivalent embodiments by using the technical content disclosed above within the scope of the technical solution of the present invention. However, as long as it does not depart from the content of the technical solution of the present invention, any brief modifications, equivalent changes and modifications made to the above embodiments according to the technical essence of the present invention still fall within the scope of the technical solution of the present invention.
Claims
1. A method for improving printing feathering uniformity, characterized in that: The steps include: S1, using the image input module to input the image to be printed, analyzing each pixel in the image, and determining its position in the coordinate system and the corresponding color grayscale value; S2, according to the printing requirements, select or generate a feathering template grayscale curve and a point type generation algorithm, which is used for subsequent feathering processing; S3, the printing control module determines the printing mode of the printer according to the resolution and feathering degree requirements of the printed image; S4; During the printing process, the feathering template generation module dynamically superimposes the feathering template generation algorithm according to the content of each position of the image scanned by the swath, and generates a separate feathering template for each swath, thereby dynamically adjusting the feathering effect according to the real-time changes in the printed content.
2. A method for improving printing feathering uniformity according to claim 1, characterized in that: In the step S1, the following sub-steps are also included: S101, establishing a feathering template library, establishing feathering template libraries for high-precision areas, medium-precision areas, and low-precision areas; S102, collecting information of the image to be printed, identifying the image through image recognition, and dividing the image into a high-precision area with delicate colors, a medium-precision area with rich colors and obvious transitions, and a low-precision area with a single color or composed of multiple color blocks; S103, according to the feathering module library of step S101, applying different templates to each area of the partitioned image of step S102.
3. A method for improving printing feathering uniformity according to claim 1, characterized in that: In step S2, a plurality of point type generation algorithms and a feathering template grayscale curve generation method are integrated, including the following steps: S201, judging each area of the image according to the image recognition result of step S102, and selecting a point type generation algorithm according to the judgment result; S202, combining step S103 to apply different templates to each area of the partitioned image, and applying different point type generation algorithms to each area of the partitioned image.
4. A method for improving printing feathering uniformity according to claim 3, characterized in that: The fusion of multiple point type generation algorithms and feathering template grayscale curve generation methods also includes the following steps: S203, using edge computing, performing point shape fusion at the boundary of each different area.
5. A method for improving printing feathering uniformity according to claim 1, characterized in that: In step S4, the feathering effect is dynamically adjusted according to the real-time changes in the printed content. Specifically, the pixels are divided into two categories: empty and non-empty according to the pixel content of the original image. After the gradient effect is superimposed, the grayscale image is reduced to a 2-bit color depth according to the feathering algorithm, and finally superimposed with the original image content.
6. A method for improving printing feathering uniformity according to claim 1, characterized in that: The feathering effect is dynamically adjusted according to the real-time changes of the printed content. More specifically, the input image is parsed by pixel points, the color value and brightness value of each pixel are obtained, and a pixel matrix is constructed; a two-dimensional array is designed to represent the feathering template, and the array element values correspond to different feathering weights, and the weight range is between 0 and 1, 0 represents complete transparency, and 1 represents opaque; a convolution operation is used to realize the superposition of the feathering template and the image pixels, and the convolution kernel is the feathering template. By sliding the convolution kernel on the image pixel matrix, the template weight is multiplied and accumulated with the corresponding pixel value to obtain a new pixel value.
7. A device for improving printing feathering uniformity, characterized in that: The method comprises 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 according to any one of claims 1 to 6 is implemented.
8. 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 6 is implemented.
Citation Information
Patent Citations
Method and device for generating custom height and gradient level, and storage medium
CN117785082A
Printing systems
EP0836154A1
An Composition Method of Several Objects in contents based coding / decoding
KR1020000059874A
Locating curvilinear objects using feathered fiducials
US5500906A
Cited By
Method and equipment for eliminating direct injection feathering through printing color prediction and storage medium
CN121029110A
A method, apparatus and storage medium for eliminating direct jet feathering by printing color prediction
CN121029110B