Printing method and device for matching feather template through local features and storage medium
Through the printing method of local features matching feather templates, the pattern texture features are automatically identified and matched, which solves the problems of uneven quality and inefficiency of existing printers in complex pattern processing, and achieves efficient, accurate and personalized printing effects.
Patent Information
- Application Number
- CN202410961637.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When existing printers process complex patterns, the printing quality is uneven and inefficient, and it is impossible to achieve precise control of the contents of different patterns.
Through the printing method of local features matching feather templates, the pattern texture features are automatically identified and the appropriate feather templates are matched for printing. The pattern is partitioned and processed by the texture segmentation algorithm, and a printing instruction is generated based on the printing parameters selected by the user.
It significantly improves printing quality and efficiency, realizes precise control of complex patterns, ensures accurate reproduction of every detail, and improves the flexibility and adaptability of the printing process to meet personalized needs.
Smart Images

Figure CN118915980A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of printing technology, in particular to a printing method, a device and a storage medium for matching a feathering template through local features. Background Art
[0002] Most of the existing printers use a fixed feathering template for each PASS when printing, that is, the pattern data is sprayed out once the nozzle scans the printing area. Each PASS is spliced in a gradient manner to complement each other and reduce the depth caused by errors. Different pattern contents, such as lines, color blocks, etc., have different effects under different types of feathering templates and printing modes. Therefore, if there are many different types of pattern information in a picture, the fixed feathering template cannot achieve the best printing effect for all parts of the content. There will be different effects when printing at different positions, and precise control cannot be achieved, resulting in low efficiency and difficulty in ensuring quality. Summary of the invention
[0003] The purpose of the present invention is to provide a printing method, device and storage medium for matching feathering templates through local features, so as to realize automatic recognition of pattern texture features, and then automatically match a suitable feathering template for printing, thereby improving printing quality and efficiency.
[0004] The purpose of the present invention can be achieved through the following technical solutions:
[0005] The present application provides a printing method for a feathering template by matching local features, the method comprising the following steps:
[0006] S1, classifying the pattern feature types and matching the most suitable feathering template type for each feature pattern;
[0007] Among them, pattern features are classified based on texture. Texture is the graphic structure presented on the surface of an object, describing the local pattern and arrangement rules of the image or object surface;
[0008] S2, input the print image data and divide the image into partitions according to the features;
[0009] Among them, after determining the texture description statement and classification method, the pattern is texture segmented;
[0010] S3, combining feathering templates according to the image partitions and printing.
[0011] Optionally, the method further comprises: storing a plurality of feathering templates in a database and setting corresponding identification numbers;
[0012] The step S1 specifically includes: obtaining the identification number of the feathering template matching the pattern of each pattern feature type according to the corresponding relationship table between the pattern features and the identification numbers.
[0013] Optionally, the method further comprises: acquiring printing parameters selected by a user;
[0014] The step S3 specifically includes: generating a printing instruction according to the printing parameters and the partitioned pattern, so that the inkjet printer prints according to the printing instruction.
[0015] Optionally, the printing parameters include at least one of printing speed, color concentration, and number of printing layers.
[0016] Optionally, in step S1, the pattern feature types include: pure color, lines, dots, stripes, spots, grids, squares, geometric shapes, irregular shapes, and mixed patterns.
[0017] Optionally, in step S2, the specific process of performing texture segmentation on the pattern is:
[0018] S21, judging whether to perform preprocessing on the image according to the requirements, including noise removal, contrast enhancement and normalization operations;
[0019] S22. Applying a segmentation algorithm to distinguish different texture regions in the image according to the extracted features, wherein the segmentation algorithm includes a threshold method, a region growing method, an edge detection method, a wavelet transform, a genetic algorithm or an active contour model.
[0020] Optionally, in step S2, segmenting the image according to the features includes:
[0021] S2a, calculating the color difference value of each pixel;
[0022] S2b, dividing the pixels within a similar color range into the same group according to a preset color threshold;
[0023] S2c, counting the number of pixels in each group, if the number exceeds a set ratio, the pixels in the group are divided into a type of texture area;
[0024] S2d, repeating steps S2a-S2c until the texture area division of the entire image is completed;
[0025] S2e. Based on the extracted pattern features, the pattern is partitioned using the K-means clustering algorithm.
[0026] Optionally, in step S3, combining and printing the feathering template according to the image partitions includes:
[0027] S3a, determining the total number of printing times according to the printing parameters and pattern partitioning conditions;
[0028] S3b, for each printing, create a blank feathering template;
[0029] S3c, according to the position and size of each pattern partition, retrieve the feathering template corresponding to the pattern feature of the partition from the database, and fill it into the corresponding blank feathering template;
[0030] S3d, print using the filled feather template.
[0031] A printing device based on the above printing method comprises:
[0032] A classification module, for classifying pattern feature types and matching the most suitable feathering template type for each feature pattern; the pattern features are classified based on texture;
[0033] An input module, used to input print image data and segment the image according to features;
[0034] Among them, after determining the texture description statement and classification method, the pattern is texture segmented;
[0035] The printing module is used to combine feathering templates according to image partitions and print them.
[0036] A storage medium, when the instructions are run on a computer, enables the computer to execute the above-mentioned printing method steps of matching the feathering template through local features.
[0037] The beneficial effects of the present invention are:
[0038] The printing method of the feathering template using local feature matching effectively solves the problems of uneven printing quality and low efficiency of existing printers when processing complex patterns. By automatically identifying the texture features of the pattern and intelligently matching the appropriate feathering template, the present invention significantly improves the printing quality and efficiency and achieves precise control.
[0039] Through the classification of pattern features and intelligent recognition of texture features, the present invention can match the most suitable feathering template for different types of patterns, thereby overcoming the limitations of traditional printers using a single feathering template. Secondly, advanced texture segmentation algorithms such as threshold method, region growing method, edge detection method, etc. are used to accurately segment and partition the input print image data, ensuring that each part of the pattern can be processed in a personalized manner.
[0040] The present invention also includes a powerful database storing a plurality of feathering templates and their corresponding identification numbers. Through the correspondence between pattern features and identification numbers, the most suitable feathering template is intelligently obtained and applied. The user can also select printing parameters such as printing speed, color concentration and number of printing layers according to personal preferences to further customize the printing effect. Through the method of the present invention, the printer can dynamically adjust the feathering template according to the local features of the pattern and the parameters set by the user to achieve the best printing effect. This method not only improves the printing quality and ensures that every detail of the pattern can be accurately reproduced, but also improves the flexibility and adaptability of the printing process and meets the personalized needs of different users for printing effects.
[0041] Through intelligent pattern recognition and feathering template matching technology, the challenges faced by traditional printing methods in processing complex patterns are solved, providing users with an efficient, accurate and personalized printing solution, greatly improving the technical level and user experience of the printing industry. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] For better understanding and implementation, the technical solution of the present application is described in detail below with reference to the accompanying drawings.
[0043] Figure 1 A schematic diagram of a process for printing a feathering template by matching local features provided in Example 1 of the present application;
[0044] Figure 2 A schematic diagram of the process of texture segmentation of a pattern by using a printing method of a feathering template matching local features provided in Example 1 of the present application. DETAILED DESCRIPTION
[0045] In order to further explain the technical means and effects taken by the present invention to achieve the predetermined invention purpose, exemplary embodiments will be described in detail here, and examples thereof are shown in the accompanying 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 implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of methods and systems consistent with some aspects of the present application as detailed in the attached claims.
[0046] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0047] The specific implementation methods, features and effects of the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments.
[0048] Example 1
[0049] See also Figure 1-Figure 2 This embodiment provides a printing method, device and storage medium for matching feathering templates through local features, which realizes automatic recognition of pattern texture features and then automatically matches a suitable feathering template for printing, thereby improving printing quality and efficiency.
[0050] The present invention provides a printing method for a feathering template by matching local features, comprising the following steps:
[0051] S1, classifying the pattern feature types and matching the most suitable feathering template type for each feature pattern;
[0052] Among them, pattern features are mainly classified based on texture (texture is the graphic structure presented on the surface of an object, which describes the local patterns of the image or object surface and their arrangement rules);
[0053] S2, input the print image data and divide the image into partitions according to the features;
[0054] Among them, after determining the texture description statement and classification method, the pattern is texture segmented;
[0055] S3, combining feathering templates according to the image partitions and printing.
[0056] This embodiment can automatically identify the texture features of the pattern to be printed before each printing, and match the most suitable feathering template according to these texture features, so as to achieve the purpose of automation and intelligence, greatly improve the printing efficiency, and avoid the error problem caused by manual intervention, thereby improving the printing quality.
[0057] In this embodiment, the selection of the feathering template is mainly based on the texture features of the pattern for matching. Since different texture features will have a great impact on the final printing effect, it is necessary to study and summarize various texture features in advance to find the best feathering template type.
[0058] For example, for solid color patterns, you can choose a simpler feathering template because it does not require too many details and layers; for patterns with complex textures, you need to choose a more sophisticated feathering template in order to accurately express the details and layers of the pattern.
[0059] Of course, in addition to texture features, other factors need to be considered, such as the performance of the printing equipment, the type of ink used, etc., in order to select the most suitable feathering template.
[0060] In this embodiment, pattern features can be classified in a variety of ways, for example, based on factors such as pattern shape, color, texture, etc., or a classifier can be trained through machine learning to automatically classify based on the input pattern.
[0061] In practical applications, it is necessary to first define the meaning of each category, and then map the patterns to the corresponding categories one by one. This process can be achieved by writing program code or by manual labeling.
[0062] In this embodiment, a texture-based classification method is used, that is, the category of a pattern is determined by analyzing its texture features. The advantage of this method is that it can reflect the characteristics of the pattern more objectively and accurately and will not be affected by human factors.
[0063] Specifically, the texture characteristics of patterns are summarized into the following four aspects: color, light and shade, texture, and grain. Through the comprehensive consideration of these four aspects, patterns can be roughly divided into several categories. For example, if a pattern has a relatively simple overall tone, uniform brightness, smooth surface, and no special texture elements, it can be classified into the "pure color" category. If a pattern has many complex texture elements, such as lines, spots, grids, etc., it can be classified into the "mixed pattern" category.
[0064] In this embodiment, a large number of pattern samples need to be collected first, and then some representative and easily recognizable patterns are selected as training sets. Next, texture features of these patterns are extracted and analyzed to obtain texture feature vectors of each pattern.
[0065] In this process, various existing texture analysis tools and techniques can be used, such as Gabor filter, LBP operator, HOG feature, etc. The specific choice of tool or technique depends on the characteristics of the pattern itself and the application scenario.
[0066] After a series of processing, a series of texture feature vectors represented by numerical values will be obtained for each pattern. These vectors contain rich information and can help us to understand the essential properties of the pattern more deeply.
[0067] The next step is to organize these vectors into a complete classification system. Specifically, a clustering algorithm can be used to group all vectors into several clusters, each cluster representing a type of pattern. Common clustering algorithms include k-means, DBSCAN, spectral clustering, etc.
[0068] The last step is to compare the new pattern with the established classification system to see which category it should be assigned to. The specific method is usually to calculate the texture feature vector of the new pattern, and then use the distance formula to calculate its distance to all other known patterns. The closer the distance, the more similar the two patterns are, so the new pattern can be classified into the category with the closest distance.
[0069] It should be noted that in this process, the classification system needs to be constantly adjusted and improved to ensure that it can cover as many pattern types as possible and has a high enough accuracy. At the same time, we should also pay attention to preventing overfitting, that is, not making the classification results too dependent on a specific feature or condition.
[0070] In addition, in this embodiment, artificial intelligence technology can also be used to assist in pattern classification. For example, a deep learning framework can be used to build a neural network model, which automatically learns and extracts the texture features of the pattern and performs classification predictions based on these features. The advantage of this method is that it can greatly reduce manpower input and improve classification efficiency and accuracy.
[0071] In summary, in this embodiment, by combining the above methods, the classification of pattern features and the matching of feathering templates can be effectively achieved, thereby helping users to complete printing tasks quickly and efficiently.
[0072] Optionally, in this embodiment, the method further comprises: storing a plurality of feathering templates in a database and setting corresponding identification numbers;
[0073] The step S1 specifically includes: obtaining the identification number of the feathering template matching the pattern of each pattern feature type according to the corresponding relationship table between the pattern features and the identification numbers.
[0074] In this embodiment, a plurality of different feathering templates can be prepared in advance, which are respectively suitable for different pattern texture features. These templates can be stored in a database, and a unique identification number is set for each template to facilitate subsequent search and use.
[0075] Before printing begins, the system automatically reads the information of the pattern to be printed and analyzes it to determine the texture feature category it belongs to. Then, the system searches the database for the identification number corresponding to the category and finds the most suitable feathering template. Finally, the system loads this template into the printing device and is ready for printing.
[0076] This automated matching mechanism can save you from the tedious manual adjustment process, greatly improving printing efficiency and accuracy. At the same time, it also reduces the chances of problems caused by human error.
[0077] Optionally, in this embodiment, the method further includes: obtaining printing parameters selected by the user;
[0078] The step S3 specifically includes: generating a printing instruction according to the printing parameters and the partitioned pattern, so that the inkjet printer prints according to the printing instruction.
[0079] In this embodiment, the user can select the required printing parameters in the software interface, such as printing speed, color density, number of printing layers, etc. A printing instruction is automatically generated based on these parameters to tell the printer how to print. In this way, the user does not need to care about the underlying technical details, but only needs to simply select the required options to complete the printing task.
[0080] Optionally, in this embodiment, the printing parameters include at least one of printing speed, color concentration, and number of printing layers.
[0081] In this embodiment, the printing speed refers to how many characters or lines can be printed per second. Generally speaking, the higher the printing speed, the better, because it means faster output time. However, too high a printing speed will cause unclear handwriting or even broken lines. Therefore, the pros and cons need to be weighed when selecting the printing speed.
[0082] Color density refers to the degree of ink coverage on paper. Generally speaking, the higher the density, the darker and fuller the writing; otherwise, it appears light and weak. However, increasing the density excessively may also cause excessive ink accumulation and overflow to the outside of the page. Therefore, it is very important to control the density reasonably.
[0083] As for the number of printing layers, it refers to the number of layers that can be superimposed and printed at the same time. Normally, single-layer printing can only produce one layer of black and white text or graphics; while double-layer or multi-layer printing can achieve the production of color text or images. However, as the number of layers increases, the printing accuracy also decreases, and it is easy to have misalignment, missing printing, etc. Therefore, it is also crucial to choose the number of layers reasonably.
[0084] Optionally, in the present embodiment, in the step S1, the pattern feature types include: pure color, lines, dots, stripes, spots, grids, squares, geometric shapes, irregular shapes, and mixed patterns.
[0085] In this embodiment, there are many kinds of texture features of the pattern, such as solid color, lines, dots, stripes, spots, grids, squares, geometric shapes, irregular shapes, etc. Each texture has its own unique characteristics and forms of expression, so it needs to be treated differently according to different situations.
[0086] For example, for pure color patterns, their texture features are relatively simple and intuitive, and you only need to pay attention to their overall hue and saturation. For patterns with obvious directions, such as lines, dots, and stripes, you need to carefully observe their direction and changing patterns. For another example, for patterns such as grids, squares, and geometric shapes, they often have a certain regularity and structure, so you can start the analysis from this aspect. For more complex texture features such as irregular shapes and mixed patterns, you may need to use more skills and means to accurately grasp the key.
[0087] In short, in order to truly master the texture characteristics of a pattern, one must have keen insight and a solid reserve of basic knowledge. Only in this way can one continuously improve one's analytical ability in practice.
[0088] Optionally, in this embodiment, in step S2, the specific process of performing texture segmentation on the pattern is:
[0089] S21, judging whether to pre-process the image according to the requirements, which may include noise removal, contrast enhancement, normalization operation or other necessary adjustments, so as to improve the accuracy of subsequent texture analysis;
[0090] S22. Apply a segmentation algorithm to distinguish different texture regions in the image according to the extracted features. The segmentation algorithm includes a threshold method, a region growing method, an edge detection method, a wavelet transform, a genetic algorithm or an active contour model.
[0091] In this embodiment, texture segmentation refers to dividing an image into regions with the same or similar texture characteristics to facilitate subsequent analysis and processing.
[0092] Traditional texture segmentation methods mainly include methods based on threshold, region growing, edge detection, wavelet transform, genetic algorithm, active contour model, etc. In recent years, with the development of deep learning technology, many new segmentation methods have also been proposed, such as convolutional neural network (CNN), recurrent neural network (RNN), generative adversarial network (GAN), etc.
[0093] These methods have their own advantages and disadvantages, and their applicable scenarios are also different. In practical applications, it is necessary to flexibly select the appropriate method according to the specific situation to achieve the best segmentation effect.
[0094] Optionally, in this embodiment, in step S2, segmenting the image according to the features includes:
[0095] S2a, calculating the color difference value of each pixel;
[0096] S2b, dividing the pixels within a similar color range into the same group according to a preset color threshold;
[0097] S2c, counting the number of pixels in each group, if the number exceeds a set ratio, the pixels in the group are divided into a type of texture area;
[0098] S2d, repeat steps S2a-S2c until the texture area division of the entire image is completed.
[0099] In this embodiment, the basic idea of the segmentation algorithm is to perform block processing on the image, that is, to divide the entire image into several small blocks, and the pixels in each small block have the same texture characteristics. Then, texture analysis and evaluation are performed on each small block to determine the texture area to which it belongs.
[0100] Specifically, texture segmentation can be achieved using one of two basic strategies:
[0101] The first strategy is a threshold-based method, in which a color threshold is first defined, and then the entire image is traversed. For each pixel, if the difference between its color and its adjacent pixels is less than or equal to the threshold, they are considered to belong to the same texture area, otherwise, they are assigned to different areas.
[0102] The second strategy is based on the region growing method. In this method, starting from any initial seed point, the surrounding area is continuously expanded until certain conditions are met. The conditions here can be color consistency, spatial neighborhood relationship or other related standards. In this way, the entire image can be gradually divided into several connected domains, namely texture areas.
[0103] These two methods have their own advantages and disadvantages and are suitable for different occasions. Generally speaking, the threshold-based method is easier to understand and implement, but may not be sensitive enough to some complex texture features, while the region growing-based method is more flexible and robust, but also more time-consuming and complex.
[0104] Optionally, in this embodiment, in step S2, segmenting the image according to the features includes:
[0105] S2e. Based on the extracted pattern features, the pattern is partitioned using the K-means clustering algorithm.
[0106] In this embodiment, the clustering algorithm is a commonly used unsupervised learning method, which is mainly used to discover natural groups or categories in a data set. Its working principle is to group a group of objects (such as numbers, texts, images, etc.) according to their similarities, so that objects in the same group are more similar to each other, while objects in different groups are more different.
[0107] There are many types of clustering algorithms, including K-means, DBSCAN, spectral clustering, hierarchical clustering, etc. Among them, K-means is the most commonly used and easiest to understand. Its working principle is as follows:
[0108] In the first step, K center points are randomly selected as the initial cluster centers;
[0109] The second step is to calculate the distance between each data point and each cluster center and assign it to the cluster with the closest distance.
[0110] The third step is to recalculate the new center point of each cluster, that is, to average the coordinates of the data points of all members in the cluster to obtain a new center point;
[0111] In the fourth step, the second and third steps are repeated until the cluster center no longer changes or the predetermined number of iterations is reached.
[0112] In this way, originally chaotic data points can be gathered together to form meaningful clusters. These clusters can reflect the inherent structure and rules of the data, which helps to better understand and explore the data itself.
[0113] Optionally, in this embodiment, in step S3, combining and printing feathering templates according to the image partitions includes:
[0114] S3a, determining the total number of printing times according to the printing parameters and pattern partitioning conditions;
[0115] S3b, for each printing, create a blank feathering template;
[0116] S3c, according to the position and size of each pattern partition, retrieve the feathering template corresponding to the pattern feature of the partition from the database, and fill it into the corresponding blank feathering template;
[0117] S3d, print using the filled feather template.
[0118] In this embodiment, the feathering template is a special image format used to simulate a semi-transparent effect, and is often used in the fields of photo post-processing, special effects production, etc. It consists of a black rectangular frame and a white rectangular frame, the black part represents the mask area, and the white part represents the display area. When a picture is placed on the feathering template, the black part will block part of the picture, and the white part will pass through the picture to show the background below.
[0119] The feathering template has two main functions:
[0120] First, it can make the picture look softer and more natural, reduce sharp edges and jaggedness, and improve picture quality; second, it can easily produce translucent or transparent effects to increase creativity and interest.
[0121] In practical applications, the use of feather templates is very wide, not only limited to photo processing, but also can be used in video editing, web design, game development and other fields. Therefore, it is very important to master the use methods and skills of feather templates.
[0122] In this embodiment, the feathering template is composed of many small cells, and the transparency of each cell can be controlled individually. By changing the transparency of the cell, different degrees of translucent effects can be simulated, thereby creating colorful picture effects.
[0123] In actual applications, the use of feather templates is also very flexible and diverse. You can directly use ready-made templates, or you can draw personalized templates yourself. In addition, you can also adjust the size, shape and layout of the template as needed to adapt it to different scenarios and needs.
[0124] In conclusion, in this embodiment, by using the feather template, you can easily create high-quality photos and artworks to show your personal talent and creativity.
[0125] In summary, the present invention can automatically identify pattern texture features and then automatically match a suitable feathering template for printing, thereby improving printing quality and efficiency.
[0126] Example 2
[0127] This embodiment provides a printing device based on the printing method in Embodiment 1, including:
[0128] A classification module, for classifying the pattern feature types and matching the most suitable feathering template type for each feature pattern;
[0129] Among them, pattern features are mainly classified based on texture (texture is the graphic structure presented on the surface of an object, which describes the local patterns of the image or object surface and their arrangement rules);
[0130] An input module, used to input print image data and segment the image according to features;
[0131] Among them, after determining the texture description statement and classification method, the pattern is texture segmented;
[0132] The printing module is used to combine feathering templates according to image partitions and print them.
[0133] In this embodiment, the device can automatically identify pattern texture features and then automatically match a suitable feathering template for printing, thereby improving printing quality and efficiency.
[0134] In this embodiment, the specific implementation scheme of the functions of each functional module of the device has been described in detail in the above embodiments and will not be repeated here.
[0135] In this embodiment, the device may be a server or a terminal on which an application program of the device is installed.
[0136] In this embodiment, the device can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, as well as big data and artificial intelligence platforms. There is no limitation here.
[0137] In this embodiment, the device may be a hardware entity or a software entity. For a hardware entity, it may be any electronic device, such as a mobile phone, a computer, a tablet, etc. For a software entity, it may be an application running on the above electronic device.
[0138] A storage medium, when the instructions are run on a computer, enables the computer to execute the above-mentioned printing method steps of matching the feathering template through local features.
[0139] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A printing method for a feathering template by matching local features, characterized in that: The following steps are involved: S1, classifying the pattern feature types and matching the most suitable feathering template type for each feature pattern; Among them, pattern features are classified based on texture. Texture is the graphic structure presented on the surface of an object, describing the local pattern and arrangement rules of the image or object surface; S2, input the print image data and divide the image into partitions according to the features; Among them, after determining the texture description statement and classification method, the pattern is texture segmented; S3, combining feathering templates according to the image partitions and printing.
2. The printing method of feathering template by local feature matching according to claim 1, characterized in that: The method further includes: storing the plurality of feathering templates in a database and setting corresponding identification numbers; The step S1 specifically includes: obtaining the identification number of the feathering template matching the pattern of each pattern feature type according to the corresponding relationship table between the pattern features and the identification numbers.
3. The printing method of feathering template by local feature matching according to claim 1, characterized in that: The method further comprises: obtaining printing parameters selected by a user; The step S3 specifically includes: generating a printing instruction according to the printing parameters and the partitioned pattern, so that the inkjet printer prints according to the printing instruction.
4. The printing method of feathering template by local feature matching according to claim 3, characterized in that: The printing parameters include at least one of printing speed, color density, and number of printing layers.
5. The printing method of feathering template by local feature matching according to claim 1, characterized in that: In the step S1, the pattern feature types include: pure color, lines, dots, stripes, spots, grids, squares, geometric shapes, irregular shapes, and mixed patterns.
6. The printing method of feathering template by local feature matching according to claim 1, characterized in that: In step S2, the specific process of performing texture segmentation on the pattern is as follows: S21, judging whether to perform preprocessing on the image according to the requirements, including noise removal, contrast enhancement and normalization operations; S22. Applying a segmentation algorithm to distinguish different texture regions in the image according to the extracted features, wherein the segmentation algorithm includes a threshold method, a region growing method, an edge detection method, a wavelet transform, a genetic algorithm or an active contour model.
7. The printing method of feathering template by local feature matching according to claim 1, characterized in that: In step S2, the image is segmented and partitioned according to the features, including: S2a, calculating the color difference value of each pixel; S2b, dividing the pixels within a similar color range into the same group according to a preset color threshold; S2c, counting the number of pixels in each group, if the number exceeds a set ratio, the pixels in the group are divided into a type of texture area; S2d, repeating steps S2a-S2c until the texture area division of the entire image is completed; S2e. Based on the extracted pattern features, the pattern is partitioned using the K-means clustering algorithm.
8. The printing method of feathering template by local feature matching according to claim 1, characterized in that: In the step S3, the feathering template is combined and printed according to the image partitions, including: S3a, determining the total number of printing times according to the printing parameters and pattern partitioning conditions; S3b, for each printing, create a blank feathering template; S3c, according to the position and size of each pattern partition, retrieve the feathering template corresponding to the pattern feature of the partition from the database, and fill it into the corresponding blank feathering template; S3d, print using the filled feather template.
9. A printing device based on the printing method according to any one of claims 1 to 8, characterized in that: include: A classification module, used for classifying the pattern feature types and matching the most suitable feathering template type for each feature pattern; The pattern features are classified based on texture; An input module, used to input print image data and segment the image according to features; Among them, after determining the texture description statement and classification method, the pattern is texture segmented; The printing module is used to combine feathering templates according to image partitions and print them.
10. A storage medium, characterized in that: When the instructions are executed on a computer, the computer is enabled to execute the printing method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Print file identification method based on character texture region segmentation
CN107273898A
Method, device and apparatus for eliminating influence of nozzle splicing on printing quality and medium
CN113327213A
Image partition processing method and device, equipment and storage medium
CN114697464A
Printing data processing method and device for increasing feathering area, equipment and medium
CN115230333A
Ink-jet printing method, device and equipment based on feathering template and storage medium
CN115476587A
