IMAGE READING APPARATUS AND BINARY CONVERSION PROCESS THEREFOR

Abstract: An image reading apparatus comprises a white plate (1a) for obtaining a reference signal, a line image sensor (5) for scanning an original, a central processing unit (11) for evaluating the proportion of the density of an original for every cell of an image sensor based on the reference voltage signal from the white plate (1a) and the output signal obtained from the original (1), and for evaluating a threshold value for binary converting the image of the original based on the distribution of the density proportion, whereby the image portion of the original is extracted based on the threshold value.

Description: The present invention relates generally to an image reading apparatus with the features of the first part of claim 1 and the binary conversion process therefore with the features of the first part of claims. EP-A-0173099 and US-A-4419696 disclose an image reading apparatus for scanning an object with a photoelectric image sensor. These documents show how to adjust photoelectric elements under the condition that the black region of the original is clearly distinguishable from the white region. It is the object of the invention to determine the threshold value if the difference in density between the background (non-image portion) and the image portion of the original is small. According to the invention this object is solved by the features of the second part of claim 1 and claim 7, resp. Subjects of the sub claims are prefered embodiments of the apparatus and the method of invention, resp. The invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings. Fig. 1 is a graph showing the diversification of the sensitivity of respective photocells constituting an image sensor; Fig. 2 is a graph showing the distribution of light amount projected on each photocell in reading images; Fig. 3 is a flow chart showing the steps of binary conversion process in accordance with the present invention; Figs. 4A to 4E shows, in the stepwise manner, the processing of data detected by a linear image sensor; Fig. 5 is a block diagram showing a main portion of an apparatus for checking appearance of a printed board to which the present invention is applied; Fig. 6 is a flow chart corresponding to the step A of Fig. 3; Fig. 7 is a flow chart corresponding to the steps B to E of Fig. 3; Fig. 8 is a flow chart corresponding to the step F of Fig. 3; Fig. 9 is a flow chart corresponding to the step G of Fig. 3; Fig.10 is a flow chart corresponding to the steps J and K of Fig. 3; Fig. 11 is a block diagram showing definite components of the apparatus for checking the appearance of a printed board; and Figs. 12 and 13 are block diagrams showing details of data normalizer. In the following, embodiments of the present invention will be described with reference to Fig. 3 and Figs. 4A to 4E. Fig. 3 is a flow chart showing the steps of binary conversion process in accordance with the present invention. Figs. 4A to 4E show the states of processing of the data detected by a linear image sensor. The data processing corresponding to the flow chart of Fig. 3 is schematically shown. In the step A, the reference light amount of the reference plate is detected by photoelectric converting means. A number of (n) reference data V si (i=1...n) corresponding to each of the photocells constituting the liner image sensor are detected. The reference data V si are shown in Fig. 4A. The output levels of the reference data V si include the unevenness of light amount in the illuminating system and in the focusing optical system and the diversification of sensitivity of the photocells, as did the data L₂ of the light amount shown in Fig. 1. In the step B, the light amount of the object is detected by the said liner image sensor and n object data V xi (i=1...n) are obtained. The signal levels of the object data V xi is in proportion to the reference data V si corresponding to the density of the image portion and the density of the non-image portion of the object, as shown in Fig. 4B. In the step C, each of the object data V xi is divided by the corresponding reference data V si . The result of the operation is defined as an object normalized value N xi (i=1...n). The object normalized value N xi is shown in Fig. 4C. The object normalized value represents the proportion of a signal level corresponding to the image portion or the non-image portion of the original to the reference level V si of each photocell. Therefore, the object normalized value denotes the output level which is shading corrected. In the step D, the frequency of appearance n K of the object normalized values N xi (i=1...n) corresponding to each of the photocells is evaluated. Consequently, a histogram such as shown in Fig. 4D is obtained. In this histogram, there is a peak of frequency of appearance in the range corresponding to the non-image portion of the object (hereinafter referred to as non-image normalized value range L) and there is a peak of frequency of appearance in the range corresponding to the image portion (hereinafter referred to as image normalized value range H). In the step E, the threshold value T H for binary conversion is evaluated based on the said histogram. The threshold value T H is an intermediate value between the value B R corresponding to the non-image portion in the non-image normalized value range L and the value W R corresponding to the image portion in the image normalized value range H, with the threshold value corresponding to the concave portion of the frequency of appearance. In the step G, the above-mentioned shading corrected object normalized value N xi is binary converted based on the said threshold value T H . Consequently, binary signals such as shown in Fig. 4E are obtained. Instead of the step G, the present invention may comprise the steps J and K. In the step J, the said threshold value T H is multiplied by the reference data V si to obtain T Hi . Thus, the threshold level T Hi of each photocell is evaluated. In the step K, the said object data V xi is directly binary converted based on the threshold level T Hi . Consequently, binary signals such as shown in Fig. 4E are obtained. A histogram is formed to obtain the threshold value T H in the steps D and E so that the method of deciding T H can be understood easily. The formation of histogram is not necessarily required so long as the threshold value can be obtained. Fig. 5 is a block diagram showing a main portion of an apparatus for checking appearance of a printed board to which the binary conversion process of the present invention is applied. The apparatus comprises checking table 2 provided relatively movable in the direction of the arrow for placing a printed board 1, an illuminating lamp 3 provided above the checking table 2, a focusing lens 4, photoelectric converting means 5, an amplifier 6 for amplifying signals detected by the photoelectric converting means 5, an A/D converter 7 and an arithmetic operating unit 11. The photoelectric converting means 5 comprises a linear image sensor in which photocells such as CCD, photodiode and the like are arranged in a line in the direction perpendicular to the surface of the sheet of Fig. 5. The linear image sensor 5 comprises eight image sensor blocks and each block of the image sensor comprises one-dimensional arrangement of about 2000 CCD elements. Each block comprises an illuminating lump 3, a focusing lens 4, an amplifier 6, and an A/D convertor 7. The A/D converter 7, an input/output operating portion 8, an external memory 9 and display means 18 for displaying output are connected to the arithmetic operating unit 11 through an input/output interface 10. The arithmetic operating unit 11 is constituted by a microcomputer, which is illustrated by a schematic block diagram in Fig. 5. The arithmetic operating unit 11 comprises an internal memory 12 for temporarily storing detected signals for one scanning (one scanning line) by the linear image sensor 5, the object normalized value operating means 13, histogram forming means 14 for forming a histogram by counting the frequency of appearance of the object normalized value N xi for one scanning of the image sensor 5, threshold value operating means 15 for obtaining the threshold value T H for the binary conversion based on the histogram, and a comparator 16 for binary converting the object normalized value N xi based on the threshold value T H , with these components connected to each other through a data bus 17. Although each of the arithmetic means and comparator 13 to 16 is illustrated as an independent functional block for convenience, the function of each means can be provided by one CPU in accordance with respective programs in a microcomputer. The function of an apparatus for checking the appearance of a printed board to which the present invention is applied will be described in the following with reference to the flow charts of Figs. 6 to 9. Fig. 6 is a flow chart corresponding to the step A of Fig. 3, which is the step of obtaining a reference data V si by detecting the reference light amount of the reference plate 1a. In the step A1, a white reference plate 1a is set on a checking table 2. In the step A2, the operation mode of the input/output operating portion 8 is set at the reference data reading mode. In the step A3, the reference light amount of the white reference plate 1a is detected, reference data V si (i...n) for every cell in one line are read and written in the internal memory 12. In this apparatus, all image sensors 5 of 8 blocks read the reference data for every cell. In the step A4, the reference data V si are successively written in the external memory 9. In the step A5, it is determined whether the reference data V si for the prescribed N times of scanning have been finished or not. In the step A6, the average reference data of N times of scanning V si (i=1...n) for every cell is evaluated and stored in the external memory 9. The reason for evaluating the average of N times of scanning is that an error may occur when fine dusts and the like are deposited on the white reference plate, if the reference data is to be determined by one measurement. In this embodiment, the checking table 2 is moved slightly for each scanning, whereby the average value of 50 times of scanning can be obtained. The number of scanning may be appropriately selected to obtain the required stable value. The reference value may not necessary be the average value provided that a relatively stable reference data is obtained The reference data will be simply denoted by V si in the following. In the step A7, the reference data reading mode is cancelled. In the step A8, the checking table 2 is returned to the start (origin) position and the reference plate 1a is removed from the checking table 2. The step A for reading the reference data V si is thus completed. The reference data V si which is obtained at first is used in the following operations except such occasions as the exchange of the illuminating lamp. Fig. 7 is a flow chart corresponding to the steps B to E of Fig. 3, wherein the object data V xi of the printed board 1 is obtained and the threshold value T H for the binary conversion is obtained. In the step B1, a printed board 1 is placed on the checking table 2 and, in the step B2, the object data reading mode is set. In the step B3, the whole or a portion of the object is scanned and the object data V xi (i=1...n) is written in the external memory 9. The number of data which should be obtained in this step is the number enough to provide the required threshold value T H in the following steps C1 to E2. Therefore the whole object need not be scanned and only one portion of the object may be scanned. In the step C1, the arithmetic operation mode is automatically set for the following arithmetic operation. In the step C2, the object normalized value N xi is evaluated based on the following equation using the above described reference data V si (i=1...n) and the object data V xi (i=1...n), to be written in the internal memory 12. In this embodiment, the maximum value of the object normalized value N xi is defined as 255. N xi = 255 x V xi /V si (i=1...n) In the step D, the frequency of appearance N of each of the said normalized values N xi 0 to 255 is counted by the histogram forming means 14, and the frequency of appearance n K (K=1...255) is successively stored in the internal memory 12. The data corresponds to the histogram shown in Fig. 4D. In the step E1 ,the frequency of appearance n K is compared by the threshold value operating means 15 based on the said frequency appearance n K , and two peaks n₁ and n₂ of the frequency of appearance are detected. In the object normalized values corresponding to the peaks of the frequency of appearance, the relatively small value corresponds to the value B R which corresponds to the non-image portion, and the relatively large value corresponds to the value W R which corresponds to the image portion of Fig. 4D. Sometimes the normalized value of the non-image portion is larger than that of the image portion, for example in an object of positive image. This invention can be applied in any case where the values B R and W R respectively corresponding to the non-image portion and the image portion can be obtained. In the step E2, a concave portion n₃ between the said two peaks n₁ and n₂ of the frequency of appearance is detected in the similar manner. The object normalized value corresponding to the concave portion n₃ corresponds to the threshold value T H of Fig. 4D. The threshold value T H is stored in the external memory 9 in the step E3. The threshold value T H is used in either of the two methods which will be described in the steps G and J, respectively. In the step E4, the arithmetic operating mode is canceled. In the step E5, the checking table 2 is returned to the start and the printed board is removed. If various printed boards should be checked, the above described steps B (B1 to E5) are effected on all the printed boards and the threshold value for each of the printed boards is detected beforehand. In the step E6, whether the step B have been effected or not for all printed boards is determined. Thereafter, the flow proceeds to the step F. Fig. 8 is a flow chart corresponding to the step F of Fig. 3, for the preparation of binary conversion process. In the step F1, the board 1 to be checked is set on the checking table 2. In the step F2, the apparatus is set at the checking mode by an operation key of the input apparatus 8 and the type of the said board 1 is inputted. In the step F3, the threshold value T H corresponding to the board type is written in the internal memory 12 from the external memory 9. In the step F4, the following step G or J is appropriately selected. A proper binary conversion processing signal can be obtained by either of the steps G and J. Fig. 9 is a flow chart corresponding to the step G of Fig. 3. In the step G1, the checking table 2 start to move by the operation of the check start key. In the step G2, the object data V xi are read and the object normalized value N xi are obtained successively based on the following equation. N xi = 255 x V xi /V si (i=1...n) The object normalized value data N xi is the value obtained by dividing the object data V xi read by ith photocell by the maximum sensitivity V si including shading of the said photocell. In the present embodiment, the object normalized value data N xi corresponds to the reflectance In the step G3, the normalized value N xi is compared with the threshold value T H by the comparator 16. If the normalized value N xi is larger than the threshold value T H , a high level signal 1 is outputted in the step G4. If it is smaller than the threshold value T H , a low level signal 0 is outputted in the step G5. In the step G6, whether the binary conversion process for all scanning is completed or not is determined, thereby finishing the process of binary conversion. Fig. 10 is a flow chart corresponding to the binary processing method comprising the steps J to K, which may be selected in stead of the step G of Fig. 3. In the step J1, the said reference data V si is written in the internal memory 12. In the step J2, the threshold value T H1 of each photocell is evaluated based on the following equation to be written in the internal memory 12. T Hi = (T H x V si )/255 (i=1...n) In the following steps K1 to K6, the binary processing for all the object data V xi is carried out through the similar steps as the above described binary conversion process (G1 to G6). In the above embodiment, the present invention is applied to an apparatus for checking printed boards. However, the present invention is not limited to this embodiment and it may be widely applied to the image reading apparatuses. The present invention may be applied to a transmitting film negative. In that case, the reference data is obtained by employing a transparent reference plate. Therefore, the reference plate is not limited to the white one and the present invention may be applied if the plate has a uniform reflection density or transmittance density. A preferred structure of the actual application of the present invention will be described in the following. Fig. 11 shows definite components of the apparatus for checking the appearance of a printed board shown in Fig. 5. Referring to Fig. 11, the apparatus for checking the appearance of a printed board comprises a CCD line sensor 5; an amplifier 6 for amplifying an analog signal from the line sensor; an A/D converter 7 for converting the analog signal to a digital signal; and an arithmetic operating unit 11 for processing the A/D converted digital signal. The arithmetic operating unit 11 comprises a CPU 51 for controlling the whole unit; a memory 52 appended to the CPU; an I/F for connecting the CPU to other components; a timing control 54 for processing signals between each of the components; a black offset adjuster 55 for comparing an electrical signal detected by the CCD with a prescribed reference signal; a data normalizer 56 for normalizing the electric signal detected by the CCD based on the black offset signal; and a comparator 57 for binary converting the normalized data by comparing the same with the prescribed threshold value level. Figs. 12 and 13 illustrate details of data normalizer 56 and the comparator 60. Referring to Figs. 12 and 13, the data normalizer 56 comprises a line data memory 58 for storing one line of data detected by the line sensor 5 from the reference white plate; a register B for holding data in the line data memory 58; a register A for holding data detected from the sample; a divider 59 for calculating the value C = A/B from the data A held in the register A and from the data B held in the register B; a register C for holding the data A/B obtained by the divider 59; a comparator 60 for comparing the data C held in the register C and a previously obtained threshold value data D for outputting a binary converting data based on the result; and a register D for holding the binary converting data outputted from the comparator. With reference to Figs. 11 to 13, the definite operation of the apparatus for checking the appearance of the printed board will be described. The reference white plate is scanned by a line sensor 5. The resulting data is transferred to the black offset adjuster 55 through the amplifier 6 and the A/D converter 17 line by line. The black offset adjuster 55 is provided to let the data obtained from the line sensor have an absolute value with a constant reference value. The specific operation is as follows. Generally, the line sensor detects a constant signal level even if the color of the object to be detected is black. In order to detect a signal level relative to the reference white plate, a constant reference level is required. Therefore, a signal level obtained from a reference black is subtracted from the signal level from each single detecting cell, whereby a signal having a constant level employing black as a reference can be obtained. For this purpose, the line sensor comprises a plurality of unit detecting elements, a unit detecting element existing at one and thereof detects a signal from the reference black. The data which has been subjected to the black offset adjustment is stored in the line data memory 58. Thereafter, the whole printed board is prescanned by the line image sensor. Consequently, the reference threshold value is obtained. The process of obtaining the reference threshold value is the same as the flow shown in Figs. 6 and 7. The only difference is that the data is black offset. Thereafter, the data from the printed board to be checked is binary converted. The printed board to be checked is scanned line by line. The obtained data is black offset adjusted and is held in the register A. The data of the printed board to be checked held in the register A is divided by the data obtained from the reference white plate held in the register B by means of the divider 59, with the result being held in the register C. The result of the operation corresponds to the object normalized value. The data held in the register C is compared with the threshold value obtained as described above in the comparator 60. The result is binary converted to be held in the register D and is outputted. The operation is the same as the flow shown in Figs. 8 to 10. As described above, according to the present invention, the image reading apparatus comprises a reference plate for obtaining a reference signal; a table for mounting an original having a portion of first density and a portion of a second density which is different from the first density; scanning means for scanning the object mounted on the table and the reference plate, comprising an illuminated apparatus for illuminating the object and the reference plate, photoelectric conversion means for detecting the light amount from the object and the reference plate to output an output signal corresponding to the light amount, and an optical system for projecting the light from the object and from the reference plate onto the photoelectric converting means; object normalized value operating means for operating an object normalized value which is represented by a proportion of a first output signal obtained from the reference plate to a second output signal obtained from the object; and binary conversion threshold value determining means for determining a binary conversion threshold value for binary converting the object normalized value based on the distribution of the object normalized values. Therefore, the first output signal obtained from the reference plate and the second output signal obtained from the object can be provided by the same illuminating apparatus, the same photoelectric converting means and by the same optical system. Therefore, the object normalized value evaluated based on the two signals depends only on the density of the object, and is independent from the unevenness of the light amount in the focusing optical system and from the diversification of the cells in the photoelectric converting means. Accordingly, if the distribution of the object normalize value is obtained based on the value, two peaks of the object normalized values respectively corresponding to the image portion and the non-image portion can be obtained. Consequently, by employing the intermediate value between the two peak values as a binary conversion threshold value, an image processing apparatus and the binary conversion process thereof can be provided which is independent from the unevenness of the light amount in the focusing optical system and from the diversification of the photocells in the photoelectric converting means. Even if the density of the image portion and of the non-image portion of the object is shifted to the lower density or to the higher density, or even if the difference between the densities is small, the threshold value can be correctly defined, whereby a proper binary conversion signal can be obtained, which enables reliable image reading. Although the present invention has been described and illustrated in detail, it is clearly understood that the same is by way of illustration and example only and is not to be taken by way of limitation, the scope of the present invention being limited only by the terms of the appended claims. The features disclosed in the foregoing description, in the claims and/or in the accompanying drawings may, both separately and in any combination thereof, be material for realising the invention in diverse forms thereof.

Claims: An image reading apparatus comprising: a reference plate (1a) for obtaining a reference signal, a table (2) for placing an object (1), said object having an image represented by a portion of a first optical density and a portion of a second optical density which is different from the first optical density, scanning means (2) for scanning the object placed on said table and said reference plate, having an illuminating apparatus (3) for illumination said object and said reference plate, photoelectric converting means (5) for detecting the amount of light from said object and from said reference plate to output an output signal corresponding to said amount of light, and an optical system (4) for projecting light from said object and from said reference plate onto said photoelectric converting means (5), object normalized value operating means (13) for evaluating an object normalized value which is represented by the ratio of a first output signal obtained from said reference signal to a second output signal obtained from said object, characterized in that said photoelectric converting means include a plurality of photoelectric elements, a said first output signal is obtained by scanning said reference plate and said second output signal is obtained by scanning said object for each said photoelectric element, and means for determining a binary conversion threshold value (15) for binary converting said object normalized value are provided, which means comprises - means for holding the statistical distribution of said object normalized values (12) which is represented by said object normalized values and appearance frequencies thereof, - peak value evaluating means (14) for evaluating a first peak appearance frequency value corresponding to said portion of the first optical density and a second peak appearance frequency value corresponding to said portion of the second optical density based on said object normalized value; and - threshold value operating means (15) for evaluating a threshold value which corresponds to an intermediate value between the object normalized values corresponding to said first and second peak values. An image reading apparatus according to claim 1, wherein said photoelectric converting means (5) comprises an image sensor (5). An image reading apparatus according to claim 1, characterized in that said photoelectric converting means (5) comprises CCD (charge coupled device). An image reading apparatus according to claim 1, characterized in that said photoelectric converting means (5) comprises a photodiode. An image reading apparatus according to one of the preceding claims, characterized in that said illuminating apparatus (3) comprises an illuminating system for obtaining light transmitted from said object, and said optical system projects said transmitted light onto said photoelectric converting means (5). An image reading apparatus according to one of the claims 1 to 4, characterized in that said illuminating apparatus (3) comprises an illuminating system for obtaining light reflected from said object, and said optical system projects said reflected light onto said photoelectric converting means (5). A binary conversion process for an image reading apparatus, comprising the steps of: preparing a reference plate (1a), preparing an object (1) having an image represented by a portion of a first optical density and a portion of a second optical density which is different from said first optical density, illuminating said object (1) and said reference-plate (1a), scanning said illuminated object (1) and said illuminated reference plate (1a), detecting amounts of light from said object (1) and from said reference plate (1a) to output output signals corresponding to said amounts of light, obtaining a first output signal by scanning said reference plate, obtaining a second output signal by scanning said object (1), obtaining an object normalized value by evaluating the ratio of said second output signal to said first output signal, characterized by determining a binary conversion threshold value for binary converting said object normalized value, based on said object normalized value, and binary converting said object normalized value on the basis of said binary conversion threshold value, by - holding the statistical distribution of said object normalized values (12) which is represented by said object normalized values and appearance frequencies thereof, - evaluating a first peak appearance frequency value corresponding to said portion of the first optical density and a second peak appearance frequency value corresponding to said portion of the said second optical density based on said object normalized value, and - evaluating a threshold value corresponding to an intermediate value between the object normalized values corresponding to said first and second peak appearance frequency values. A binary converting process according to claim 7, characterized in that said object normalized value is evaluated for each of photocells arranged in one dimension. A binary converting process according to claim 7 or 8, characterized in obtaining light reflected from said object, and projecting said reflected light onto said photoelectric converting means. A binary converting process according to claim 7 or 8, characterized in obtaining light transmitted from said object, and projecting said transmitted light onto said photoelectric converting means. A binary converting process according to one of the claims 7 to 9, characterized in that said step of binary converting said object normalized value comprises the steps of: evaluating a threshold value of said photoelectric converting means by multiplying said binary conversion threshold value by said first output signal, and binary converting said second output signal by means of the threshold value of said photoelectric converting means. Use of a binary converting process according to one of the claims 7 to 11 for checking appearance of a printed board.

Inventors: HOKI, TETSUO C/O DAINIPPON SCREEN MFG. CO., LTD., SEZAKI, YOSHINORI DAINIPPON SCREEN MFG. CO., LTD.
Applicants: DAINIPPON SCREEN MFG. CO., LTD.
Application year: 1988
Main classification: H04N1
IPC codes: G06T1, H04N1, G06K9