1. Field of the Invention
The present invention relates to the realization of high picture quality in recording in which resolution of a main scan and resolution of a subscan differ.
2. Description of the Related Art
Among recording apparatuses based on an electrophotographic system in the related arts, there is a recording apparatus in which resolution of a main scan and resolution of a subscan differ. In this case, generally, the resolution of the main scan is high and the resolution of the subscan is low.
The resolution of the main scan is determined in dependence on a switching speed of ON/OFF operations of a laser. Such high resolution is attained by the realization of a high speed of a driving circuit of a laser generator and a high speed of a PWM signal generating circuit. The resolution of the subscan is determined in dependence on speeds and the like of a developing apparatus, a conveying apparatus of a recording media, and a fixing apparatus of toner. Those speeds are determined in dependence on a material of the developing apparatus, a material of the conveying apparatus, performance of a motor, and performance of the fixing apparatus. Therefore, the realization of the high speed of the subscan directly results in high costs. In recent years, each recording apparatus (printer) maker has realized the low resolution of the subscan in order to realize a high speed and low costs of the recording apparatus.
Ordinarily, it is necessary to make the resolution of the main scan/subscan of digital image data which is input to the recording apparatus coincide with the resolution of the main scan/subscan of the recording apparatus. That is, it is necessary to input the digital image data having the main scan resolution of 600 dpi and the subscan resolution of 300 dpi to the recording apparatus having the main scan resolution of 600 dpi and the subscan resolution of 300 dpi.
In Japanese Patent Application Laid-Open No. 2001-144931, such a technique that the resolution of the main scan and the resolution of the subscan of the input digital image data are compared and an original image is rotated by 90° in accordance with the resolution of the recording apparatus has been disclosed.
For example, the digital image data having the main scan resolution of 600 dpi and the subscan resolution of 1200 dpi is printed by the recording apparatus having the main scan resolution of 1200 dpi and the subscan resolution of 300 dpi. If the technique of selecting the 90° rotating process is not used, since the digital image data is reduced from 1200 dpi to 300 dpi in the subscanning direction, a ¼ thinning-out process is necessary. If the technique of selecting the 90° rotating process is used, the main scan and the subscan are reversed by the rotating process. That is, as for the digital image data having the subscan resolution of 1200 dpi, when the original image is rotated by 90°, the resolution in the main scanning direction changes to 1200 dpi. Since the main scan resolution of the recording apparatus is equal to 1200 dpi, the thinning-out process is unnecessary. As for the digital image data having the main scan resolution of 600 dpi, when the original image is rotated by 90°, the subscan resolution of the digital image data changes to 600 dpi. Therefore, a ½ thinning-out process for reducing the resolution from 600 dpi to 300 dpi corresponding to the resolution in the subscanning direction of the recording apparatus is executed. That is, a deterioration in resolution of the whole image can be prevented by the rotation.
However, in Japanese Patent Application Laid-Open No. 2001-144931, there is a case where characters or the like in the digital image data cannot be beautifully printed. For example, such a phenomenon occurs in the case where the digital image data is a font such as a Ming-style character or the like having a number of lateral thin lines or a ruled line. If the digital image data having the main scan resolution of 600 dpi and the subscan resolution of 1200 dpi is printed as it is by the recording apparatus having the main scan resolution of 1200 dpi and the subscan resolution of 300 dpi without executing the rotating process, since the digital image data is subjected to a high resolution converting process from 600 dpi to 1200 dpi in the main scanning direction, vertical thin lines are not deteriorated. If the rotating process is executed, the vertical thin lines become the lateral thin lines and are remarkably deteriorated due to the ½ thinning-out process of the subscan.
It is an object of the invention to provide an image output apparatus which can suppress a deterioration in resolution at the time of an image output in a character original or a diagram original and to provide a program for allowing a computer to execute a process for suppressing a deterioration in resolution of an image at the time of the image output.
In order to achieve the object set forth above, the present invention provides an image processing apparatus for controlling a recording apparatus which has a subscan resolution lower than a main scan resolution, comprising a character direction discriminating unit constructed to discriminate a direction of a character included in image data, an image rotating unit constructed to rotate the image data so that a horizontal line in the character determined by the character direction discriminating unit is scanned by the main scan of the recording apparatus, and a control unit constructed to allow the recording apparatus to record the image data rotated by the image rotating unit.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
Exemplary embodiments of the invention will be described hereinbelow with reference to the drawings. In the following description, it is assumed that “character direction” indicates the vertical direction of one character.
The transferred toner image is fixed onto the recording paper by a fixing device 110, thereby performing printing by an electrophotographic technique.
Although
Subsequently, the controller board will be described in detail with reference to
Subsequently, an executing procedure of the embodiment 1 will be described with reference to a flowchart of
Although the digital image data is formed by the scanner unit (101) in the embodiment, the invention is not limited to such an example. That is, the digital image data can be also input from the LAN interface (212) or USB interface (211) by a print instruction from a personal computer (not shown). In this case, the transferred digital image data is temporarily stored into the RAM (208) and, thereafter, processed in a manner similar to the case of using the scanner unit (101).
Subsequently, the CPU (206) confirms a size of original in step S302. Generally, information of the original size and a size of digital image data is transmitted from the scanner unit (101) or the personal computer (not shown). The information of the original size can be also obtained by inputting it from the operation panel. At this time, whether or not the obtained size is the corresponding original size in the embodiment is discriminated. In the case of the recording apparatus (102) which can print an image of up to the A3 portrait size, a size of up to the A4 size is the corresponding original size in the embodiment. This is because in the embodiment, since there is a case where the image is rotated by 90° and printed, the recording apparatus (102) which can print the image of up to the A3 portrait size cannot print the image onto a media of the A3 landscape size. If the original is adapted to the corresponding original size, the CPU (206) advances to a process of S303. If it is not adapted to the corresponding original size, the CPU (206) advances to S307.
Subsequently, the CPU (206) discriminates the character direction in S303. In this step, whether or not the image is rotated is discriminated and a rotation flag is set to an output value. The CPU (206) transfers the digital image data stored in the RAM (208) to the character direction discriminating unit (203). The character direction discriminating unit (203) executes a process for obtaining the rotation flag.
Method Using Band Pass Filters
In S401 in
In S403, the character direction discriminating unit (203) executes a band pass filter process every area of (3×3 pixels) in order to obtain a feature with respect to the main scanning direction. The filter processed image data is stored into an area Img′. An example of the band pass filter which is used at this time is illustrated in
In S404, the character direction discriminating unit (203) compares a value of Img′[x,y] and a threshold value 1. If it is larger than the threshold value 1, a value of MainCount is counted up in S405. The threshold value 1 is an arbitrary value. By adjusting it, the count value of MainCount can be adjusted. If the value of Img′[x,y] is equal to or less than the threshold value 1 in S404, the count value of MainCount is not counted up.
The above operation is executed with respect to the whole area of the digital image data (S406). Finally, the count value of MainCount is obtained. MainCount is a feature amount of the main scan. That is, it becomes a parameter to evaluate an amount of vertical lines to the whole digital image data.
In S407 to S412, a process for obtaining SubCount (feature amount of the subscan) is executed in correspondence to S401 to S406 as a process for obtaining the feature amount of the main scan mentioned above. However, S409, S410, and S411 are changed to a process for the subscan. An example of a band pass filter of S409 is illustrated in
In S410, the value of Img′[x,y] and a threshold value 2 are compared. If it is larger than the threshold value 2, the value of SubCount is counted up in S411. The threshold value 2 is an arbitrary value in a manner similar to the threshold value 1. If the value of Img′[x,y] is equal to or less than the threshold value 2 in S410, the count value of SubCount is not counted up.
In S413, the character direction discriminating unit (203) compares SubCount and MainCount. If SubCount is larger than MainCount, the feature amount in the subscanning direction is larger than that in the main scanning direction. That is, it can be determined that in the case of a character portion, an amount of horizontal lines is larger than that of vertical lines. Therefore, “1” is set into the rotation flag in S414. If SubCount is equal to or less than MainCount, the rotation flag is set to “0”.
Method Using Pixel Continuity Detections
In S701 in
S702 is a loop edge to scan the whole areas of the main scan and the subscan. x denotes the main scanning direction and y indicates the subscanning direction. The number of pixels in the main scan is equal to Nx pixels and the number of pixels in the subscan is equal to Ny pixels.
In S703, the character direction discriminating unit (203) executes a binarizing process of the image. Although a method of the binarizing process is not designated in particular, it is executed by a simple binary value here. An arbitrary binarization threshold value is prepared. The scanner unit (101) expresses it by luminance information, that is, (white: 255, black: 0). Therefore, if the value is less than the binarization threshold value, it is set to “1” (black), and if it is larger than the binarization threshold value, it is set to “0” (white) so as to be inverted for the luminance information.
In next S704, the character direction discriminating unit (203) counts the number of vertical lines. As a method of counting the number of vertical thin lines, a location where black continues in the main scanning direction is detected. For example, if the number of continuous black portions in the main scanning direction is equal to or larger than 25 pixels and is equal to or less than 50 pixels (about 1 to 2 mm in the case of 600 dpi), such a region is determined as a vertical line and “1” is added to the count value (MainCount). By executing the above processes in the subscanning direction, the number of vertical lines is counted.
Subsequently, in next S705, the character direction discriminating unit (203) counts the number of horizontal lines. As a method of counting the number of lateral thin lines, a location where black continues in the subscanning direction is detected. For example, if the number of continuous black portions in the subscanning direction is equal to or larger than 25 pixels and is equal to or less than 50 pixels (about 1 to 2 mm in the case of 600 dpi), such a region is determined as a horizontal line and “1” is added to the count value (SubCount). By executing the above processes in the main scanning direction, the number of horizontal lines is counted.
The above operations are executed with respect to the whole region of the digital image data (S706). Finally, MainCount (feature amount of the main scan) and SubCount (feature amount of the subscan) are obtained.
In S707, the character direction discriminating unit (203) compares a result of the counting of the vertical thin lines (MainCount) and a result of the counting of the lateral thin lines (SubCount). If the number of horizontal lines is larger than that of the number of vertical lines as a result of the comparison, “1” is set into the rotation flag in S708. That is, it is determined that the number of lateral thin lines is large, and the rotation output is selected. If the number of horizontal lines is equal to or less than the number of vertical lines, the rotation flag is set to “0”.
The description of the process of the character direction discriminating unit (203) is finished here and the procedure is returned to the description of
If the rotation flag is equal to 1 in S304, whether or not the recording paper adapted to the rotating process can be fed is discriminated in S305. If it is decided that the recording paper can be fed, S306 follows. If it is determined that the recording paper cannot be fed, S307 follows.
In S306, the rotating process of 90° is executed. At this time, the character direction discriminating unit (203) uses the image rotating unit (205) in
Subsequently, a resolution converting process of the subscan is executed in S307 and a resolution converting process of the main scan is executed in S308. In the embodiment 1, it is assumed that the recording apparatus (102) having the main scan resolution of 600 dpi and the subscan resolution of 300 dpi is used. As mentioned above, it is assumed that the resolution of the image read out by the scanner unit (101) is equal to 600 dpi in the main scan and 300 dpi in the subscan. Therefore, in S307, the ½ thinning-out process is executed in the subscanning direction. Although its executing method is not particularly designated in the embodiment, a linear interpolation arithmetic operation is generally used. Naturally, a nearest neighborhood method or a bicubic method may be used and the order of the resolution conversion and the rotation may be reversed.
Subsequently, in S309, the CPU (206) executes an image arithmetic operating process. The process of S309 can be executed in the image processing unit (204) in
Subsequently, in S310, the CPU (206) executes a printing process. At this time, it is assumed that the recording paper of the A4 landscape size has been set in the first sheet cassette (104) in
If the rotating process is executed in S306, the A4 portrait recording paper is fed from the second sheet cassette (105). If the recording paper of the proper size does not exist in the cassette, a message to promote the user to feed the paper from the manual sheet insertion port (103) is displayed on a display screen of the operation panel (107).
According to the foregoing embodiment, in the printed matter which is output by the recording apparatus (102) having the low subscan resolution, the deterioration in resolution of the character or diagram can be automatically suppressed. Owing to the above construction, in the case of Kanji (Chinese character) which needs the resolution of the horizontal lines, such a problem that the horizontal lines are broken or distinguished because of the low subscan resolution can be solved.
In an embodiment 2, in the character direction discriminating step of S303 in
In S801, the CPU (206) instructs the operating unit interface (201) to display a UI display screen. An example of the UI display screen is illustrated in
In S803, which one of the samples in
By the above embodiment, in the printed matter which is output by the recording apparatus (102) having the low subscan resolution, the deterioration in resolution of the character or diagram can be suppressed by the simple operation. Owing to the above construction, in the case of the Chinese character which needs the resolution of the horizontal lines, such a problem that the horizontal lines are broken or distinguished because of the low subscan resolution can be solved.
In an embodiment 3, in the character direction discriminating step of S303 in
In S1001, the CPU (206) reads the digital image data stored in the RAM (208) to the Img area. In S1002, the CPU (206) transfers the digital image data in the Img area to an OCR program stored in the ROM (209). The CPU (206) executes an arithmetic operating process to the digital image data in accordance with the OCR program and forms layout information. A forming method of the layout information is based on the OCR program and is not described in the embodiment. The character direction is included in the OCR layout information and it is obtained.
In S1003, the rotation flag is set by using a discrimination result of the character direction. When the character direction is a positive direction, that is, when the vertical direction of the digital image data coincides with the vertical direction of the character, “1” is set into the rotation flag in S1004. This is because when the character direction is the positive direction, it is considered that the number of horizontal lines is large. When the character direction is not the positive direction, the rotation flag is set to “0”. After that, the processing routine advances to S304 in
By executing the foregoing invention, in the printed matter which is output by the recording apparatus (102) having the low subscan resolution, the deterioration in resolution of the character can be suppressed by using the OCR process. Owing to the foregoing construction, in the case of the Chinese character which needs the resolution of the horizontal lines, such a problem that the horizontal lines are broken or distinguished because of the low subscan resolution can be solved.
In an embodiment 4, the PC printing operation which is instructed from an external personal computer (PC; not shown) will be described with reference to
In the case of executing the PC printing, the MFP receives a PDL (page description language) serving as a source of the digital image data and print conditions from the LAN-I/F (212) or USB-I/F (211) serving as an interface connected to the PC. The RAM (208) temporarily stores the received PDL and header information.
In S1101, the CPU (206) analyzes the PDL and header information. Information such as characters, diagram, photograph, and the like and their layout are described in the information which is analyzed and they are sequentially interpreted. In S1102, the CPU (206) forms digital image data from an analysis result of the PDL mentioned above and stored into the RAM (208). The above processes relate to an example of the executing method of the PC printing and the embodiment does not limit the PC printing. Therefore, there is also a case where the order is replaced or a case where the above processes are executed by the PC.
Subsequently, in S1103, the CPU (206) discriminates whether or not the size of original which is printed by the PC printing described in the PDL is the original size with which the embodiment can cope. If it is the corresponding original size, S1104 follows.
In S1104, the CPU (206) discriminates the character direction. In this case, the character direction discrimination is made by using the information of the PDL analyzed in S1101. A font, a size, and a direction of the character in the page are written in the analyzed PDL information. The process of S1104 will be described in detail with reference to a flowchart of
In S1201, the CPU (206) obtains the number of character blocks of the print page from the analyzed PDL information stored in the RAM (208). This process is executed to obtain the number of times of a processing loop starting from S1202 and is necessary in order to search for all character blocks in the page.
Subsequently, in S1203, the CPU (206) obtains font information of the target block. The font information indicates a type, a size, and a direction of the font.
In S1204, the CPU (206) branches the conditions in accordance with the font type. For example, when the font type indicates a Chinese character font, since it is presumed that high frequency lines are included, it is used as a set font and the processing routine advances to S1205. When the font type indicates an English character font, since the high frequency lines are not included in many cases, the processing routine advances to S1211 and the next character block is inspected.
Subsequently, in S1205, the CPU (206) obtains the font size. The smaller the font size is, the higher (thinner) the frequency of the printed character is. Therefore, in S1206, whether or not the minimum font size is included in the target block is discriminated.
If the minimum font size is included, in S1207, the CPU (206) confirms the character direction and selects either the rotation or the non-rotation in S1208 to S1210.
Since processes from S1105 are similar to processes from S305 in
By the foregoing embodiment, in the printed matter which is output by the recording apparatus (102) having the low subscan resolution, the deterioration in resolution of the character or diagram can be controlled by the simple operation. Owing to the foregoing construction, in the case of the Chinese character which needs the resolution of the horizontal lines, such a problem that the horizontal lines are broken or distinguished because of the low subscan resolution solved.
In an embodiment 5, the operation in the case of a plural page process will now be described with reference to a flowchart of
S1301 to S1303 relate to a loop process for reading a plurality of originals by using the sheet original reading function which the original reading apparatus (101) has. Each page is stored as digital image data into the RAM (208) from the scanner I/F (202). In this case, since it is necessary that the directions of the originals are aligned, it is necessary to unconditionally decide a printing direction for a plurality of originals.
In S1304, the CPU (206) discriminates whether or not a size of each original read in S1301 to S1303 coincides with the corresponding original size. If at least one original whose size differs from the corresponding original size is included among the read original sheets, the invention is not used. Therefore, the processing routine advances to S1313.
In S1305 to S1309, the CPU (206) discriminates the character direction of each page (S1306) and executes the count-up of the rotation flag (S1308). Since the discrimination about the character direction (S1306) has already been described in detail in the embodiments 1, 2, and 3, its description is omitted here.
Since a 2-up image is rotated from a 1-up image by 90 degrees, the character direction discrimination is performed for the 2-up image with rotation of 90 degrees with respect to the 1-up image.
In S1310, the count value which has been counted up in S1308 is compared with a constant A. As a deciding method of the constant A, for example, it is set to a value which is equal to the half of the number of original sheets scanned in S1302. In this case, if it is determined in the character direction discrimination in S1306 that the pages of the half number or more should be rotated, the rotating process in S1312 is executed. The constant A is not limited but may be freely set to an arbitrary value by an operating unit of the MFP using the embodiment.
Since processes after S1311 are similar to processes after S305, their description is omitted here. In S1316, the duplex printing or N-up printing is executed in accordance with the instruction from the operation panel 107.
By the foregoing embodiment, in the printed matter which is output by the recording apparatus (102) having the low subscan resolution, the deterioration in resolution of the character or diagram can be controlled by the simple operation. Owing to the foregoing construction, in the case of the Chinese character which needs the resolution of the horizontal lines, such a problem that the horizontal lines are broken or distinguished because of the low subscan resolution solved.
According to the foregoing embodiment, in the printed matter which is output by the recording apparatus having the low subscan resolution, the deterioration in resolution of the character or diagram can be suppressed.
Aspects of the present invention can also be realized by a computer of a system or apparatus (or devices such as a CPU or MPU) that reads out and executes a program recorded on a memory device to perform the functions of the above-described embodiment(s), and by a method, the steps of which are performed by a computer of a system or apparatus by, for example, reading out and executing a program recorded on a memory device to perform the functions of the above-described embodiment(s). For this purpose, the program is provided to the computer for example via a network or from a recording medium of various types serving as the memory device (e.g., computer-readable medium). In such a case, the system or apparatus, and the recording medium where the program is stored, are included as being within the scope of the present invention.
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. 2010-008044, filed Jan. 18, 2010, and Japanese Patent Application No. 2010-262874, filed Nov. 25, 2010, which are hereby incorporated by reference herein in their entirety.
Number | Date | Country | Kind |
---|---|---|---|
2010-008044 | Jan 2010 | JP | national |
2010-262874 | Nov 2010 | JP | national |