CN106648481A - Processing method and device and printing control method and device - Google Patents

Processing method and device and printing control method and device Download PDF

Info

Publication number
CN106648481A
CN106648481A CN201611233168.2A CN201611233168A CN106648481A CN 106648481 A CN106648481 A CN 106648481A CN 201611233168 A CN201611233168 A CN 201611233168A CN 106648481 A CN106648481 A CN 106648481A
Authority
CN
China
Prior art keywords
block
pixels
character
determined
intercepting
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.)
Granted
Application number
CN201611233168.2A
Other languages
Chinese (zh)
Other versions
CN106648481B (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.)
Zhuhai Pantum Electronics Co Ltd
Original Assignee
Zhuhai Seine 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 Zhuhai Seine Technology Co Ltd filed Critical Zhuhai Seine Technology Co Ltd
Priority to CN201611233168.2A priority Critical patent/CN106648481B/en
Publication of CN106648481A publication Critical patent/CN106648481A/en
Application granted granted Critical
Publication of CN106648481B publication Critical patent/CN106648481B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1208Improving or facilitating administration, e.g. print management resulting in improved quality of the output result, e.g. print layout, colours, workflows, print preview

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Character Discrimination (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention provides a processing method and device based on document interception parts and a printing control method and device, and relates to the technical field of imaging control. An overlapped part of every two adjacent interception parts can be automatically identified and corrected, so that the process that printing is conducted according to multiple interception parts is more convenient. The method comprises the steps that multiple interception parts which are sequentially intercepted on the basis of a document are acquired, and every two adjacent interception parts serve as an interception combination; overlapped character correction treatment is conducted on each of the interception combinations, wherein whether an overlapped character part exists in the front interception part and the back interception part or not in the interception combination, and the overlapped character part is the end part of the front interception part.

Description

Processing method and its device, print control program and device
【Technical field】
The present invention relates to be imaged control technology field, more particularly to it is a kind of based on document intercept part processing method and its Device, print control program and device.
【Background technology】
At present, when the printing of the format file such as webpage, pdf, word is carried out, sometimes user only wants to print Oneself partial content interested, it is common practice to, the screenshotss plug-in unit or other screenshotss that user is carried by browser is soft Part, in the document browsed from user, captures multiple users intercepting partial content interested, then by multiple interceptings of capture Parts of images is stitched together, and forms a stitching image, afterwards stitching image is sent into printer and is printed.
In process of the present invention is realized, inventor has found that at least there are the following problems in prior art:
Especially, if the multiple intercepting parts of images for being captured are by rolling a document, then using screenshotss plug-in unit Or instrument is when capturing one by one, there is the part of overlap between the multiple intercepting parts of images for often capturing, need user manually will The part of overlap is deleted, then again by it is multiple intercepting parts of images be stitched together, printer is then forwarded to afterwards and is printed, Above-mentioned user deletes manually the operation of repeating part, wastes time and energy, and makes troubles to user.
【The content of the invention】
In view of this, a kind of processing method based on document intercepting part and its device are embodiments provided, is beaten Printing control method and device, can automatically identify the two neighboring lap for intercepting part presence and correct, without the need for user It is manual to intercept the lap deletion that part is present by two so that more square according to the process that multiple intercepting parts are printed Just.
On the one hand, there is provided it is a kind of based on document intercept part processing method, including:
The multiple intercepting parts intercepted successively based on document are obtained, the adjacent intercepting part of each two is used as an intercepting group Close;
Being respectively directed to all each intercepting combinations intercepted in combination carries out overlay text correcting process;
Intercepting combination in each being respectively directed in all intercepting combinations carries out the process of overlay text correcting process In, carrying out overlay text correcting process for each intercepting combination includes:
In judging the intercepting combination, formerly intercept part and whether there is Chong Die word segment in rear intercepting part, The word segment of the overlap is the latter end for formerly intercepting part, and the word segment of the overlap is in rear intercepting part Start-up portion;
If so, then the word segment deletion of part or the overlap described in rear intercepting part will formerly be intercepted.
Specifically, it is described to judge in intercepting combination, formerly intercept part with rear intercepting part with the presence or absence of Chong Die The process of word segment include:
Judge whether the last character for formerly intercepting part is identical with least one character in rear intercepting part;
If, it is determined that it is true to treat with the last character identical character for formerly intercepting part in rear intercepting part Determine character;
The number of the character to be determined is m, and m is the integer more than or equal to 1;
For character to be determined each described, i is judged whether, make formerly to intercept in part by i-th character to most The character string of latter character composition constitutes character string phase by first character with rear intercepting part to the character to be determined Together, i is the integer more than or equal to 1, the character being made up of i-th character to last character in the first intercepting part The character of the number of characters of string and the character string being made up of to the character to be determined first character in rear intercepting part Number is equal;
If, it is determined that the character string that is made up of i-th character to last character in the first intercepting part or The character string being made up of first character to the character to be determined in rear intercepting part described in person is lap to be determined;
When a lap to be determined is only existed, the character portion that the lap to be determined is the overlap is determined Point;
When there is multiple laps to be determined, determine that the most lap to be determined of number of characters is the overlap Word segment.
Specifically, it is described that i is judged whether for character to be determined each described, make formerly to intercept in part by i-th Character string that individual character to last character is constituted with rear intercepting part by first character to the character group to be determined Into character string it is identical, i is the integer more than or equal to 1, by i-th character to the last character in the first intercepting part The number of characters of the character string of symbol composition is made up of in rear intercepting part with described first character to the character to be determined The number of characters of character string is equal;If, it is determined that by i-th character to last character group in the first intercepting part Into character string or the character string being made up of first character to the character to be determined in rear intercepting part to treat really Determining the process of lap includes:
Judge that whether the character to be determined is the first character in rear intercepting part;
If so, then the character to be determined is lap to be determined;
If it is not, then judge formerly to intercept successively according to the value of w the a-w character of part with the of rear intercepting part Whether b-w character be identical, until the current value of w makes formerly to intercept the a-w character of part and in rear intercepting part The b-w character is differed, or until the current value of w makes a-w=1, or be until the current value of w makes b-w=1, a The sequence digit of last character in part is formerly intercepted, b is the sequence digit of the character to be determined in rear intercepting part, The value of w is followed successively by 1,2 ..., p-1, p is the minimum of a value in a and b;
When the current value of w makes b-w=1, it is determined that formerly intercepting in part by the a-w character to last character The character string of composition or the character string being made up of first character to b-th character in rear intercepting part are overlap to be determined Part.
Alternatively, intercepting combinations in each being respectively directed in all intercepting combinations carries out overlay text correcting process Process before, also include:
Each in the plurality of intercepting part intercepts the pixel-value profile partly generated to intercepting part, First coordinate of the pixel-value profile is used to represent the lengthwise position for intercepting part, the second seat of the pixel-value profile Mark for representing the pixel value intercepted in part, according to white space by the pixel-value profile in the side of first coordinate It is divided into multiple block of pixels upwards, each block of pixels is used to represent the pixel corresponding to the lengthwise position interval for intercepting part Value, has white space between the adjacent block of pixels of each two;
It is described to judge in the intercepting combination, formerly to intercept part and whether there is Chong Die character portion in rear intercepting part Point, the word segment of the overlap is the latter end for formerly intercepting part, and the word segment of the overlap is in rear intercepting portion The start-up portion for dividing:If so, the process that then will formerly intercept part or the word segment of overlap is deleted in rear intercepting part Including:
In judging intercepting combination, formerly intercept the corresponding pixel-value profile in part with the corresponding picture in rear intercepting part With the presence or absence of the block of pixels region for overlapping in plain Distribution value figure, the block of pixels region of the overlap is right in rear intercepting part The latter end of the pixel map answered, the block of pixels region of the overlap is the formerly corresponding pixel map in intercepting part Start-up portion;
If so, then part will formerly be intercepted or described in rear intercepting part corresponding to the block of pixels region of overlap Word segment is deleted.
Specifically, it is described to judge in the intercepting combination, formerly to intercept the corresponding pixel-value profile in part and in rear intercepting Process in the corresponding pixel-value profile in part with the presence or absence of the block of pixels region for overlapping includes:
Judge formerly to intercept last block of pixels of the corresponding pixel-value profile in part whether with rear intercepting portion At least one block of pixels divided is identical;
If, it is determined that the pixel value corresponding with part is formerly intercepted in the corresponding pixel-value profile in rear intercepting part Last block of pixels identical block of pixels of distribution map is block of pixels to be determined;
The number of the block of pixels to be determined is M, and M is the integer more than or equal to 1;
For block of pixels to be determined each described, I is judged whether, make formerly to intercept the corresponding pixel value point in part The contiguous pixels block being made up of i-th block of pixels to last block of pixels in Butut is corresponding with rear intercepting part Identical to the contiguous pixels block that the block of pixels to be determined is constituted by first block of pixels in pixel-value profile, I is big In or integer equal to 1, by i-th block of pixels to last in the corresponding pixel-value profile in the first intercepting part The block of pixels number of the contiguous pixels block of block of pixels composition is with described in the corresponding pixel-value profile in rear intercepting part In the block of pixels number of contiguous pixels block that is made up of to the block of pixels to be determined first block of pixels it is equal;
If, it is determined that by i-th block of pixels to last in the corresponding pixel-value profile in the first intercepting part The contiguous pixels block of one block of pixels composition or it is described in the corresponding pixel-value profile in rear intercepting part by first Individual block of pixels to the contiguous pixels block that the block of pixels to be determined is constituted is lap to be determined;
When a lap to be determined is only existed, the block of pixels that the lap to be determined is the overlap is determined Region;
When there is multiple laps to be determined, determine that the most lap to be determined of block of pixels number is described The block of pixels region of overlap.
Specifically, described to judge whether I for block of pixels to be determined each described, it is right to make formerly to intercept part The contiguous pixels block being made up of i-th block of pixels to last block of pixels in the pixel-value profile answered with rear section Take the contiguous pixels area being made up of to the block of pixels to be determined first block of pixels in the corresponding pixel-value profile in part Block is identical, and I is the integer more than or equal to 1, by i-th pixel region in the corresponding pixel-value profile in the first intercepting part Block is corresponding in rear intercepting part with described to the block of pixels number of the contiguous pixels block of last block of pixels composition The block of pixels of the contiguous pixels block being made up of to the block of pixels to be determined first block of pixels in pixel-value profile Number is equal;If, it is determined that by i-th block of pixels to last in the corresponding pixel-value profile in the first intercepting part The contiguous pixels block of one block of pixels composition or it is described in the corresponding pixel-value profile in rear intercepting part by first Individual block of pixels to the process that the contiguous pixels block that the block of pixels to be determined is constituted is lap to be determined includes:
Judge whether the block of pixels to be determined is first pixel in the corresponding pixel-value profile in rear intercepting part Block;
If so, then the block of pixels to be determined is lap to be determined;
If it is not, then being judged successively formerly to intercept the A-W pixel in the corresponding pixel-value profile in part according to the value of W Block with the corresponding pixel-value profile in rear intercepting part the B-W block of pixels it is whether identical, until the current value of W Make formerly to intercept in the corresponding pixel-value profile in part the A-W block of pixels with the corresponding pixel value point in rear intercepting part The B-W block of pixels is differed in Butut, or until the current value of W makes A-W=1, or until the current value of W makes B-W=1, A are the sequence digit for formerly intercepting last block of pixels in the corresponding pixel-value profile in part, and B is rear Intercept the sequence digit of the block of pixels to be determined in the corresponding pixel-value profile in part, the value of W is followed successively by 1,2 ..., P- 1, P is the minimum of a value in A and B;
When the current value of W makes B-W=1, it is determined that formerly intercepting in the corresponding pixel-value profile in part by A-W Block of pixels is to the contiguous pixels block of last block of pixels composition or in the corresponding pixel Distribution value in rear intercepting part The contiguous pixels block being made up of first block of pixels to the B block of pixels in figure is lap to be determined.
On the other hand, there is provided a kind of print control program, including:
The above-mentioned processing method that part is intercepted based on document;
Obtain and the multiple intercepting parts after the disposal methods of part are intercepted based on document by described, and according to described Multiple parts that intercept generate image to be printed;
The image to be printed is sent to image forming apparatus.
On the other hand, there is provided it is a kind of based on document intercept part processing meanss, including:
Part acquisition module is intercepted, for obtaining the multiple intercepting parts intercepted successively based on document, each two is adjacent Intercept part and intercept combination as one;
Correcting module, for being respectively directed to all each intercepting combinations intercepted in combination overlay text Corrections Division is carried out Reason;
The correcting module specifically for, for each intercepting combination carry out overlay text correcting process during, In judging the intercepting combination, formerly intercept part and whether there is Chong Die word segment, the overlap in rear intercepting part Word segment be formerly intercept part latter end, the word segment of the overlap is the initial part in rear intercepting part Point;If so, then the word segment deletion of part or the overlap described in rear intercepting part will formerly be intercepted.
Specifically, the correcting module includes:
First character judging unit, for judge formerly to intercept the last character of part whether with rear intercepting part At least one character it is identical;If, it is determined that it is identical with the last character for formerly intercepting part in rear intercepting part Character be character to be determined;The number of the character to be determined is m, and m is the integer more than or equal to 1;
Second character judging unit, for for character to be determined each described, judging whether i, makes formerly intercepting The character string being made up of i-th character to last character in part with treated to this by first character in rear intercepting part Determine that character composition character string is identical, i is the integer more than or equal to 1, by i-th character to most in the first intercepting part The number of characters of the character string of latter character composition with it is described in rear intercepting part by first character to the word to be determined The number of characters of the character string of symbol composition is equal;If, it is determined that by i-th character to last in the first intercepting part The character string or the character being made up of to the character to be determined first character in rear intercepting part of individual character composition Go here and there as lap to be determined;
Determining unit, for when a lap to be determined is only existed, determining that the lap to be determined is described The word segment of overlap;When there is multiple laps to be determined, determine that the most lap to be determined of number of characters is institute State the word segment of overlap.
Specifically, the second character judging unit is specifically for judging whether the character to be determined is in rear intercepting portion The first character for dividing;
If so, then the character to be determined is lap to be determined;
If it is not, then judge formerly to intercept successively according to the value of w the a-w character of part with the of rear intercepting part Whether b-w character be identical, until the current value of w makes formerly to intercept the a-w character of part and in rear intercepting part The b-w character is differed, or until the current value of w makes a-w=1, or be until the current value of w makes b-w=1, a The sequence digit of last character in part is formerly intercepted, b is the sequence digit of the character to be determined in rear intercepting part, The value of w is followed successively by 1,2 ..., p-1, p is the minimum of a value in a and b;
When the current value of w makes b-w=1, it is determined that formerly intercepting in part by the a-w character to last character The character string of composition or the character string being made up of first character to b-th character in rear intercepting part are overlap to be determined Part.
Alternatively, said apparatus also include:Distribution map generation module, for each in the plurality of intercepting part The pixel-value profile partly generated to part should be intercepted is intercepted, the first coordinate of the pixel-value profile is used for expression and cuts The lengthwise position of part is taken, the second coordinate of the pixel-value profile is used to represent the pixel value intercepted in part, according to sky The pixel-value profile is divided into multiple block of pixels by white region on the direction of first coordinate, and each block of pixels is used The pixel value corresponding to the lengthwise position interval of part is intercepted in expression, there is clear area between the adjacent block of pixels of each two Domain;
The correcting module specifically for, for each intercepting combination carry out overlay text correcting process during, In judging intercepting combination, formerly intercept the corresponding pixel-value profile in part with the corresponding pixel Distribution value in rear intercepting part With the presence or absence of the block of pixels region for overlapping in figure, the block of pixels region of the overlap is pixel corresponding in rear intercepting part The latter end of distribution map, the block of pixels region of the overlap is the initial part for formerly intercepting the corresponding pixel map in part Point;If so, then part or the word described in rear intercepting part corresponding to the block of pixels region of overlap will formerly be intercepted Delete part.
Specifically, the correcting module includes:
First distribution map judging unit, for judging formerly to intercept last picture of the corresponding pixel-value profile in part Whether plain block is identical with least one block of pixels in rear intercepting part;If, it is determined that it is corresponding in rear intercepting part Last block of pixels identical pixel region of pixel-value profile corresponding with part is formerly intercepted in pixel-value profile Block is block of pixels to be determined;The number of the block of pixels to be determined is M, and M is the integer more than or equal to 1;
Second distribution map judging unit, for for block of pixels to be determined each described, judging whether I, makes First intercept the contiguous pixels being made up of to last block of pixels i-th block of pixels in the corresponding pixel-value profile in part Block be made up of to the block of pixels to be determined first block of pixels in the corresponding pixel-value profile in rear intercepting part Contiguous pixels block it is identical, I is the integer more than or equal to 1, in the corresponding pixel-value profile in the first intercepting part The block of pixels number of the contiguous pixels block being made up of i-th block of pixels to last block of pixels is with described at rear section Take the contiguous pixels area being made up of to the block of pixels to be determined first block of pixels in the corresponding pixel-value profile in part The block of pixels number of block is equal;If, it is determined that by i-th picture in the corresponding pixel-value profile in the first intercepting part The contiguous pixels block of plain block to last block of pixels composition is described in the corresponding pixel value point in rear intercepting part The contiguous pixels block being made up of first block of pixels to the block of pixels to be determined in Butut is lap to be determined;
Determining unit, for when a lap to be determined is only existed, determining that the lap to be determined is described The block of pixels region of overlap;When there is multiple laps to be determined, most to be determined heavy of block of pixels number is determined Folded part is the block of pixels region of the overlap.
Specifically, the second distribution map judging unit is specifically for judging whether the block of pixels to be determined is rear Intercept first block of pixels in the corresponding pixel-value profile in part;
If so, then the block of pixels to be determined is lap to be determined;
If it is not, then being judged successively formerly to intercept the A-W pixel in the corresponding pixel-value profile in part according to the value of W Block with the corresponding pixel-value profile in rear intercepting part the B-W block of pixels it is whether identical, until the current value of W Make formerly to intercept in the corresponding pixel-value profile in part the A-W block of pixels with the corresponding pixel value point in rear intercepting part The B-W block of pixels is differed in Butut, or until the current value of W makes A-W=1, or until the current value of W makes B-W=1, A are the sequence digit for formerly intercepting last block of pixels in the corresponding pixel-value profile in part, and B is rear Intercept the sequence digit of the block of pixels to be determined in the corresponding pixel-value profile in part, the value of W is followed successively by 1,2 ..., P- 1, P is the minimum of a value in A and B;
When the current value of W makes B-W=1, it is determined that formerly intercepting in the corresponding pixel-value profile in part by A-W Block of pixels is to the contiguous pixels block of last block of pixels composition or in the corresponding pixel Distribution value in rear intercepting part The contiguous pixels block being made up of first block of pixels to the B block of pixels in figure is lap to be determined.
On the other hand, there is provided a kind of print control unit, including:
The above-mentioned processing meanss that part is intercepted based on document;
Print processing module, for obtaining multiple sections after the processing meanss that part is intercepted based on document are processed Part is taken, and image to be printed is generated according to the plurality of part that intercepts;
Sending module, for the image to be printed to be sent to image forming apparatus.
The processing method and its device, print control program and dress that part is intercepted based on document provided in an embodiment of the present invention Put, carry out judging whether to need word correcting process by the intercepting part adjacent to each two, that is, judge formerly to intercept part Latter end it is whether overlap with the start-up portion in rear intercepting part, if overlap, will formerly intercept automatically part or The word segment overlapped in part is intercepted afterwards to delete, without the need for user the word segment overlapped in each intercepting part is deleted manually, make To intercept the process that printed of part convenient according to multiple.
【Description of the drawings】
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be attached to what is used needed for embodiment Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this area For those of ordinary skill, without having to pay creative labor, can be with other attached according to these accompanying drawings acquisitions Figure.
Fig. 1 is a kind of structured flowchart of terminal in the embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of the processing method that part is intercepted based on document in the embodiment of the present invention;
Fig. 3 is the part schematic flow sheet in the processing method of Fig. 2;
Fig. 4 is the part schematic flow sheet in the processing method of Fig. 3;
Fig. 5 is the part schematic flow sheet in the processing method of Fig. 4;
Fig. 6 is the schematic flow sheet of another kind of processing method that part is intercepted based on document in the embodiment of the present invention;
Fig. 7 is that one kind formerly intercepts the corresponding pixel-value profile in part in the embodiment of the present invention three;
Fig. 8 is a kind of in the corresponding pixel-value profile in rear intercepting part in the embodiment of the present invention three;
Fig. 9 is the part schematic flow sheet in the processing method of Fig. 6;
Figure 10 is the part schematic flow sheet in the processing method of Fig. 9;
Figure 11 is the part schematic flow sheet in the processing method of Figure 10;
Figure 12 is a kind of structured flowchart of the processing meanss that part is intercepted based on document in the embodiment of the present invention;
Figure 13 is the structured flowchart of another kind of processing meanss that part is intercepted based on document in the embodiment of the present invention;
Figure 14 is the structured flowchart of another kind of processing meanss that part is intercepted based on document in the embodiment of the present invention;
Figure 15 is the structured flowchart of another kind of processing meanss that part is intercepted based on document in the embodiment of the present invention.
【Specific embodiment】
In order to be better understood from technical scheme, the embodiment of the present invention is retouched in detail below in conjunction with the accompanying drawings State.
It will be appreciated that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.Base Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its Its embodiment, belongs to the scope of protection of the invention.
The term for using in embodiments of the present invention is, only merely for the purpose of description specific embodiment, and to be not intended to be limiting The present invention." one kind ", " described " and " being somebody's turn to do " of singulative used in the embodiment of the present invention and appended claims It is also intended to include most forms, unless context clearly shows that other implications.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation of description affiliated partner, represent There may be three kinds of relations, for example, A and/or B can be represented:Individualism A, while there is A and B, individualism B these three Situation.In addition, character "/" herein, typicallys represent forward-backward correlation pair as if a kind of relation of "or".
As shown in figure 1, the present embodiment provides a kind of terminal 100, terminal 100 includes communication interface 110, user interface section 120, memory cell 130, print control unit 140, wherein control unit 150, print control unit 140 include print processing mould Block 1402, processing meanss 1401 and sending module 1043 that part is intercepted based on document.Wherein terminal 100 can be such as hand Mechanical, electrical brain, pad, the various user terminals of electronic book equipment, it is no longer redundant later here.
Terminal 10 and external device (ED) are attached by the communications interface unit 110, for example, by communications interface unit 110 couple together terminal 100 with image processing system 10, can also pass through communications interface unit 110 by terminal 100 and outside The webserver couple together, communications interface unit 110 include LAN (LAN) interface, internet interface, wireless network At least one of interface;For example, the communications interface unit 110 can receive one by internet interface or radio network interface The individual webpage for being linked to external server, it is possible to connect by LAN (LAN) interface, internet interface or wireless network Mouthful, transmit view data to be printed in the webpage and printed to image processing system 10;Especially, the communications interface unit 110 can obtain view data and send image forming apparatus 10, rear extended meeting to webpage after the process of print control unit 140 It is discussed in detail.
User interface section 120 includes multiple function buttons, display device etc., the user interface section 120 can with The input equipments such as mouse, keyboard are connected with each other, and user can be arranged by these function buttons or select terminal 100 to be supported Various functions, and various information of the display device display terminal 100 for passing through user interface section 120.
User interface section 120 can show webpage, by the web browser installed in the terminal 100, user operation Web browser, is communicated by communications interface unit 110 with external server, obtains web page contents, is stored in the terminal 100 In memory cell 130, and corresponding web page contents are included into the display in user interface section 120, user can utilize web Input equipment, the manual palpation such as screenshotss software that browser is carried or mouse, keyboard etc. intercept multiple web page portions images, and The Printing Qptions in web browser is selected using the mode of the input equipments such as mouse, keyboard or manual palpation, printing life is sent Order.
User interface section 120 can also show the document of the extended formattings such as word, pdf, and user operation is arranged on The reading application program of the documents such as word, the pdf in terminal 100, so as to check terminal 100 in store it is various types of Document, afterwards using the input equipments such as mouse, keyboard or the mode of manual palpation, operation screenshotss software or sectional drawing are fast pressed Key, intercepts multiple sectional drawings of document, and the mode using the input equipments such as mouse, keyboard or manual palpation issues printing life Order.
In addition, user interface section 120 can with receive user arrange various print parameters, it is all it is as desired use beat Antiquarian of print etc., user interface section 120 can also provide the user with the preview of image to be printed, especially, Yong Hujie Mouthful unit 120 can show and generate view data to be printed by print control unit 140, and rear extended meeting is discussed in detail, and user can be with By preview operation, it is determined whether carry out subsequent printing operation.
Memory cell 130 can include a display data buffer, and data buffer described here can be used to temporarily Storage is displayed in web data, document data, the sectional drawing data of user interface section 120, and print control unit 140 is from display number According to information is obtained in buffer, so as to generate intercepting parts of images, memory cell can also be used to store through print control dress Put 140 print processing module 1041 process, based on document intercept part processing meanss 1401 process after view data.Should Memory cell 130 can be to be embedded into the storage medium inside terminal 100, or the memory cell outside terminal 100, Here it is not defined, illustrates, is removable RAM card etc..
Print control unit 140 in the present embodiment can be connected to be such as arranged in terminal 100 with terminal 100 The image data processing unit such as the corresponding printer driver application program of image forming apparatus 10, pdf document process units, profit Terminal 100 or the discernible character string of image forming apparatus are partially converted into by what user intercepted with print control unit 140, The corresponding character string in part will be intercepted afterwards to be temporarily stored in memory cell 130, the graphics processing unit can also be image Data processing list in image data processing unit in formation equipment 10, or the server being connected with mobile terminal 1 00 Unit, is not limited thereto.
Print control unit 140 includes intercepting the processing meanss 1401 of part based on document, obtains from memory cell 130 The corresponding character string in multiple intercepting parts, the processing meanss 1401 of part are intercepted by contrasting first intercepting respectively based on document The corresponding character string in part character string corresponding with posterior intercepting part, identification formerly intercepts part is with the rear part that intercepts It is no to there is lap, or by the way that the processing meanss 1401 of part are intercepted based on document by contrasting first intercepting portion respectively Point corresponding pixel-value profile with the corresponding pixel-value profile in rear intercepting part with the presence or absence of lap.
When based on document intercept part processing meanss 1401 judge the first corresponding character string in intercepting part with after The corresponding character string in intercepting part between there is lap, by first intercepting part or posterior intercepting part correspondence Character string in overlapping character strings delete, and it is single that the corresponding character string in intercepting part after correcting process is stored in into storage Unit 130, or the processing meanss 1401 that part is intercepted based on document judge formerly to intercept the corresponding pixel-value profile in part with In rear intercepting part there is lap in corresponding pixel-value profile, based on lap, will formerly intercept part or The lap intercepted afterwards in part is deleted, and it is single that the corresponding character string in cutting part after correcting process is stored in into storage In unit 130.
Afterwards the print processing module 1402 of print control unit 140 reads out multiple Corrections Divisions from memory cell 130 The corresponding character string information in intercepting part after reason, and the printing paper arranged based on the user received from user interface section 120 Size is opened, the character string information typesetting again of intercepting part that will be after correcting process, and image is handed down to by sending module 1043 Formation equipment 10 is printed.
Control unit 170 is used for connected other units in control terminal 100, such as control print control unit Printable character string is rendered in multiple parts that intercept by 140 print processing module 1402, controls the base of print control unit 140 The processing meanss 1401 of part are intercepted in document, by comparing the corresponding character string in first intercepting part and posterior intercepting part Between corresponding character string, recognize the first corresponding character string in intercepting part character string corresponding with posterior intercepting part it Between grade with the presence or absence of overlapping portion, specific identifying schemes are described later in detail below.
Embodiment one
As shown in Fig. 2 the embodiment of the invention discloses it is a kind of based on document intercept part processing method, including:
Multiple intercepting parts that step 101, acquisition are intercepted successively based on document, the adjacent intercepting part of each two is used as one It is individual to intercept combination;
The part that intercepts in this step is that user is based on multiple intercepting parts that document is intercepted successively.Need explanation It is that the document in the present embodiment can be document, the document of word forms, the document of PDF, the lantern slide shape of form web page The document of formula or the document of graphic form etc., as long as wherein including word.Intercepting in the present embodiment is referred to by cutting Figure or other modes obtain the partial content of document.
Document browsing application program of the user by operation in the terminal 100, such as web browser, Microsoft, Adobe, good fortune sunrise reader etc., check the document of the form such as webpage, word, pdf, and using screenshotss instrument, mouse, keyboard Multiple intercepting parts are intercepted in a document Deng modes such as input equipment or touches, and afterwards user is using the input such as mouse, keyboard The mode such as equipment or touch, clicks on document " printing " option, afterwards the correspondence of image forming apparatus 10 in terminal 100 Printing drive or pdf document process units, or formed and set using the server that is connected with terminal 100, or image Image data processing unit in standby 10, by multiple intercepting parts, is separately converted to character string, the terminal 100 in the present embodiment Or image forming apparatus 10 can recognize the character string.
Especially, when user using the mode such as input equipment or touch such as mouse, keyboard can direct editing document It is middle to intercept multiple intercepting parts, can direct editing document be the forms such as word document, user can direct editing at this Document in intercept intercept part be the character string being made up of several characters, user using mouse, keyboard etc. input set The input equipments such as standby or touch, before document to be printed is printed, the identification division in graphics processing unit can be straight Multiple intercepting parts of identifying user intercepting are connect with the presence or absence of lap, if there is lap, just directly deletes what is repeated Character string, can so remove graphics processing unit from needs to be rendered into repeating part the operation of character string.
Step 102, each the intercepting combinations being respectively directed in all intercepting combinations carry out overlay text correcting process;
As shown in figure 3, being overlapped in above-mentioned steps 102, each the intercepting combinations being respectively directed in all intercepting combinations During word correcting process, carrying out overlay text correcting process for each intercepting combination includes:
Step 1021, judge in intercepting combination, formerly intercept part with rear intercepting part with the presence or absence of Chong Die Word segment, the word segment of above-mentioned overlap is the latter end for formerly intercepting part, and the word segment of above-mentioned overlap is rear Intercept the start-up portion of part;If so, then illustrate formerly to intercept and partly need the overlap literary of deletion with existing in rear intercepting part Word, hence into step 1022, will formerly intercept part or in rear intercepting part the word segment of above-mentioned overlap is deleted, if It is no, then illustrate that the first intercepting part in the intercepting combination does not have overlap word with the rear part that intercepts, into step 1023rd, do not processed.
If user intercept part for can direct editing part, such as user directly using the input equipment such as mouse, keyboard or The modes such as person's manual palpation word etc. can intercept in the document of direct editing can direct editing part, step 1021 it Afterwards, it is not the discernible character string of printer that user intercepts the corresponding character string in part, now by image forming apparatus 10 pairs Printing driving should be arrived and respectively the corresponding character string in user's intercepting part is converted into the discernible character string of image forming apparatus 10, And be stitched together, and the print paper size arranged in user interface section 120 based on user carries out typesetting, is sent to afterwards Image forming apparatus 10 are printed.
If user intercept part be not can direct editing part, such as image, step 1021 before, at above-mentioned image User is intercepted be partially converted into character string respectively by reason unit, and character string now can be that image forming apparatus can Direct Recognition After character string, step 1021, directly user can be intercepted into the corresponding string-concatenation in part and be got up, and based on user in user The print paper size arranged in interface unit 120 carries out typesetting, image forming apparatus 10 is sent to afterwards and is printed.
The processing method of part is intercepted in the embodiment of the present invention based on document, is entered by the intercepting part adjacent to each two Row judges whether to need word correcting process, that is, judge the latter end and the initial part in rear intercepting part for formerly intercepting part Divide and whether overlap, if overlapping, part will be formerly intercepted automatically or the word segment of overlap is deleted in rear intercepting part, nothing User is needed to delete the word segment overlapped in each intercepting part manually so as to intercept the process that printed of part more according to multiple Plus it is convenient.
Embodiment two
On the basis of embodiment one, the embodiment of the present invention provides a kind of processing method that part is intercepted based on document, such as Shown in Fig. 4, above-mentioned steps 1021, judge in intercepting combination, formerly intercept part and in rear intercepting part with the presence or absence of weight The process of folded word segment includes:
201st, judge formerly to intercept the last character of part whether with least one character phase in rear intercepting part Together;If so, then enter step 202, determine in rear intercepting part with the last character identical word for formerly intercepting part Accord with as character to be determined;The number of character to be determined is m, and m is the integer more than or equal to 1;If it is not, then illustrating the intercepting group There is no overlap word in the first intercepting part in conjunction, into step 1023, do not processed with the rear part that intercepts.In step In rapid 202, can respectively correspond to each character to be determined and corresponding mark is set, respectively k1, k2 ..., kx ..., Km, for Each character to be determined, into step 203 to step 204 or step 203 to step 205, to determine that the character to be determined is No correspondence lap to be determined and the lap to be determined specifically what.
Step 203 is entered after above-mentioned steps 202, for each character to be determined, judge whether i, make formerly Intercept the character string that is made up of i-th character to last character in part with rear intercepting part by first character extremely The character string of the character composition to be determined is identical, and i is the integer more than or equal to 1, in first intercepting part by i-th character extremely Last character composition character string number of characters with rear intercepting part by first character to the character to be determined The number of characters of the character string of composition is equal;If so, step 204 is then entered, is determined and formerly intercept in part by i-th character extremely The character string of last character composition or the word being made up of to the character to be determined first character in rear intercepting part Symbol string is lap to be determined;If it is not, then into step 205, determine that the character to be determined does not have corresponding overlap to be determined Part.
When for each character to be determined, all complete after step 204 or step 205, treat really into step 206, judgement The quantity for determining lap is 0 or for 1 or for multiple, when the quantity of lap to be determined is 0, i.e., does not exist and treats really When determining lap, into step 1023, do not processed, when the quantity of lap to be determined is 1, i.e., when only existing one During lap to be determined, into step 207, the word segment that the lap to be determined is above-mentioned overlap is determined;It is true when treating The quantity for determining lap is multiple, i.e., when there is multiple laps to be determined, into step 208, determine number of characters most Many laps to be determined are the word segment of above-mentioned overlap.
It should be noted that counting for convenience, step 206 to 208 can in the following ways, in step 204, can So that the number of characters of the character string being made up of i-th character to last character to be marked, the corresponding characters of such as k1 Number is flag1, and the corresponding number of characters of k2 is flag2, and by that analogy, the corresponding number of characters of kx is flagx, for step Determine that the character to be determined does not have corresponding lap to be determined in 205, be then designated as 0, such as k3 does not have corresponding to be determined Lap, then remember flag3=0.When for all of character to be determined, all complete after step 204 or step 205, i.e., For each character to be determined, all determine its corresponding lap to be determined or to determine that it does not have corresponding to be determined heavy Behind folded part, by all of flag1, flag2 ..., take maximum flagmax in flagm, determine treating corresponding to flagmax Determine the word segment that lap is above-mentioned overlap, needs are deleted.
As shown in figure 5, above-mentioned steps 203, for each character to be determined, judge whether i, make formerly to intercept part In the character string that is made up of i-th character to last character it is to be determined to this by first character with rear intercepting part The character string of character composition is identical, and i is the integer more than or equal to 1, formerly intercepts in part by i-th character to last The number of characters of the character string of character composition and the word being made up of to the character to be determined first character in rear intercepting part The number of characters of symbol string is equal;If so, then enter step 204, determine i-th character of formerly intercepting part to the last character Symbol or the character string being made up of first character to last character in rear intercepting part are lap to be determined;If It is no, then include into step 205, the process for determining the character to be determined and not having corresponding lap to be determined:
Step 301, judge that whether the character to be determined is the first character in rear intercepting part;If so, step is then entered Rapid 302, determine that the character to be determined is lap to be determined;If it is not, then entering step 303, being judged successively according to the value of w Whether the a-w character for formerly intercepting part be identical with the b-w character in rear intercepting part, until the current value of w The a-w character for formerly intercepting part is set to differ with the b-w character in rear intercepting part, or it is current until w Value makes a-w=1, or is the sequence that formerly intercepts last character in part until the current value of w makes b-w=1, a Digit, b is the sequence digit of the character to be determined in rear intercepting part, the value of w is followed successively by 1,2 ..., p-1, p is a and b In minimum of a value;When the current value of w makes b-w=1, the a-w character for formerly intercepting part is to last character Lap to be determined.
Step 303 includes:
Step 3031, judge formerly to intercept the a-w character of part and rear intercepting part the b-w character whether It is identical, if so, then enter step 3032, if it is not, then into step 205, determine that the character to be determined does not have corresponding to be determined Lap;
Step 3032, judge whether the current value of w makes a-w=1 or b-w=1, if so, then enter step 3033, if It is no, then into step 3034;
Step 3033, judge whether the current value of w makes b-w=1, step 3035 is if so, then entered, if it is not, then entering Step 205;
Step 3034, w is set to take next value, subsequently into step 3031;
Step 3035, determine formerly intercept the character string that is made up of the a-w character to last character in part or The character string that person is made up of in rear intercepting part first character to b-th character is lap to be determined.
The method of the present embodiment is illustrated below by way of two specific examples:
Example 1
It is " ABCDE " formerly to intercept part, is " RFABCDE " in the rear part that intercepts, and judges formerly to intercept in step 201 Partial last character " E " is identical with the last character in rear intercepting part, thus rear intercepting last Individual character is character to be determined, judges that the character is not the first character in rear intercepting part in step 301, into step 3031, judge that the penultimate character for formerly intercepting part is identical with the penultimate character in rear intercepting, then judge The third last character for first intercepting is identical with the third last character in rear intercepting, the like, judging formerly to intercept With during the 3rd character of rear intercepting, the current value that w is judged in step 3032 is partial first character 4, and a=5, therefore a-w=1, into step 205, determine that the character to be determined does not have corresponding lap to be determined, enter Step 206, the quantity of lap to be determined is 0, into step 1023, is not processed, i.e., need not be modified.
Example 2
It is " RRFABCDE " formerly to intercept part, is " ABCDEBCDEKH " in the rear part that intercepts, and is judged in step 201 The last character " E " for formerly intercepting part is identical with the 5th character and nine characters in rear intercepting part, therefore Character to be determined is in the 5th character and the 9th character of rear intercepting, k1 and k2 is respectively labeled as, for k1, in step Judge that the character is not the first character in rear intercepting in 301, into step 303, judged successively formerly to cut according to the value of w Whether the a-w character for taking part be identical with the b-w character in rear intercepting part, when w=4, b-w=1, it is determined that Formerly intercept the character string that is made up of the 4th character to last character in part or in rear intercepting part by first The character string that character to b-th character is constituted is the corresponding laps to be determined of k1;For k2, judging in step 301 should Character is not the first character in rear intercepting, into step 303, is judged successively formerly to intercept the of part according to the value of w Whether a-w character be identical with the b-w character in rear intercepting part, when w=4, formerly intercepts the a-w=of part 4 characters are " A ", different from the b-w=5 character " E " in rear intercepting part, into step 205, it is determined that for k2, not having There is corresponding lap to be determined.Step 206 is entered afterwards, judges that the quantity of lap to be determined, will be corresponding for 1 " ABCDE " is deleted from formerly intercepting part or in rear intercepting part.
Embodiment three
On the basis of embodiment one, the embodiment of the present invention provides a kind of processing method that part is intercepted based on document, this Embodiment is with the difference of embodiment two, and embodiment two is judging formerly to intercept part by way of directly contrast character With whether there is Chong Dies word segment in rear intercepting part, and partly generate corresponding picture by will intercept during the present embodiment Plain Distribution value figure, then the block of pixels in contrast pixel-value profile come judge formerly to intercept part with rear intercepting portion With the presence or absence of the word segment for overlapping in point, wherein will intercept part to generate corresponding pixel-value profile is people in the art Technology known to member, here does not carry out redundant.Specifically, as shown in fig. 6, in above-mentioned steps 102, being respectively directed to all interceptings Each in combination is intercepted before the process that combination carries out overlay text correcting process, is also included:
Step 1011, each the intercepting part in multiple intercepting parts generate the pixel value point to intercepting part Butut, as shown in Figure 7 and Figure 8, first coordinate (such as abscissa) of pixel-value profile is used to represent the longitudinal direction for intercepting part Position, because the sequence digit that the character for intercepting part is expert at corresponds to lengthwise position, therefore the first of pixel-value profile Coordinate can reflect the character line number for intercepting part, such as shown in fig. 7, the abscissa of block of pixels G2 is (it is assumed that its is corresponding Abscissa scope is 580-610) position correspondence formerly intercept the first line character in part, block of pixels G3 is (it is assumed that its correspondence Abscissa scope be 680-710) position correspondence formerly intercept the second line character in part, the second seat of pixel-value profile Mark for representing the pixel value intercepted in part, be divided into pixel-value profile on the direction of the first coordinate according to white space Multiple block of pixels h, are only labelled with two block of pixels h in figure, each block of pixels h is used to represent the longitudinal position for intercepting part The pixel value corresponding to interval is put, there is white space between the adjacent block of pixels of each two;It should be noted that surpassing in figure The part gone out between two straight lines in longitudinal direction of coordinate system is body part in intercepting part, and the part outside two straight lines is noise Part, for all of intercepting part, the feature all same of its initial noisc part, it terminates noise section, and to obtain feature also homogeneous Together, therefore the pixel-value profile corresponding to intercepting text in part can be distinguished according to this feature.Due to every two line character Necessarily there is gap between string, the gap is the white space in respective pixel Distribution value figure, therefore intercept in part with behavior list The character string of position corresponds to block of pixels, for example, as shown in fig. 7, the position of abscissa 580-610 is second pixel block, Correspondence formerly intercepts the first line character in part, and the position of abscissa 680-710 is the 3rd block of pixels, and correspondence is formerly intercepted The second line character in part, but, might not all of block of pixels correspond to the character zone of behavior unit, example Such as, when having accompanying drawing before the word segment of part is intercepted, accompanying drawing is also reflected as pixel region in pixel-value profile Block of pixels G1 (it is assumed that its abscissa scope is 100-500) is first block of pixels in block, such as Fig. 7, and its correspondence is formerly cut Take the accompanying drawing being located in part before word segment, it is possible to understand that, the block of pixels corresponding to accompanying drawing can't affect this reality Apply the process of overlay text correcting process in example.
As shown in figure 9, above-mentioned steps 1021, judge in intercepting combination, formerly intercept part with rear intercepting part With the presence or absence of the word segment for overlapping, the word segment of above-mentioned overlap is the latter end for formerly intercepting part, above-mentioned overlap Word segment is the start-up portion in rear intercepting part:If so, then enter step 1022, will formerly intercept part or at rear section Taking the process of the word segment deletion overlapped in part includes:
Step 401, judge in intercepting combination, formerly intercept the corresponding pixel-value profile in part with rear intercepting part With the presence or absence of the block of pixels region for overlapping in corresponding pixel-value profile, the block of pixels region of overlap is in rear intercepting portion Divide the latter end of corresponding pixel map, the block of pixels region of overlap is the formerly corresponding pixel map in intercepting part Start-up portion;If so, then enter step 402, will formerly intercept the pixel of part or the overlap described in rear intercepting part Word segment corresponding to block areas is deleted;If it is not, then being processed into step 403, not.It should be noted that judging Formerly intercept the corresponding pixel-value profile in part and there is no overlap with the corresponding pixel-value profile in rear intercepting part Block of pixels region, can only illustrate formerly to intercept part and do not exist with the lap of behavior unit in the rear part that intercepts, because This, in a further embodiment, can further determine whether there is the part for overlapping by way of contrast character, and carry out Corresponding amendment.
Often composing a piece of writing in due to intercepting part has interval between word, and the region being spaced also is reflected as in pixel-value profile Each block of pixels h in white space, therefore pixel-value profile can be used to the often style of writing word reflected in intercepting part, if Two block of pixels h are identical, then illustrate that its corresponding two styles of writing word is also identical.According to this principle, you can with behavior unit, Judge formerly to intercept part and whether there is Chong Die word in rear intercepting part.If exist, will formerly intercept part or The word that person overlaps in rear intercepting part is deleted.
Specifically, as shown in Figure 10, above-mentioned steps 401, judge in intercepting combination, formerly to intercept the corresponding pixel in part Distribution value figure with the corresponding pixel-value profile in rear intercepting part with the presence or absence of the process bag in the block of pixels region for overlapping Include:
Step 4011, judge formerly to intercept last block of pixels of the corresponding pixel-value profile in part whether with At least one block of pixels for intercepting part afterwards is identical;If so, then enter step 4012, determine in the corresponding picture in rear intercepting part Last block of pixels identical block of pixels of pixel-value profile corresponding with part is formerly intercepted in plain Distribution value figure For block of pixels to be determined;The number of block of pixels to be determined is M, and M is the integer more than or equal to 1;If it is not, then entering step Rapid 403, do not processed.
It should be noted that because the block of pixels in pixel-value profile can reflect the often style of writing intercepted in part Word, therefore pixel-value profile determines the sequence of block of pixels, the such as first style of writing according to the sequence for intercepting word in part Block of pixels corresponding to word is first block of pixels in pixel-value profile, the block of pixels corresponding to the second style of writing word For the second pixel block in pixel-value profile, by that analogy.
After above-mentioned steps 4012, into step 4013, for each block of pixels to be determined, I is judged whether, Make formerly to intercept in the corresponding pixel-value profile in part by i-th block of pixels to last block of pixels constitute it is continuous Block of pixels with the corresponding pixel-value profile in rear intercepting part by first block of pixels to the block of pixels to be determined The contiguous pixels block of composition is identical, and I is the integer more than or equal to 1, in formerly intercepting the corresponding pixel-value profile in part The block of pixels number of the contiguous pixels block being made up of i-th block of pixels to last block of pixels with rear intercepting portion The contiguous pixels block being made up of to the block of pixels to be determined first block of pixels in point corresponding pixel-value profile Block of pixels number is equal;If so, step 4014 is then entered, is determined and formerly intercept in the corresponding pixel-value profile in part by the The contiguous pixels block of I block of pixels to last block of pixels composition divides in the corresponding pixel value in rear intercepting part The contiguous pixels block being made up of first block of pixels to the block of pixels to be determined in Butut is lap to be determined;If It is no, then into step 4015, determine that the block of pixels to be determined does not have corresponding lap to be determined.
When for each block of pixels to be determined, all complete after step 4014 or step 4015, into step 4016, sentence The quantity of lap to be determined of breaking is 0 or for 1 or for multiple, when the quantity of lap to be determined is 0, i.e., not When there is lap to be determined, into step 403, do not processed;When the quantity of lap to be determined is 1, i.e., when only When there is a lap to be determined, into step 4017, the block of pixels area that the lap to be determined is overlap is determined Domain;When the quantity of lap to be determined is multiple, i.e., when there is multiple laps to be determined, into step 4018, really The most lap to be determined of fixation element number of blocks is the block of pixels region for overlapping.
As shown in figure 11, above-mentioned steps 4013, for block of pixels to be determined each described, judge whether I, make First intercept the contiguous pixels being made up of to last block of pixels i-th block of pixels in the corresponding pixel-value profile in part Block be made up of to the block of pixels to be determined first block of pixels in the corresponding pixel-value profile in rear intercepting part Contiguous pixels block it is identical, I is the integer more than or equal to 1, in the corresponding pixel-value profile in the first intercepting part The block of pixels number of the contiguous pixels block being made up of i-th block of pixels to last block of pixels is with described at rear section Take the contiguous pixels area being made up of to the block of pixels to be determined first block of pixels in the corresponding pixel-value profile in part The block of pixels number of block is equal;If so, then enter step 4014, determine in the formerly corresponding pixel-value profile in intercepting part The contiguous pixels block that is made up of i-th block of pixels to last block of pixels or in the corresponding pixel in rear intercepting part The contiguous pixels block being made up of first block of pixels to the block of pixels to be determined in Distribution value figure is overlapping portion to be determined The process divided includes:
Step 501, judge whether the block of pixels to be determined is in the corresponding pixel-value profile in rear intercepting part One block of pixels;If so, then into step 502, determine the block of pixels to be determined be lap to be determined;If it is not, then Judge successively formerly to intercept the A-W pixel region in the corresponding pixel-value profile in part into step 503, according to the value of W Block with the corresponding pixel-value profile in rear intercepting part the B-W block of pixels it is whether identical, until the current value of W makes Formerly intercept in the corresponding pixel-value profile in part the A-W block of pixels with the corresponding pixel Distribution value in rear intercepting part The B-W block of pixels is differed in figure, or until the current value of W makes A-W=1, or until the current value of W makes B- W=1, A are the sequence digit for formerly intercepting last block of pixels in the corresponding pixel-value profile in part, and B is at rear section Take the sequence digit of the block of pixels to be determined in the corresponding pixel-value profile in part, the value of W is followed successively by 1,2 ..., P-1, P is the minimum of a value in A and B;When the current value of W makes B-W=1, it is determined that formerly intercepting the corresponding pixel-value profile in part In the contiguous pixels block or corresponding in rear intercepting part that is made up of the A-W block of pixels to last block of pixels The contiguous pixels block being made up of first block of pixels to the B block of pixels in pixel-value profile is overlapping portion to be determined Point.
Step 503 includes:
Step 5031, the A-W block of pixels and the B-W pixel in rear intercepting part that judge formerly intercepting part Whether block is identical, if so, then enters step 5032, if it is not, then determining that the block of pixels to be determined does not have into step 4015 Corresponding lap to be determined;
Step 5032, judge whether the current value of W makes A-W=1 or B-W=1, if so, then enter step 5033, if It is no, then into step 5034;
Step 5033, judge whether the current value of W makes B-W=1, step 5035 is if so, then entered, if it is not, then entering Step 4015;
Step 5034, W is set to take next value, subsequently into step 5031;
Step 5035, determination formerly intercept what is be made up of the A-W block of pixels to last block of pixels in part Contiguous pixels block or in the corresponding pixel-value profile in rear intercepting part by first block of pixels to the B pixel region The contiguous pixels block of block composition is lap to be determined.
It is first compared with embodiment two it should be noted that intercepting the processing method of part in the present embodiment based on document According to intercept part generate corresponding pixel-value profile, then by judging two pixel-value profiles in the presence or absence of overlap Block of pixels region, judge that corresponding two intercept part and whether there is with the overlay text of behavior unit with this, and root It is judged that be as a result modified, and embodiment two is directly to intercept the character in part according to two to judge whether to overlap Word, and be modified according to judged result, the process of judgement is different, but principle is identical, therefore may be referred to embodiment two To understand the processing method of the present embodiment.In addition, the present embodiment is compared with embodiment two, due to entering for single character Row judges, therefore processing speed is faster, but can only judge that precision is lower with behavior unit.
Example IV
The embodiment of the present invention provides a kind of print control program, including:Being intercepted based on document in above-mentioned any embodiment Partial processing method;The multiple intercepting parts after the above-mentioned disposal methods based on document intercepting part are obtained, and Image to be printed is generated according to multiple parts that intercept;Image to be printed is sent to image forming apparatus.
Wherein, the detailed process and principle that the processing method of part is intercepted based on document is identical with the various embodiments described above, This is repeated no more.
Print control program in the present embodiment, carries out judging whether to need text by the intercepting part adjacent to each two Word correcting process, that is, judge whether the latter end for formerly intercepting part is overlap with the start-up portion in rear intercepting part, if weight It is folded, then part will be formerly intercepted automatically or the word segment of overlap is deleted in rear intercepting part, delete manually without the need for user It is each to intercept the word segment overlapped in part so that convenient according to the process that multiple intercepting parts are printed.
Embodiment five
As shown in figure 12, the embodiment of the present invention provides a kind of processing meanss that part is intercepted based on document, including:Intercepting portion Divide acquisition module 1, for obtaining the multiple intercepting parts intercepted successively based on document, the adjacent intercepting part of each two is used as one It is individual to intercept combination;Correcting module 2, for being respectively directed to all each intercepting combinations intercepted in combination overlay text amendment is carried out Process;The correcting module is specifically for during overlay text correcting process is carried out for each intercepting combination, judging In the intercepting combination, formerly intercept part and whether there is Chong Die word segment, the text of the overlap in rear intercepting part Character segment is the latter end for formerly intercepting part, and the word segment of the overlap is the start-up portion in rear intercepting part;If It is then to delete the word segment for formerly intercepting part or the overlap described in rear intercepting part.
The processing meanss for intercepting part based on document in the present embodiment can be applied and are based in above-described embodiment one, two or three Document intercepts the processing method of part, and its detailed process and principle are same as the previously described embodiments, will not be described here.
The processing meanss of part are intercepted in the embodiment of the present invention based on document, is entered by the intercepting part adjacent to each two Row judges whether to need word correcting process, that is, judge the latter end and the initial part in rear intercepting part for formerly intercepting part Divide and whether overlap, if overlapping, part will be formerly intercepted automatically or the word segment of overlap is deleted in rear intercepting part, nothing User is needed to delete the word segment overlapped in each intercepting part manually so as to intercept the process that printed of part more according to multiple Plus it is convenient.
Embodiment six
On the basis of embodiment five, as shown in figure 13, embodiment of the present invention offer is a kind of to intercept part based on document Processing meanss, specifically, correcting module 2 includes:First character judging unit 21, for judge formerly to intercept part last Whether individual character is identical with least one character in rear intercepting part;If, it is determined that cut with first in rear intercepting part The last character identical character for taking part is character to be determined;The number of the character to be determined is m, m be more than Or the integer equal to 1;Second character judging unit 22, for for character to be determined each described, judging whether i, makes Formerly intercept the character string that is made up of i-th character to last character in part with rear intercepting part by first character Accord with identical to the character to be determined composition character string, i is the integer more than or equal to 1, by i-th in the first intercepting part The number of characters of the character string that character is constituted to last character extremely should in rear intercepting part with described by first character The number of characters of the character string of character composition to be determined is equal;If, it is determined that by i-th character in the first intercepting part To last character composition character string or it is described in rear intercepting part by first character to the character group to be determined Into character string be lap to be determined;Determining unit 23, for when a lap to be determined is only existed, it is determined that should Lap to be determined is the word segment of the overlap;When there is multiple laps to be determined, determine that number of characters is most Lap to be determined be the overlap word segment.
Second character judging unit 22 is specifically for judging that whether the character to be determined is at first of rear intercepting part Character;If so, then the character to be determined is lap to be determined;If it is not, then judging formerly intercepting portion successively according to the value of w Whether the a-w character for dividing be identical with the b-w character in rear intercepting part, until the current value of w makes formerly intercepting The a-w partial character is differed with the b-w character in rear intercepting part, or until the current value of w makes a-w= 1, or until the current value of w make b-w=1, a be formerly intercept part in last character sequence digit, b is rear Intercept the sequence digit of the character to be determined in part, the value of w is followed successively by 1,2 ..., p-1, p is the minimum of a value in a and b;When When the current value of w makes b-w=1, it is determined that formerly intercepting the character being made up of the a-w character to last character in part String or the character string being made up of first character to b-th character in rear intercepting part are lap to be determined.
The processing meanss for intercepting part based on document in the present embodiment can be cut using in above-described embodiment two based on document The processing method of part is taken, its detailed process and principle are same as the previously described embodiments, will not be described here.
Embodiment seven
On the basis of embodiment five, the embodiment of the present invention provides a kind of processing meanss that part is intercepted based on document, tool Body ground, as shown in figure 14, said apparatus also include:Distribution map generation module 3, for every in the plurality of intercepting part Individual to intercept the pixel-value profile partly generated to intercepting part, the first coordinate of the pixel-value profile is used to represent The lengthwise position of part is intercepted, the second coordinate of the pixel-value profile is used to represent the pixel value intercepted in part, according to The pixel-value profile is divided into multiple block of pixels by white space on the direction of first coordinate, each block of pixels For representing the pixel value corresponding to the lengthwise position for intercepting part interval, there is blank between the adjacent block of pixels of each two Region;Correcting module 2 is specifically for during overlay text correcting process is carried out for each intercepting combination, judging should In intercepting combination, formerly intercept the corresponding pixel-value profile in part is with the corresponding pixel-value profile in rear intercepting part No to there is the block of pixels region for overlapping, the block of pixels region of the overlap is pixel map corresponding in rear intercepting part Latter end, the block of pixels region of the overlap is the start-up portion for formerly intercepting the corresponding pixel map in part;If It is then will formerly to intercept part or the word segment described in rear intercepting part corresponding to the block of pixels region of overlap is deleted Remove.
Specifically, as shown in figure 15, correcting module 2 includes:First distribution map judging unit 31, for judging formerly intercepting Last block of pixels of the corresponding pixel-value profile in part whether with least one block of pixels in rear intercepting part It is identical;If, it is determined that the pixel value point corresponding with part is formerly intercepted in the corresponding pixel-value profile in rear intercepting part Last block of pixels identical block of pixels of Butut is block of pixels to be determined;The number of the block of pixels to be determined For M, M is the integer more than or equal to 1;Second distribution map judging unit 32, for for pixel region to be determined each described Block, judges whether I, makes formerly to intercept in the corresponding pixel-value profile in part by i-th block of pixels to last The contiguous pixels block of block of pixels composition with the corresponding pixel-value profile in rear intercepting part by first block of pixels The contiguous pixels block constituted to the block of pixels to be determined is identical, and I is the integer more than or equal to 1, the first intercepting portion Divide the picture of the contiguous pixels block being made up of i-th block of pixels to last block of pixels in corresponding pixel-value profile Plain number of blocks with it is described in the corresponding pixel-value profile in rear intercepting part by first block of pixels to the picture to be determined The block of pixels number of the contiguous pixels block of plain block composition is equal;If, it is determined that the first intercepting part is corresponding The contiguous pixels block or described rear being made up of i-th block of pixels to last block of pixels in pixel-value profile Intercept the contiguous pixels being made up of to the block of pixels to be determined first block of pixels in the corresponding pixel-value profile in part Block is lap to be determined;Determining unit 33, for when a lap to be determined is only existed, determining that this is to be determined Lap is the block of pixels region of the overlap;When there is multiple laps to be determined, block of pixels number is determined Most laps to be determined is the block of pixels region of the overlap.
Specifically, the second distribution map judging unit 32 is specifically for judging whether the block of pixels to be determined is at rear section Take first block of pixels in the corresponding pixel-value profile in part;If so, then the block of pixels to be determined is overlap to be determined Part;If it is not, then being judged successively formerly to intercept the A-W pixel region in the corresponding pixel-value profile in part according to the value of W Block with the corresponding pixel-value profile in rear intercepting part the B-W block of pixels it is whether identical, until the current value of W makes Formerly intercept in the corresponding pixel-value profile in part the A-W block of pixels with the corresponding pixel Distribution value in rear intercepting part The B-W block of pixels is differed in figure, or until the current value of W makes A-W=1, or until the current value of W makes B- W=1, A are the sequence digit for formerly intercepting last block of pixels in the corresponding pixel-value profile in part, and B is at rear section Take the sequence digit of the block of pixels to be determined in the corresponding pixel-value profile in part, the value of W is followed successively by 1,2 ..., P-1, P is the minimum of a value in A and B;When the current value of W makes B-W=1, it is determined that formerly intercepting the corresponding pixel-value profile in part In the contiguous pixels block or corresponding in rear intercepting part that is made up of the A-W block of pixels to last block of pixels The contiguous pixels block being made up of first block of pixels to the B block of pixels in pixel-value profile is overlapping portion to be determined Point.
The processing meanss for intercepting part based on document in the present embodiment can be cut using in above-described embodiment three based on document The processing method of part is taken, its detailed process and principle are same as the previously described embodiments, will not be described here.
Embodiment eight
As shown in figure 1, the embodiment of the present invention provides a kind of print control unit, the print control unit can be used for terminal In 100, the print control unit includes:The processing meanss 1401 that part is intercepted based on document in above-mentioned any embodiment;Beat Print processing module 1402, for obtaining the multiple intercepting portions after the processing meanss that part is intercepted based on document are processed Point, and image to be printed is generated according to the plurality of part that intercepts;Sending module 1403, for the image to be printed to be sent To image forming apparatus.
The print control unit can apply the print control program in above-described embodiment five, wherein based on document intercepting portion The specific work process and principle of the processing meanss divided may be referred to above-described embodiment one, two, three or four, will not be described here.
Print control unit in the present embodiment, carries out judging whether to need text by the intercepting part adjacent to each two Word correcting process, that is, judge whether the latter end for formerly intercepting part is overlap with the start-up portion in rear intercepting part, if weight It is folded, then part will be formerly intercepted automatically or the word segment of overlap is deleted in rear intercepting part, delete manually without the need for user It is each to intercept the word segment overlapped in part so that convenient according to the process that multiple intercepting parts are printed.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematic, for example, the unit Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, for example, multiple units or group Part can with reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown Or discuss coupling each other direct-coupling or communication connection can be by the indirect of some interfaces, device or unit Coupling is communicated to connect, and can be electrical, mechanical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can according to the actual needs be selected to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list Unit both can be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in an embodied on computer readable and deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer Device (can be personal computer, server, or network equipment etc.) or processor (Processor) perform the present invention each The part steps of embodiment methods described.And aforesaid storage medium includes:USB flash disk, portable hard drive, read-only storage (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various Can be with the medium of store program codes.
Presently preferred embodiments of the present invention is the foregoing is only, not to limit the present invention, all essences in the present invention Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.

Claims (14)

1. it is a kind of based on document intercept part processing method, it is characterised in that include:
The multiple intercepting parts intercepted successively based on document are obtained, the adjacent intercepting part of each two intercepts combination as one;
Being respectively directed to all each intercepting combinations intercepted in combination carries out overlay text correcting process;
During described each intercepting combinations being respectively directed in all intercepting combinations carry out overlay text correcting process, pin Carrying out overlay text correcting process to each intercepting combination includes:
In judging the intercepting combination, formerly intercept part and whether there is Chong Die word segment in rear intercepting part, it is described The word segment of overlap is the latter end for formerly intercepting part, and the word segment of the overlap is the starting in rear intercepting part Part;
If so, then the word segment deletion of part or the overlap described in rear intercepting part will formerly be intercepted.
2. method according to claim 1, it is characterised in that
During described judgement intercepting is combined, formerly intercept part and whether there is Chong Die word segment in rear intercepting part Process includes:
Judge whether the last character for formerly intercepting part is identical with least one character in rear intercepting part;
If, it is determined that in rear intercepting part with the last character identical character for formerly intercepting part it is word to be determined Symbol;
The number of the character to be determined is m, and m is the integer more than or equal to 1;
For character to be determined each described, i is judged whether, make formerly to intercept in part by i-th character to last The character string of individual character composition and character string is constituted by first character to the character to be determined in rear intercepting part identical, i It is the integer more than or equal to 1, the character string being made up of i-th character to last character in the first intercepting part The number of characters of number of characters and the character string being made up of to the character to be determined first character in rear intercepting part It is equal;
If, it is determined that the character string being made up of i-th character to last character in the first intercepting part or institute It is lap to be determined to state the character string being made up of first character to the character to be determined in rear intercepting part;
When a lap to be determined is only existed, the word segment that the lap to be determined is the overlap is determined;
When there is multiple laps to be determined, the word that the most lap to be determined of number of characters is the overlap is determined Part.
3. method according to claim 2, it is characterised in that
It is described that i is judged whether for character to be determined each described, make formerly to intercept in part by i-th character to most The character string of latter character composition and the character string being made up of to the character to be determined first character in rear intercepting part Identical, i is the integer more than or equal to 1, the word being made up of i-th character to last character in the first intercepting part The number of characters of symbol string and the word of the character string being made up of to the character to be determined first character in rear intercepting part Symbol number is equal;If, it is determined that the character string being made up of i-th character to last character in the first intercepting part Or the character string being made up of first character to the character to be determined in rear intercepting part is lap to be determined Process include:
Judge that whether the character to be determined is the first character in rear intercepting part;
If so, then the character to be determined is lap to be determined;
If it is not, then being judged successively formerly to intercept the a-w character of part and the b-w in rear intercepting part according to the value of w Whether individual character is identical, until the current value of w makes formerly to intercept the a-w character of part and the b- in rear intercepting part W character is differed, or until the current value of w makes a-w=1, or be first until the current value of w makes b-w=1, a The sequence digit of last character in part is intercepted, b is the sequence digit of the character to be determined in rear intercepting part, w's Value is followed successively by 1,2 ..., p-1, p is the minimum of a value in a and b;
When the current value of w makes b-w=1, it is determined that formerly intercept being made up of to last character the a-w character in part Character string or the character string that is made up of first character to b-th character in rear intercepting part be overlapping portion to be determined Point.
4. method according to claim 1, it is characterised in that
Before each being respectively directed in all intercepting combinations intercept the process that combination carries out overlay text correcting process, Also include:
Each in the plurality of intercepting part intercepts the pixel-value profile partly generated to intercepting part, described First coordinate of pixel-value profile is used to represent the lengthwise position for intercepting part that the second coordinate of the pixel-value profile to be used In represent intercept part in pixel value, according to white space by the pixel-value profile on the direction of first coordinate It is divided into multiple block of pixels, each block of pixels is used to represent the pixel value corresponding to the lengthwise position interval for intercepting part, often There is white space between two adjacent block of pixels;
It is described to judge in the intercepting combination, formerly to intercept part and whether there is Chong Die word segment in rear intercepting part, The word segment of the overlap is the latter end for formerly intercepting part, and the word segment of the overlap is in rear intercepting part Start-up portion:If so, then will formerly intercept part or the process of the word segment deletion of overlap includes in rear intercepting part:
In judging intercepting combination, formerly intercept the corresponding pixel-value profile in part with the corresponding pixel value in rear intercepting part With the presence or absence of the block of pixels region for overlapping in distribution map, the block of pixels region of the overlap is corresponding in rear intercepting part The latter end of pixel map, the block of pixels region of the overlap is formerly to intercept rising for the corresponding pixel map in part Initial portion;
If so, then part or the word described in rear intercepting part corresponding to the block of pixels region of overlap will formerly be intercepted Delete part.
5. method according to claim 4, it is characterised in that
It is described to judge in intercepting combination, formerly intercept the corresponding pixel-value profile in part with the corresponding picture in rear intercepting part Process in plain Distribution value figure with the presence or absence of the block of pixels region for overlapping includes:
Judge formerly to intercept last block of pixels of the corresponding pixel-value profile in part whether with rear intercepting part At least one block of pixels is identical;
If, it is determined that the pixel Distribution value corresponding with part is formerly intercepted in the corresponding pixel-value profile in rear intercepting part Last block of pixels identical block of pixels of figure is block of pixels to be determined;
The number of the block of pixels to be determined is M, and M is the integer more than or equal to 1;
For block of pixels to be determined each described, I is judged whether, make formerly to intercept the corresponding pixel-value profile in part In the contiguous pixels block that is made up of i-th block of pixels to last block of pixels with the corresponding pixel in rear intercepting part It is identical to the contiguous pixels block that the block of pixels to be determined is constituted by first block of pixels in Distribution value figure, I be more than or Integer equal to 1, by i-th block of pixels to last pixel in the corresponding pixel-value profile in the first intercepting part The block of pixels number of the contiguous pixels block of block composition with it is described in the corresponding pixel-value profile in rear intercepting part by The block of pixels number of the contiguous pixels block that first block of pixels is constituted to the block of pixels to be determined is equal;
If, it is determined that by i-th block of pixels to last in the corresponding pixel-value profile in the first intercepting part Block of pixels composition contiguous pixels block or it is described in the corresponding pixel-value profile in rear intercepting part by first picture Plain block to the contiguous pixels block that the block of pixels to be determined is constituted is lap to be determined;
When a lap to be determined is only existed, the block of pixels area that the lap to be determined is the overlap is determined Domain;
When there is multiple laps to be determined, determine that the most lap to be determined of block of pixels number is the overlap Block of pixels region.
6. method according to claim 5, it is characterised in that
It is described that I is judged whether for block of pixels to be determined each described, make formerly to intercept the corresponding pixel value point in part The contiguous pixels block being made up of i-th block of pixels to last block of pixels in Butut is corresponding with rear intercepting part Identical to the contiguous pixels block that the block of pixels to be determined is constituted by first block of pixels in pixel-value profile, I is big In or integer equal to 1, by i-th block of pixels to last in the corresponding pixel-value profile in the first intercepting part The block of pixels number of the contiguous pixels block of block of pixels composition is with described in the corresponding pixel-value profile in rear intercepting part In the block of pixels number of contiguous pixels block that is made up of to the block of pixels to be determined first block of pixels it is equal;If It is, it is determined that by i-th block of pixels to last pixel region in the corresponding pixel-value profile in the first intercepting part Block composition contiguous pixels block or it is described in the corresponding pixel-value profile in rear intercepting part by first block of pixels The contiguous pixels block constituted to the block of pixels to be determined is that the process of lap to be determined includes:
Judge whether the block of pixels to be determined is first block of pixels in the corresponding pixel-value profile in rear intercepting part;
If so, then the block of pixels to be determined is lap to be determined;
If it is not, then being judged successively formerly to intercept the A-W block of pixels in the corresponding pixel-value profile in part according to the value of W With in the corresponding pixel-value profile in rear intercepting part the B-W block of pixels it is whether identical, until the current value of W makes First intercept in the corresponding pixel-value profile in part the A-W block of pixels with the corresponding pixel-value profile in rear intercepting part In the B-W block of pixels differ, or until the current value of W makes A-W=1, or until the current value of W makes B-W =1, A are the sequence digit for formerly intercepting last block of pixels in the corresponding pixel-value profile in part, and B is in rear intercepting The sequence digit of the block of pixels to be determined in the corresponding pixel-value profile in part, the value of W is followed successively by 1,2 ..., P-1, P For the minimum of a value in A and B;
When the current value of W makes B-W=1, it is determined that formerly intercepting in the corresponding pixel-value profile in part by the A-W pixel Block is to the contiguous pixels block of last block of pixels composition or in the corresponding pixel-value profile in rear intercepting part The contiguous pixels block being made up of first block of pixels to the B block of pixels is lap to be determined.
7. a kind of print control program, it is characterised in that include:
The processing method that part is intercepted based on document as described in any one in claim 1 to 6;
Obtain and the multiple intercepting parts after the disposal methods of part are intercepted based on document by described, and according to the plurality of Intercept part and generate image to be printed;
The image to be printed is sent to image forming apparatus.
8. it is a kind of based on document intercept part processing meanss, it is characterised in that include:
Part acquisition module is intercepted, for obtaining the multiple intercepting parts intercepted successively based on document, the adjacent intercepting of each two Part intercepts combination as one;
Correcting module, for being respectively directed to all each intercepting combinations intercepted in combination overlay text correcting process is carried out;
The correcting module is specifically for during overlay text correcting process is carried out for each intercepting combination, judging In the intercepting combination, formerly intercept part and whether there is Chong Die word segment, the text of the overlap in rear intercepting part Character segment is the latter end for formerly intercepting part, and the word segment of the overlap is the start-up portion in rear intercepting part;If It is then to delete the word segment for formerly intercepting part or the overlap described in rear intercepting part.
9. device according to claim 8, it is characterised in that
The correcting module includes:
First character judging unit, for judge formerly to intercept the last character of part whether with rear intercepting part extremely A few character is identical;If, it is determined that with the last character identical word for formerly intercepting part in rear intercepting part Accord with as character to be determined;The number of the character to be determined is m, and m is the integer more than or equal to 1;
Second character judging unit, for for character to be determined each described, judging whether i, makes formerly to intercept part In the character string that is made up of i-th character to last character it is to be determined to this by first character with rear intercepting part Character composition character string is identical, and i is the integer more than or equal to 1, by i-th character to last in the first intercepting part The number of characters of the character string of individual character composition with it is described in rear intercepting part by first character to the character group to be determined Into character string number of characters it is equal;If, it is determined that by i-th character to the last character in the first intercepting part The character string of symbol composition described is to the character string that the character to be determined is constituted by first character in rear intercepting part Lap to be determined;
Determining unit, for when a lap to be determined is only existed, determining that the lap to be determined is the overlap Word segment;When there is multiple laps to be determined, determine that the most lap to be determined of number of characters is described heavy Folded word segment.
10. device according to claim 9, it is characterised in that
The second character judging unit is specifically for judging that whether the character to be determined is the first character in rear intercepting part Symbol;
If so, then the character to be determined is lap to be determined;
If it is not, then being judged successively formerly to intercept the a-w character of part and the b-w in rear intercepting part according to the value of w Whether individual character is identical, until the current value of w makes formerly to intercept the a-w character of part and the b- in rear intercepting part W character is differed, or until the current value of w makes a-w=1, or be first until the current value of w makes b-w=1, a The sequence digit of last character in part is intercepted, b is the sequence digit of the character to be determined in rear intercepting part, w's Value is followed successively by 1,2 ..., p-1, p is the minimum of a value in a and b;
When the current value of w makes b-w=1, it is determined that formerly intercept being made up of to last character the a-w character in part Character string or the character string that is made up of first character to b-th character in rear intercepting part be overlapping portion to be determined Point.
11. devices according to claim 8, it is characterised in that also include:
Distribution map generation module, intercepts part and generates to intercepting part for each in the plurality of intercepting part Pixel-value profile, the first coordinate of the pixel-value profile is used to represent the lengthwise position for intercepting part, the pixel Second coordinate of Distribution value figure is used to represent the pixel value intercepted in part, the pixel-value profile is existed according to white space It is divided into multiple block of pixels on the direction of first coordinate, each block of pixels is used to represent the lengthwise position area for intercepting part Between corresponding pixel value, there is white space between the adjacent block of pixels of each two;
The correcting module is specifically for during overlay text correcting process is carried out for each intercepting combination, judging In intercepting combination, formerly intercept the corresponding pixel-value profile in part with the corresponding pixel-value profile in rear intercepting part With the presence or absence of the block of pixels region for overlapping, the block of pixels region of the overlap is pixel distribution corresponding in rear intercepting part The latter end of figure, the block of pixels region of the overlap is the start-up portion for formerly intercepting the corresponding pixel map in part; If so, then part or the word segment described in rear intercepting part corresponding to the block of pixels region of overlap will formerly be intercepted Delete.
12. devices according to claim 11, it is characterised in that
The correcting module includes:
First distribution map judging unit, for judging formerly to intercept last pixel region of the corresponding pixel-value profile in part Whether block is identical with least one block of pixels in rear intercepting part;If, it is determined that in the corresponding pixel in rear intercepting part Last block of pixels identical block of pixels of pixel-value profile corresponding with part is formerly intercepted is in Distribution value figure Block of pixels to be determined;The number of the block of pixels to be determined is M, and M is the integer more than or equal to 1;
Second distribution map judging unit, for for block of pixels to be determined each described, judging whether I, makes formerly to cut Take the contiguous pixels block being made up of i-th block of pixels to last block of pixels in the corresponding pixel-value profile in part With the company being made up of to the block of pixels to be determined first block of pixels in the corresponding pixel-value profile in rear intercepting part Continuous block of pixels is identical, and I is the integer more than or equal to 1, by I in the corresponding pixel-value profile in the first intercepting part The block of pixels number of individual block of pixels to the contiguous pixels block of last block of pixels composition is with described in rear intercepting portion The contiguous pixels block being made up of to the block of pixels to be determined first block of pixels in point corresponding pixel-value profile Block of pixels number is equal;If, it is determined that by i-th pixel region in the corresponding pixel-value profile in the first intercepting part The contiguous pixels block or described in the corresponding pixel-value profile in rear intercepting part of block to last block of pixels composition In the contiguous pixels block that is made up of first block of pixels to the block of pixels to be determined be lap to be determined;
Determining unit, for when a lap to be determined is only existed, determining that the lap to be determined is the overlap Block of pixels region;When there is multiple laps to be determined, the most overlapping portion to be determined of block of pixels number is determined It is divided into the block of pixels region of the overlap.
13. devices according to claim 12, it is characterised in that
The second distribution map judging unit is specifically for judging whether the block of pixels to be determined is to intercept part correspondence rear Pixel-value profile in first block of pixels;
If so, then the block of pixels to be determined is lap to be determined;
If it is not, then being judged successively formerly to intercept the A-W block of pixels in the corresponding pixel-value profile in part according to the value of W With in the corresponding pixel-value profile in rear intercepting part the B-W block of pixels it is whether identical, until the current value of W makes First intercept in the corresponding pixel-value profile in part the A-W block of pixels with the corresponding pixel-value profile in rear intercepting part In the B-W block of pixels differ, or until the current value of W makes A-W=1, or until the current value of W makes B-W =1, A are the sequence digit for formerly intercepting last block of pixels in the corresponding pixel-value profile in part, and B is in rear intercepting The sequence digit of the block of pixels to be determined in the corresponding pixel-value profile in part, the value of W is followed successively by 1,2 ..., P-1, P For the minimum of a value in A and B;
When the current value of W makes B-W=1, it is determined that formerly intercepting in the corresponding pixel-value profile in part by the A-W pixel Block is to the contiguous pixels block of last block of pixels composition or in the corresponding pixel-value profile in rear intercepting part The contiguous pixels block being made up of first block of pixels to the B block of pixels is lap to be determined.
14. a kind of print control units, it is characterised in that include:
The processing meanss that part is intercepted based on document as described in any one in claim 8 to 13;
Print processing module, for obtaining the multiple intercepting portions after the processing meanss that part is intercepted based on document are processed Point, and image to be printed is generated according to the plurality of part that intercepts;
Sending module, for the image to be printed to be sent to image forming apparatus.
CN201611233168.2A 2016-12-28 2016-12-28 Processing method and its device, print control program and device Active CN106648481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611233168.2A CN106648481B (en) 2016-12-28 2016-12-28 Processing method and its device, print control program and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611233168.2A CN106648481B (en) 2016-12-28 2016-12-28 Processing method and its device, print control program and device

Publications (2)

Publication Number Publication Date
CN106648481A true CN106648481A (en) 2017-05-10
CN106648481B CN106648481B (en) 2019-09-17

Family

ID=58832668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611233168.2A Active CN106648481B (en) 2016-12-28 2016-12-28 Processing method and its device, print control program and device

Country Status (1)

Country Link
CN (1) CN106648481B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112036225A (en) * 2019-06-03 2020-12-04 佳能株式会社 Image processing apparatus, image processing method, and storage medium
CN114442966A (en) * 2022-01-21 2022-05-06 浪潮软件集团有限公司 One-key printing method for electronic file based on domestic CPU and operating system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1427293A (en) * 2001-12-14 2003-07-02 欧姆龙株式会社 Photograph picture printer and printing method, program and printing medium unit
CN101295233A (en) * 2007-04-27 2008-10-29 夏普株式会社 Print control apparatus, printing system and printing control method
CN101661465A (en) * 2008-08-28 2010-03-03 富士施乐株式会社 Image processing apparatus, image processing method and image processing program
CN102750115A (en) * 2009-04-30 2012-10-24 佳能株式会社 Printing device, calibration method thereof and printing system
CN104375767A (en) * 2013-08-16 2015-02-25 联想(北京)有限公司 Method for processing data and electronic equipment
CN105278824A (en) * 2014-07-31 2016-01-27 维沃移动通信有限公司 Screen capturing method of terminal equipment and terminal equipment thereof
US20160255246A1 (en) * 2015-01-30 2016-09-01 Kyocera Document Solutions Inc. Cell-Based Compression with Edge Detection and Interleaved Encoding

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1427293A (en) * 2001-12-14 2003-07-02 欧姆龙株式会社 Photograph picture printer and printing method, program and printing medium unit
CN101295233A (en) * 2007-04-27 2008-10-29 夏普株式会社 Print control apparatus, printing system and printing control method
CN101661465A (en) * 2008-08-28 2010-03-03 富士施乐株式会社 Image processing apparatus, image processing method and image processing program
CN102750115A (en) * 2009-04-30 2012-10-24 佳能株式会社 Printing device, calibration method thereof and printing system
CN104375767A (en) * 2013-08-16 2015-02-25 联想(北京)有限公司 Method for processing data and electronic equipment
CN105278824A (en) * 2014-07-31 2016-01-27 维沃移动通信有限公司 Screen capturing method of terminal equipment and terminal equipment thereof
US20160255246A1 (en) * 2015-01-30 2016-09-01 Kyocera Document Solutions Inc. Cell-Based Compression with Edge Detection and Interleaved Encoding

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112036225A (en) * 2019-06-03 2020-12-04 佳能株式会社 Image processing apparatus, image processing method, and storage medium
CN114442966A (en) * 2022-01-21 2022-05-06 浪潮软件集团有限公司 One-key printing method for electronic file based on domestic CPU and operating system

Also Published As

Publication number Publication date
CN106648481B (en) 2019-09-17

Similar Documents

Publication Publication Date Title
US8593666B2 (en) Method and system for printing a web page
US7483166B2 (en) Information processing apparatus and print preview display method
CN1684493B (en) Image forming apparatus and image forming method
CN101540041B (en) Adaptation method for browsing scanned documents
US7218414B2 (en) Apparatus and method for recording document described in markup language
JP2002171400A (en) Image processor
JP3604483B2 (en) Document information management system and document information management method
US20020028020A1 (en) Image processing device, image processing method, and image processing program
CN101677348A (en) Image processing device, image display system, image processing method and program storage medium
US7457464B2 (en) Rendering of substitute for detected indicia
CN106648481A (en) Processing method and device and printing control method and device
JP2004260273A (en) Image forming apparatus
US7280671B2 (en) Image processing to prevent forgery
US7664290B2 (en) Image processor, image processing method, and storage medium storing program for the combining of coded images into print images
US7539671B2 (en) Image processing apparatus, image forming apparatus, method for searching processed document, program for searching processed document, and recording medium
CN110389726A (en) Image formation system, record media and image forming method
CN111753850A (en) Document processing method and device, computer equipment and computer readable storage medium
JP5696394B2 (en) Image processing apparatus, image processing method, and image processing program
CN100361067C (en) Paging method for printing file
JP4306725B2 (en) Printing support system, printing support program, and printing support method
KR101343457B1 (en) Computer readable medium for creating data, data creating apparatus, printing apparatus and printing system
JP2005217859A (en) Image forming apparatus and image forming method
JP3309084B2 (en) How to digitize shapes
JP4305385B2 (en) Image processing apparatus, program, and image data output method
US7004653B2 (en) Printer with a copy function for carrying out two-set double-sided printing

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
TR01 Transfer of patent right

Effective date of registration: 20201116

Address after: 519060 A, building 3, building 01, 3883 Zhuhai Avenue, Zhuhai, Guangdong, China

Patentee after: ZHUHAI PANTUM ELECTRONICS Co.,Ltd.

Address before: 519060 Area A, 7th Floor, Building 01, No. 3883, Zhuhai Avenue, Xiangzhou District, Zhuhai City, Guangdong Province

Patentee before: Zhuhai Saine Printing Technology Co.,Ltd.

TR01 Transfer of patent right