Summary of the invention
The embodiment of the invention provides a kind of data processing method, Apparatus and system that is used for digital printing, in order to solve existing dot data processing mode to front-end computer have relatively high expectations, bigger to the pressure of data transmission, be not suitable for the problem of high speed digital printing equipment.
The embodiment of the invention provides a kind of data processing method that is used for digital printing, comprising:
Printing equipment obtains first data in the original picture and text one line data, and according to effective section width, the preceding paragraph of determining during with data splicing the preceding paragraph data of utilizing in the described line data splices invalid present segment splicing valid data, determines invalid next the section splicing valid data of present segment splicing valid data and present segment splicing from described first data;
According to the image-forming assembly physical width, effectively section width and first data are obtained order, present segment splicing valid data and the preceding paragraph are spliced invalid present segment splicing valid data splice processing, obtain spliced one piece of data;
Arrangement architecture according to imaging point in each image-forming block of described spliced one piece of data correspondence, described spliced one piece of data is carried out data pick-up handle, obtain the one-to-one relationship of each imaging point in each data in the described spliced one piece of data and each image-forming block.
The embodiment of the invention provides a kind of printing equipment, comprising:
Acquiring unit is used for obtaining first data of original picture and text one line data;
Determining unit, be used for according to effective section width, the preceding paragraph of determining during with data splicing the preceding paragraph data of utilizing in the described line data splices invalid present segment splicing valid data, determines invalid next the section splicing valid data of present segment splicing valid data and present segment splicing from first data;
The splicing processing unit is used for according to the image-forming assembly physical width, effectively section width and first data are obtained order, present segment splicing valid data and the preceding paragraph is spliced invalid present segment splicing valid data splice processing, obtains spliced one piece of data;
Extract processing unit, be used for arrangement architecture according to each image-forming block imaging point of described spliced one piece of data correspondence, described spliced one piece of data is carried out data pick-up handle, obtain the one-to-one relationship of each imaging point in each data in the described spliced one piece of data and each image-forming block.
The embodiment of the invention provides the another kind of data processing method that is used for digital printing, comprising:
Reorganize the dot data of original picture and text, obtain each line data of original picture and text;
Send the data in each line data of original picture and text, wherein, carry out the transmission of data in next line data after all data in sending line data.
The embodiment of the invention provides a kind of data processing equipment that is used for digital printing, comprising:
Processing unit is used to reorganize the dot data of original picture and text, obtains each line data of original picture and text;
Transmitting element is used for sending the data of each line data of original picture and text, and carries out the transmission of data in next line data after described transmitting element all data in sending line data.
The embodiment of the invention provides a kind of print system, comprising:
Data processing equipment, be used to reorganize the dot data of original picture and text, obtain each line data of original picture and text, and send the data in each line data of original graph literary composition, wherein, carry out the transmission of data in next line data after all data in sending line data;
Printing equipment, be used for obtaining the data of each line data that data processing equipment sends, and for the data in each line data of obtaining, according to effective section width, the preceding paragraph of determining when utilizing these line data splicing the preceding paragraph data splices invalid present segment splicing valid data, from the described data of obtaining, determine present segment splicing valid data and invalid next section splicing valid data of present segment splicing, and according to the image-forming assembly physical width, effectively section width and data are obtained order, present segment splicing valid data and the preceding paragraph are spliced invalid present segment splicing valid data splice processing, obtain spliced one piece of data, and according to the arrangement architecture of imaging point in each image-forming block of spliced each segment data correspondence, spliced each segment data is carried out data pick-up handle, obtain the one-to-one relationship of each imaging point in each data in spliced each segment data and each image-forming block.
Technical solution of the present invention is combined into as assemblies physical width, effective section width by printing equipment and splices data conditions before, data in each line data of original picture and text of obtaining are spliced processing, obtain spliced each segment data, and spliced each segment data is carried out data pick-up handle, obtain the one-to-one relationship of each imaging point in each data and each image-forming block.Do not need as prior art, each the line data of original picture and text and the imaging point of image-forming block to be carried out alignment processing one by one by front-end computer, again the corresponding relation that processing is obtained by with printing equipment between network be connected and send to printing equipment.Therefore technical solution of the present invention does not need front-end computer to possess bigger storage space, has reduced the requirement to front-end computer; And, by printing equipment each the line data of original picture and text and the imaging point of image-forming block are carried out alignment processing one by one, therefore printing equipment can obtain to handle the corresponding relation that obtains in real time, can be controlled to each image-forming assembly work of picture according to corresponding relation in real time, without any the transmission obstacle, therefore print speed printing speed can increase substantially, and is particularly useful for the high speed digital printing equipment.
Embodiment
The embodiment of the invention proposes to be used for data processing method, the Apparatus and system of digital printing.Before describing technical solution of the present invention, the clear and definite several notions of elder generation:
Line data that each line data in the original picture and text dot data are called original picture and text.Print in the process of original picture and text at single PASS printing equipment, each dot data in the original picture and text one line data all should be distributed to each imaging point of corresponding image-forming block, by the dot data imaging of each imaging point of image-forming block with correspondence, with all imaging joints, just obtain the data line of original graph literary composition again.
The dot data of each image-forming assembly correspondence is called segment data; As seen, line data are made up of multiple segment data.
The network that is used to transmit data between front-end computer and the printing equipment is connected and has certain bit wide L (L is an integer), is that the data of L are called the group data with bit wide.
The data processing method that is used for digital printing in embodiment of the invention proposition, front-end computer is handled each the line data that obtains original picture and text to original picture and text, and by with front-end computer between network be connected, with the group data is that unit sends the data in each line data of original picture and text, wherein, front-end computer should carry out the transmission of data in next line data again after all data in sending line data; Printing equipment obtains each line data of the original picture and text of front-end computer transmission, and each line data of obtaining are carried out segmentation handle with extracting, obtain the one-to-one relationship of each imaging point in dot data and each image-forming block, printing equipment just can be controlled each image-forming assembly work according to this corresponding relation, prints out the picture and text that are consistent with original picture and text.Technical solution of the present invention only needs front-end computer to send data in each line data of original picture and text to printing equipment, do not need front-end computer that each the line data of original picture and text and the imaging point of image-forming block are carried out alignment processing one by one, therefore do not need front-end computer to possess bigger storage space, reduced requirement front-end computer; And, by printing equipment each the line data of original picture and text and the imaging point of image-forming block are carried out alignment processing one by one, therefore printing equipment can obtain to handle the corresponding relation that obtains in real time, can be controlled to each image-forming assembly work of picture according to corresponding relation in real time, without any the transmission obstacle, therefore print speed printing speed can increase substantially, and is particularly useful for the high speed digital printing equipment.
The data processing method that is used for digital printing comprises following process:
One, fragmentation procedure.
Fragmentation procedure is: printing equipment obtains the data in the original picture and text one line data, and according to effective section width, the preceding paragraph of determining when utilizing these line data splicing the preceding paragraph data splices invalid present segment splicing valid data, from the data of obtaining, determine present segment splicing valid data, with invalid next the section splicing valid data of present segment splicing, and according to the image-forming assembly physical width, effectively section width and data are obtained order, to present segment splicing valid data, splice invalid present segment splicing valid data with the preceding paragraph and splice processing, obtain spliced one piece of data.
Wherein, effectively the section width equals the image-forming assembly physical width and deducts the width that image-forming assembly does not use part.Effective section width of each section correspondence can dynamically arrange.And because each image-forming assembly does not use the width of part to be not quite similar, so the effective section width of each section also may be different.When an image-forming assembly and another image-forming assembly have the lap of overlapping and this image-forming assembly not use (lap corresponding data by another image-forming assembly printing time), effective section width of the corresponding section of this image-forming assembly is: this image-forming assembly physical width deducts the width of lap.When an image-forming assembly and two other image-forming assembly have a lap D1 of overlapping and this image-forming assembly not use respectively and another lap D2 when using, effective section width of the corresponding section of this image-forming assembly is: this image-forming assembly physical width deducts the width of lap D1; Certainly, if lap D1 and lap D2 do not use, then effective section width of the corresponding section of this image-forming assembly is: this image-forming assembly physical width deducts the width of lap D1 and D2; If lap D1 and lap D2 use, then effective section width of the corresponding section of this image-forming assembly is this image-forming assembly physical width.
In addition, the printing equipment mode of obtaining data in the original picture and text one line data comprises following two kinds:
Data obtain manner one, printing equipment are the line data that unit obtains original picture and text with the group data.
In this mode, front-end computer is in advance according to the bit wide of organizing data, each line data of original picture and text are divided into continuous multi-group data, front-end computer sends to printing equipment with the group data in the line data in regular turn continuously, and then carries out the transmission of next line data after sending line data.Correspondingly, printing equipment is the line data that unit obtains original picture and text with the group data.
Data obtain manner two, front-end computer are that unit sends the required data of splicing one piece of data to printing equipment with the group data, after printing equipment has spliced one piece of data, send the splicing required data of one piece of data down to printing equipment again.In this mode, front-end computer also is in advance according to the bit wide of group data, and each line data of original picture and text are divided into continuous multi-group data.
With data obtain manner one is example, assumes picture assemblies physical width and effectively the section width is inconsistent, consult shown in Figure 2, first group of data of line data of obtaining from printing equipment, the fragmentation procedure that printing equipment is carried out comprises following flow process:
S201, definite M1 group data of obtaining continuously, the preceding paragraph that this M1 determines when organizing data and utilizing these line data splicing the preceding paragraph data splices invalid present segment splicing valid data (when not utilizing this line data splicing one piece of data before, the preceding paragraph herein splices invalid present segment splicing valid data and is considered as sky) overall width A, should equal first section effectively section width, perhaps should greater than first section effectively the section width and with first section effective difference minimum of section width, and
When overall width A equals first section effective section width, carry out S202;
When overall width A greater than first section effectively the section width and with first section effectively the section width difference hour, carry out S203.
Wherein, when first section effectively the section width is n (n is an integer) times of group data width, M1=n; When first section effectively the section width is not the integral multiple of group data width, when effectively the section width is 9/2 times of group data width such as first section, M1=5, can guarantee like this overall width A greater than first section effectively the section width and with first section effective difference minimum of section width.
S202, equal first section effectively during the section width as overall width A, determine that first section splicing valid data is these M1 group data, the Data Position that the image-forming assembly physical width is corresponding with the difference part of first section effective section width is filled out white data processing, and the difference part corresponding data that obtains after order is spliced valid data and filled out white data processing first section according to data splices, form spliced first segment data and buffer memory, and begin to carry out S201 from next group data adjacent with these M1 group data.
In such cases, first section invalid second section splicing valid data of splicing can be considered as sky.
The purpose of the image-forming assembly physical width Data Position corresponding with the difference part of first section effective section width being filled out white data processing is: on the one hand, do not do action thereby make the imaging point that does not have data obtain clear data; On the other hand, make part overlapping between image-forming assembly that the problem of duplicate printing not take place.
S203~S204, when overall width A greater than first section effectively the section width and with first section effectively the section width difference hour, last group data of these M1 group data are divided into two parts: tail width is that the data a of Δ W1 (is considered as first section invalid second section splicing valid data of splicing, when splicing second segment data, use) and remain the data b of width as L-Δ W1, determine that first section splicing valid data is: other data and data b in these M1 group data except that last group data; The Data Position that the image-forming assembly physical width is corresponding with the difference part of first section effective section width is filled out white data processing, and according to data obtain the order, with first section splicing valid data with fill out difference part corresponding data splicing after the white data processing, form spliced first segment data and buffer memory.Wherein, L is the width of group data, and Δ W1 is the difference between the width of this M1 group data and first section effective section width.
Wherein, when filling out white processing, also can fill out white data processing to data a position earlier, again the image-forming assembly physical width Data Position corresponding with the difference part of first section effective section width filled out white data processing, then, obtain order according to data, the difference part corresponding data splicing with first section splicing valid data, after filling out the data a after the white data processing and filling out white data processing forms spliced first segment data and buffer memory.
Effectively the corresponding Data Position of the difference part of section width can be at section head or section tail with first section for the image-forming assembly physical width, also can be a part at section head, remainder at the section tail, therefore, fill out white processing and can the section of being divided into head fill out white, a section tail and fill out white.
S205, begin to determine continuous M2 group data from next group data adjacent with this M1 group data, the overall width B of this M2 group data and first section invalid second section splicing valid data of splicing should equal second section effectively section width or overall width B should greater than second section effectively the section width and with second section effective difference minimum of section width, and
When overall width B equals second section effective section width, carry out S206;
When overall width B greater than second section effectively the section width and with second section effectively the section width difference hour, carry out S207.
S206, equal second section effectively during the section width as overall width B, determine that second section splicing valid data is these M2 group data, the Data Position that the image-forming assembly physical width is corresponding with the difference part of second section effective section width is filled out white data processing, and according to data obtain the order, with first section invalid second section splicing valid data of splicing, second section splicing valid data with the difference part corresponding data splicing after filling out white data processing, form spliced second segment data and buffer memory; And begin to carry out S201 from next group data adjacent with this M2 group data.
In such cases, second section invalid the 3rd section splicing valid data of splicing can be considered as sky.
S207~S208, when overall width B greater than second section effectively the section width and with second section effectively the section width difference hour, last group data that M2 is organized in the data are divided into two parts: tail width is that the data c of Δ W2 (is considered as second section invalid the 3rd section splicing valid data of splicing, when splicing the 3rd segment data, use) and remain the data d of width as L-Δ W2, determine that second section splicing valid data is: other data and data d in these M2 group data except that last group data; The Data Position that the image-forming assembly physical width is corresponding with the difference part of second section effective section width is filled out white data processing, and according to data obtain the order, with first section invalid second section splicing valid data of splicing, second section splicing valid data with the difference part corresponding data splicing after filling out white data processing, form spliced second segment data and buffer memory; From next group data adjacent, according to the method identical remaining line data are carried out staging treating, afterwards up to the whole staging treating of these line data are finished with S205~S208 with these M2 group data.
Wherein, L is the width of group data, and Δ W2 is the difference between overall width B and the effective section width.
Above-mentioned S201~S208 describes be the image-forming assembly physical width with the effective inconsistent situation of section width under to the fragmentation procedure of dot data.If the image-forming assembly physical width is with effectively the section width is consistent, then similar to the fragmentation procedure and the above-mentioned S201~S208 of dot data, difference only is, because the image-forming assembly physical width is zero with the difference of effective section width, therefore correspondingly, in the dot data fragmentation procedure, do not need to the image-forming assembly physical width and effectively the corresponding Data Position of the difference part of section width fill out white data processing, do not comprise the difference part corresponding data of filling out after the white data processing in the data of being spliced yet.But usually, the image-forming assembly physical width is inconsistent with an effective section width.
With above-mentioned data obtain manner two is example, assumes picture assemblies physical width and effectively the section width is inconsistent, consults shown in Figure 3ly, and the fragmentation procedure that printing equipment is carried out comprises following flow process:
S301, front-end computer are unit with the group data, send the data that are not sent out in the original picture and text one line data; Printing equipment obtains the group data that front-end computer sends, and accumulative total has been obtained the width of data after whenever obtaining one group of data, the preceding paragraph of determining when obtaining data and utilize these line data splicing the preceding paragraph data splices invalid present segment splicing valid data (when not utilizing this line data splicing one piece of data before, the preceding paragraph herein splices invalid present segment splicing valid data and is considered as sky) overall width A equal first section effectively during the section width, the notice front-end computer suspends transmission, carries out S302; Perhaps
Up to overall width A greater than first section effectively the section width and with first section effectively the section width difference hour, the notice front-end computer suspends and sends, and carries out S303.
S302, equal first section effectively during the section width as overall width A, determine the data of first section splicing valid data for having obtained, the Data Position that the image-forming assembly physical width is corresponding with the difference part of first section effective section width is filled out white data processing, and according to data obtain the order, first section splicing valid data and this are filled out difference part corresponding data splicing after the white data processing, form spliced first segment data and buffer memory, return afterwards and carry out S301.
In such cases, first section invalid second section splicing valid data of splicing can be considered as sky.
S303~S304, when overall width A greater than first section effectively the section width and with first section effectively the section width difference hour, last group data of obtaining are divided into: tail width is that the data a of Δ W1 (is considered as first section invalid second section splicing valid data of splicing, when splicing second segment data, use) and remain the data b of width as L-Δ W1, determine that first section splicing valid data is: obtained other data and data b except that last group data in the data; The Data Position that the image-forming assembly physical width is corresponding with the difference part of first section effective section width is filled out white data processing, and according to data obtain the order, first section splicing valid data and this are filled out difference part corresponding data splicing after the white data processing, form spliced first segment data and buffer memory, continue to carry out S305.
Wherein, L is the width of group data, and Δ W1 is the overall width that obtained data and first section effective difference between section width.
It is unit that S305, front-end computer continue with the group data, sends the data that are not sent out in the original picture and text one line data; Printing equipment obtains the group data that front-end computer sends, and accumulative total has been obtained the width of data after whenever obtaining one group of data, equal second section effectively during section width up to first section invalid second section splicing valid data of splicing and the overall width B that obtained data, the notice front-end computer suspends transmission, carries out S306; Perhaps
Up to overall width B greater than second section effectively the section width and with second section effectively the section width difference hour, the notice front-end computer suspends and sends, and carries out S307.
S306, equal second section effectively during the section width as overall width B, determine that second section splicing valid data is for obtaining data, to fill out white data processing to the image-forming assembly physical width Data Position corresponding with the difference part of second section effective section width, and according to data obtain the order, first section invalid second section splicing valid data of splicing, second section splicing valid data and this are filled out the difference part corresponding data splicing after the white data processing, form spliced second segment data and buffer memory, return afterwards and carry out S301.
In such cases, second section invalid the 3rd section splicing valid data of splicing can be considered as sky.
S307~S308, when overall width B greater than second section effectively the section width and with second section effectively the section width difference hour, last group data of obtaining are divided into: tail width is that the data c of Δ W2 (is considered as second section invalid the 3rd section splicing valid data of splicing, when splicing the 3rd segment data, use) and remain the data d of width as L-Δ W2, determine that second section splicing valid data is: obtained other data and data d except that last group data in the data; The Data Position that the image-forming assembly physical width is corresponding with the difference part of second section effective section width is filled out white data processing, and according to data obtain the order, first section invalid second section splicing valid data of splicing, second section splicing valid data and this are filled out the difference part corresponding data splicing after the white data processing, form spliced one piece of data and buffer memory; Circulation is afterwards carried out S305~S308 up to the whole staging treating of line data are finished.
Wherein, L is the width of group data, and Δ W2 is overall width B and second section effective difference between section width.
Above-mentioned S301~S308 describes be the image-forming assembly physical width with the effective inconsistent situation of section width under to the fragmentation procedure of dot data.If the image-forming assembly physical width is with effectively the section width is consistent, then similar to the fragmentation procedure and the above-mentioned S301~S308 of dot data, difference only is, because the image-forming assembly physical width is zero with the difference of effective section width, therefore correspondingly, in the dot data fragmentation procedure, do not need to the image-forming assembly physical width and effectively the corresponding Data Position of the difference part of section width fill out white data processing, do not comprise the difference part corresponding data of filling out after the white data processing in the data of being spliced yet.But usually, the image-forming assembly physical width is inconsistent with an effective section width.
Two, data pick-up processing procedure.
The data pick-up processing procedure is: printing equipment is according to the arrangement architecture of imaging point in each image-forming block of spliced one piece of data correspondence, spliced this segment data is carried out data pick-up handle, obtain the one-to-one relationship of each imaging point in each data in this segment data and each image-forming block.
Consult shown in Figure 4ly, the data pick-up processing procedure comprises following flow process:
S401, obtain the spliced one piece of data of buffer memory and it is latched.
The purpose that latchs is to enable that the current spliced one piece of data that latchs is carried out the interval to take out a little and reconfigure.
The arrangement architecture of imaging point in each image-forming block of this segment data correspondence that S402, basis latch carries out data pick-up to this segment data that latchs and handles, and makes each data in this segment data corresponding one by one with each imaging point of each image-forming block.
The method of carrying out the data pick-up processing is:
Suppose that an image-forming assembly is made up of S image-forming block, the DPI of single image-forming block is the M position, so in spliced one piece of data, first M bit data is first imaging point that belongs to first image-forming block in the image-forming assembly, second M bit data is first imaging point that belongs to second image-forming block in the image-forming assembly, and the like, S M bit data is first imaging point that belongs to S image-forming block; S+1 M bit data is second imaging point that belongs to first image-forming block, S+2 M bit data is second imaging point that belongs to second image-forming block in the image-forming assembly, and the like, obtain and each imaging point of each image-forming block data one to one.
S403, with the storage of the one-to-one relationship of each data and each imaging point.
In like manner, according to the described method of S401~S403, can carry out data pick-up to other spliced every segment data of buffer memory and handle.
Consult shown in Figure 5ly, the embodiment of the invention also proposes a kind of printing equipment, comprising:
Acquiring unit 501 is used for obtaining first data of original picture and text one line data;
Determining unit 502, the preceding paragraph that is used for according to effective section width and determines when utilizing data splicing the preceding paragraph data of these line data splices invalid present segment splicing valid data, determines invalid next the section splicing valid data of present segment splicing valid data and present segment splicing from first data;
Splicing processing unit 503, be used for obtaining order according to image-forming assembly physical width, effective section width and first data, present segment splicing valid data and the preceding paragraph are spliced invalid present segment splicing valid data splice processing, obtain spliced one piece of data;
Extract processing unit 504, be used for arrangement architecture according to each image-forming block imaging point of above-mentioned spliced one piece of data correspondence, above-mentioned spliced one piece of data is carried out data pick-up handle, obtain the one-to-one relationship of each imaging point in each data in the above-mentioned spliced one piece of data and each image-forming block.
Consult shown in Figure 6ly, the embodiment of the invention also proposes a kind of data processing equipment that is used for digital printing, comprising:
Processing unit 601 is used to reorganize the dot data of original picture and text, obtains each line data of original picture and text;
Transmitting element 602 is used for sending the data of each line data of original picture and text, and carries out the transmission of data in next line data after transmitting element 602 all data in sending line data.
Consult shown in Figure 7ly, the embodiment of the invention also proposes a kind of print system, comprising:
Data processing equipment 701, be used to reorganize the dot data of original picture and text, obtain each line data of original picture and text, and send the data in each line data of original graph literary composition, wherein, carry out the transmission of data in next line data after all data in sending line data;
Printing equipment 702, be used for obtaining the data of each line data that data processing equipment 701 sends, and for the data in each line data of obtaining, according to effective section width, the preceding paragraph of determining when utilizing these line data splicing the preceding paragraph data splices invalid present segment splicing valid data, from the described data of obtaining, determine present segment splicing valid data and invalid next section splicing valid data of present segment splicing, and according to the image-forming assembly physical width, effectively section width and data are obtained order, present segment splicing valid data and the preceding paragraph are spliced invalid present segment splicing valid data splice processing, obtain spliced one piece of data, and according to the arrangement architecture of imaging point in each image-forming block of spliced each segment data correspondence, spliced each segment data is carried out data pick-up handle, obtain the one-to-one relationship of each imaging point in each data in spliced each segment data and each image-forming block.
Wherein, data processing equipment 701 can be a computing machine.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.