CN115139670B - Inkjet printing method and system based on single pass inkjet data processing - Google Patents

Inkjet printing method and system based on single pass inkjet data processing Download PDF

Info

Publication number
CN115139670B
CN115139670B CN202210805616.0A CN202210805616A CN115139670B CN 115139670 B CN115139670 B CN 115139670B CN 202210805616 A CN202210805616 A CN 202210805616A CN 115139670 B CN115139670 B CN 115139670B
Authority
CN
China
Prior art keywords
color channel
image
color
image data
memory space
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210805616.0A
Other languages
Chinese (zh)
Other versions
CN115139670A (en
Inventor
龚博
王策鑫
李新寅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Arojet Ink Jet Technology Co ltd
Original Assignee
Guangdong Arojet Ink Jet Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Arojet Ink Jet Technology Co ltd filed Critical Guangdong Arojet Ink Jet Technology Co ltd
Priority to CN202210805616.0A priority Critical patent/CN115139670B/en
Publication of CN115139670A publication Critical patent/CN115139670A/en
Application granted granted Critical
Publication of CN115139670B publication Critical patent/CN115139670B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
    • B41J29/393Devices for controlling or analysing the entire machine ; Controlling or analysing mechanical parameters involving printing of test patterns

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

The invention relates to an inkjet printing method and system based on single pass inkjet data processing, and belongs to the field of inkjet printing. The method comprises the following steps: cutting the long image file into a multi-page PDF document; opening up corresponding newwidth memory space for each color channel of the PDF document according to the width and height of the pages of the PDF document and the total page number; sequentially carrying out cyclic scanning on the PDF document according to pages according to each color channel, and sequentially storing gray value information of the corresponding color channel into a corresponding newwidth memory space to obtain spliced image data of each color channel; correcting the spliced image data of each color channel to obtain a corrected gray scale image of each color channel; converting the corrected gray level image of each color channel into a single color image to obtain the single color image of each color channel; and sending the monochromatic image of each color channel to the board card for inkjet printing. The method can be used for rapidly and effectively processing the long image file with the length of more than 10m, and greatly improves the overall jet printing efficiency on the premise of ensuring the jet printing image quality.

Description

Inkjet printing method and system based on single pass inkjet data processing
Technical Field
The invention relates to the technical field of inkjet printing, in particular to an inkjet printing method based on single pass inkjet data processing.
Background
In the field of digital inkjet printing there are long lengths of printing material, which can be up to several hundred meters in length, whereas inkjet printing requires the production of the pattern to be printed before printing. At present, printing of long materials similar to a tape measure is often carried out by adopting contact type traditional printing, plate making is carried out on printed patterns, and one color is adopted, complicated color register work is needed when multicolor printing is carried out, and the time and the labor are wasted, and the process is complex; plate making cost is required, and is related to plate making size and plate making color, so that higher cost is generated; and the plate making requires time, and when the urgent printing is performed, the instant printing can not be performed when the machine is started. Therefore, the non-contact type ink-jet printing method is very suitable for performing multicolor printing of long materials, however, the conventional image making software such as PS, AI and the like cannot perform image making with the length of more than 10 meters, even if images with the length of 5 to 10 meters are made, the conventional data processing method is very difficult to extract long image data, so that the processing of the image data is difficult to realize, and finally normal ink-jet printing cannot be completed. Therefore, how to ensure that the inkjet printing device can perform rapid and effective data processing on the image file with a longer length when printing a long material similar to a tape measure, so as to improve the overall inkjet printing efficiency is a problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide an inkjet printing method based on single pass inkjet data processing, which can be used for rapidly and effectively processing long image files and improving the overall inkjet printing efficiency on the premise of ensuring the quality of inkjet images.
In order to achieve the above object, the present invention provides the following solutions:
an inkjet printing method based on single pass inkjet data processing, comprising:
acquiring a long image file, and cutting the long image file into a multi-page PDF document by using drawing software;
opening up corresponding newwidth memory space for each color channel of the PDF document according to the page width, page height and total page number of the PDF document;
sequentially carrying out cyclic scanning on the PDF document according to each color channel, and sequentially storing gray value information of the corresponding color channel into a corresponding newwidth memory space to obtain spliced image data of each color channel;
correcting the spliced image data of each color channel to obtain a corrected gray scale image of each color channel;
converting the corrected gray level image of each color channel into a single color image to obtain the single color image of each color channel;
and sending the monochromatic image of each color channel to the board card for inkjet printing.
Optionally, the opening up a corresponding newwidth memory space for each color channel of the PDF document according to the page width, the page height and the total page number of the PDF document specifically includes:
calculating the total memory space size newwidth required to be opened by the single-channel gray map by adopting a formula newwidth= (width 8+31)/32×4×n according to the page width, page height and total page number n of the PDF document;
and obtaining the number of all color channels after color separation of the whole PDF document, and respectively opening independent memory space with the newwidth for each color channel according to the number of the color channels to serve as the newwidth memory space corresponding to each color channel of the PDF document.
Optionally, the circularly scanning is sequentially performed on the PDF document according to each color channel, gray value information of the corresponding color channel is sequentially stored in a corresponding newwidth memory space, and image data after the color channels are spliced is obtained, which specifically includes:
circularly scanning the PDF document according to pages sequentially according to each color channel to obtain pixel gray value information of each page of PDF document, and storing gray values in a matrix form into a newwidth memory space corresponding to each color channel;
and splicing gray value matrixes corresponding to the color channels in a newwidth memory space to obtain the spliced gray value matrixes of the color channels as the spliced image data of the color channels.
Optionally, the correcting the image data after the splicing of each color channel to obtain a corrected gray scale image of each color channel specifically includes:
for each color channel in the color channels, determining basic image units in the image data spliced by the current color channel, selecting each basic image unit subjected to first jet printing, and calibrating the basic image units as standard image units;
traversing each image unit in the image data spliced by the current color channel, comparing the traversed current image unit with the standard image unit, if the current image unit has a part exceeding the standard image unit, performing subtraction, and if the current image unit has a part which is not enough than the standard image unit, performing filling so as to obtain a gray level image corrected by the current color channel;
and after traversing all the color channels circularly, obtaining a corrected gray scale image of each color channel.
Optionally, the converting the corrected gray scale map of each color channel into a single color map to obtain the single color map of each color channel specifically includes:
setting a gray threshold;
for each color channel in each color channel, traversing each pixel gray value in the gray map corrected by the current color channel, comparing the current pixel gray value with the gray threshold, if the current pixel gray value exceeds the gray threshold, binarizing the current pixel gray value to be 1, and if the current pixel gray value does not exceed the gray threshold, binarizing the current pixel gray value to be 0, thereby obtaining a monochromatic map of the current color channel;
and after traversing all the color channels in a circulating way, obtaining a single-color chart of each color channel.
An inkjet printing system based on single pass inkjet data processing, comprising:
the PDF cutting module is used for acquiring a long image file and cutting the long image file into a multi-page PDF document by using drawing software;
the memory space opening module is used for opening a corresponding newwidth memory space for each color channel of the PDF document according to the page width, the page height and the total page number of the PDF document;
the image data splicing module is used for sequentially circularly scanning the PDF document according to pages according to each color channel, and sequentially storing gray value information of the corresponding color channel into a corresponding newwidth memory space to obtain image data spliced by each color channel;
the image data correction module is used for correcting the image data spliced by the color channels to obtain a corrected gray level image of each color channel;
the image data conversion module is used for converting the corrected gray level image of each color channel into a single color image to obtain the single color image of each color channel;
and the ink-jet printing operation module is used for sending the monochromatic image of each color channel to the board card for ink-jet printing.
Optionally, the memory space tunneling module specifically includes:
the total memory space size calculating unit is configured to calculate, according to the page width, page height and total page number n of the PDF document, a total memory space size newwidth required to be opened up by a single-channel gray map by adopting a formula newwidth= (width 8+31)/32×4×height n;
the memory space opening unit is used for acquiring the number of all color channels after the color separation of the whole PDF document, and respectively opening an independent memory space with a newwidth for each color channel according to the number of the color channels to serve as a newwidth memory space corresponding to each color channel of the PDF document.
Optionally, the image data stitching module specifically includes:
the image data storage unit is used for sequentially circularly scanning the PDF document according to each color channel to obtain pixel gray value information of each page of PDF document, and storing gray values in a matrix form into a newwidth memory space corresponding to each color channel;
the image data splicing unit is used for splicing the gray value matrixes corresponding to the color channels in the newwidth memory space to obtain the gray value matrixes spliced by the color channels as the image data spliced by the color channels.
Optionally, the image data correction module specifically includes:
the standard image unit determining unit is used for determining basic image units in the image data spliced by the current color channels aiming at each color channel, selecting each basic image unit subjected to first jet printing, and calibrating the basic image units as standard image units;
the current image data correction unit is used for traversing each image unit in the image data spliced by the current color channel, comparing the traversed current image unit with the standard image unit, reducing if a part exceeding the standard image unit exists in the current image unit, and supplementing if a part not exceeding the standard image unit exists in the current image unit, so that a gray level diagram corrected by the current color channel is obtained;
and the whole image data correction unit is used for circularly traversing all the color channels to obtain the corrected gray level map of each color channel.
Optionally, the image data conversion module specifically includes:
a gray threshold value acquisition unit for setting a gray threshold value;
the current image data conversion unit is used for traversing each pixel gray value in the gray map corrected by the current color channel aiming at each color channel, comparing the current pixel gray value with the gray threshold, binarizing the current pixel gray value to be 1 if the current pixel gray value exceeds the gray threshold, and binarizing the current pixel gray value to be 0 if the current pixel gray value does not exceed the gray threshold, so as to obtain a monochromatic map of the current color channel;
and the whole image data conversion unit is used for circularly traversing all the color channels to obtain a single-color chart of each color channel.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
the invention provides an inkjet printing method and system based on single pass inkjet data processing, wherein the method comprises the following steps: acquiring a long image file, and cutting the long image file into a multi-page PDF document by using drawing software; opening up corresponding newwidth memory space for each color channel of the PDF document according to the page width, page height and total page number of the PDF document; sequentially carrying out cyclic scanning on the PDF document according to each color channel, and sequentially storing gray value information of the corresponding color channel into a corresponding newwidth memory space to obtain spliced image data of each color channel; correcting the spliced image data of each color channel to obtain a corrected gray scale image of each color channel; converting the corrected gray level image of each color channel into a single color image to obtain the single color image of each color channel; and sending the monochromatic image of each color channel to the board card for inkjet printing. The method solves the problem that when the material with long length is printed in the inkjet printing field, software such as AI, PS and the like cannot finish the extraction processing of the jet printing data caused by the manufacture of the long graph with the corresponding length, can rapidly and effectively process the long image file with the length more than 10m, greatly improves the overall jet printing efficiency on the premise of ensuring the jet printing image quality, does not need complex technology, and has wide application prospect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are needed in the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an inkjet printing method based on single pass inkjet data processing according to the present invention;
FIG. 2 is a schematic diagram of an inkjet printing method based on single pass inkjet data processing according to the present invention;
FIG. 3 is a schematic diagram of a process for creating a newwidth memory space according to the present invention;
FIG. 4 is a schematic diagram of a process of traversing PDF to splice image data information provided by the present invention;
FIG. 5 is a schematic diagram illustrating a process for correcting data of each color channel according to the present invention;
FIG. 6 is a schematic diagram illustrating a process of converting a gray scale image into a single color image according to the present invention;
fig. 7 is a schematic diagram of a process of image data transmission provided by the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention aims to provide an inkjet printing method based on single pass inkjet data processing, which can rapidly and effectively process long image files with the length of more than 10m and improve the overall inkjet printing efficiency on the premise of ensuring the quality of inkjet images.
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
Fig. 1 is a flow chart of an inkjet printing method based on single pass inkjet data processing according to the present invention, and fig. 2 is a schematic diagram of an inkjet printing method based on single pass inkjet data processing according to the present invention. Referring to fig. 2, the method of the present invention mainly includes the main flow steps of opening up a newwidth memory space, traversing PDF to store image data and complete image stitching, correcting data of each color channel, converting a gray scale image into a single color image, and transmitting the image data to a board card. Referring to fig. 1, the inkjet printing method based on single pass inkjet data processing according to the present invention specifically includes:
step 1: a long image file is acquired and cut into a multi-page PDF document using drawing software.
The method of the invention is mainly applied to the printing of long materials similar to tape measures, so that the long image files obtained by the method are files with the length of more than 10 meters. The method solves the problem that document data are difficult to process when long materials similar to tape materials are printed, and uses drawing software to cut long image files with the length of more than 10 meters into multi-page PDF.
Step 2: and opening up corresponding newwidth memory space for each color channel of the PDF document according to the page width, the page height and the total page number of the PDF document.
Fig. 3 is a schematic diagram of a process of opening up a newwidth memory space according to the present invention. Referring to fig. 3, after the PDF is imported into the software, the software obtains the page width, page height and total page number n of the PDF, calculates the total memory space size newwidth to be opened up through an algorithm, determines the number of color channels of the PDF document, applies for an independent memory space for each color channel according to the number of color channels, and the memory space size is the same as the opened total memory space size newwidth.
Step 2 opens up a corresponding newwidth memory space for each color channel of the PDF document according to the page width, the page height and the total page number of the PDF document, and specifically includes:
step 2.1: and calculating the total memory space size newwidth required to be opened by the single-channel gray map by adopting a formula newwidth= (width 8+31)/32×4×n according to the page width, page height and total page number n of the PDF document.
After the PDF is imported, software automatically acquires the page width, page height and total page number n of the PDF, and the total memory space size newwidth required to be opened up for the image can be calculated according to the following formula (1):
newwidth=(width*8+31)/32*4*height*n (1)
the page width and page height in the formula are each represented by a pixel. The image used after reading is a single-channel gray level graph after PDF color separation, the gray level value of the single-channel gray level graph represents 256 kinds, so that the byte number occupied by one row of pixels can be calculated through a (width 8+31)/32×4 part in a formula, the memory space size required by a complete page can be obtained by multiplying the calculated byte size occupied by one row of pixels by the height of one page, and the memory space size required by the complete page can be obtained by multiplying the space size required by the complete page by the total page number n of the complete PDF.
Step 2.2: and obtaining the number of all color channels after color separation of the whole PDF document, and respectively opening independent memory space with the newwidth for each color channel according to the number of the color channels to serve as the newwidth memory space corresponding to each color channel of the PDF document.
And judging the number of all color channels after the whole PDF document is subjected to color separation, and opening a corresponding number of independent memory spaces according to the number of the color channels, wherein the size of the space is the same as the total memory space.
Step 3: and sequentially carrying out cyclic scanning on the PDF document according to each color channel, and sequentially storing gray value information of the corresponding color channel into a corresponding newwidth memory space to obtain spliced image data of each color channel.
Fig. 4 is a schematic diagram of a process of traversing PDF to splice image data information according to the present invention. Referring to fig. 4, the PDF document is sequentially scanned circularly according to each color channel according to pages to obtain pixel data information of each page, the pixel data information is stored in a matrix form in a newwidth, and the obtained image data is spliced in the newwidth to obtain a required single-channel complete jet printing image.
And step 3, sequentially carrying out cyclic scanning on the PDF document according to each color channel, sequentially storing gray value information of the corresponding color channel into a corresponding newwidth memory space, and obtaining spliced image data of each color channel, wherein the method specifically comprises the following steps:
step 3.1: and sequentially circularly scanning the PDF document according to each color channel by pages to obtain pixel gray value information of each page of PDF document, and storing gray values in a matrix form into a newwidth memory space corresponding to each color channel.
And circularly traversing each page of PDF document to obtain gray value information of each color channel of each page of PDF document, wherein the circularly traversing mode is that a single page is from left to right and from bottom to top, and the whole document is from the first page to the last page. In the scanning process, corresponding pixel gray values are acquired according to the color channels, and the gray values are stored in a matrix form into corresponding newwidth memory spaces opened for the color channels. When one page is stored, the last pixel memory address is ((width 8+31)/32×4) height) -1; when the second page is stored, the storage address of the first pixel starts from (width 8+31)/32×4×height to complete the image stitching operation. And after the full PDF document page is circularly traversed, the full image information can be obtained.
Step 3.2: and splicing gray value matrixes corresponding to the color channels in a newwidth memory space to obtain the spliced gray value matrixes of the color channels as the spliced image data of the color channels.
And (3) repeating the step 3.1 according to the total number of the color channels of the image, and sequentially storing gray value information of the corresponding color channels into the corresponding newwidth memory space to obtain a gray value matrix spliced by each color channel as image data spliced by each color channel, thereby obtaining the required single-channel complete jet printing image.
Step 4: and correcting the spliced image data of each color channel to obtain a corrected gray scale image of each color channel.
Fig. 5 is a schematic diagram of a process for correcting data of each color channel according to the present invention. Referring to fig. 5, pixel information can be calibrated according to image elements in a single-channel complete jet printing image, and data correction is performed on all the same image elements to ensure that the pixel widths and heights of the same image elements are the same so as to ensure that the lines of the jet printed image are perfect and the widths and heights are consistent.
And step 4, correcting the spliced image data of each color channel to obtain a corrected gray scale image of each color channel, wherein the method specifically comprises the following steps:
step 4.1: for each color channel in the color channels, determining basic image units in image data spliced by the current color channel (namely, a complete image pixel gray value matrix of the current color channel), selecting each basic image unit subjected to first jet printing, and calibrating the basic image units as standard image units;
step 4.2: traversing each image unit in the image data spliced by the current color channel, comparing the traversed current image unit with the standard image unit, if a part (pixel value) exceeding the standard image unit exists in the current image unit, reducing the exceeding pixel value, and if a part (pixel value) not exceeding the standard image unit exists in the current image unit, supplementing the insufficient pixel value, thereby obtaining a gray level image corrected by the current color channel;
step 4.3: and after traversing all the color channels circularly, obtaining a corrected gray scale image of each color channel.
In order to prevent the situation that the sprayed image has incomplete lines, inconsistent sizes of the same element and the like, the pixel data of each color channel needs to be corrected. The following describes a specific procedure for correcting the data of each color channel using the tape measure image as an example.
The measuring tape image comprises 1mm, 5mm and 10mm scale units, the three scale units are respectively three different pixel sizes, and all the same scale units in the image are the same in size. And circularly traversing the gray value matrix of the whole image, finding out the first 1mm scale, the first 5mm scale and the first 10mm scale in the image, calibrating the three scales as standard scales, comparing the same scale traversed later with the standard scale, reducing if the pixel width and the height are greater than those of the standard scale, supplementing if the pixel width and the height are less than those of the standard scale, and ensuring consistent jet printing effect after correction. The specific implementation process is exemplified as follows: assuming that 1mm scale marks are determined to be processed, the first 1mm scale mark in an image is 1 pixel in width and 3 pixels in height, the definition width is (width) 8+31)/32×4, when the memory address [ (height-1-i) ×width+j ] =0, whether the first scale mark is the scale mark is judged, when the memory address [ (height-1-i) ×width+j-1 ] =255 & (and) the memory address [ (height-1-i) ×width+j ] =0 &memoryaddress [ (height-1-i) ×1] =0) =0 & memory address [ (height-1-i) ×1] =0 & memory address [ (height-1-i) ×width+j+2 ] =0 & memory address [ (height-1-i) +j+3] =0 & memory [ (height-1-i) =0+j+2 ] =0, and the number of the black pixels is equal to 255, and the number of the black pixels is reduced to be the standard, and the number of black pixels is reduced to be more than 3.
Step 5: and converting the corrected gray level map of each color channel into a single color map to obtain the single color map of each color channel.
Fig. 6 is a schematic diagram of a process of converting a gray scale image into a single color image according to the present invention. Referring to fig. 6, after data correction is performed on each color channel, the gray level image of each color channel is converted into a monochrome image, so as to ensure a faster image transmission rate, and finally, image data is sent to the board card.
Step 5 converts the corrected gray level map of each color channel into a single color map to obtain the single color map of each color channel, and specifically includes:
step 5.1: the gray threshold y is set, typically 180.
Step 5.2: and traversing each pixel gray value in the gray map corrected by the current color channel aiming at each color channel, comparing the current pixel gray value with the gray threshold y, if the current pixel gray value exceeds the gray threshold y, binarizing the current pixel gray value to be 1, and if the current pixel gray value does not exceed the gray threshold y, binarizing the current pixel gray value to be 0, thereby obtaining the single color map of the current color channel.
The specific algorithm implementation process is that firstly, the monochromatic image data memory and the gray image data memory are initialized, and the method for initializing the monochromatic image data memory is as follows: calculating the size by (width+31)/32×4 height and initializing; the method for initializing the gray image data memory comprises the following steps: calculating the size by (width 8+31)/32×4 height and initializing; setting the single color width as (width+31)/32×4, and setting the gray scale width as (width+8+31)/32×4; traversing the image matrix according to the transverse direction j and the longitudinal direction i, setting an intermediate variable z for temporarily storing the pixel address obtained after calculation, and setting the threshold value y as 180; according to the (j, i) obtained by traversing, calculating an address in the image matrix through Z=gray map head memory address +i×gray width +j, according to the address, taking out a corresponding gray value, comparing the gray value with a threshold y, if the gray value is larger than the threshold y, binarizing the data into 1, if the gray value is smaller than the threshold y, binarizing the data into 0, finally obtaining a binarized image matrix, and repeating the actions according to the number of PDF color channels, so as to obtain the monochromatic map of all the color channels.
Step 5.3: and after traversing all the color channels in a circulating way, obtaining a single-color chart of each color channel.
After the correction of the image data is completed, the invention converts the image from the gray level image into the single color image, and the gray level image is composed of 256 data of 0-255, and the single color image is only represented by the combination of two values of 0 and 1, so that the processing speed of the image data is greatly improved after the gray level image is converted into the single color image.
Step 6: and sending the monochromatic image of each color channel to the board card for inkjet printing.
Fig. 7 is a schematic diagram of a process of image data transmission provided by the present invention. Referring to fig. 7, after the image is converted into a monochrome image, the image data needs to be sent to a board card, and then is transferred to a nozzle for jet printing through the board card, and the specific implementation steps are as follows: the application size is (width+31)/32×4height k Is a memory space k, height k To apply for memory space k height, the height data height k According to the length of the spray head and the formula height k Calculated = (length/25.4 x 600). The embodiment of the present invention uses the light management G5 as an example, and the length of the spray head is length= 54.19, however, other types of spray heads may be used instead when the method of the present invention is implemented. Performing required height of memory space k according to the type of the spray head k Calculation, in this embodiment, calculate height k = (54.19/25.4 x 600) =1280; the memory space k= (width+31)/32×4× 1280. After the memory space k is applied, the memory space k is initialized to have a length of (width+31)/32×4x1280. Taking tape measure image data as an example, tape measure literal memory blocks are copied to the initialized memory space k with the size of (width+31)/32 x 4 x height k The memory block of the tape measure scale surface is copied to the memory space k, and the size is (width+31)/32 x 4 height k The method comprises the steps of carrying out a first treatment on the surface of the Releasing Wen Zimian memory and scale surface memory; transmitting the image data to the board; repeating the operation according to the number of the color channels, and sending the single-color image of each color channel to the board card for ink-jet printing.
The method solves the problem that drawing software such as PS, AI and the like cannot make the long graph of more than 10m by adopting a mode of making the long graph into a multi-page PDF for storage, and calculates and opens up the total memory space of the complete image by acquiring information such as page width, page height, total page number and the like; the gray value of each pixel is obtained by traversing the whole PDF and is stored in the image matrix to finish the splicing of the complete image in the memory space, so that the complete image data processing of hundreds of meters is finally realized, and the problem that the existing processing method is difficult to process the image with the length of more than 10m is solved. The method adopts a standard image unit calibration mode, reduces part of pixels and adds part of pixels by comparing the image unit with the standard image unit, ensures that each image unit in the image has consistent specification, and ensures the jet printing image effect. The method adopts a mode of binarizing the gray level map into the single color map before the data is sent to the board card, thereby improving the data sending efficiency. The method solves the problem of long graph data processing of hundreds of meters, realizes the inkjet printing of long materials, and has wide application prospect.
Based on the method provided by the invention, the invention also provides an inkjet printing system based on single pass inkjet data processing, and the system comprises:
the PDF cutting module is used for acquiring a long image file and cutting the long image file into a multi-page PDF document by using drawing software;
the memory space opening module is used for opening a corresponding newwidth memory space for each color channel of the PDF document according to the page width, the page height and the total page number of the PDF document;
the image data splicing module is used for sequentially circularly scanning the PDF document according to pages according to each color channel, and sequentially storing gray value information of the corresponding color channel into a corresponding newwidth memory space to obtain image data spliced by each color channel;
the image data correction module is used for correcting the image data spliced by the color channels to obtain a corrected gray level image of each color channel;
the image data conversion module is used for converting the corrected gray level image of each color channel into a single color image to obtain the single color image of each color channel;
and the ink-jet printing operation module is used for sending the monochromatic image of each color channel to the board card for ink-jet printing.
The memory space opening module specifically comprises:
the total memory space size calculating unit is configured to calculate, according to the page width, page height and total page number n of the PDF document, a total memory space size newwidth required to be opened up by a single-channel gray map by adopting a formula newwidth= (width 8+31)/32×4×height n;
the memory space opening unit is used for acquiring the number of all color channels after the color separation of the whole PDF document, and respectively opening an independent memory space with a newwidth for each color channel according to the number of the color channels to serve as a newwidth memory space corresponding to each color channel of the PDF document.
The image data stitching module specifically comprises:
the image data storage unit is used for sequentially circularly scanning the PDF document according to each color channel to obtain pixel gray value information of each page of PDF document, and storing gray values in a matrix form into a newwidth memory space corresponding to each color channel;
the image data splicing unit is used for splicing the gray value matrixes corresponding to the color channels in the newwidth memory space to obtain the gray value matrixes spliced by the color channels as the image data spliced by the color channels.
The image data correction module specifically comprises:
the standard image unit determining unit is used for determining basic image units in the image data spliced by the current color channels aiming at each color channel, selecting each basic image unit subjected to first jet printing, and calibrating the basic image units as standard image units;
the current image data correction unit is used for traversing each image unit in the image data spliced by the current color channel, comparing the traversed current image unit with the standard image unit, reducing if a part exceeding the standard image unit exists in the current image unit, and supplementing if a part not exceeding the standard image unit exists in the current image unit, so that a gray level diagram corrected by the current color channel is obtained;
and the whole image data correction unit is used for circularly traversing all the color channels to obtain the corrected gray level map of each color channel.
The image data conversion module specifically comprises:
a gray threshold value acquisition unit for setting a gray threshold value;
the current image data conversion unit is used for traversing each pixel gray value in the gray map corrected by the current color channel aiming at each color channel, comparing the current pixel gray value with the gray threshold, binarizing the current pixel gray value to be 1 if the current pixel gray value exceeds the gray threshold, and binarizing the current pixel gray value to be 0 if the current pixel gray value does not exceed the gray threshold, so as to obtain a monochromatic map of the current color channel;
and the whole image data conversion unit is used for circularly traversing all the color channels to obtain a single-color chart of each color channel.
For long material printing of the tape type, the printed image is generally large, possibly even up to several hundred meters in length, which results in difficult processing of the image, difficult acquisition of image data, and eventually impossible printing. The method and the system of the invention use a mode of making a long chart into a multi-page PDF, carry out cycle traversal on each page PDF of the whole PDF document, store the obtained image data of each page into a opened total memory space newwidth in a matrix form, and carry out image splicing according to page sequence in the newwidth to obtain complete image information. Before each page of PDF is circularly traversed, PDF basic information including page width, page height and total page number n is obtained, and algorithm calculation is carried out according to the obtained information, so that the memory space size newwidth required by the complete image is obtained. According to the obtained image matrix, the basic image unit is defined based on the actual jet printing pattern, each image unit for the first jet printing is selected, the image unit is calibrated to be a standard image unit, each traversed image unit is compared with the standard image unit, if the standard image unit part is exceeded, the subtraction is carried out, and if the standard image unit part is not exceeded, the replenishment is carried out. In order to improve the data transmission rate, converting the gray level graph into a single color graph, setting a threshold value y, circularly traversing each pixel gray level value in the image matrix, comparing the pixel gray level value with the threshold value, binarizing the original pixel gray level value, if the pixel gray level value exceeds the threshold value y, the binarized original pixel gray level value is 1, if the pixel gray level value exceeds the threshold value y, the binarized original pixel gray level value is 0, and binarizing the whole image matrix to obtain the image single color graph. The method and the system of the invention open up a newwidth memory space, circularly traverse the PDF to store pixel gray values, correct pixel data and convert gray images into monochromatic images according to the number of the color channels of the PDF document, and perform corresponding repetition times to obtain a complete image matrix.
According to the inkjet printing method and system based on single pass inkjet data processing, the long image is divided into multiple pages of PDFs through drawing software to be stored, then each page of data information is extracted, data combination is carried out in a memory through an algorithm to obtain complete image information, data correction and single-color image conversion are carried out on the obtained image information, and finally the image information is sent to a board card to finish inkjet printing, so that the problem that inkjet printing data cannot be extracted and processed due to the fact that software such as AI, PS and the like cannot finish manufacturing of long images with corresponding lengths in the inkjet printing field is solved, long image files with the length exceeding 10m can be processed rapidly and effectively, overall inkjet printing efficiency is greatly improved on the premise that inkjet printing image quality is guaranteed, a complex process is not needed, and the inkjet printing method and system have wide application prospects.
For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to assist in understanding the methods of the present invention and the core ideas thereof; also, it is within the scope of the present invention to be modified by those of ordinary skill in the art in light of the present teachings. In view of the foregoing, this description should not be construed as limiting the invention.

Claims (6)

1. An inkjet printing method based on single pass inkjet data processing, comprising:
acquiring a long image file, and cutting the long image file into a multi-page PDF document by using drawing software;
opening up corresponding newwidth memory space for each color channel of the PDF document according to the page width, page height and total page number of the PDF document;
the opening up a corresponding newwidth memory space for each color channel of the PDF document according to the page width, the page height and the total page number of the PDF document specifically comprises:
calculating the total memory space size newwidth required to be opened by the single-channel gray map by adopting a formula newwidth= (width 8+31)/32×4×n according to the page width, page height and total page number n of the PDF document;
obtaining the number of all color channels after color separation of the whole PDF document, and respectively opening independent memory space with the newwidth for each color channel according to the number of the color channels to serve as the newwidth memory space corresponding to each color channel of the PDF document;
sequentially carrying out cyclic scanning on the PDF document according to each color channel, and sequentially storing gray value information of the corresponding color channel into a corresponding newwidth memory space to obtain spliced image data of each color channel;
the method comprises the steps of sequentially carrying out cyclic scanning on the PDF document according to each color channel and pages, sequentially storing gray value information of the corresponding color channel into a corresponding newwidth memory space, and obtaining spliced image data of each color channel, wherein the method specifically comprises the following steps:
circularly scanning the PDF document according to pages sequentially according to each color channel to obtain pixel gray value information of each page of PDF document, and storing gray values in a matrix form into a newwidth memory space corresponding to each color channel;
splicing gray value matrixes corresponding to the color channels in a newwidth memory space to obtain the spliced gray value matrixes of the color channels as image data spliced by the color channels;
correcting the spliced image data of each color channel to obtain a corrected gray scale image of each color channel;
converting the corrected gray level image of each color channel into a single color image to obtain the single color image of each color channel;
and sending the monochromatic image of each color channel to the board card for inkjet printing.
2. The method according to claim 1, wherein the correcting the spliced image data of each color channel to obtain the corrected gray scale image of each color channel specifically includes:
for each color channel in the color channels, determining basic image units in the image data spliced by the current color channel, selecting each basic image unit subjected to first jet printing, and calibrating the basic image units as standard image units;
traversing each image unit in the image data spliced by the current color channel, comparing the traversed current image unit with the standard image unit, if the current image unit has a part exceeding the standard image unit, performing subtraction, and if the current image unit has a part which is not enough than the standard image unit, performing filling so as to obtain a gray level image corrected by the current color channel;
and after traversing all the color channels circularly, obtaining a corrected gray scale image of each color channel.
3. The method according to claim 2, wherein the converting the corrected gray scale map of each color channel into a single color map, to obtain the single color map of each color channel, specifically comprises:
setting a gray threshold;
for each color channel in each color channel, traversing each pixel gray value in the gray map corrected by the current color channel, comparing the current pixel gray value with the gray threshold, if the current pixel gray value exceeds the gray threshold, binarizing the current pixel gray value to be 1, and if the current pixel gray value does not exceed the gray threshold, binarizing the current pixel gray value to be 0, thereby obtaining a monochromatic map of the current color channel;
and after traversing all the color channels in a circulating way, obtaining a single-color chart of each color channel.
4. An inkjet printing system based on single pass inkjet data processing, comprising:
the PDF cutting module is used for acquiring a long image file and cutting the long image file into a multi-page PDF document by using drawing software;
the memory space opening module is used for opening a corresponding newwidth memory space for each color channel of the PDF document according to the page width, the page height and the total page number of the PDF document;
the memory space opening module specifically comprises:
the total memory space size calculating unit is configured to calculate, according to the page width, page height and total page number n of the PDF document, a total memory space size newwidth required to be opened up by a single-channel gray map by adopting a formula newwidth= (width 8+31)/32×4×height n;
the memory space opening unit is used for acquiring the number of all color channels after the color separation of the whole PDF document, and respectively opening an independent memory space with a newwidth for each color channel according to the number of the color channels to serve as a newwidth memory space corresponding to each color channel of the PDF document;
the image data splicing module is used for sequentially circularly scanning the PDF document according to pages according to each color channel, and sequentially storing gray value information of the corresponding color channel into a corresponding newwidth memory space to obtain image data spliced by each color channel;
the image data stitching module specifically comprises:
the image data storage unit is used for sequentially circularly scanning the PDF document according to each color channel to obtain pixel gray value information of each page of PDF document, and storing gray values in a matrix form into a newwidth memory space corresponding to each color channel;
the image data splicing unit is used for splicing gray value matrixes corresponding to the color channels in the newwidth memory space to obtain the gray value matrixes spliced by the color channels as image data spliced by the color channels;
the image data correction module is used for correcting the image data spliced by the color channels to obtain a corrected gray level image of each color channel;
the image data conversion module is used for converting the corrected gray level image of each color channel into a single color image to obtain the single color image of each color channel;
and the ink-jet printing operation module is used for sending the monochromatic image of each color channel to the board card for ink-jet printing.
5. The system of claim 4, wherein the image data correction module specifically comprises:
the standard image unit determining unit is used for determining basic image units in the image data spliced by the current color channels aiming at each color channel, selecting each basic image unit subjected to first jet printing, and calibrating the basic image units as standard image units;
the current image data correction unit is used for traversing each image unit in the image data spliced by the current color channel, comparing the traversed current image unit with the standard image unit, reducing if a part exceeding the standard image unit exists in the current image unit, and supplementing if a part not exceeding the standard image unit exists in the current image unit, so that a gray level diagram corrected by the current color channel is obtained;
and the whole image data correction unit is used for circularly traversing all the color channels to obtain the corrected gray level map of each color channel.
6. The system of claim 4, wherein the image data conversion module specifically comprises:
a gray threshold value acquisition unit for setting a gray threshold value;
the current image data conversion unit is used for traversing each pixel gray value in the gray map corrected by the current color channel aiming at each color channel, comparing the current pixel gray value with the gray threshold, binarizing the current pixel gray value to be 1 if the current pixel gray value exceeds the gray threshold, and binarizing the current pixel gray value to be 0 if the current pixel gray value does not exceed the gray threshold, so as to obtain a monochromatic map of the current color channel;
and the whole image data conversion unit is used for circularly traversing all the color channels to obtain a single-color chart of each color channel.
CN202210805616.0A 2022-07-08 2022-07-08 Inkjet printing method and system based on single pass inkjet data processing Active CN115139670B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210805616.0A CN115139670B (en) 2022-07-08 2022-07-08 Inkjet printing method and system based on single pass inkjet data processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210805616.0A CN115139670B (en) 2022-07-08 2022-07-08 Inkjet printing method and system based on single pass inkjet data processing

Publications (2)

Publication Number Publication Date
CN115139670A CN115139670A (en) 2022-10-04
CN115139670B true CN115139670B (en) 2024-01-30

Family

ID=83412310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210805616.0A Active CN115139670B (en) 2022-07-08 2022-07-08 Inkjet printing method and system based on single pass inkjet data processing

Country Status (1)

Country Link
CN (1) CN115139670B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06259524A (en) * 1993-03-09 1994-09-16 Ricoh Co Ltd Method and device for processing document image
CN1564749A (en) * 2001-10-05 2005-01-12 株式会社岛精机制作所 Automatic printer and pattern connecting position correcting printing method in printing pattern on printing object medium
CN1764230A (en) * 2004-10-21 2006-04-26 诺日士钢机株式会社 Image processing apparatus
CN102129360A (en) * 2010-01-20 2011-07-20 富士胶片株式会社 Print information managing apparatus, print information managing method, print information managing system, and recording medium with program recorded therein
CN102294903A (en) * 2010-06-23 2011-12-28 富士施乐株式会社 Information processing apparatus and information processing method
CN105323413A (en) * 2014-08-05 2016-02-10 富士施乐株式会社 Image reading apparatus, image forming apparatus and method
CN105835546A (en) * 2016-05-24 2016-08-10 武汉璟丰科技有限公司 Single PASS data transmission type printing system and data transmission method thereof
CN108681218A (en) * 2013-06-21 2018-10-19 佳能株式会社 The control method of image forming apparatus and image forming apparatus
CN110908623A (en) * 2019-12-02 2020-03-24 深圳市汉森软件有限公司 Data processing method, device, equipment and medium for large-format image partition printing
CN111586237A (en) * 2020-04-30 2020-08-25 维沃移动通信有限公司 Image display method and electronic equipment
CN111597516A (en) * 2020-04-28 2020-08-28 南京新智客信息科技有限公司 Document anti-copying method and system based on secret mark watermark
CN113554733A (en) * 2021-07-28 2021-10-26 北京大学 Language-based decoupling condition injection gray level image colorization method
CN113867654A (en) * 2021-09-27 2021-12-31 西安理工大学 PDF page-based splitting and page-splicing method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080174796A1 (en) * 2007-01-24 2008-07-24 Xerox Corporation Method of printing documents
US20100033772A1 (en) * 2008-08-08 2010-02-11 Craig Steven Borison Multi-page Scanner/Copier and technique/method to simultaneously scan without separating pages or uncoupling documents or books
US8870320B2 (en) * 2013-01-29 2014-10-28 Hewlett-Packard Development Company, L.P. Method and apparatus for processing image data
US10960695B2 (en) * 2018-08-07 2021-03-30 Canon Kabushiki Kaisha Printing apparatus and correction method therefor

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06259524A (en) * 1993-03-09 1994-09-16 Ricoh Co Ltd Method and device for processing document image
CN1564749A (en) * 2001-10-05 2005-01-12 株式会社岛精机制作所 Automatic printer and pattern connecting position correcting printing method in printing pattern on printing object medium
CN1764230A (en) * 2004-10-21 2006-04-26 诺日士钢机株式会社 Image processing apparatus
CN102129360A (en) * 2010-01-20 2011-07-20 富士胶片株式会社 Print information managing apparatus, print information managing method, print information managing system, and recording medium with program recorded therein
CN102294903A (en) * 2010-06-23 2011-12-28 富士施乐株式会社 Information processing apparatus and information processing method
CN108681218A (en) * 2013-06-21 2018-10-19 佳能株式会社 The control method of image forming apparatus and image forming apparatus
CN105323413A (en) * 2014-08-05 2016-02-10 富士施乐株式会社 Image reading apparatus, image forming apparatus and method
CN105835546A (en) * 2016-05-24 2016-08-10 武汉璟丰科技有限公司 Single PASS data transmission type printing system and data transmission method thereof
CN110908623A (en) * 2019-12-02 2020-03-24 深圳市汉森软件有限公司 Data processing method, device, equipment and medium for large-format image partition printing
CN111597516A (en) * 2020-04-28 2020-08-28 南京新智客信息科技有限公司 Document anti-copying method and system based on secret mark watermark
CN111586237A (en) * 2020-04-30 2020-08-25 维沃移动通信有限公司 Image display method and electronic equipment
CN113554733A (en) * 2021-07-28 2021-10-26 北京大学 Language-based decoupling condition injection gray level image colorization method
CN113867654A (en) * 2021-09-27 2021-12-31 西安理工大学 PDF page-based splitting and page-splicing method

Also Published As

Publication number Publication date
CN115139670A (en) 2022-10-04

Similar Documents

Publication Publication Date Title
US6873436B1 (en) Image processing device and recording medium
EP2761863B1 (en) Detecting printing defects
JP2013196456A (en) Image inspection device, image forming apparatus and control method for image inspection device
US9965227B2 (en) Image processing apparatus, image processing method, computer-readable recording medium, printing system, and method of producing printed material
CN104029510A (en) Method and device for ink-jet printing concentration correction and method and device for ink-jet printing
CN105159627A (en) Method for automatically correcting digital printing chromatic aberration
US8861019B2 (en) Image evaluating apparatus, image evaluating method, and non-transitory storage medium for reading and quantifying an evaluation chart
US7145693B2 (en) Image processing apparatus and method
CN115139670B (en) Inkjet printing method and system based on single pass inkjet data processing
US6608702B1 (en) Method for generating threshold patterns and gradation image binarizing device
US7502510B2 (en) Vector-graphic data processing method and drawing apparatus
CN105150701A (en) Printing equipment, as well as image harmomegathus printing control device and control method thereof
CN108269233B (en) Text dithering method based on shading halftone
CN114863147B (en) Intelligent comparison method and system for spliced large-plate printed images and application of intelligent comparison method and system
CN112184533B (en) Watermark synchronization method based on SIFT feature point matching
US8638475B2 (en) Recreating step and repeat geometrical data
CN112785536B (en) Three-dimensional tile printing file conversion method, device and medium for eliminating edge joint
US6839146B1 (en) Image processing method, apparatus, and medium storing program for checking for copy-prohibited objects
CN111845099B (en) Method, device, equipment and medium for setting white ink quantity of printer
CN103853505B (en) A kind of method of mimeograph documents, device and printing device
CN102096903B (en) Page rasterized character smooth processing method and system
JP2004246110A (en) Plate inspection apparatus, printing system, method for inspecting printed data on plate, and program
CN114399506B (en) Image detection method and system for rainbow printed matter
CN102457654B (en) Trap printing method and apparatus thereof
CN112102455B (en) Method for converting PRT file of 3D printer into RGB color model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant