The present invention relates to, for example, an information processing apparatus, an image processing method, and a medium.
Conventionally, there is known a scan function of reading, by a scanner, an output image obtained by printing a digital document by a printer, and saving the read digital document. At this time, it is known that the read digital document generated by performing a printing step and a scan step deteriorates in color and shape from the original digital document.
To cope with this, Japanese Patent No. 5180551 describes an example in which output image color is estimated in consideration of the output characteristics of a printer in addition to color information in a digital document, the estimated color is embedded as multiplexed information in a printed image, and the multiplexed information is extracted from a scanned image to restore color deterioration.
However, in Japanese Patent No. 5180551, color deterioration occurring in a printing step and a scan step, or caused by addition of data to the print document, a stain, or the like can be restored so as to become close to the state before deterioration but there is a concern about the shape restoration accuracy.
The present invention suppresses image deterioration in a read digital document, caused by image formation on a medium.
The present invention has the following arrangement. According to an aspect of the present invention, provided is an information processing apparatus connected to an image forming unit configured to form an image based on image data and a reading unit configured to read an image as image data, the information processing apparatus comprising one or more processors and one or more memories comprising one or more programs, wherein the one or more programs are configured to cause the one or more processors to generate image data based on document data described in a page description language, encode the document data to be multiplexed on the image data, output the image data to the image forming unit, restore the multiplexed document data from the image data read by the reading unit, and save the image data read by the reading unit and the document data restored by a restoration unit.
According to another aspect of the present invention, provided is an information processing apparatus connected to an image forming unit configured to form an image based on image data, the information processing apparatus comprising one or more processors and one or more memories comprising one or more programs, wherein the one or more programs are configured to cause the one or more processors to generate image data based on document data described in a page description language, encode the document data to be multiplexed on the image data, and output the image data to the image forming unit.
According to still another aspect of the present invention, provided is an information processing apparatus connected to a reading unit configured to read, as image data, an image on which document data described in a page description language is multiplexed, the information processing apparatus comprising one or more processors and one or more memories comprising one or more programs, wherein the one or more programs are configured to cause the one or more processors to restore the multiplexed document data from the image data read by the reading unit, and save the image data read by the reading unit and the document data restored by a restoration unit.
According to the present invention, it is possible to suppress image deterioration in a read digital document, caused by image formation on a medium.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
Hereinafter, embodiments will be described in detail with reference to the attached drawings. Note, the following embodiments are not intended to limit the scope of the claimed invention. Multiple features are described in the embodiments, but limitation is not made an invention that requires all such features, and multiple such features may be combined as appropriate. Furthermore, in the attached drawings, the same reference numerals are given to the same or similar configurations, and redundant description thereof is omitted.
The host PC 50 is formed mainly by the following elements. A CPU 501 executes processing according to a program held in an HDD 503 or a RAM 502. The RAM 502 is a volatile storage, and temporarily holds a program and data. The HDD 503 is a nonvolatile storage, and holds a program and data. A data transfer I/F (data transfer interface) 504 controls data transmission/reception to/from the MFP main body 40. As a connection method for the data transmission/reception, wired connection such as USB, IEEE1394, or LAN, or wireless connection such as Bluetooth or WiFi can be used. A keyboard mouse I/F (keyboard mouse interface) 505 is an I/F for controlling an HID (Human Interface Device) such as a keyboard and a mouse, and the user can input data via this I/F. A display I/F (display interface) 506 controls display on a display (not shown).
On the other hand, the MFP main body 40 is formed mainly by the following elements. In accordance with a program held in a ROM 403 or a RAM 402, a CPU 401 executes processing of each of embodiments to be described later with reference to
A data transfer I/F (data transfer interface) 404 controls data transmission/reception to/from the PC 50. A printer controller 405 controls a printer unit 408 including a printhead. The printer controller 405 includes a head controller. The head controller controls a heating operation of a heater mounted on a head based on print data with respect to the printhead of the printer unit 408, thereby discharging ink. This forms an image on a medium. More specifically, the head controller can be configured to load control parameters and print data from a predetermined address in the RAM 402. Then, when the CPU 401 writes the control parameters and print data at the predetermined address in the RAM 402, the printer controller 405, more particularly, the head controller activates processing to perform the heating operation of the heater mounted on the printhead.
An image processing accelerator 406 is formed by a hardware component, and executes image processing at a higher speed than the CPU 401. More specifically, the image processing accelerator 406 can be configured to load parameters and data necessary for image processing from a predetermined address in the RAM 402. Then, when the CPU 401 writes the parameters and data at the predetermined address in the RAM 402, the image processing accelerator 406 is activated to perform predetermined image processing. Note that the image processing accelerator 406 is not always required, and may execute the table parameter creation processing and the image processing only in the processing by the CPU 401 in accordance with the specifications of the printer, as a matter of course. A scanner controller 407 instructs a scanner unit 409 to transmit, to the scanner controller 407, light amount information acquired by capturing light irradiation on a document and reflected light by an image sensor such as a CCD. More specifically, when the CPU 401 writes the control parameters and the read data writing address at the predetermined address in the RAM 402, the scanner controller 407 activates processing. Then, light emission control of an LED mounted on the scanner unit 409, acquisition of the light amount information from the scanner unit 409, and write of the light amount information after the read data writing address in the RAM 402 are performed.
The printer controller 405 further includes a motor controller. The motor controller controls a motor operation with respect to a plurality of motor units (not shown) included in the printer unit 408. The motor is used to relatively move the above-described printhead with respect to a print sheet, and to relatively move the scanner unit 409 with respect to a read document. In addition, some MFPs may include a motor for maintenance of the printhead.
Multiplexing Processing of Pixel Count Information for Each Color
In step S201, PDL document data is acquired. PDL is an abbreviation for Page Description Language, and is formed by a set of drawing commands on a page basis. The types of drawing commands are defined for each PDL specification. In this embodiment, the following five types are mainly used as examples. Values in brackets are parameters of a command, and X and Y represent the coordinates of a drawing position.
As PDL generally used, there are provided PDF (Portable Document Format) proposed by Adobe, XPS proposed by Microsoft, and HP-GL/2 proposed by HP. The application range of the present invention is not limited to them.
Example of Page Description Language
<PAGE=001> of the first row is a tag representing a page number according to this embodiment. Since PDL is normally designed to be able to describe a plurality of pages, a tag indicating a page break is described in PDL. In this example, a portion up to the </PAGE> tag of the ninth row represents the first page. In this embodiment, this portion corresponds to the document page 300 shown in
A portion from the <BOX> tag to the </BOX> tag in the second row is a BOX drawing command, and corresponds to a box object 301 shown in
The BOX drawing command of the third row corresponds to a box object 302 shown in
The BOX drawing command of the fourth row and the TEXT drawing command of the fifth row correspond to an object 303 shown in
Subsequently, the LINE drawing commands of the sixth and seventh rows correspond to a line object 304 shown in
Subsequently, the IMAGE drawing command of the eighth row corresponds to an image object 305 shown in
Then, the </PAGE> tag of the ninth row indicates the end of drawing of the page.
As an actual PDL file, the “STD” font data and the “PORTRAIT.jpg” image file are often included in addition to the above-described drawing commands. This is because when the font data and the image file are managed separately, it is impossible to form the character and image portions only by the drawing commands, and information is insufficient to form the image shown in
The PDL data acquired in step S201 of
Subsequently, the process advances to step S202, and rendering processing of the PDL document data acquired in step S201 is performed. This is a step of executing each drawing command described in the PDL data, and forming a bitmap image formed by color information for each pixel. In this embodiment, as described above, the image exemplified in
In step S203, a multiplexing image is created. In this example, the PDL file data acquired in step S201 is superimposed (or multiplexed) on the rendering image generated in step S202. This is done to make it possible to extract the PDL file data from the image data when scanning the print image, thereby obtaining a unit of restoring deterioration in image shape described with reference to
Processing information by an information processing apparatus like a PC means processing binary data. Binary data includes pieces of information of “0” and “1”, and has a specific meaning by continuously concatenating the pieces of information of “0” and “1”. If, for example, information of “hello” is processed as binary data, “h” corresponds to binary data of “01101000” by exemplifying “Shift JIS” as one of character codes. Similarly, “e” corresponds to binary data of “01100101”, “1” corresponds to binary data of “01101100” and “o” corresponds to binary data of “01101111”. That is, the characters of “hello” can be expressed by binary data of “0110100001100101011011000110110001101111”. Conversely, if binary data of “0110100001100101011011000110110001101111” can be acquired, characters of “hello” can be acquired. Based on this idea, multiplexing can be implemented by embedding data so as to determine “0” or
To generate pieces of information of “0” and “1”, that is, information to be multiplexed, two masks shown in
The above code indicates a procedure of sequentially focusing on an 8×8 region by targeting image data of 640×480 pixels as an example, and adding, if the region is a region to be masked, the value of each pixel of the mask corresponding to each pixel of the region. The region to be masked is designated by isMaskA, and the mask to be applied is designated by maskA. In this way, information can be embedded by multiplexing using the above method. Note that a region where additional information is multiplexed may be referred to as a code region. Using this multiplexing technique, the original PDL data is multiplexed on the image data to be printed. Since the PDL data is a character string, each character is expressed by a binary code, and is multiplexed on the image data using the mask shown in
Subsequently, the process advances to step S204, and print image is generated. In the print image generation operation, an arbitrary known method may be used but this embodiment will describe an example of using the following method. In this example, the following four processes are performed for each pixel of the multiplexed bitmap image generated in step S203 and formed by R, G, and B pixel values.
Color conversion is processing of performing conversion so that RGB information of the multiplexed bitmap image can preferably be printed by the MFP main body 40. The reason for this is that as a color described in a drawing command of PDL, a color value which can preferably be expressed on a display is generally set, and when the value is output intact by a printer, a different color is undesirably output.
More specifically, to calculate a combination of preferred output pixel values (Rout, Gout, and Bout) for a combination of input pixel values (Rin, Gin, and Bin), a three-dimensional lookup table is used for each output color. Ideally, since each of the input values Rin, Gin, and Bin has 256 tones, a table Table1[256][256][256][3] having 16,777,216 (=256×256×256) combinations of output values in total is prepared to obtain:
Thus, color conversion can be implemented. Furthermore, a known contrivance to decrease a table size may be used. For example, the number of grids of the lookup table is decreased from 256 to, for example, 16, and an output value is decided by interpolating the table values of a plurality of grids.
Ink color separation is processing of converting the output values Rout, Gout, and Bout of the color conversion processing into output values of the respective ink colors of inkjet printing. This embodiment assumes 4-color inkjet printing of cyan, magenta, yellow, and black. There are various implementation methods for this conversion processing. In this embodiment, similar to the color conversion processing, a combination of preferred ink color pixel values (C, M, Y, and K) is calculated for the combination of the output pixel values (Rout, Gout, and Bout). To do this, a three-dimensional lookup table Table2[256][256][256][4] for each output color can be used to obtain:
Thus, ink color separation can be implemented. Furthermore, a known contrivance to decrease a table size may be used.
Subsequently, in output characteristic conversion, the density of each ink color is converted into a printing dot count rate. More specifically, for example, the density of 256 tones for each color is converted into a dot count rate Cout, Mout, Yout, or Kout of 1,024 tones for each color. To do this, a two-dimensional lookup table Table3 [4] [256] in which a preferred printing dot count rate for the density of each ink color is set is used to obtain:
Thus, output characteristic conversion can be implemented. Furthermore, a known contrivance to decrease a table size may be used. For example, the number of grids of the lookup table is decreased from 256 to, for example, 16, and an output value is decided by interpolating the table values of a plurality of grids.
Subsequently, in quantization, the printing dot count rate Cout, Mout, Yout, or Kout of each ink color is converted into ON/OI/F of an actual printing dot of each pixel. As a quantization method, an arbitrary method such as an error diffusion method or a dither method may be used. The dither method is exemplified to obtain:
Then, by performing comparison with a threshold corresponding to each pixel position, it is possible to implement ON/OI/F of the printing dot of each color. In this example, the occurrence probability of each printing dot is Cout/1023, Mout/1023, Yout/1023, or Kout/1023.
Thus, the print image generation operation in step S203 ends.
Next, in step S205, the print image generated in step S204 is printed. Thus, the PDL document can be printed on a print sheet.
The above processing can print, on a print sheet, the PDL document on which the PDL file data is multiplexed. Referring to the pattern shown in
Color-Specific Pixel Count Information Extraction Processing
Subsequently, a multiplexed PDL extraction procedure will be described. In step S211 of
Next, in step S212, the analog electrical signal is digitized to input digital R, G, and B values. An arbitrary known method may be used for bitmap acquisition processing, but this embodiment will describe an example of using the following method. The following four processes are performed for each pixel of the bitmap image acquired in step S211 and formed by R, G, and B pixel values.
In MTF (Modulation Transfer Function) correction, correction associated with the resolution of the reading performance of the scanner is performed. More specifically, in reading by the scanner, since an image is blurred due to a deviation from a focus position, the performance limit of a lens itself, or the like, restoration is performed to some extent by filter processing or the like. In fact, if strong enhancement processing is performed such that the deterioration is completely restored, an adverse effect of the image such as enhancement of highlight detail loss or image noise/contaminated pixel is more conspicuous, and thus design is performed to keep the balance between the adverse effect and improvement of image quality. For the sake of descriptive simplicity, an example of an edge enhancement filter for multiplying pixel values in the central portion of the image by 5 and pixel values in the upper, lower, left, and right portions by −1 will be described below.
R′[x][y]=R[x][y]×5−R[x−1][y]−R[x+1][y]−R[x][y−1]−R[x][y+1]
G[x][y]=G[x][y]×5−G[x−1][y]−G[x+1][y]−G[x][y−1]−G[x][y+1]
B′[x][y]=B[x][y]×5−B[x−1][y]−B[x+1][y]−B[x][y−1]−B[x][y+1]
Input correction is processing of converting the output value of the CCD, which is originally a photon quantity, into brightness suitable for human visual sensitivity. More specifically, for example, an R′, G′, or B′ signal of 4,096 tones for each color is converted into a color intensity value R″, G″, or B″ of 1,024 tones for each color. To do this, a one-dimensional lookup table Table4[4][4096] in which a preferable printing dot count rate for the density of each ink color is set is used to obtain:
Thus, input correction can be implemented. Furthermore, a known contrivance to decrease a table size may be used. For example, the number of grids of the lookup table is decreased from 4,096 to, for example, 256, and an output value is decided by interpolating the table values of a plurality of grids.
Shading correction is processing of reducing color/density unevenness caused by a difference in reading sensitivity at each pixel position caused by the manufacturing variation or assembly variation of a lens, LED, or CCD forming the scanner device. More specifically, the R″, G″, or B″ signal of 1,024 tones for each color is converted into the color intensity value R″, G″, or B″ of 256 tones for each color. To do this, with respect to the direction (X direction) in which the scanner lens is arranged, a one-dimensional lookup table Table5[X][3][1024] for density conversion for each X-pixel position is used to obtain:
Thus, shading correction can be implemented. Furthermore, a known contrivance to decrease a table size may be used. For example, the number of grids of the lookup table is decreased from 1,024 to, for example, 256, and an output value is decided by interpolating the table values of a plurality of grids.
Finally, color conversion processing is performed. In contrast to printing, the calculated values R″, G″, and B′″ are values unique to the scanner device, and thus the color conversion processing is performed to obtain preferable values Rout, Gout, and Bout for display on the display. To do this, similar to color conversion at the time of printing, since each of the input values R″, G′″, and B′″ has 256 tones, a table Table6[256][256][256][3] having 16,777,216 (=256×256×256) combinations of output values in total is prepared to obtain:
Thus, the color conversion processing can be implemented. Furthermore, a known contrivance to decrease a table size may be used. For example, the number of grids of the lookup table is decreased from 256 to, for example, 16, and an output value is decided by interpolating the table values of a plurality of grids.
Thus, the bitmap acquisition operation in step S212 ends.
As will be apparent by comparing
To cope with them, in this embodiment, the processes in step S213 and the subsequent step are executed to correct the deteriorated image, thereby suppressing a decrease in image quality obtained by the scan. In step S213, the multiplexed PDL file data is extracted. An overview of an example of bitmap image analysis will be described below.
First, a position at which the multiplexed information (to also be referred to as additional information hereinafter) is embedded is detected from the image data. More specifically, an embedded position is detected by analyzing the spatial frequency characteristic of the image data.
In data extraction by frequency analysis, it is necessary to accurately extract an analysis area from the image data, and thus processing of correcting the deviation of the coordinate position is performed. For example, extraction of a region of 8 pixels×8 pixels from the image and frequency analysis are repeated in the vertical and horizontal directions while shifting by one pixel in each of the vertical and horizontal directions. Then, these processes are repeated 64 times in total until 8 pixels are shifted in each of the horizontal and vertical directions, and a position at which the spectrum is largest is set as a reference position for extraction. In this case, a region to undergo frequency analysis is a region of 16 pixels×16 pixels, and if the region is within a region where the additional information is multiplexed without any gap, it should include at least one piece of additional information. Therefore, it is possible to decide the position of the region as a reference, as described above. After the completion of the position detection processing, the additional information is extracted in accordance with the multiplexing rule with reference to the position, thereby obtaining the embedded sequence of “0” and “1”.
Note that if the head of the code region where the additional information is embedded is selected as a position in the image to specify the reference position by the above method, the specified reference position indicates the head of the code region. In other cases as well, since it is possible to roughly specify the position of the region, whose position is specified as a reference, in the multiplexed code string, it is possible to specify the head of the multiplexed code string with reference to the position. It is possible to specify the head of the region where the additional information is multiplexed, by analyzing the spatial frequencies with respect to the region of 8×8 pixels specified as the head and the preceding and succeeding regions of 8×8 pixels. Thus, since the length of the additional information may be fixed, the entire region where the additional information is multiplexed can be specified. The thus specified entire code region can be decoded into binary data by analyzing the spatial frequencies shown in
In step S214, the extracted PDL file is saved. By extracting the PDL file from the scan image of the printed material and saving it, it is possible to acquire a document without image deterioration caused by printing and scanning. Furthermore, by executing printing again based on the image data generated from the extracted PDL file, it is possible to perform copy processing without image deterioration.
With the above-described arrangement and procedure, PDL data based on which bitmap image data has been obtained is multiplexed on the image data. This can restore, from the image, the PDL data which does not deteriorate by performing formation of an image on a medium and optical reading, thereby reproducing an image without deterioration.
[Other Examples of Multiplexing Method]
The example of embedding information for every 8×8 pixels has been explained with reference to
This can form, on a print sheet, a multiplexing pattern difficult to visually recognize. More specifically, in step S203 of
In the case of this multiplexing method, in the PDL data extraction processing in step S213, it is determined, for every 8×8 pixels in the read bitmap image, whether a yellow dot is printed. Then, the QR code pattern corresponding to
Note that if one QR code has an insufficient capacity, the PDL data may be divided and encoded in a plurality of QR codes, and then multiplexed. In this case, the QR code to be embedded at the start position may include a division number.
As another multiplexing example, there is provided a method of performing threshold modulation at the time of quantization processing in the print image generation processing in step S204 of
The various multiplexing examples have been described above. In general, if an information amount to be multiplexed increases, it is necessary to increase the printing dot count or a modulation amount, resulting in an increase in image deterioration of the entire print image.
As described above, since the document page 300 shown in
In this example, as an example of the font size, calculation is performed based on the information disclosed in Japanese Patent Laid-Open No. 2008-186165. Japanese Patent Laid-Open No. 2008-186165 describes, as follows.
“When performing calculation for 20 pages, the PDL size without font embedding is about 60 KB while the PDL size with font embedding is 460 KB which is a nearly 900% increase. (Calculation is performed by assuming that new characters per page account for 75%.)”
A font embedding amount for one page is assumed to be 400 Kbytes/20=20 Kbytes.
As described above, as compared with the image rendered in step S202, the PDL size acquired in step S201 is as small as about 6.6%. Therefore, when multiplexing on a print document, it is possible to significantly reduce image deterioration of the entire print image caused by multiplexing by multiplexing not the bitmap image but the PDL file.
Furthermore, by directly embedding the PDL data, it is possible to completely restore the PDL file by scanning the document. In this case, since all the drawing commands associated with
Furthermore, if reduction or enlargement is performed at the time of printing, the thin lines and characters are conventionally thinned or thickened. In the worst case, the characters and thin lines are unreadable or disappear. However, if the invention according to this embodiment is used, the multiplexed PDL data need only be extracted.
As another approach, since the characters and thin lines are also reduced or enlarged conventionally at the time of making a reduced or enlarged copy, the readability may deteriorate. However, if the PDL data can be extracted as in this embodiment, it is possible to change the size based on vector data with respect to a TEXT drawing command, and thus the following services can be implemented.
As described above, characters as vector data hardly deteriorate by variable magnification, and only characters can be magnified, thereby making it possible to change the size using this. Similarly, in copy processing, it is possible to arbitrarily change the thickness of a line, the type and color of a line, a painting pattern, and the like with respect to another command such as a LINE drawing command.
With the above-described arrangement and procedure, PDL data based on which image data is obtained is encoded in, for example, a matrix two-dimensional code, and multiplexed on bitmap image data generated from the PDL data. This can restore, from an image, PDL data which does not deteriorate by forming the image on a medium and optically reading it, thereby reproducing an image without deterioration.
The first embodiment has explained the example of embedding the whole PDL file in the rendered bitmap image. This embodiment will describe an example of preferably reducing the PDL file size to avoid image deterioration when the PDL file size is large. In this embodiment, multiplexing PDL data with a reduced file size is created and multiplexed instead of multiplexing the PDL file intact.
In step S903, a multiplexing PDL file with a reduced file size is created by deleting an image file (bitmap image) from a PDL file. Particularly, the reason for deleting the image file is that the file size of the image file is largest, as described in the breakdown of calculation of the file size in the first embodiment. On the other hand, since the drawing command portion has a smallest file size, and includes thin line and character drawing commands, the drawing command portion is preferably, preferentially included in the multiplexing PDL file. Font data having an intermediate size is a necessary element for character drawing, and is thus preferably included in the multiplexing PDL file.
In this embodiment, among these methods, the method of describing a command in a state of “absence of file” is adopted. The reason for this is that it is possible to notify an apparatus which has restored the multiplexed PDL data from the image that “the file has been deleted” clearly “at the time of PDL decoding” using a scanner.
It is determined in step S1103 whether the focused command is an IMAGE drawing command. If the determination result is YES, the process advances to step S1104; otherwise, the process advances to step S1105.
In step S1104, image data in the PDL file is deleted and the focused command is added to a multiplexing PDL file. More specifically, as described above, the file name in the IMAGE drawing command is replaced by “ ”, and added to the multiplexing PDL file.
In step S1105, the drawing command in the PDL file is added intact to a multiplexing PDL file.
In step S1106, it is determined whether the processing ends for all the drawing commands. If the determination result is YES, the process advances to step S1107; otherwise, the process returns to step S1102 to continue the processing. As a practical method of determining the end of the processing for all the drawing commands, a method of determining whether a </PAGE> tag indicating the end of the page is reached can be adopted.
In step S1107, the generated multiplexing PDL file is saved. An example of the multiplexing PDL file generated in this embodiment will be described below.
The difference from the PDL file in the first embodiment is that the file name in the <IMAGE> drawing command of the eighth row is “ ”.
Referring back to
Processes in steps S905 and S906 are the same as those in step S204 and S205 of
From the thus formed image data, the PDL data can be restored by the procedure shown in
In this way, the PDL decoding side can generate PDL data including an image portion while restoring the shapes of characters and thin lines by a method of, for example, performing combination with an image portion corresponding to the region of the IMAGE drawing command in the scanned image. Furthermore, the data amount of the font data is the second largest after the data amount of the image file. Therefore, for example, if it is ensured that there is no problem even if multiplexing is not performed, for example, if the font designated by the TEXT command is held as a standard in the PC 50 or MFP 40, the font data may be deleted from the multiplexed PDL file.
As described above, it is possible to reproduce high-quality image at the time of reproduction by multiplexing the PDL data on the image. In addition, by excluding the bitmap image data of a large size from the PDL data to be multiplexed, it is possible to reduce the data size to be multiplexed.
The second embodiment has explained the example of determining whether to include a drawing command in a multiplexing PDL file in accordance with the type of the drawing command in the PDL data. This embodiment will describe an example of making decision in accordance with the actual size of a drawing command or the like. The above description assumes that IMAGE drawing command+image file size>another drawing command. In fact, however, even an image file may have a small file size because it includes a small number of pixels. Conversely, if the number of LINE drawing commands is large, even the LINE drawing commands have a large file size.
A box object 302 shown in
<BOX> 420, 75, 550, 300, BLACK, FULL </BOX>
On the other hand, for example, the box object 302 can be described by two BOX drawing commands given by
<BOX> 420, 75, 500, 300, BLACK, FULL </BOX>
<BOX> 500, 75, 550, 300, BLACK, FULL </BOX>
Since a drawing command to be used is determined in accordance with the specifications of an application operating on a PC 50, there can exist, for example, an application having specifications of describing all pixels by LINE commands on a pixel basis without using BOX drawing commands.
If a LINE command is described for each pixel, the object 302 shown in
Since one LINE drawing command is formed by 43 characters, one drawing command has a size of 86 bytes when one character has a size of 2 bytes. Therefore, 29,606 drawing commands have a size of 86×29,606=2,546,116 bytes 2.6 Mbytes in total. This is larger than the PDL file size of 106,200 bytes used in the first embodiment, and is larger than the rendering image data size of 1,620,000 bytes 1.6 Mbytes. As described above, even if character/line drawing commands are included in the multiplexing PDL file, image deterioration may be too large. To cope with this, in this embodiment, the PDL data is divided into PDL data each for a region of a predetermined size, the PDL size of each region is compared with a predetermined threshold size, and then the PDL data of the region having a size equal to or smaller than the threshold size is set as multiplexed PDL data. This suppresses the size of the PDL data to be multiplexed.
In this way, by excluding a region having a large data size from the multiplexing PDL generation target, it is possible to suppress the data size of the multiplexing target to a small size, and reduce the degree of image deterioration.
In step S1502, a variable SIZE XY representing the data size of each tile (each of the 36 regions A0 to F5) is initialized (=0) by:
In step S1503, the drawing commands are analyzed. Similar to step S1102 of
In step S1504, each drawing command is divided based on the tile size. For example,
<BOX> 50, 75, 200, 300, GRAY, STRIPE </BOX>
of the second row is a drawing command corresponding to the region 1301 shown in
In a state in which division of the BOX drawing command of the second row is complete, the multiplexing PDL data of each region is as follows.
Assume that each drawing command ignores drawing at a position outside the region. This simplifies the processing by assuming “division of drawing command=copy of drawing command”.
Next, in step S1506, the data size is added for each tile of the division region.
Since the BOX drawing command of the second row is formed by 43 characters, the data size of each division region is increased by 86 bytes when one character has a size of 2 bytes. At this time, the data sizes of the respective regions are
Estimation is performed by assuming that one drawing command has a size of about 86 bytes.
In step S1507, it is determined whether division ends for all the drawing commands. If the determination result is YES, the process advances to step S1508; otherwise, the process advances to step S1503 to perform division of the drawing command of the next row.
From the third row, since many LINE commands are repeated, as described above, the data sizes of the four regions A4 to B5 become very large. More specifically,
SIZE_A4=529,416(=86×(500−420+1)×(150−75+1))
SIZE_A5=333,336(=86×(550−500+1)×(150−75+1))
SIZE_B4=1,051,866(=86×(500−420+1)×(300−150+1))
SIZE_B5=662,286(=86×(550−500+1)×(300−150+1))
From step S1508, determination of the data size of each region is performed. In step S1509, it is determined whether the data size of the determination target region exceeds the threshold. If the determination result is YES, the process advances to step S1510; otherwise, the process advances to step S1511. As the threshold, a necessarily and sufficiently small value is preferably set. However, in this embodiment, a size of 3,010 bytes (=86×35) is set by setting 35 drawing commands as a standard. Thus, the size is 108,360 bytes at most for 36 regions, which is almost equal to the PDL file size calculated in the first embodiment.
In step S1510, with respect to the region whose size exceeds the threshold, the drawing commands are replaced by a Null image drawing command. More specifically, similar to the second embodiment, the following one command is described.
<IMAGE> 250, 350, 550, 825, “ ”</IMAGE>
Therefore, with respect to the region whose data size exceeds the threshold, the number of drawing commands is one and the size is about 86 bytes.
In step S1511, it is determined whether confirmation ends for all the regions (the 36 regions in this embodiment). If the determination result is YES, the process advances to step S1512; otherwise, the process returns to step S1508 to determine the data size of the next region.
In step S1512, the multiplexing division PDL data of all the regions are combined to generate a multiplexing PDL file, and the multiplexing PDL file is saved.
As described above, it is possible to generate a multiplexing PDL file in which the PDL data size of each region does not exceed the threshold.
Referring back to
When the thus generated image data is printed and scanned, the multiplexed PDL data can be restored by the procedure shown in
As described above, it is possible to reduce image deterioration caused by multiplexing by reducing the data size of the multiplexing PLD file. The method according to this embodiment can reduce image deterioration by excluding, from multiplexing target data, the region whose drawing command size is large, regardless of the type of the drawing command.
Similar to the second embodiment, in a region of a large size, it is explicit that a drawing command existed in an original region, as described by
<IMAGE> 250, 350, 550, 825, “ ”</IMAGE>
Therefore, the PDL decoding side can generate PDL data including an image portion while restoring the shapes of characters/thin lines by a method of, for example, performing combination with an image portion corresponding to the region of the IMAGE drawing command in a scanned image.
Furthermore, in this embodiment, the size is reduced by focusing on the number of drawing commands in the PDL data. However, by additionally setting a threshold for each of a font data size and an image data size, it may be determined whether to include the data in multiplexed PDL data.
According to this embodiment, with the above-described arrangement, it is possible to suppress the upper limit of the data amount of PDL data to be multiplexed on image data to the total sum of multiplexing thresholds of respective regions, each for determining whether to perform multiplexing. Therefore, if the upper limit of the data amount is set to a data amount that can be multiplexed on an image to be formed on one sheet, it is possible to reliably multiplex the encoded PDL data on one sheet. In addition, it is possible to obtain the advantages of the above-described first and second embodiments.
Embodiment(s) of the present invention can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be referred to more fully as ‘non-transitory computer-readable storage medium’) to perform the functions of one or more of the above-described embodiment(s) and/or that includes one or more circuits (e.g., application specific integrated circuit (ASIC)) for performing the functions of one or more of the above-described embodiment(s), and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s) and/or controlling the one or more circuits to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more processors (e.g., central processing unit (CPU), micro processing unit (MPU)) and may include a network of separate computers or separate processors to read out and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™), a flash memory device, a memory card, and the like.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2021-039527, filed Mar. 11, 2021 which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2021-039527 | Mar 2021 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5883984 | Huang | Mar 1999 | A |
6191874 | Yamada et al. | Feb 2001 | B1 |
6424752 | Katayama et al. | Jul 2002 | B1 |
6549681 | Takiguchi et al. | Apr 2003 | B1 |
6608926 | Suwa | Aug 2003 | B1 |
6621921 | Matsugu et al. | Sep 2003 | B1 |
6694051 | Yamazoe | Feb 2004 | B1 |
6704041 | Katayama et al. | Mar 2004 | B2 |
7847958 | Ishikura | Dec 2010 | B2 |
7924469 | Ono et al. | Apr 2011 | B2 |
7944588 | Yamada | May 2011 | B2 |
8102558 | Goto et al. | Jan 2012 | B2 |
8175155 | Suwa et al. | May 2012 | B2 |
8199339 | Ihara | Jun 2012 | B2 |
8237991 | Ono et al. | Aug 2012 | B2 |
8295598 | Inoue | Oct 2012 | B2 |
8300925 | Kunieda | Oct 2012 | B2 |
8405876 | Nakatani et al. | Mar 2013 | B2 |
9019518 | Takayama | Apr 2015 | B2 |
20020191229 | Tamamura | Dec 2002 | A1 |
20030059085 | Miyake | Mar 2003 | A1 |
20030063319 | Umeda | Apr 2003 | A1 |
20030138143 | Noguchi | Jul 2003 | A1 |
20040120544 | Eguchi | Jun 2004 | A1 |
20070147657 | Sato | Jun 2007 | A1 |
20080062483 | Morimoto | Mar 2008 | A1 |
20080218806 | Yokokura | Sep 2008 | A1 |
20090086242 | Kato | Apr 2009 | A1 |
20090110313 | Sakaue | Apr 2009 | A1 |
20090210715 | Izu | Aug 2009 | A1 |
20110304861 | Monga | Dec 2011 | A1 |
20120162677 | Kato | Jun 2012 | A1 |
20120229867 | Takagi | Sep 2012 | A1 |
20120268759 | Ono et al. | Oct 2012 | A1 |
20130050764 | Zhan | Feb 2013 | A1 |
20130293913 | Takayama | Nov 2013 | A1 |
20170099410 | Iguchi | Apr 2017 | A1 |
20170214829 | Nakabayashi | Jul 2017 | A1 |
20190005601 | Ishida | Jan 2019 | A1 |
20210042487 | Benito Altamirano | Feb 2021 | A1 |
Number | Date | Country |
---|---|---|
2 422 412 | Apr 2002 | CA |
2384485 | Feb 2010 | CA |
2002142128 | May 2002 | JP |
2007043423 | Feb 2007 | JP |
2008-186165 | Aug 2008 | JP |
4187749 | Nov 2008 | JP |
4187749 | Nov 2008 | JP |
5180551 | Apr 2013 | JP |
5180551 | Apr 2013 | JP |
2021027434 | Feb 2021 | JP |
Entry |
---|
Co-pending U.S. Appl. No. 17/688,988, filed Mar. 8, 2022. |
Co-pending U.S. Appl. No. 17/688,938, filed Mar. 8, 2022. |
Number | Date | Country | |
---|---|---|---|
20220294931 A1 | Sep 2022 | US |