Inkjet printing method, apparatus, device and storage medium based on contour filling
Patent Information
- Application Number
- CN202510422932.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-07
- Publication Date
- 2026-10-16
AI Technical Summary
[0004]有鉴于此,本发明提供了一种基于轮廓填充的喷墨打印方法、装置、设备及存储介质,用以解决现有技术中需要实时处理的数据量大和数据处理难度高的问题
[0050] The present invention provides an inkjet printing method, apparatus, device, and storage medium based on contour filling. First, image information of the printing task is acquired. Then, the image information is divided into a base image and a template image based on the printing task. A target image of the printing medium is acquired, and the target contour of the target image is extracted. Initial printing data is generated based on the target contour and the template image. Target printing data is then generated based on the initial printing data and the base image. Finally, inkjet printing is performed on the printing medium according to the target printing data. This method divides the printing information into a base image and a template image, and sequentially processes them with the target image to generate corresponding printing data. This effectively reduces the amount of data processed in real time, lowers the difficulty of data processing, and reduces data transmission requirements.
Smart Images

Figure CN122914683A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of printing technology, and in particular to an inkjet printing method, apparatus, device, and storage medium based on contour filling. Background Technology
[0002] In the production of new energy batteries, coating technology has become a common practice to improve battery performance and safety. Among these technologies, inkjet printing is favored due to its high flexibility and cost-effectiveness. This technology utilizes a high-precision camera to photograph the battery, accurately capturing its location information. The data is then processed to generate print data, which is transmitted to an inkjet printer for coating. This process not only improves production efficiency but also ensures the quality and consistency of the coating, providing strong support for the high-quality manufacturing of new energy batteries.
[0003] However, in related technologies for positioning and printing new energy batteries, it is necessary to collect images and other relevant data during battery transport, and complete the transmission and processing of images and data before the battery reaches the printing position. This results in a large amount of data requiring real-time processing, increasing the difficulty of data processing. Summary of the Invention
[0004] In view of this, the present invention provides an inkjet printing method, apparatus, device and storage medium based on contour filling, to solve the problems of large amount of data that needs to be processed in real time and high data processing difficulty in the prior art.
[0005] The technical solution adopted in this invention is:
[0006] In a first aspect, the present invention provides an inkjet printing method based on contour filling, the method comprising:
[0007] Obtain image information for the print job;
[0008] Based on the printing task, the image information is divided into a base image and a template image;
[0009] Acquire a target image of the printing medium and extract the target contour of the target image;
[0010] Initial printing data is generated based on the target contour and the template image;
[0011] Target printing data is generated based on the initial printing data and the base image;
[0012] Inkjet printing is performed on the printing medium according to the target printing data.
[0013] In one embodiment, after acquiring the target image of the printing medium and extracting the target contour of the target image, the method further includes:
[0014] The host computer generates vector contour data based on the target contour and the template image, and sends the vector contour data to the slave computer.
[0015] The lower-level machine generates the initial printing data based on the vector contour data, and generates basic printing data based on the base image;
[0016] The initial print data and the basic print data are merged using the lower-level machine to obtain the target print data. In one embodiment, acquiring the target image of the print medium and extracting the target contour of the target image includes:
[0017] The target image is subjected to grayscale and / or binarization processing to obtain a preprocessed image;
[0018] The preprocessed image is identified using an image recognition algorithm to obtain the target contour of the target image.
[0019] In one embodiment, the target contour includes contour orientation information; the step of generating initial printing data based on the target contour and the template image includes:
[0020] The template image is located based on the outline orientation information to obtain positioning information;
[0021] Based on the positioning information, the template image and the target contour are subjected to a texturing operation to obtain texturing information;
[0022] The texture information is subjected to preset data processing to generate the initial print data.
[0023] In one embodiment, the contour orientation information includes contour direction information and contour position information; the step of locating the template image based on the contour orientation information to obtain positioning information includes:
[0024] Based on the contour direction information, the rotation parameters of the template image are calculated;
[0025] Based on the contour position information, the translation parameters of the template image are calculated;
[0026] The image is located based on the rotation parameters and the translation parameters to obtain the positioning information.
[0027] In one embodiment, the base image includes background data; generating target printing data based on the initial printing data and the base image includes:
[0028] If the initial print data and the background data are displayed in the same area, then a logical AND operation is performed on the initial print data and the background data to obtain the first print data;
[0029] If the initial print data and the background data are displayed in any area, then a logical OR operation is performed on the initial print data and the background data to obtain the second print data;
[0030] If the initial print data covers the background data in the preset area, then the initial print data is selected as the third print data;
[0031] If the background data covers the initial print data in a preset area, then the background data is selected as the fourth print data;
[0032] The target print data is generated based on the first print data, the second print data, the third print data, and the fourth print data.
[0033] In one embodiment, before generating the target print data based on the initial print data and the base image, the method further includes:
[0034] The preset number of print runs is determined based on the print task;
[0035] Based on the preset number of prints, the background data of the base image is pre-printed.
[0036] In one embodiment, before dividing the image information into a base image and a template image based on the printing task, the method further includes:
[0037] Generate a calibration map based on the preset printing area;
[0038] Acquire calibration image information of the calibration diagram;
[0039] The calibration parameters are calculated based on the calibration image information.
[0040] In a second aspect, the present invention provides an inkjet printing apparatus that applies the method of the first aspect of the above embodiments, the apparatus comprising:
[0041] The acquisition module is used to acquire image information for the print job;
[0042] A segmentation module is used to segment the image information into a base image and a template image based on the printing task;
[0043] The acquisition module is used to acquire the target image of the printing medium and extract the target contour of the target image;
[0044] The first generation module is used to generate initial printing data based on the target contour and the template image;
[0045] The second generation module is used to generate target printing data based on the initial printing data and the base image;
[0046] A printing module is used to perform inkjet printing on the printing medium according to the target printing data.
[0047] Thirdly, embodiments of the present invention also provide an electronic device, including: at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method of the first aspect described above.
[0048] Fourthly, embodiments of the present invention also provide a storage medium storing computer program instructions thereon, which, when executed by a processor, implement the method of the first aspect described above.
[0049] In summary, the beneficial effects of the present invention are as follows:
[0050] The present invention provides an inkjet printing method, apparatus, device, and storage medium based on contour filling. First, image information of the printing task is acquired. Then, the image information is divided into a base image and a template image based on the printing task. A target image of the printing medium is acquired, and the target contour of the target image is extracted. Initial printing data is generated based on the target contour and the template image. Target printing data is then generated based on the initial printing data and the base image. Finally, inkjet printing is performed on the printing medium according to the target printing data. This method divides the printing information into a base image and a template image, and sequentially processes them with the target image to generate corresponding printing data. This effectively reduces the amount of data processed in real time, lowers the difficulty of data processing, and reduces data transmission requirements. Attached Figure Description
[0051] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments of the present invention will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, and these are all within the protection scope of the present invention.
[0052] Figure 1 This is a schematic flowchart of the inkjet printing method based on contour filling in Embodiment 1 of the present invention;
[0053] Figure 2 yes Figure 1 A flowchart illustrating step S103;
[0054] Figure 3 yes Figure 1 A flowchart illustrating step S104;
[0055] Figure 4 yes Figure 3 A flowchart illustrating step S301;
[0056] Figure 5 yes Figure 1 A flowchart illustrating step S105.
[0057] Figure 6 yes Figure 1 A flowchart illustrating the process before step S105.
[0058] Figure 7 yes Figure 1 A flowchart illustrating the process before step S102;
[0059] Figure 8 This is a schematic diagram of a printing system in one embodiment of the present invention;
[0060] Figure 9 This is a schematic diagram of image information division in one embodiment of the present invention;
[0061] Figure 10 This is a structural block diagram of the inkjet printing device in Embodiment 2 of the present invention;
[0062] Figure 11 This is a schematic diagram of the electronic device in Embodiment 3 of the present invention. Detailed Implementation
[0063] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. In the description of the present invention, it should be understood that the terms "center," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present invention. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, the element defined by the phrase "comprising..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. Where there is no conflict, embodiments of the present invention and the various features thereof can be combined with each other, all of which are within the scope of protection of the present invention.
[0064] The application of related technologies in inkjet printing for coating new energy batteries requires positioning the battery by taking pictures with a camera, and then processing the image data to generate print data for transmission to the printing equipment. However, in the process of positioning and printing using a camera, the data is not pre-generated but generated by the camera during machine movement. Therefore, data processing and transmission need to be completed before the battery reaches the printing position. This leads to the following shortcomings in the related technologies: 1. High real-time requirements for data processing: During battery transport, images and other relevant data need to be acquired in real time, and the transmission and processing of images and data must be completed before the battery reaches the printing position. This real-time requirement increases the difficulty of data processing because a large amount of data processing work needs to be completed within a limited time. 2. Large data processing volume: Because image data of the battery needs to be acquired, and this data usually has high resolution and accuracy, the amount of data generated is large. This increases the burden of data processing and may lead to a decrease in processing speed. 3. Increased system complexity: To achieve real-time data processing and transmission, a complex system architecture needs to be built, including a high-precision camera, data transmission equipment, data processing unit, and inkjet printing equipment. The integration and debugging of these devices increases the complexity of the system and may introduce new points of failure, which could affect the stability and reliability of the entire coating and printing process, ultimately impacting production efficiency and quality.
[0065] Based on this, embodiments of the present invention provide an inkjet printing method, apparatus, electronic device, and storage medium based on contour filling, which can not only effectively reduce the amount of data processed in real time, reduce the difficulty of data processing and data transmission requirements, but also effectively improve the stability of the system and the accuracy of printing, ensuring that it can still maintain high efficiency and stable performance when processing complex patterns and large amounts of data, thereby improving production efficiency and quality.
[0066] This application provides an inkjet printing method, apparatus, electronic device, and storage medium based on contour filling, which are specifically described through the following embodiments.
[0067] Example 1
[0068] Please see Figure 1 , Figure 1 This is an optional flowchart of the inkjet method provided in the embodiments of the present invention. Figure 1 The method may include, but is not limited to, steps S101 to S106. It is also understood that this embodiment... Figure 1 The order of steps S101 to S106 is not specifically limited, and the order of steps can be adjusted or some steps can be reduced or added according to actual needs.
[0069] Step S101: Obtain image information for the print job.
[0070] In some embodiments, when an image printing task is received, the image information in the printing task needs to be obtained first. Specifically, the image information may come from a digital camera, scanner, file downloaded from the network, or locally stored file, etc. It is understood that the image information is usually represented in digital form, including pixel data, color information, resolution, etc. This image information contains the complete visual content to be printed, and no specific limitations are made in this embodiment.
[0071] Step S102: Based on the printing task, the image information is divided into a base image and a template image.
[0072] In some embodiments, after acquiring image information, it is divided into two parts according to the specific requirements of the printing task: a base image and a template image. The base image refers to the fixed, unchanging basic inkjet data in the printing task. This data typically contains the main image content of the printing task, such as backgrounds, patterns, or text. This data is stored digitally and serves as the basis for subsequent printing processes. The template image refers to image elements with fixed positions, shapes, or sizes, such as borders, watermarks, text, or decorative patterns. It can also be a blank template image to be filled. This embodiment does not impose specific limitations on this; those skilled in the art can set or adjust it according to actual needs.
[0073] Step S103: Acquire the target image of the printing medium and extract the target contour of the target image.
[0074] In some embodiments, before preparing for inkjet printing, it is necessary to acquire a target image of the printing medium to be printed. Specifically, this can be achieved using a camera, scanner, or other image acquisition device; this embodiment is not limited to this. The target contour of the printing medium is extracted from the acquired target image. Here, the target contour refers to the physical boundary or feature on the printing medium used to determine the printing position and size. By extracting the target contour, it can be ensured that the printed content can be accurately positioned on the printing medium, thereby improving the precision and accuracy of printing.
[0075] Step S104: Generate initial printing data based on the target contour and template image.
[0076] In some embodiments, after the target contour is extracted, initial print data is generated by combining it with the previously segmented template image. Specifically, this step may involve scaling, translating, or rotating the template image to adjust its size, position, and orientation to match the contour data of the printing medium, ensuring that the template image accurately adapts to the target contour of the printing medium. It is understood that the initial print data forms the basis for subsequently generating the target print data; it includes the position and size information of the template image on the printing medium, as well as other possible print parameters (such as color, resolution, etc.). This application embodiment does not impose specific limitations on these parameters.
[0077] Step S105: Generate target print data based on the initial print data and the base image.
[0078] In some embodiments, after obtaining the initial print data, it is combined with a base image to generate the final target print data. Specifically, different image processing methods, such as performing logical operations on the initial print data and the base image or selecting a certain layer overlay, are used to ensure that the final target print data meets the design requirements and printing task. The target print data is the data on which the inkjet printer actually performs the printing operation on the printing media.
[0079] Step S106: Perform inkjet printing on the printing medium according to the target printing data.
[0080] In some embodiments, inkjet printing is performed on the printing media based on the generated target printing data. Specifically, the target printing data is sent to the inkjet printing device, which controls the movement of the inkjet head and the timing and quantity of ink droplet ejection according to the instructions in the data. Thus, through precise inkjet control, high-quality and high-precision printing results can be achieved on the printing media.
[0081] Therefore, the contour-fill-based inkjet printing method of this invention divides the image information of the printing task into a base image and a template image, and generates target printing data step by step by combining the target contour of the printing medium. This achieves precise control and flexible processing of the printed content, effectively reduces the amount of data processed in real time, and lowers the difficulty of data processing and data transmission requirements. This method is suitable for processing complex images and diverse printing media, and can improve printing accuracy and efficiency.
[0082] Reference Figure 2 As shown, in some embodiments of this application, the above step S103: acquiring the target image of the printing medium and extracting the target contour of the target image may also include, but is not limited to, the following steps S201 to S202.
[0083] Step S201: Perform grayscale and / or binarization processing on the target image to obtain a preprocessed image.
[0084] In some embodiments, to accurately locate the printed content, the acquired target image is preprocessed to obtain a preprocessed image. Specifically, the target image can be converted to grayscale to remove color information, retaining only the brightness information of the image, thereby simplifying the image data structure. It is understood that grayscale processing can be implemented using methods such as weighted average, maximum value, or minimum value methods, and this embodiment does not limit this.
[0085] In some embodiments, to further simplify the image and highlight the target outline, the grayscale image can also be binarized. Specifically, binarization converts each pixel in the grayscale image into either black or white, forming an image containing only two colors. Typically, this is based on a threshold; pixels with grayscale values higher or lower than this threshold are converted to white or black, respectively. It is understood that the threshold can be fixed or dynamically adjusted according to the image's brightness and contrast to achieve the best binarization effect.
[0086] Step S202: The preprocessed image is identified using an image recognition algorithm to obtain the target contour of the target image.
[0087] In some embodiments, the preprocessed image, obtained through grayscale and / or binarization, is input into an image recognition algorithm for contour recognition. Specifically, the image recognition algorithm can be an edge detection algorithm (such as the Canny edge detector, Sobel operator, Prewitt operator, etc.), a shape matching algorithm, etc. It is understood that the choice of algorithm depends on the characteristics of the target image and the needs of contour recognition. For example, edge detection algorithms are more effective for images with clear edges, while shape matching algorithms are more suitable for images with complex shapes.
[0088] In some embodiments, the image recognition algorithm performs pixel-by-pixel analysis on the preprocessed image to identify the target contour. Specifically, in the edge detection algorithm, the algorithm detects regions in the image with significant brightness changes and marks them as edges (i.e., contours). In the shape matching algorithm, the algorithm matches the preprocessed image with a preset shape template to find the region most similar to the template and extracts it as the target contour.
[0089] It is understood that further optimization processing can be performed on the target contour to eliminate noise, fill gaps, or smooth the contour curve. This optimization processing can be achieved through morphological operations, such as dilation, erosion, opening, and closing operations, as well as contour tracking or contour fitting algorithms. This embodiment does not impose any limitations on these methods.
[0090] Reference Figure 3 As shown, in some embodiments of this application, the target contour also includes contour orientation information. Step S104 above: generating initial printing data based on the target contour and template image, may also include, but is not limited to, steps S301 to S303.
[0091] Step S301: Locate the template image based on the contour orientation information to obtain positioning information.
[0092] In some embodiments, after extracting the target contour of the target image, the template image needs to be positioned based on the orientation information of the contour. This process is a crucial step to ensure that the template image can accurately fit onto the target contour. Specifically, key positional information, such as the center point, boundary points, and direction of the contour, can be extracted from the target contour to obtain positioning information used to determine the relative position and orientation of the template image on the target image. This embodiment does not impose any limitations on this.
[0093] Step S302: Based on the positioning information, perform a texturing operation on the template image and the target contour to obtain texturing information.
[0094] In some embodiments, a mapping operation is performed on the template image and the target contour based on the positioning information. Specifically, the target contour is filled into the corresponding position of the template image, or the template image can be placed on the corresponding position of the target contour, ensuring that the edges of the target contour are closely aligned with the boundaries of the template image without significant misalignment or overlap. Furthermore, the template image or target contour can be fine-tuned, such as adjusting its size, orientation, or transparency, to better adapt to the shape and position of the alignment. The merged information of the template image and target contour after the mapping operation is recorded to obtain the corresponding mapping information.
[0095] Step S303: Perform preset data processing on the texture information to generate initial print data.
[0096] In some embodiments, the texture information undergoes pre-defined data processing to generate initial print data for inkjet printing. This data processing refers to RIP (Raster Image Processor) processing, a technique that converts vector graphics or high-resolution images into raster images (i.e., pixelated images) suitable for inkjet printing equipment. By parsing, rendering, and optimizing the image, high-quality detail, sharp edges, and accurate colors are ensured in the printed output.
[0097] It is understandable that after RIP processing, the texture information is converted into a series of instructions and data suitable for printer use, i.e., initial print data. Specifically, the initial print data may include pixel data, color values, brightness values, print path, and other print parameters, such as print speed, droplet size, and nozzle temperature. This application embodiment does not limit these parameters.
[0098] In some embodiments of this application, after extracting the target contour of the target image in step S103, the steps S1031 to S1033 may be included, but are not limited to.
[0099] Step S1031: The host computer generates vector contour data based on the target contour and the template image, and sends the vector contour data to the slave computer.
[0100] A host computer refers to a computer or device responsible for advanced data processing, decision-making, and control. It typically possesses strong computing and data processing capabilities, handling complex algorithms, generating control commands, and communicating with lower-level computers. In some embodiments, the host computer can also process image data, extract target contours, and generate vector contour data based on the target contours and template images. Vector contour data is a mathematically-based graphical data format that accurately represents the shape, position, and orientation of the target contour.
[0101] Since the amount of vector data to be processed is relatively small, the host computer can quickly generate this data and send it to the slave computer. Therefore, in a multi-nozzle system, the amount of data processed and transmitted by the host computer is very small, and the data processing can be distributed to multiple slave computers for parallel processing, thereby supporting more nozzles.
[0102] Step S1032: The lower-level machine generates the initial printing data based on the vector contour data, and generates basic printing data based on the basic image.
[0103] In some embodiments, the lower-level machine generates initial print data corresponding to the target contour and template data based on the received vector contour data (or the aforementioned texture information). Specifically, this process includes rasterization (RIP) of the vector data, converting it into raster image data suitable for use by inkjet printers. The raster image data contains pixel information, color information, etc., required by the printing device.
[0104] In some embodiments, the lower-level machine also generates basic print data based on the base image. The base image is typically a fixed part of the printing task (such as background, pattern, etc.), and the lower-level machine converts the base image into basic print data through rasterization processing.
[0105] Step S1032: The lower-level machine is used to merge the initial print data and the basic print data to obtain the target print data.
[0106] In some embodiments, the lower-level machine merges the generated initial print data with the basic print data to generate the final target print data. The merging process may include logical operations (such as logical AND, logical OR, etc.) and / or image overlay operations to ensure that the initial print data and the basic print data can be accurately combined. Thus, through the merging operation, the target print data generated by the lower-level machine contains all the image information that needs to be printed, thereby controlling the printhead to perform precise inkjet operations.
[0107] Therefore, in this embodiment, the host computer is responsible for processing complex image data and generating vector data, while the slave computer is responsible for generating specific print data and executing print tasks. This division of labor makes the system's data processing more efficient, especially in multi-head systems. The host computer only needs to process a small amount of vector data, while the slave computer can process the print tasks of multiple printheads in parallel. The host computer sends the generated vector data to the slave computer, which then generates the final print data based on this data. Due to the small amount of vector data and the fast transmission speed, the overall response speed of the printing system is improved. In multi-head systems, the slave computer can distribute the print tasks of multiple printheads, thereby supporting more printheads and improving overall printing efficiency.
[0108] Reference Figure 4 As shown, in some embodiments of this application, the contour orientation information includes contour direction information and contour position information. Step S301 above: Positioning the template image based on the contour orientation information to obtain positioning information, may also include, but is not limited to, the following steps S401 to S403.
[0109] Step S401: Calculate the rotation parameters of the template image based on the contour direction information.
[0110] In some embodiments, based on the analysis of contour direction information, such as the analysis of the geometric features of the contour (e.g., tangent direction, normal direction, etc.), the rotation angle of the template image relative to the contour direction in the target contour can be calculated, thereby obtaining the rotation parameters of the template image. It is understood that these rotation parameters are the parameters by which the template image needs to be rotated to align with the contour direction in the target contour.
[0111] Step S402: Calculate the translation parameters of the template image based on the contour position information.
[0112] In some embodiments, contour position information is used to determine the relative position of the template image within the target contour. Specifically, the centroid, bounding box, and other features of the target contour are analyzed using contour position information to calculate the distance and direction of translation required for the template image, thereby obtaining translation parameters to align the template image with the target contour.
[0113] Step S403: Based on the rotation and translation parameters, the template image is positioned to obtain positioning information.
[0114] In some embodiments, rotation and translation parameters are applied to the template image to perform rotation and translation transformation. The transformed template image is aligned with the contour in the target contour in both direction and position, thereby obtaining precise positioning information of the template image on the target contour.
[0115] Reference Figure 5 As shown, in some embodiments of this application, the base image includes background data. Step S105 above, generating target print data based on the initial print data and the base image, may also include, but is not limited to, steps S501 to S505.
[0116] Step S501: If the initial print data and the background data are displayed in the same area, then perform a logical AND operation on the initial print data and the background data to obtain the first print data.
[0117] In some embodiments, if the initial print data and background data need to be displayed overlapping in the same area (i.e., a common area) of the printed image, a logical AND operation is performed on the initial print data and background data. It is understood that a pixel at a given pixel location will only be displayed in the final target print data if both the initial print data and background data have values at that location. This can be used to create "transparent" or "cut-out" effects, where the overlapping portion of the initial print data and background data only displays their common features.
[0118] Step S502: If the initial print data and background data are displayed in any area, perform a logical OR operation on the initial print data and background data to obtain the second print data.
[0119] In some embodiments, if the initial print data and background data are displayed in any area of the printed image (including overlapping and non-overlapping areas), a logical OR operation is performed on the initial print data and background data. It is understood that as long as either the initial print data or the background data has a value at a certain pixel location, that pixel will be displayed in the final target print data. This can be used to create an "overlay" effect where all content of the initial print data and background data is preserved and printed.
[0120] Step S503: If the initial print data covers the background data in the preset area, then select the initial print data as the third print data.
[0121] In some embodiments, if the initial print data needs to cover the background data in a preset area (which may be completely or partially) of the printed image, the initial print data is directly selected as the print output for that preset area. Therefore, within that preset area, the background data will be completely replaced by the initial print data.
[0122] Step S504: If the background data covers the initial print data in the preset area, then select the background data as the fourth print data.
[0123] In some embodiments, if the background data is designed to cover the initial print data in a predetermined area (which may be completely or partially) of the printed image, the background data is directly selected as the print output for that area. Therefore, within that predetermined area, the initial print data will be completely replaced by the background data.
[0124] Step S505: Generate target print data based on the first print data, the second print data, the third print data, and the fourth print data.
[0125] In some embodiments, the final target print data is generated according to different display scenarios and logical operations. For example, the first print data, the second print data, the third print data, and the fourth print data can be merged according to their respective applicable areas to generate the final target print data to create a complete print output. This embodiment does not limit this.
[0126] Reference Figure 6 As shown, in some embodiments of this application, before step S105 above, that is, before generating target print data based on initial print data and base image, there may be steps S601 to S602, etc.
[0127] Step S601: Determine the preset number of prints based on the print job.
[0128] In some embodiments, the preset number of print runs can be determined based on the specific printing task requirements. Specifically, the preset number of print runs can be determined by comprehensively considering various factors such as the printing task, customer needs, the performance of the printing equipment, and the characteristics of the printing materials. This embodiment does not impose any limitations on this.
[0129] Step S602: Based on a preset number of prints, pre-print the background data of the base image.
[0130] In some embodiments, the background data of the base image is pre-printed based on a preset number of print runs. It is understood that the background data of the base image refers to the fixed, unchanging basic inkjet data in the printing task. Specifically, before the actual printing of variable print data (such as image outline data, text information, etc.), the fixed, unchanging base image background data is repeatedly printed a preset number of times. Thus, by pre-processing the fixed background data, and then acquiring the target image and extracting the target outline before the printing medium is transferred to the printing position, aligning it with the template image, and then combining it with the pre-printed background data to generate the target print data, the amount of data processed in real time can be significantly reduced, lowering the system's data processing difficulty and data transmission requirements.
[0131] Reference Figure 7 As shown, in some embodiments of this application, before step S102 above, that is, before dividing the image information into a base image and a template image based on the printing task, the following steps S701 to S703 may also be included, but are not limited to.
[0132] Step S701: Generate a calibration map based on the preset printing area.
[0133] In some embodiments, before printing begins, the image acquisition device (e.g., a camera) needs to be calibrated to eliminate deviations caused by factors such as localized deformation of the printing platform. Specifically, a calibration map is generated based on a preset printing area. This calibration map typically contains a series of markers or patterns of known size and location for subsequent calibration calculations.
[0134] Step S702: Acquire calibration image information of the calibration map.
[0135] In some embodiments, an image acquisition device is used to scan or photograph the generated calibration map to obtain calibration image information of the calibration map. During this process, the image acquisition device will capture the actual positions of the marks or patterns on the calibration map.
[0136] Step S703: Calculate the calibration parameters based on the calibration image information.
[0137] In some embodiments, calibration parameters are calculated based on the acquired calibration image information. It is understood that calibration parameters describe the internal parameters (such as focal length, distortion coefficients, etc.) and external parameters (such as the position and orientation of the camera relative to the printing platform) of the image acquisition device. By comparing and processing the calibration image information with known calibration maps, these calibration parameters can be calculated, thereby calibrating the image acquisition device to eliminate deviations caused by factors such as local deformation of the printing platform.
[0138] Reference Figure 8 The schematic diagram of the printing system shown and Figure 9 The image information division diagram shown illustrates, in some embodiments of this application, the application of inkjet printing for new energy battery coating. The printing medium (i.e., the battery) is transported from left to right via a belt. After the image is acquired by an image acquisition device, it reaches a preset printing position where the inkjet printing device performs inkjet printing according to the printing task. Specifically, based on the printing task, the image information is divided into a base image and a template image, such as... Figure 9 As shown, the base image is the fixed background data, which can be transmitted and printed in advance.
[0139] When the image acquisition device captures the target image of the printing medium, it extracts the target outline of the target image and fills it into the template image for relevant data processing operations to obtain the initial printing data. Finally, the initial printing data and background data are logically processed to generate the final target printing data. When the printing medium is moved to the preset printing position, the inkjet printer accurately prints the image onto the corresponding position on the printing medium according to the target printing data generated in the previous steps, ensuring that the inkjet printing can accurately follow the predetermined position and pattern. This not only reduces the data processing difficulty of the entire printing system and reduces the bandwidth requirements during data transmission, but also effectively improves the system's stability and printing accuracy. In this way, the printing equipment can maintain high efficiency and stable performance when processing complex patterns and large amounts of data, thereby improving production efficiency and quality.
[0140] Example 2
[0141] Please see Figure 10 Embodiment 2 of the present invention also provides an inkjet printing apparatus that applies the contour-fill-based inkjet printing method as described in Embodiment 1 above. The inkjet printing apparatus includes:
[0142] The acquisition module is used to acquire image information for the print job;
[0143] The partitioning module is used to divide image information into base images and template images based on the printing task;
[0144] The acquisition module is used to acquire the target image of the printing medium and extract the target contour of the target image;
[0145] The first generation module is used to generate initial printing data based on the target contour and template image;
[0146] The second generation module is used to generate target printing data based on the initial printing data and the base image;
[0147] The printing module is used to perform inkjet printing on the printing media based on the target printing data.
[0148] The specific implementation of the inkjet printing device in this embodiment is basically the same as the specific implementation of the inkjet printing method based on contour filling described above, and will not be repeated here.
[0149] Example 3
[0150] In addition, combined Figure 1 The contour-fill-based inkjet printing method of Embodiment 1 of the present invention described herein can be implemented by an electronic device. Figure 11 A schematic diagram of the hardware structure of the electronic device provided in Embodiment 3 of the present invention is shown.
[0151] Electronic devices may include processors and memory storing computer program instructions.
[0152] Specifically, the processor may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement embodiments of the present invention.
[0153] The memory may include a large-capacity storage device for data or instructions. For example, and not limitingly, the memory may include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disk drive, a magneto-optical disk drive, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory may include removable or non-removable (or fixed) media. Where appropriate, the memory may be internal or external to a data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.
[0154] The processor reads and executes computer program instructions stored in the memory to implement any of the contour-fill-based inkjet printing methods in the above embodiments.
[0155] In one example, the electronic device may also include a communication interface and a bus. For example, Figure 11 As shown, the processor, memory, and communication interface are connected via a bus and communicate with each other.
[0156] The communication interface is mainly used to enable communication between various modules, devices, units and / or equipment in the embodiments of the present invention.
[0157] A bus, including hardware, software, or both, couples components of the device together. For example, and not limitingly, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, a bus may include one or more buses. While specific buses are described and illustrated in embodiments of the invention, the invention contemplates any suitable bus or interconnect.
[0158] Example 4
[0159] In addition, in conjunction with the contour-fill-based inkjet printing method in Embodiment 1 above, Embodiment 4 of the present invention can also provide a computer-readable storage medium for implementation. This computer-readable storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any one of the contour-fill-based inkjet printing methods in the above embodiments.
[0160] In summary, this invention provides an inkjet printing method, apparatus, device, and storage medium based on contour filling. It acquires image information of a printing task, then divides the image information into a base image and a template image based on the printing task. The fixed background data in the base image is repeatedly pre-printed. By acquiring a target image of the printing medium and extracting the target contour, initial printing data is generated based on the target contour and the template image. Then, target printing data is generated based on the initial printing data and the base image. Finally, inkjet printing is performed on the printing medium according to the target printing data. Therefore, by pre-processing the fixed background data beforehand, and then acquiring the target image and extracting the target contour before the printing medium is transferred to the printing position, and then matching it with the template image and the pre-printed background data to generate the target printing data, the amount of data processed in real time can be significantly reduced, the data processing difficulty and data transmission requirements of the system can be lowered, and the stability and printing accuracy of the system can be effectively improved. This ensures that even when processing complex patterns and large amounts of data, high efficiency and stable performance can still be maintained, thereby improving production efficiency and quality.
[0161] It should be clarified that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of the present invention.
[0162] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the required tasks. The programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0163] It should also be noted that the exemplary embodiments mentioned in this invention describe methods or systems based on a series of steps or apparatus. However, this invention is not limited to the order of the steps described above; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0164] The above description is merely a specific embodiment of the present invention. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the protection scope of the present invention.
Claims
1. A contour-fill-based inkjet printing method, characterized in that, The method includes: Obtain image information for the print job; Based on the printing task, the image information is divided into a base image and a template image; Acquire a target image of the printing medium and extract the target contour of the target image; Initial printing data is generated based on the target contour and the template image; Target printing data is generated based on the initial printing data and the base image; Inkjet printing is performed on the printing medium according to the target printing data.
2. The inkjet printing method based on contour filling according to claim 1, characterized in that, After acquiring the target image of the printing medium and extracting the target contour of the target image, the process further includes: The host computer generates vector contour data based on the target contour and the template image, and sends the vector contour data to the slave computer. The lower-level machine generates the initial printing data based on the vector contour data, and generates basic printing data based on the basic image; The lower-level machine is used to merge the initial print data and the basic print data to obtain the target print data.
3. The inkjet printing method based on contour filling according to claim 1, characterized in that, The process of acquiring the target image of the printing medium and extracting the target contour of the target image includes: The target image is subjected to grayscale and / or binarization processing to obtain a preprocessed image; The preprocessed image is identified using an image recognition algorithm to obtain the target contour of the target image.
4. The inkjet printing method based on contour filling according to claim 1, characterized in that, The target contour includes contour orientation information; the generation of initial printing data based on the target contour and the template image includes: The template image is located based on the outline orientation information to obtain positioning information; Based on the positioning information, the template image and the target contour are subjected to a texturing operation to obtain texturing information; The texture information is subjected to preset data processing to generate the initial print data.
5. The inkjet printing method based on contour filling according to claim 4, characterized in that, The contour orientation information includes contour direction information and contour position information; the step of locating the template image based on the contour orientation information to obtain positioning information includes: Based on the contour direction information, the rotation parameters of the template image are calculated; Based on the contour position information, the translation parameters of the template image are calculated; The template image is positioned based on the rotation parameters and the translation parameters to obtain the positioning information.
6. The inkjet printing method based on contour filling according to claim 1, characterized in that, The base image includes background data; the generation of target printing data based on the initial printing data and the base image includes: If the initial print data and the background data are displayed in the same area, then a logical AND operation is performed on the initial print data and the background data to obtain the first print data; If the initial print data and the background data are displayed in any area, then a logical OR operation is performed on the initial print data and the background data to obtain the second print data; If the initial print data covers the background data in the preset area, then the initial print data is selected as the third print data; If the background data covers the initial print data in a preset area, then the background data is selected as the fourth print data; The target print data is generated based on the first print data, the second print data, the third print data, and the fourth print data.
7. The inkjet printing method based on contour filling according to claim 6, characterized in that, Before generating the target print data based on the initial print data and the base image, the process also includes: The preset number of print runs is determined based on the print task; Based on the preset number of prints, the background data of the base image is pre-printed.
8. An inkjet printing device, characterized in that, The apparatus for using the contour-fill-based inkjet printing method as described in any one of claims 1 to 7 comprises: The acquisition module is used to acquire image information for the print job; A segmentation module is used to segment the image information into a base image and a template image based on the printing task; The acquisition module is used to acquire the target image of the printing medium and extract the target contour of the target image; The first generation module is used to generate initial printing data based on the target contour and the template image; The second generation module is used to generate target printing data based on the initial printing data and the base image; A printing module is used to perform inkjet printing on the printing medium according to the target printing data.
9. An electronic device, characterized in that, include: At least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method as described in any one of claims 1-7.
10. A storage medium storing computer program instructions thereon, characterized in that, The method as described in any one of claims 1-7 is implemented when the computer program instructions are executed by the processor.