Image inputting apparatus

Abstract: There is provided an image inputting apparatus comprising: reading density control means for controlling a reading density in a sub-scan direction in accordance with a thickness of lateral line of an object to be recognized; and processing speed control means for raising a character recognition processing speed in accordance with a sub-scan density. When the lateral line of a recognizing character is thicker than the vertical line, the recognizing character is scanned at a predetermined standard reading density. When the recognizing character has a thick lateral line or is enough larger than the reading resolution, a sub-scan density is made coarse.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to an image processing apparatus which inputs an original image and changes a reading capability in correspondence to a character to be recognized. Related Background Art Generally, an image reading apparatus such as an image scanner often uses what is called a (1 : 1/2) optical system in which an original put on an original base glass is scanned by a light source and a mirror and is exposed onto an image sensor or a photo sensitive material. As shown in Fig. 9, according to the (1 : 1/2) optical system, an original P on a fixed original base glass 100 is illuminated by a light source 101 and an image light reflected by mirrors 102, 103, and 104 is formed as an image onto an image sensor 106 or the like through an image forming lens 105. A mirror unit 108 in which the mirrors 103 and 104 are installed is scanned at a speed of 1/2 of a scan speed of a lamp unit 107 in which the light source 101 and the mirror 102 are installed, thereby setting an optical path length from the original surface to the image forming lens to be always constant. The mirror unit is scanned in the direction (sub-scan direction) perpendicular to the longitudinal direction of the image sensor. A scan amount of one line is set so as to be equal to a reading width in the longitudinal direction (main scan direction) of the image sensor pixel. In many cases, the image scanner constructed as mentioned above is used as a device for a computer input. There is an OCR function as one of the main applications of the image scanner. The most significant factor of the OCR is a recognition ratio (ratio of the number of characters which could accurately been recognized to the number of characters which have been read). The recognition ratio largely depends on a reading performance (resolution) of the image scanner. To measure the recognition ratio, there is a case of using a chart on which alphabetic characters "e" are written on the whole surface as shown in Fig. 10. Whether the alphabetic characters "e" can accurately be recognized or not depends on whether a thin lateral line in the central portion of each character can be read or not . Fig. 11 shows an output of the image sensor in the case where the lateral line of the alphabetic character "e" has been read. It will be understood from the diagram that since the output value approaches the threshold level as the line of the character becomes thin, a possibility such that the character line after completion of the binarization is determined to be white increases. Thus, the image data of the alphabetic character "e" in which the lateral line in the central portion has been cut out is sent to the OCR and an erroneous recognition is caused. US-A-4574357 describes a real time character thinning system for providing a video output signal representative of a thinned image from digitized video input signals representing discrete picture elements of an image scanned by a scanner. After analysis of the scanned image those pixels which are to be retained as part of the thinned image are identified, whilst other of the pixels are discarded. SUMMARY OF THE INVENTION It is an object of the invention to provide an image inputting apparatus which can solve the problems of the above conventional technique and can improve a recognition ratio. The object is achieved by an apparatus according to claim 1 and a method according to claim 6. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram showing a construction of an embodiment 1 of the invention; Fig. 2 is a diagram showing a structure of the embodiment 1 of the invention; Fig. 3 is a flowchart showing an example of a control procedure by a CPU 24; Figs. 4A and 4B are explanatory diagrams for explaining the relation between the sub-scan density and the output of an image sensor; Fig. 5 is a diagram showing a construction of an embodiment 2 of the invention; Fig. 6 is a diagram showing an example of outputs of an image processor 23 and a logic operation circuit 30; Fig. 7 is a diagram showing a comparison example of reading times of an image scanner and processing times of a host computer in the conventional example and the embodiments; Fig. 8 is a flowchart showing an example of a control procedure by the CPU according to an embodiment 3; Fig. 9 is a diagram showing a structure of a conventional example; Fig. 10 is a diagram showing an example of a chart for measuring a recognition ratio; and Fig. 11 is a diagram showing an example of an output of an image sensor in the case where an alphabetic character "e" has been read in the conventional example. DESCRIPTION OF THE PREFERRED EMBODIMENTS Figs. 1 and 2 show an embodiment 1 of the invention. In Fig. 2, reference numeral 1 denotes an image sensor as reading means which is arranged in an apparatus main body. An original setting glass is mounted on the upper surface of the apparatus main body. The original P put on the glass is exposed and scanned by image scanning means 4, thereby exposing an image onto the image sensor 1. The image scanning means 4 comprises: a lamp unit 5 and a mirror unit 6 which move and scan in parallel with an original setting glass 3; and a lens 7 fixed into an apparatus main body 2. The lamp unit 5 comprises: a light source L to illuminate the original P; and a first mirror M 1 to reflect the image reflection light of the surface of the original P which has been illuminated by the light source L to the side of the mirror unit 6. The mirror unit 6 is constructed by second and third mirrors M 2 and M 3 for turning back the image light reflected by the first mirror M 1 toward the image sensor 1. The lamp unit 5 moves and scans on guide rails 8a and 8b at both edges at a speed which is twice as high as a speed of the mirror unit 6 so as to keep the optical path length constant in the whole image reading region. Reference numeral 9 denotes a pulse motor as a driving source of the scan of the lamp unit and the mirror unit. A rotation of the pulse motor 9 is transferred to a drive pulley 10 through a gear train. Generally, in many cases, such a kind of image reading apparatus uses a pulse motor as a driving source because of a reason such that a position control and a speed control are easy. A reduction ratio of the gear train and an outer diameter of the drive pulley 10 are set in a manner such that the image scanning means 4 moves by a distance of one line when a plurality of pulse are given to the pulse motor 9. In the embodiment, it is assumed that only one line is scanned by inputting four pulses. In the ordinary reading mode, four pulses are given to the pulse motor 9 within one accumulating time of the image sensor 1 and image information of one line is read. By executing a thinning-out process or an interpolating process, an image can be reduced or enlarged. Upon enlargement, the number of pulses which are supplied to the pulse motor 9 within one accumulating time is reduced, thereby decreasing a sub-scan pitch. For instance, by giving two pulses within one accumulating time, the sub-scan pitch is set to 0.5 line, so that image data can be read at a double density in the sub-scan direction. Likewise, by giving one pulse, the sub-scan pitch is set to 0.25 line and image data can be read at a quadruple density in the sub-scan direction. Two wires 11a and 11b which are coupled at one position on the way are wrapped around the drive pulley 10. One end of each wire is fixed to the lamp unit on the way and is wound by a half circumference around pulleys 12a and 12b at both edges of the mirror unit and is fixed to the main body. The other ends of the wires are wound by a half circumference around the pulleys 12a and 12b and are coupled to a tension spring 13. Thus, the mirror unit scans at a speed which is 1/2 of the speed of the lamp unit because of the principle of the running block and the optical path length is always held to a constant value in the whole scan area. The lamp unit 5 and the mirror unit 6 are ordinarily set to the home position near the original reading start position by a home position sensor (not shown). When a reading start command is received from the host computer, motor drive pulses synchronized with a reading sync signal of the image sensor 1 are given to the pulse motor 9. The pulse motor 9 rotates, an exposure scanning system starts the scan, and the image data which has been read is transmitted to the host computer through the image processor. In Fig. 1, reference numeral 1 denotes the same portion as that in Fig. 2. An analog image signal from the image sensor 1 is amplified by an amplifier 21 and, after that, it is converted into a digital image signal of n bits by an A/D converter 22 and is supplied to an image processor 23. The image processor 23 binarizes the digital signal or coverts a density gradation of the digital signal in accordance with a command from a CPU 24. The CPU 24 supplies a threshold value for binarization and data for shading correction to the image processor. An output from the image processor 23 is temporarily held in a shift register 25 and is sent to a host computer 31 through an interface 26 in accordance with a transfer command from the host computer 31. The CPU 24 receives a reading start command, a reading stop command, and the like from the host computer 31 through the interface 26 and executes a control in the image scanner in accordance with a predetermined procedure. Reference numeral 27 denotes a motor driver to drive the pulse motor 9 in accordance with a control signal from the CPU 24. Fig. 3 is a flowchart showing an example of a control procedure by the CPU 24. If an application software has been started by the host computer 31 to which the image scanner is connected in step S1, step S2 follows. In step S2, the host computer discriminates the processing content of the software on the basis of the data written in the software. That is, the host computer checks to see if the application software is an image processing software or an OCR software. A result of the discrimination is sent to the CPU 24 through the interface 26. If the CPU 24 detects that the present processing content relates to the OCR, step S3 follows and the CPU 24 switches the operating mode to a double density reading mode, that is, a mode in which two motor driving pulses are supplied to the motor within one accumulating time, thereby controlling the motor driver. In step S4, the image data which has been read is binarized on the basis of a predetermined threshold value by the image processor 23. The binary image data is sent to the host computer 31. Due to this, in the OCR mode, a clear image as shown in Fig. 4B is automatically obtained, so that the recognition ratio is improved. Therefore, by increasing the resolution by decreasing a reading pitch of the sub-scan as shown in Fig. 4B, the lateral line is accurately discriminated. In types, there are many fonts in which the lateral line is thinner than the vertical line such as Ming-style type of Kanji (Chinese character). Therefore, by increasing the resolution in only the sub-scan direction, the recognition ratio as an OCR system is remarkably improved. In the OCR software, since the read character is merely recognized as a character which is vertically longer by twice as long as the character of an original, there is no need to change the conventional processings. Although the embodiment has been described with respect to an example in which the sub-scan density has been doubled, the sub-scan density can be set to an arbitrary value in accordance with a required recognition ratio by changing the number of motor driving pulses (it is not always necessary to set to an integer) which are given within one accumulating time or the like. Although the embodiment has been described with respect to an example of the image scanner of the type in which an original is fixed, the invention is not limited to such an example and a desired object can be also accomplished in the case of the image scanner of the type in which the original base plate is moved or the type in which an original is conveyed. <Embodiment 2> The embodiment 2 differs from the embodiment 1 with respect to a point that the processing time differs. In the embodiment 1, although the recognition ratio of the OCR system is certainly improved, the time which is required for processing increases. For instance, when the sub-scan density in the OCR system is set to the double density, a data amount is also doubled, so that both of the required reading time of the image scanner and the processing time of the OCR software are doubled. Generally, since the time which is required to process the OCR software is longer than the required reading time of the image scanner, in the embodiment 2, a selector 28, a buffer memory 29, and a logic operation circuit 30 are arranged between the image processor 23 and the shift register 25 in parallel with a data bus so as to bypass the data bus. Due to this, the processing time of the software is reduced into the half time and the whole processing time is remarkably reduced. Since the embodiment has been constructed as mentioned above, when the application software is started by the host computer 31 to which the image scanner is connected, the host computer discriminates the processing content of the software on the basis of the data written in the software. Namely, the host computer checks to see if the application software is an image processing software or an OCR software. A result of the discrimination is sent to the CPU 24 of the image scanner through the interface 26. When the CPU 24 detects that the present processing content relates to the OCR, the CPU 24 switches the operating mode to the double density reading mode, that is, a mode in which two motor driving pulses are given to the motor within one accumulating time, thereby controlling the motor driver 27. The image data which has been read is binarized by the image processor 23 on the basis of a predetermined threshold value. The binary signal is supplied to the logic operation circuit 30 through the buffer memory every other line or is directly serially transmitted to the logic operation circuit 30. The data of a certain line stored in the buffer memory 29 is supplied to the logic operation circuit 30 synchronously with the data of the next line from the image processor 23. The OR of the data of two continuous lines is calculated by the logic operation circuit 30. That is, in the case where the data of two lines of a certain pixel indicate black and white, the black data is transferred to the shift register 25 at the post stage (refer to Fig. 6). According to the above method, since the image data is read at a high density in the sub-scan direction, the thin lateral line is read without becoming blurred in a manner similar to the embodiment 1. Moreover, since an amount of data which is transferred to the host computer is generally the same as the data amount upon reading, the time which is required for the OCR processing is equal to that in the conventional apparatus. Since a required reading time by the image scanner is extremely shorter than the processing time of the OCR, a required time as a whole system is merely slightly increased as compared with the conventional one (refer to Fig. 7). Although the embodiment has been described with respect to an example in which a buffer memory to store the image data of one line is provided on one of two data lines connecting the image processor and the logic operation circuit, buffer memories can be provided on both of the data lines as necessary or a capacity of the buffer memory can be also increased by an amount of a few lines. <Embodiment 3> An embodiment 3 differs from the embodiment 1 and 2 with respect to a point that a character style of a character to be read differs. That is, in the embodiments 1 and 2, a character style having a thin lateral line such as a Ming-style type or the like has been read. However, in the embodiment 3, a character of a Gothic-style type which is sufficiently larger as compared with the resolution of the image scanner, is read. In this case, by making the sub-scan density coarse, the reading time of the image scanner and the processing time of the OCR can be reduced. Fig. 8 is a flowchart showing an example of a control procedure by the CPU 24. The OCR is activated by the host computer 31 (step S91) and parameters such as character size (point number) and type style are set (step S92). The image scanner receives those information and discriminates the necessary sub-scan density. That is, when a thickness of lateral line of a character included in the original is thinner than the resolution of the image scanner itself, it is necessary to raise the density. Therefore, the reading operation is executed in accordance with the method described in the embodiment 1 or 2. On the contrary, if a character in the original is enough thick, the reading operation is performed in accordance with the following procedure (steps S93, S94). In a manner similar to the embodiment 1, in the reading mode, generally, it is assumed that the sub-scan of one line is executed by supplying four pulses to the pulse motor. When a character in the original is large, the number of pulses which are sent to the motor within one accumulating time is increased. For instance, in the case where a thickness of lateral line in a combination of the set character size and a type style has a value such that it can be sufficiently discriminated even if such a lateral line is read at a pitch which is twice as large as that in the ordinary reading mode, in the circuit of Fig. 1, the CPU 24 controls the motor driver 27 so as to supply eight pulses to the motor within one accumulating time. Due to this, the image scanner reads the original at a pitch which is twice as large as that in the ordinary mode and a required reading time is reduced into the half of the ordinary reading time. Since the amount of image data is reduced into 1/2, the time which is required for the OCR processing is also decreased to 1/2. Thus, the total required time is reduced to 1/2 (refer to Fig. 7). In the case of reading a large character, by thinning out the data in the main scan direction, an amount of data which is transferred to the host computer can be further reduced. <Embodiment 4> An increase in number of motor driving pulses which are supplied within one accumulating time in the embodiment 3 results in that a reduction reading operation is executed in the sub-scan direction. However, in such a kind of image scanner, in many cases, the data which has been read at an ordinary density is thinned out for reduction. It is necessary to raise the rotational speed of the motor. Therefore, as mentioned above, in many cases, a method whereby the number of motor driving pulses which are supplied within one accumulating time is increased cannot be embodied. In such a case, by processing by using the circuit (refer to Fig. 6) of the embodiment 2, when an original having a character which is larger than the resolution of the image scanner is read by the OCR, an amount of data which is sent to the host computer can be remarkably reduced. In a manner similar to the embodiment 3, in the case where it is determined that the original can be read at a coarse density due to the parameters such as size of character and type style which have been supplied to the host computer, the reading operation by the image scanner is performed in the ordinary mode. However, the output data amount from the image processor is reduced into 1/2. Thus, although the reading time by the image scanner is unchanged, the time which is required for the OCR processing is decreased into 1/2 (refer to Fig. 7). Although the example of the OCR has been described in the embodiments 1 to 4, for instance, in the case of reading a table which is constructed by thin ruled lines, a phenomenon such that the ruled lines become blurred can be prevented by using the circuit of the embodiment 2. In the above case, such a phenomenon can be prevented by constructing an algorithm in a manner such that the image data passes through the bypass shown in Fig. 5 when a command such as "double density reading" or "standard density transfer" is sent from the host computer. On the other hand, in types which are generally used, there are many types in which the vertical line is thinner than the lateral line. Therefore, the recognition ratio of the OCR system can be efficiently remarkably improved. Further, since it is sufficient to merely modify a part of the application software and a part of the firmware of the image scanner, an increase in costs doesn't occur. In the case of reading a large character, the reading time can be reduced.

Claims: An image processing apparatus for processing an image read by a scanner (4), comprising drive control means (24, step S4) for driving the scanner (4) in a sub-scan direction over the image to be read, characterized by discriminating means (24, step S2) for discriminating whether or not optical character recognition software will be used in processing the image read by the scanner (4); determining means (24, step S3) for determining a reading density in said sub-scan direction dependent on whether or not the discriminated software is optical character recognition software; and control means (24, step S4) for controlling said drive control means to drive the scanner (4) over the image at a sub-scan rate consistent with the determined reading density. An apparatus according to claim 1, wherein said control means (24) is arranged to control said drive control means by changing a period during which pulses for driving said drive control means are generated. An image scanning apparatus comprising an image scanner (4) for reading an image, and an image processing apparatus according to Claim 1 for processing the image read by the scanner (4). An apparatus according to claim 1, further comprising a motor (9) driven by said drive control means. An apparatus according to claim 1, further comprising a buffer memory (29) for storing data corresponding to the image read by the scanner (4), and selecting means (28) for selecting data supplied to said buffer memory (29) in response to the determined reading density. An image processing method for processing an image read by a scanner (4), wherein drive control means drive the scanner in a sub-scan direction over the image to be read, the method being characterised by comprising the steps of: discriminating whether or not optical character recognition software will be used in processing the image read by the scanner (4); determining a reading density in said sub-scan direction dependent on whether or not the software is optical character recognition software; and controlling said drive control means to drive the scanner (4) at a sub-scan rate consistent with the determined reading density. A method according to claim 6, wherein the drive control means produces pulses of differing period in order to drive the scanner (4) in accordance with the determined reading density.

Inventors: TAKEUCHI YUKITOSHI, TAKEUCHI, YUKITOSHI
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1991
Main classification: H04N1
IPC codes: H04N1, G06K9