CN103419513B - A kind of processing method of random image and a kind of printing equipment control system - Google Patents
A kind of processing method of random image and a kind of printing equipment control system Download PDFInfo
- Publication number
- CN103419513B CN103419513B CN201210151093.9A CN201210151093A CN103419513B CN 103419513 B CN103419513 B CN 103419513B CN 201210151093 A CN201210151093 A CN 201210151093A CN 103419513 B CN103419513 B CN 103419513B
- Authority
- CN
- China
- Prior art keywords
- view data
- image
- row
- random
- random site
- 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.)
- Expired - Fee Related
Links
- 238000007639 printing Methods 0.000 title claims abstract description 82
- 238000003672 processing method Methods 0.000 title claims abstract description 7
- 238000000034 method Methods 0.000 claims abstract description 42
- 238000003384 imaging method Methods 0.000 claims abstract description 38
- 239000011159 matrix material Substances 0.000 claims description 13
- 238000000605 extraction Methods 0.000 claims description 4
- 230000000875 corresponding effect Effects 0.000 claims 6
- 230000002596 correlated effect Effects 0.000 claims 3
- 230000001276 controlling effect Effects 0.000 claims 1
- 238000013500 data storage Methods 0.000 abstract description 25
- 238000003860 storage Methods 0.000 description 15
- 238000007641 inkjet printing Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000009434 installation Methods 0.000 description 2
- 239000000758 substrate Substances 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000013078 crystal Substances 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000009776 industrial production Methods 0.000 description 1
- 239000003595 mist Substances 0.000 description 1
- 239000007921 spray Substances 0.000 description 1
Landscapes
- Record Information Processing For Printing (AREA)
- Ink Jet (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
本申请公开了一种随机图像的处理方法及一种印刷设备控制系统,所述方法应用在印刷设备控制系统中,所述方法用于获得需要印刷的至少一页中的任一页上的图像数据,所述方法包括:接收主机发送来的栅格化的母板图像数据,及需要随机提取图像的设定长度和设定宽度、及用来表示随机数生成方式的参数;基于所述参数中包括的随机数生成方式,获得随机数坐标及所述随机数坐标相关的图像数据存储地址;按所述设定宽度和所述设定长度,将所述图像数据存储地址作为起始地址开始读取图像数据;将所述读取的图像数据发送给成像部件,以供所述成像部件成像。
The present application discloses a random image processing method and a printing equipment control system, the method is applied in the printing equipment control system, and the method is used to obtain an image on any page of at least one page to be printed Data, the method includes: receiving the rasterized motherboard image data sent by the host, and the set length and set width of the image that needs to be randomly extracted, and the parameters used to represent the random number generation method; based on the parameters The random number generation method included in the random number coordinates and the image data storage address related to the random number coordinates are obtained; according to the set width and the set length, the image data storage address is used as the starting address Reading image data; sending the read image data to an imaging component for imaging by the imaging component.
Description
技术领域technical field
本申请涉及数码印刷领域,特别涉及一种随机图像的处理方法及一种印刷设备控制系统。The present application relates to the field of digital printing, in particular to a random image processing method and a printing equipment control system.
背景技术Background technique
数码印刷是近年来高速发展的印刷技术,它是将数据直接传输、处理、印刷的方式。对于采用按需式喷墨印刷的数码印刷设备,成像部件在控制系统的控制下,当承印体(如纸张)的表面到达预定位置时,喷嘴中的压电晶体产生脉冲将油墨挤出,并直接向承印体(如纸张)的表面喷射雾状墨滴成像。与传统的印刷方式相比,数码印刷省去了制版、打样等过程,步骤简单快速,并且支持可变数据打印。Digital printing is a printing technology that has developed rapidly in recent years. It is a way to directly transmit, process and print data. For digital printing equipment using on-demand inkjet printing, the imaging component is under the control of the control system. When the surface of the substrate (such as paper) reaches a predetermined position, the piezoelectric crystal in the nozzle generates a pulse to squeeze out the ink, and Spray mist ink droplets directly to the surface of the substrate (such as paper) for imaging. Compared with traditional printing methods, digital printing saves the process of plate making and proofing, the steps are simple and fast, and it supports variable data printing.
另外,由于数据需从计算机中直接传输到成像部分成像,所以,数码印刷设备的控制系统要将计算机给出的数据处理成适合成像的数据,同时还需要保证系统的高实时性。In addition, since the data needs to be directly transmitted from the computer to the imaging part for imaging, the control system of the digital printing equipment must process the data given by the computer into data suitable for imaging, and at the same time ensure the high real-time performance of the system.
鉴于喷墨数码印刷技术非接触、快速、印刷图像实时可变、环保等特点,其应用的范围越来越广泛。在某些情况下,印刷厂商对于数码印刷技术有着一些特殊的要求,印刷厂商要求不再仅仅是能够处理出正确的图像、印刷图像,他们更希望新型的喷墨印刷技术能够充分发挥它的灵活性,完成某些特殊的要求,例如:印刷图像的随机变化。In view of the characteristics of inkjet digital printing technology, such as non-contact, fast, real-time variable printing images, and environmental protection, its application range is becoming wider and wider. In some cases, printing manufacturers have some special requirements for digital printing technology. The requirements of printing manufacturers are no longer just to be able to process correct images and print images. They also hope that the new inkjet printing technology can give full play to its flexibility. To meet some special requirements, such as: random changes in printed images.
本申请申请人在实现本申请技术方案的过程中,发现现有技术中对印刷图像的随机变化存在如下技术问题:In the process of implementing the technical solution of the present application, the applicant of the present application found that the random change of the printed image in the prior art has the following technical problems:
一、传统的印刷方式在印刷图像时,局限于其固定的印版,不能实现图像的随机变化;1. The traditional printing method is limited to its fixed printing plate when printing images, and cannot realize random changes in images;
二、虽然某些灵活的打印机能够满足需求。但是,由于数据处理能力有限,不能够处理大规模的数据。所以存在工作效率较低,不适合于工业生产的问题。Second, although some flexible printers can meet the needs. However, due to the limited data processing capacity, it cannot handle large-scale data. Therefore, there is a problem that the work efficiency is low and it is not suitable for industrial production.
发明内容Contents of the invention
有鉴于此,本申请提供了一种随机图像的处理方法,用以解决现有技术中传统的印刷方式在工业上不能对随机图像进行实时印刷的问题。In view of this, the present application provides a random image processing method to solve the problem that the traditional printing method in the prior art cannot print random images in real time in industry.
一方面,通过本申请的一个实施例,提供如下技术方案:On the one hand, through an embodiment of the present application, the following technical solutions are provided:
一种随机图像的处理方法,应用在印刷设备控制系统中,所述方法用于获得需要印刷的至少一页中的任一页上的图像数据,所述方法包括:A random image processing method, applied in a printing equipment control system, the method is used to obtain image data on any page of at least one page to be printed, the method includes:
接收主机发送来的栅格化的母版图像数据,及需要从母版数据中随机提取图像的设定行数和设定宽度、及用来表示随机位置的随机位置参数;Receive the rasterized master image data sent by the host, and the set number of rows and set width of the image that needs to be randomly extracted from the master data, and the random position parameter used to represent the random position;
基于所述参数中包括的随机位置参数,获得随机位置参数坐标及所述随机位置参数坐标相关的图像数据存储地址;Obtaining random position parameter coordinates and image data storage addresses related to the random position parameter coordinates based on the random position parameters included in the parameters;
按所述设定宽度和所述设定行数,将所述图像数据存储地址作为起始地址开始读取图像数据;According to the set width and the set number of rows, use the image data storage address as a starting address to start reading image data;
将所述读取的图像数据发送给成像部件,以供所述成像部件成像。Sending the read image data to an imaging component for imaging by the imaging component.
可选的,所述随机位置参数由印刷控制系统控制生成。Optionally, the random position parameter is generated under the control of a printing control system.
可选的,所述按所述设定宽度和所述设定行数,将所述图像数据存储地址作为起始地址开始读取图像数据,具体包括:Optionally, according to the set width and the set number of rows, the image data storage address is used as the starting address to start reading the image data, which specifically includes:
步骤一,以第i行图像数据存储地址作为第i行数据读取的起始地址,读取宽度为所述设定宽度的第i行图像数据,其中i为大于或等于1的整数;Step 1, using the storage address of the i-th row of image data as the start address for reading the i-th row of data, and reading the i-th row of image data whose width is the set width, wherein i is an integer greater than or equal to 1;
步骤二,判断截止所述第i行的已读取图像数据是否小于所述设定行数;Step 2, judging whether the read image data up to the i-th row is smaller than the set number of rows;
步骤三,在小于时,获得第i+1行的坐标及所述第i+1行坐标对应的第i+1行图像数据存储地址;Step 3, when less than, obtain the coordinates of the i+1th row and the image data storage address of the i+1th row corresponding to the coordinates of the i+1th row;
步骤四,从所述第i+1行图像数据存储地址开始读取第i+1行图像数据;Step 4, starting to read the i+1th row of image data from the storage address of the i+1th row of image data;
重复上述步骤二至步骤四,直到已经读取图像数据等于所述设定行数。Repeat the above step 2 to step 4 until the read image data is equal to the set number of lines.
可选的,在所述基于获得随机位置参数坐标及所述随机位置参数坐标对应的图像数据存储地址之前,所述方法还包括:Optionally, before the storage address of the image data corresponding to the obtained random position parameter coordinates and the random position parameter coordinates, the method further includes:
接收从主机发送来的栅格化的母版图像数据;Receive rasterized master image data sent from the host;
从所述母版图像数据中随机提取用于印刷的图像数据;randomly extracting image data for printing from said master image data;
将所述用于印刷的图像数据拆分为数量与所述多个成像部件一致的多份母版图像块。Splitting the image data for printing into a plurality of master image blocks whose number is consistent with the plurality of imaging components.
可选的,所述获得随机位置参数坐标及所述随机位置参数坐标相关的图像数据存储地址,具体包括:Optionally, the obtaining the random position parameter coordinates and the image data storage address related to the random position parameter coordinates specifically includes:
判断所述随机位置参数坐标加上所述设定宽度是否大于所述母版图像的宽度;Judging whether the random position parameter coordinate plus the set width is greater than the width of the master image;
在不大于所述母版图像的宽度时,将所述随机位置参数坐标对应的图像数据存储地址作为图像读取的起始地址。When it is not greater than the width of the master image, the image data storage address corresponding to the random position parameter coordinates is used as the start address of image reading.
另一方面,通过本申请的另一实施例还提供了如下技术方案:On the other hand, another embodiment of the present application also provides the following technical solutions:
一种印刷设备控制系统,用于获得需要印刷的至少一页中的任一页上的图像数据,所述控制系统包括:A printing device control system for obtaining image data on any one of at least one page to be printed, the control system comprising:
控制单元;control unit;
存储器,用于将接收主机发送来的栅格化的母版图像数据进行存储;A memory, used to store the rasterized master image data sent by the receiving host;
参数寄存器,用于存储需要随机提取图像的设定行数和设定宽度、及用来表示随机位置的随机位置参数;The parameter register is used to store the set number of lines and the set width of the image that needs to be randomly extracted, and the random position parameter used to represent the random position;
起始地址计算单元,与所述控制单元连接,用于在所述控制单元的控制下,基于所述参数中包括的随机位置参数,获得随机位置参数坐标及所述随机位置参数坐标相关的图像数据存储地址;A starting address calculation unit, connected to the control unit, used to obtain random position parameter coordinates and images related to the random position parameter coordinates based on the random position parameters included in the parameters under the control of the control unit Data storage address;
地址管理器,分别与所述存储器及所述控制单元连接,用于在所述控制单元控制下,按所述设定宽度和所述设定行数,将所述图像数据存储地址作为起始地址从所述存储器中开始读取图像数据;The address manager is connected to the memory and the control unit respectively, and is used to use the image data storage address as the starting point according to the set width and the set number of rows under the control of the control unit address to start reading image data from the memory;
数据处理单元,用于将所述读取的图像数据发送给成像部件,以供所述成像部件成像。A data processing unit, configured to send the read image data to an imaging component for imaging by the imaging component.
可选的,所述随机位置参数由印刷控制系统控制生成。Optionally, the random position parameter is generated under the control of a printing control system.
可选的,所述地址管理器,具体还用于:Optionally, the address manager is also specifically used for:
执行步骤一,以第i行图像数据存储地址作为第i行数据读取的起始地址,读取宽度为所述设定宽度的第i行图像数据,其中i为大于或等于1的整数;Executing step 1, using the image data storage address of the i-th row as the starting address for reading the i-th row of data, and reading the i-th row of image data whose width is the set width, wherein i is an integer greater than or equal to 1;
执行步骤二,判断截止所述第i行的已读取图像数据是否小于所述设定行数;Executing step 2, judging whether the read image data up to the i-th row is smaller than the set number of rows;
执行步骤三,在小于时,以所述随机位置参数获得第i+1行的随机位置参数坐标及所述第i+1行随机位置参数坐标对应的第i+1行图像数据存储地址;Execute step 3, when less than, use the random position parameter to obtain the random position parameter coordinates of the i+1th row and the image data storage address of the i+1th row corresponding to the random position parameter coordinates of the i+1th row;
执行步骤四,从所述第i+1行图像数据存储地址开始读取第i+1行图像数据;Execute step 4, start reading the image data of the i+1th row from the storage address of the i+1th row of image data;
重复上述步骤二至步骤四,直到已经读取图像数据等于所述设定行数。Repeat the above step 2 to step 4 until the read image data is equal to the set number of lines.
可选的,在所述获得随机位置参数坐标及所述随机位置参数坐标对应的图像数据存储地址之前,所述数据处理单元还用于:Optionally, before the acquisition of the random position parameter coordinates and the image data storage address corresponding to the random position parameter coordinates, the data processing unit is further configured to:
接收从主机发送来的栅格化的母版图像数据;Receive rasterized master image data sent from the host;
从所述母版图像数据中随机提取用于印刷的图像数据;randomly extracting image data for printing from said master image data;
将所述用于印刷的图像数据拆分为数量与所述多个成像部件一致的多份母版图像块。Splitting the image data for printing into a plurality of master image blocks whose number is consistent with the plurality of imaging components.
可选的,所述起始地址计算单元,还用于:Optionally, the initial address calculation unit is also used for:
判断所述随机位置参数坐标加上所述设定宽度是否大于所述母版图像的宽度;Judging whether the random position parameter coordinate plus the set width is greater than the width of the master image;
在不大于所述母版图像的宽度时,将所述随机位置参数坐标对应的图像数据存储地址作为图像读取的起始地址。When it is not greater than the width of the master image, the image data storage address corresponding to the random position parameter coordinates is used as the start address of image reading.
上述技术方案中的一个或多个技术方案,具有如下技术效果或优点:One or more technical solutions in the above technical solutions have the following technical effects or advantages:
一、能够很方便的实现数码印刷中,从同一母版中获取随机图像的印刷任务。使得数码喷墨印刷设备应用领域与灵活性再一次获得了扩展。1. It can easily realize the printing task of obtaining random images from the same master in digital printing. The application field and flexibility of digital inkjet printing equipment have been expanded again.
二、在存储空间足够大的情况下,印刷设备控制系统存储有多个母版,用户可以很方便的进行母版切换,能够满足用户实现灵活的印刷任务。2. When the storage space is large enough, the printing equipment control system stores multiple masters, and the user can easily switch the masters, which can satisfy the user to realize flexible printing tasks.
三、在本申请提供的印刷设备控制系统中,均以通用硬件实现,减少了存储空间浪费的同时又降低了寻找存储地址时的冗余步骤,提高了印刷效率。3. In the printing equipment control system provided by this application, all are realized by general-purpose hardware, which not only reduces the waste of storage space, but also reduces the redundant steps when searching for the storage address, and improves the printing efficiency.
四、通过将图像数据的分拆处理工作交给控制系统来做,有效地降低了主机的工作量,提高了印刷速率。4. By assigning the splitting and processing of image data to the control system, the workload of the host computer is effectively reduced and the printing speed is increased.
五、通过在判断坐标加随机图像宽度大于母版图像时,直接放弃读取地址,有效的避免了在读取图像数据可能存在读不到数据的问题。5. By directly abandoning the reading address when it is judged that the width of the coordinates plus the random image is greater than the master image, the problem that the data may not be read when reading the image data is effectively avoided.
附图说明Description of drawings
图1为本申请实施例中成像部件安装方式的示意图;FIG. 1 is a schematic diagram of an imaging component installation method in an embodiment of the present application;
图2为本申请实施例中随机图像的处理方法流程图;Fig. 2 is the flow chart of the processing method of random image in the embodiment of the present application;
图3为本申请实施例中印刷设备的作业流程图;Fig. 3 is the operation flowchart of printing equipment in the embodiment of the present application;
图4为本申请实施例中印刷设备控制系统的系统模块图;Fig. 4 is a system block diagram of the printing equipment control system in the embodiment of the present application;
图5为本申请实施例中参数寄存器的结构模块图。FIG. 5 is a structural block diagram of a parameter register in an embodiment of the present application.
具体实施方式Detailed ways
在本申请中,主控制计算机(简称主机)通过将栅格化的母版图像数据传送给印刷设备控制系统,例如:高速喷墨印刷设备控制系统。主机将需要随机提取的图像的大小(宽度*长度)、页数以及随机位置参数的生成方式作为参数传递给高速喷墨印刷设备控制系统;当开始印刷时,高速喷墨印刷设备控制系统首先根据设置的随机位置参数生成方式,生成随机位置参数坐标x,y,并且计算该随机位置参数坐标对应的图像数据存储位置,作为数据读取的地址。控制系统从计算获得的地址开始,读取一行设定宽度图像的数据,并根据成像部件的排列方式做进一步处理后或直接送给成像部件成像;当读取到的数据小于设定行数时,继续读取下一行数据,直至将设定图像大小数据获取完毕;当获取的图像页数小于设定页数时,继续生成下一个随机位置参数坐标,并重新计算随机图像的起始地址,重复下一页图像数据的发送,直到完成整个随机图像的印刷任务。In this application, the main control computer (referred to as the host) transmits the rasterized master image data to the printing equipment control system, for example: the high-speed inkjet printing equipment control system. The host computer passes the size (width*length) of the image to be randomly extracted, the number of pages, and the generation method of random position parameters to the high-speed inkjet printing equipment control system as parameters; when printing starts, the high-speed inkjet printing equipment control system first according to The set random position parameter generation method generates random position parameter coordinates x, y, and calculates the image data storage location corresponding to the random position parameter coordinates as the address for data reading. The control system starts from the address obtained by calculation, reads the data of a set width image, and further processes it according to the arrangement of the imaging components or directly sends it to the imaging component for imaging; when the read data is less than the set number of lines , continue to read the next line of data until the data of the set image size is obtained; when the number of image pages acquired is less than the set number of pages, continue to generate the next random position parameter coordinates, and recalculate the starting address of the random image, The sending of the image data of the next page is repeated until the printing task of the entire random image is completed.
下面结合各个附图对本申请实施例技术方案的主要实现原理、具体实施方式及其对应能够达到的有益效果进行详细的阐述。The main realization principles, specific implementation methods and corresponding beneficial effects that can be achieved of the technical solutions of the embodiments of the present application will be described in detail below in conjunction with each accompanying drawing.
请参考图1,为本申请实施例中成像部件一种安装方式的示意图;Please refer to Figure 1, which is a schematic diagram of an installation method of the imaging component in the embodiment of the present application;
由于成像部件单个成像宽度与DPI(Dot Per Inch,即打印精度,指打印机在每英寸所能打印的点)的局限,目前市场上的高速数码喷墨印刷设备多采用品字形拼接的方式来扩展印刷的宽度或者DPI。Due to the limitation of the single imaging width of the imaging component and DPI (Dot Per Inch, that is, the printing accuracy, which refers to the dots that the printer can print per inch), the current high-speed digital inkjet printing equipment on the market mostly adopts the way of character splicing to expand Print width or DPI.
请参考图2,为本申请实施例中随机图像的处理方法流程图;Please refer to FIG. 2, which is a flowchart of a method for processing random images in the embodiment of the present application;
步骤200,接收主机发送来的栅格化的母版图像数据,及需要随机提取图像的设定行数和设定宽度、及用来表示随机位置参数的参数;Step 200, receiving the rasterized master image data sent by the host, and the set number of rows and set width of the image to be randomly extracted, and parameters used to represent random position parameters;
在具体的实施过程中,所述方法应用在印刷设备控制系统中,特别针对高速喷墨印刷设备控制系统,所述方法用于获得需要印刷的至少一页中的任一页上的图像数据,所述随机位置参数生成方式由通过与所述印刷设备控制系统连接的主机确定而生成。为了能够完整的成像一幅图像,图像数据必须经过拆分、处理、并且在不同的时间点送给成像部件成像。In a specific implementation process, the method is applied in a printing equipment control system, especially for a high-speed inkjet printing equipment control system, and the method is used to obtain image data on any page of at least one page to be printed, The generation method of the random position parameter is determined by a host connected to the printing device control system. In order to completely image an image, image data must be split, processed, and sent to imaging components at different time points for imaging.
具体来讲,在本申请中所应用的印刷设备中,多采用主机与高速喷墨印刷设备控制系统协同工作来完成灵活可变的数据处理。首先,主机将需要印刷的图像数据进行栅格化,然后把获取的点阵数据传输给后端的控制系统或者拆分处理以后再传输给后端系统。Specifically, in the printing equipment used in this application, the host computer and the high-speed inkjet printing equipment control system work together to complete flexible and variable data processing. First, the host computer rasterizes the image data that needs to be printed, and then transmits the obtained dot matrix data to the back-end control system or splits it and then transmits it to the back-end system.
随机位置参数的具体设置与用户需要进行随机印刷的需求对应,下面举一个具体的例子作为说明:The specific setting of the random position parameter corresponds to the user's need for random printing. Here is a specific example as an illustration:
用户的母版数据大小为20*30(即20行30列),但是用户只想印刷其中10*10的图像(即10行10列),基于用户的此需求,确定一块大小为10*10的图像的的起始位置作为随机位置参数的坐标。The user's master data size is 20*30 (that is, 20 rows and 30 columns), but the user only wants to print an image of 10*10 (that is, 10 rows and 10 columns), based on the user's needs, determine a block size of 10*10 The starting position of the image as the coordinates of the random position parameter.
另外,在随机图像的获取过程中,如果将母版图像存储在主机端硬盘或者内存中,主机需要不断的读取硬盘或者内存来获取数据,并传输给后端控制系统。我们知道,高速数码喷墨印刷设备的工作效率很高,前端数据的传输速度必须要大于后端消耗的数据速度,才能保证印刷图像的连续性或印刷流程的连续性。当主机不断读取硬盘时,可能会导致整个机器运行效率低下,不能满足数据传输的要求。若使用主机的内存来存储数据,过大的占据主机内存会导致栅格化效率降低,在切换母版图像时,出现数据流断裂,导致印刷工作的中断。In addition, in the process of acquiring random images, if the master image is stored in the hard disk or memory of the host, the host needs to continuously read the hard disk or memory to obtain data and transmit it to the back-end control system. We know that high-speed digital inkjet printing equipment has high work efficiency, and the transmission speed of the front-end data must be greater than the data speed consumed by the back-end in order to ensure the continuity of the printed image or the continuity of the printing process. When the host continuously reads the hard disk, it may cause the entire machine to run inefficiently and cannot meet the requirements of data transmission. If the memory of the host is used to store data, excessive occupation of the memory of the host will reduce the efficiency of rasterization. When switching the master image, the data flow will be broken, resulting in the interruption of the printing work.
基于此原因,本申请采用了在数码印刷控制系统中设立大存储空间,主机将栅格化以后的母版图像传输给高速喷墨印刷设备控制系统,并且由控制系统进行随机图像的处理。这种方式不仅可以将主机从繁重的劳动中解放出来,完成图像的栅格化、监控印刷状态,提高系统稳定性;还可以降低总线传输的压力,降低图像数据在传输中出错的概率。由于印刷控制系统采用硬件方式来处理随机图像,不仅可以提高效率,进行实时处理;还可以将控制系统与机械装置进行联动,减少印刷流程中断的风险。For this reason, this application adopts a large storage space in the digital printing control system, and the host computer transmits the rasterized master image to the high-speed inkjet printing equipment control system, and the control system performs random image processing. This method can not only free the host from heavy labor, complete image rasterization, monitor printing status, and improve system stability; it can also reduce the pressure of bus transmission and reduce the probability of error in image data transmission. Because the printing control system uses hardware to process random images, it can not only improve efficiency and perform real-time processing; it can also link the control system with mechanical devices to reduce the risk of interruption of the printing process.
步骤210,基于所述参数中包括的随机位置参数,获得随机位置参数坐标及所述随机位置参数坐标相关的图像数据存储地址;Step 210, based on the random position parameter included in the parameter, obtain the random position parameter coordinate and the image data storage address related to the random position parameter coordinate;
在具体的实施过程中,由于确定了所述随机位置参数的具体值,所述随机位置参数由印刷控制系统控制生成。In a specific implementation process, since the specific value of the random position parameter is determined, the random position parameter is generated under the control of the printing control system.
进一步的,在所述获得随机位置参数坐标及所述随机位置参数坐标相关的图像数据存储地址时,采用如下方案:Further, when obtaining the random position parameter coordinates and the image data storage addresses related to the random position parameter coordinates, the following scheme is adopted:
判断所述随机位置参数坐标加上所述设定宽度是否大于所述母版图像的宽度;Judging whether the random position parameter coordinate plus the set width is greater than the width of the master image;
在不大于所述母版图像的宽度时,将所述随机位置参数坐标对应的图像数据存储地址作为图像读取的起始地址。When it is not greater than the width of the master image, the image data storage address corresponding to the random position parameter coordinates is used as the start address of image reading.
步骤220,按所述设定宽度和所述设定行数,将所述图像数据存储地址作为起始地址开始读取图像数据;Step 220, according to the set width and the set number of lines, use the image data storage address as the starting address to start reading image data;
具体而言,本步骤可按以下方式进行:Specifically, this step can be carried out as follows:
步骤一,以第i行图像数据存储地址作为第i行数据读取的起始地址,读取宽度为所述设定宽度的第i行图像数据,其中i为大于或等于1的整数;Step 1, using the storage address of the i-th row of image data as the start address for reading the i-th row of data, and reading the i-th row of image data whose width is the set width, wherein i is an integer greater than or equal to 1;
步骤二,判断截止所述第i行的已读取图像数据是否小于所述设定行数;Step 2, judging whether the read image data up to the i-th row is smaller than the set number of rows;
步骤三,在小于时,获得第i+1行的坐标及所述第i+1行坐标对应的第i+1行图像数据存储地址;Step 3, when less than, obtain the coordinates of the i+1th row and the image data storage address of the i+1th row corresponding to the coordinates of the i+1th row;
步骤四,从所述第i+1行图像数据存储地址开始读取第i+1行图像数据;Step 4, starting to read the i+1th row of image data from the storage address of the i+1th row of image data;
重复上述步骤二,三及四,直到已经读取图像数据等于所述设定行数。Repeat steps 2, 3 and 4 above until the read image data is equal to the set number of lines.
通过本步骤,即完成处理主机栅格化后的图像数据中的一页内容。Through this step, the processing of one page of the image data rasterized by the host is completed.
步骤230,将所述读取的图像数据发送给成像部件,以供所述成像部件成像;Step 230, sending the read image data to the imaging component for imaging by the imaging component;
具体来说,接收从主机发送来的栅格化的母版图像数据;Specifically, receive rasterized master image data sent from the host;
从所述母版图像数据中随机提取用于印刷的图像数据;randomly extracting image data for printing from said master image data;
将所述用于印刷的图像数据拆分为数量与所述多个成像部件一致的多份母版图像块。Splitting the image data for printing into a plurality of master image blocks whose number is consistent with the plurality of imaging components.
另外,前述步骤仅完成了一页中随机图像的处理,若还需要进行其他或者多页随机图像的处理,则以页为单位,进行累加计数,判断基于当前母版的随机图像印刷任务中需要印刷的图像页数是否已经完成,如果没有,则继续产生下一个随机位置参数坐标,重新计算新一页的起始位置,并重复上述步骤,直至当前印刷任务完成。In addition, the aforementioned steps only complete the processing of random images in one page. If other or multiple pages of random images need to be processed, the cumulative counting is performed in units of pages to determine the needs of random image printing tasks based on the current master. Whether the number of printed image pages has been completed, if not, continue to generate the next random position parameter coordinates, recalculate the starting position of the new page, and repeat the above steps until the current printing task is completed.
下面请参考图3,为本申请实施例中印刷设备进行作业的流程图;Please refer to FIG. 3 below, which is a flowchart of the operation of the printing equipment in the embodiment of the present application;
步骤310,设置随机参数;Step 310, setting random parameters;
在本申请实施例中,主控制计算机先设置好需要进行处理的图像的随机位置参数,例如,从母版图像大小为20*20的图像中裁出图像为5*5的图像,从此处即可知道随机位置参数的坐标,为对应5*5图像的起始位置。In the embodiment of the present application, the main control computer first sets the random position parameters of the image to be processed, for example, an image of 5*5 is cut out from an image whose master image size is 20*20, and from here The coordinates of the random position parameter can be known, which is the starting position corresponding to the 5*5 image.
步骤320,传输母版图像数据;Step 320, transmitting master image data;
由于在具体的实施过程中,所要印刷的母版图像数据内容可能是一页或多页,在具体实施时,将多页内容中的一页内容传输到印刷设备中;Since in a specific implementation process, the content of the master image data to be printed may be one or more pages, in a specific implementation, one page of content in the multi-page content is transmitted to the printing device;
步骤330,根据参数计算数据读取的位置;Step 330, calculate the position of data reading according to the parameters;
即获取主机传输过来的图像数据中,需要随机印刷的图像数据内容;That is, among the image data transmitted from the host, the image data content that needs to be printed randomly;
步骤340,发送给成像部件成像;Step 340, sending to the imaging component for imaging;
步骤350,判断当前页是否发送完毕;Step 350, judging whether the current page has been sent;
若当前页发送完毕,则进行步骤360,否则返回步骤330,继续当前数据内容中,其他随机图像的读取;If the current page has been sent, then proceed to step 360, otherwise return to step 330 and continue the reading of other random images in the current data content;
步骤360,是否完成了用户设定任务;Step 360, whether the user setting task has been completed;
若完成了用户设定的所要印刷任务,则退出,否则,返回步骤330,继续下一页的数据内容印刷。If the desired printing task set by the user is completed, exit, otherwise, return to step 330 to continue printing the data content of the next page.
下面请参考图4,为本申请实施例中印刷设备控制系统的结构图;Please refer to FIG. 4 below, which is a structural diagram of the printing equipment control system in the embodiment of the present application;
所述系统用于获得需要印刷的至少一页中的任一页上的图像数据,所述系统包括:The system is used to obtain image data on any one of at least one page to be printed, the system comprising:
控制单元10;control unit 10;
存储器20,用于将接收主机发送来的栅格化的母版图像数据进行存储;The memory 20 is used to store the rasterized master image data sent by the receiving host;
参数寄存器30,用于存储需要随机提取图像的设定行数和设定宽度、及用来表示随机位置参数的参数;The parameter register 30 is used to store the set number of lines and the set width of the image that needs to be randomly extracted, and parameters used to represent random position parameters;
起始地址计算单元40,与所述控制单元连接,用于在所述控制单元的控制下,基于所述参数中包括的随机位置参数,获得随机位置参数坐标及所述随机位置参数坐标相关的图像数据存储地址;具体来讲,所述随机位置参数由印刷控制系统控制生成。The starting address calculation unit 40 is connected to the control unit, and is used to obtain the random position parameter coordinates and the random position parameter coordinates related to the random position parameter coordinates under the control of the control unit based on the random position parameters included in the parameters. Image data storage address; specifically, the random position parameter is generated under the control of the printing control system.
地址管理器50,分别与所述存储器及所述控制单元连接,用于在所述控制单元控制下,按所述设定宽度和所述设定行数,将所述图像数据存储地址作为起始地址从所述存储器中开始读取图像数据;The address manager 50 is connected to the memory and the control unit respectively, and is used to use the image data storage address as the starting point according to the set width and the set number of rows under the control of the control unit. start address to start reading image data from the memory;
另外,所述地址管理器,具体还用于:In addition, the address manager is also specifically used for:
执行步骤一,以第i行图像数据存储地址作为第i行数据读取的起始地址,读取宽度为所述设定宽度的第i行图像数据,其中i为大于或等于1的整数;Executing step 1, using the image data storage address of the i-th row as the starting address for reading the i-th row of data, and reading the i-th row of image data whose width is the set width, wherein i is an integer greater than or equal to 1;
执行步骤二,判断截止所述第i行的已读取图像数据是否小于所述设定行数;Executing step 2, judging whether the read image data up to the i-th row is smaller than the set number of rows;
执行步骤三,在小于时,以所述获得第i+1行的坐标及所述第i+1行坐标对应的第i+1行图像数据存储地址;Execute step 3, when less than, obtain the coordinates of the i+1th row and the image data storage address of the i+1th row corresponding to the coordinates of the i+1th row;
执行步骤四,从所述第i+1行图像数据存储地址开始读取第i+1行图像数据;Execute step 4, start reading the image data of the i+1th row from the storage address of the i+1th row of image data;
重复上述步骤二至四,直到已经读取图像数据等于所述设定行数。Repeat steps 2 to 4 above until the read image data is equal to the set number of lines.
数据处理单元60,用于将所述读取的图像数据发送给成像部件70,以供所述成像部件70成像。另外,当有多个成像部件时,在所述基获得随机位置参数坐标及所述随机位置参数坐标对应的图像数据存储地址之前,所述数据处理单元60还包括:The data processing unit 60 is configured to send the read image data to the imaging component 70 for imaging by the imaging component 70 . In addition, when there are multiple imaging components, before the base obtains the random position parameter coordinates and the image data storage address corresponding to the random position parameter coordinates, the data processing unit 60 further includes:
接收模块,用于接收从主机发送来的栅格化的母版图像数据;A receiving module, configured to receive rasterized master image data sent from the host;
提取模块,用于从所述母版图像数据中随机提取用于印刷的图像数据;an extraction module, configured to randomly extract image data for printing from the master image data;
拆分模块,用于将所述用于印刷的图像数据拆分为数量与所述多个成像部件一致的多份母版图像块。A splitting module, configured to split the image data for printing into a plurality of master image blocks whose number is consistent with that of the plurality of imaging components.
请参考图5,为本申请实施例中参数寄存器的结构模块图;Please refer to FIG. 5, which is a structural block diagram of the parameter register in the embodiment of the present application;
如图5所示,参数寄存器中的参数主要包括了两部分,第一部分,由用户从上层操作界面设定的,如随机图像宽度、长度、印刷页数;另一部分,是在数据传输过程中,由控制系统自己计算或记录的,如母版图像宽度、长度、存储空间起始地址、结束地址。As shown in Figure 5, the parameters in the parameter register mainly include two parts. The first part is set by the user from the upper operation interface, such as random image width, length, and number of printed pages; the other part is during data transmission. , which is calculated or recorded by the control system itself, such as the width and length of the master image, the start address and end address of the storage space.
通过使用参数寄存器,提高了装置的灵活性和适应性。By using parameter registers, the flexibility and adaptability of the device are improved.
通过本申请的一个或多个实施例,可以实现如下技术效果:Through one or more embodiments of the present application, the following technical effects can be achieved:
上述技术方案中的一个或多个技术方案,具有如下技术效果或优点:One or more technical solutions in the above technical solutions have the following technical effects or advantages:
一、能够很方便的实现数码印刷中,从同一母版中获取随机图像的印刷任务。使得数码喷墨印刷设备应用领域与灵活性再一次获得了扩展。1. It can easily realize the printing task of obtaining random images from the same master in digital printing. The application field and flexibility of digital inkjet printing equipment have been expanded again.
二、在存储空间足够大的情况下,印刷设备控制系统存储有多个母版,用户可以很方便的进行母版切换,能够满足用户实现灵活的印刷任务。2. When the storage space is large enough, the printing equipment control system stores multiple masters, and the user can easily switch the masters, which can satisfy the user to realize flexible printing tasks.
三、在本申请提供的印刷设备控制系统中,均以通用硬件实现,减少了存储空间浪费的同时又降低了寻找存储地址时的冗余步骤,提高了印刷效率。3. In the printing equipment control system provided by this application, all are realized by general-purpose hardware, which not only reduces the waste of storage space, but also reduces the redundant steps when searching for the storage address, and improves the printing efficiency.
四、通过将图像数据的分拆处理工作交给控制系统来做,有效地降低了主机的工作量,提高了印刷速率。4. By assigning the splitting and processing of image data to the control system, the workload of the host computer is effectively reduced and the printing speed is increased.
五、通过在判断坐标加随机图像宽度大于母版图像时,直接放弃读取地址,有效的避免了在读取图像数据可能存在读不到数据的问题。5. By directly abandoning the reading address when it is judged that the width of the coordinates plus the random image is greater than the master image, the problem that the data may not be read when reading the image data is effectively avoided.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210151093.9A CN103419513B (en) | 2012-05-15 | 2012-05-15 | A kind of processing method of random image and a kind of printing equipment control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210151093.9A CN103419513B (en) | 2012-05-15 | 2012-05-15 | A kind of processing method of random image and a kind of printing equipment control system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103419513A CN103419513A (en) | 2013-12-04 |
CN103419513B true CN103419513B (en) | 2015-09-02 |
Family
ID=49645103
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210151093.9A Expired - Fee Related CN103419513B (en) | 2012-05-15 | 2012-05-15 | A kind of processing method of random image and a kind of printing equipment control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103419513B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111347780B (en) * | 2018-12-21 | 2021-07-27 | 森大(深圳)技术有限公司 | Printing method, printing device, printing equipment and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1683163A (en) * | 2004-04-16 | 2005-10-19 | 佳能株式会社 | Image processing apparatus and method |
CN101383009A (en) * | 2008-09-08 | 2009-03-11 | 北大方正集团有限公司 | Dot matrix data conversion method and device for inkjet printing equipment and inkjet printing system |
JP2010050708A (en) * | 2008-08-21 | 2010-03-04 | Ricoh Co Ltd | Image processor, image processing method, image forming apparatus, program, and recording medium |
-
2012
- 2012-05-15 CN CN201210151093.9A patent/CN103419513B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1683163A (en) * | 2004-04-16 | 2005-10-19 | 佳能株式会社 | Image processing apparatus and method |
JP2010050708A (en) * | 2008-08-21 | 2010-03-04 | Ricoh Co Ltd | Image processor, image processing method, image forming apparatus, program, and recording medium |
CN101383009A (en) * | 2008-09-08 | 2009-03-11 | 北大方正集团有限公司 | Dot matrix data conversion method and device for inkjet printing equipment and inkjet printing system |
Also Published As
Publication number | Publication date |
---|---|
CN103419513A (en) | 2013-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103909730B (en) | Data processing method, device and inkjet printing machine | |
CN109664620B (en) | Print data processing method, device and equipment | |
CN111596869B (en) | Printing data typesetting method and device, printer and storage medium | |
WO2014000659A1 (en) | Printing control method and printer | |
JP2014523822A (en) | Digital inkjet printing synchronization control apparatus and control method | |
US9208414B2 (en) | Bi-color duplex printing method and device | |
CN104423898B (en) | Digital printing method and apparatus | |
CN103419513B (en) | A kind of processing method of random image and a kind of printing equipment control system | |
CN108248218A (en) | A printing method, system and related device of a character jet printing machine | |
JP2012061752A5 (en) | ||
CN104476930B (en) | Large-scale distributed digital ink jet printing control device | |
CN104589788B (en) | Digital printing processing method and device | |
CN104339873A (en) | Ink jetting digital printing device and method supporting perfect printing | |
US8159708B2 (en) | Apparatus for accelerated processing of print data by maximizing word-boundary accesses of image data | |
CN113442581B (en) | Printing method, device, equipment and storage medium | |
CN116775257A (en) | GPU-based high-speed printing method, device, equipment and storage medium | |
CN103448390B (en) | A kind of digital printing control method and equipment | |
CN202186131U (en) | Writing removing adverse printer | |
CN103802496B (en) | A method and device for adjusting the paper-feeding speed of a digital printing system | |
CN108274897B (en) | Printing method and device | |
US20100157333A1 (en) | Printing apparatus and printing method | |
JP2010181999A (en) | Printing system, printer, and print control program | |
CN103186472B (en) | A kind of method of memory management and device and a kind of storer | |
CN104281418A (en) | Electronic supervision code printing method and system | |
CN101354750B (en) | Data processing method, printing equipment, apparatus and system for digital printing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150902 Termination date: 20190515 |
|
CF01 | Termination of patent right due to non-payment of annual fee |