Image processing apparatus

Abstract: A copying apparatus having a prescanning function for obtaining density data to adjust copy parameters comprises a correction means which eliminates the data obtained from a portion of a predetermined color, from the density data detected in a prescanning process. The density data can be restricted within a predetermined range. The predetermined range can be easily set by the user.

Description: BACKGROUND OF THE INVENTION 1. Field of the invention: This invention relates to an image processing apparatus such as a copying apparatus and image reading apparatus. More particularly, it relates to a copying apparatus comprising a density detection device for detecting the density of an original to be copied, in a process of prescanning the original, and an adjusting means for adjusting at least one of the conditions of copying the original, on the basis of a group of detected density data. 2. Description of the prior art: In a copying apparatus, the copy density (contrast) is adjusted by controlling one or more copy parameters such as the voltage level applied to the exposure lamp and the potential of the photosensitive body, in accordance with the density of an original to be copied. Usually, the density of an original is detected by prescanning the original to automatically adjust the density of a copy of the original. More specifically, an original is scanned by the light of an exposure lamp before the actual copy process, so that the light reflected from the original impinges on a photosensor. The data corresponding to the density of various portions of the original (density data) are obtained from the sensor. One or more of the above-mentioned copy parameters are automatically adjusted on the basis of the accumulated value, a mean value, maximum value or minimum value of these density data, thereby enabling improvement of the image quality of a copy which will be obtained in the subsequent copying process. Then, the actual copying process is performed under the thus adjusted parameters. In a practical use, however, a copying apparatus must copy a very wide variety of originals, and therefore each copying apparatus must cope with several kinds of originals. Particularly, it is more usual for a color copying apparatus to deal with an original having black areas (such as photographs) than an original having lines (such as characters) only. When copying an original in the form of a thick book, moreover, it is often that the copy process is conducted without covering the original (i.e., without using an original cover), to facilitate the handling of the original, which results in portions outside the original being detected as black areas. In these cases, the density data obtained in a prescanning process includes those obtained from black areas or blank areas caused by the nonuse of an original cover, resulting in the density data failing to correspond to the actual density of the original. Namely, when an arithmetic mean value of the density data is used (mean value method), the mean value is biased toward a black tone so that the following copying process cannot be conducted properly (the density of the resulting copy is too low). Moreover, a copying apparatus using the mean value method often fails to detect properly the density of an original. For example, when an original having a wide white background is to be copied, the mean value of the density data represents a smaller value than that which is necessary for a proper copy of the original, resulting in obtaining a copy in which the image area, which is most important, becomes too thick in density. In order to overcome this disadvantage, an improved copying apparatus has been developed. In an improved apparatus, the density data obtained from areas of an original, the density of which is greater than an upper threshold level or less than a lower threshold level, are eliminated from the density data to be further processed, so that the copying parameters are adjusted on the basis of only the density data obtained from the intermediate density areas of the original. In such an improved copying apparatus, however, those upper and lower threshold levels are preset at fixed values during manufacture of the apparatus in a factory. Unevenness in the light strength of an exposure lamp or in the sensitivity of a photosensor and the deterioration of the sensitivity may cause the data obtained from an intermediate density area to be deviated toward either of the darker and brighter densities. This deviation of the intermediate density area makes the density detection performed in a prescanning process entirely useless, especially when an original having pale or thick density images is to be copied. In this way, a prior art copying apparatus having the density detection device has the problem that it cannot detect accurately the density of an original, depending on the variation of the characteristics in each apparatus or on the kind of the original. Even if it is designed so as to allow the correction of the threshold values, the prior art still involves the problem that it is necessary to verify the correction by performing a test copy, causing a prolonged time for the correction and wasted copy paper. Further, such a conventional copying apparatus has a further problem as described below. A photosensor such as a photo transistor has a light receiving face F of a few millimeters in diameter (Fig. 11(B)). When an original B is to be copied wherein, as shown in Fig. 11(C), the image density suddenly changes from black to white (i.e., there is no intermediate density area between the black area B1 and the white area B2), the output of the sensor moving in the direction of the arrow (Fig. 11(B)) varies as indicated in Fig. 11(A) from a value corresponding to black to another value corresponding to white, following a curve containing intermediate values corresponding to half tones. This is because the light receiving face F extends over both the black area B1 and the white area B2 during when the light receiving face F moves from a first position T1 to a second position T2. Namely, the output of the sensor is affected by both the black and white areas B1 and B2 during when the light receiving face F moves between the positions T1 and T2. This is also applicable in the case that either of the black and white areas is replaced with a photograph having an intermediate density. In this case, the photograph borders the black area or white area so that the density data obtained immediately before and after the border contain large errors. The above will be described more specifically. As shown in Fig. 12(A), an original C having photographs 51 and 52 and white areas 53 to 55 surrounding the photographs is placed on an original table 2. One example of the actual image density data. of such an original is shown in Fig. 12(B). When the original is prescanned, the density data obtained as outputs of the sensor will be represented by a distorted waveform as shown in Fig. 12(C). In Figs. 12(B) and 12(C), the one dot chain lines represent the upper and lower threshold levels of the density data, respectively. When only the density data existing between the upper and lower threshold levels are considered (i.e., density data corresponding to black and white are eliminated from the density data of (Fig. 12(C)), it will be easily seen that the density data obtained immediately before and after the borders have extremely appreciable errors. Hence, a prior art copying apparatus has a drawback in that density data containing errors are utilized to cause an imprecise control of the copying parameters. The above-mentioned difficulties of a prior art copying apparatus are applicable also to other image processing apparatuses, e.g. an image reading apparatus such as an image scanner. An image processing apparatus comprising the features of the preamble parts of the independent claims 1, 3, and 4, as enclosed, is known from EP-A-0 232 805. This apparatus is arranged to prescan, for density detection, two pages of a book separately to copy both sides with optimal copy parameters. SUMMARY OF THE INVENTION It is the object of the present invention to provide an image processing apparatus which detects as correctly as possible the density of information present on a document, which information shall be image processed. This object is solved by the apparatuses according to the teachings of the independent claims 1, 3, and 4. The common inventive idea of these three apparatuses is that a group of detected density data is eliminated from the detected density data before the copy parameters are calculated on the basis of the density data. The data which are eliminated may be data obtained from a portion of predetermined color, or it may be data which exist beyond the range between two predetermined values. The predetermined values may be defined by scanning reference originals having dark and bright colors, respectively. BRIEF DESCRIPTION OF THE DRAWINGS This invention may be better understood, and its objects and advantages will become apparent to those skilled in the art by reference to the accompanying drawings which are given by way of illustration only, and thus are not limitative of the present invention, and wherein Figure 1 shows a diagrammatic cross sectional view of a copying apparatus according to an embodiment of the present invention; Figure 2 is a block diagram of the control unit of the apparatus of Fig. 1; Figure 3 is a block diagram of an amplifier used in the apparatus of Fig. 1; Figure 4(A) is a diagram illustrating a manner of placing an original on an original table; Figure 4(B) is a cross sectional view of Fig. 4(A); Figure 4(C) is a graph showing the output of the amplifier in a conventional apparatus; Figure 5 is a flow chart of the prescanning process of an embodiment of the invention; Figure 6 is a flow chart of the prescanning process of another embodiment of the invention; Figure 7 is a flow chart of the copy process of the embodiment of Fig. 6; Figure 8 shows a reference original used in the embodiment of Fig. 6; Figure 9 is a flow chart of the prescanning process of a further embodiment of the invention; Figure 10 shows schematically the RAM of the embodiment of Fig. 9; Figure 11(A) shows an example of the output variation of a photosensor; Figure 11(B) shows the light receiving surface of the photosensor; Figure 11(C) shows an original for obtaining the output of Fig. 11(A); Figure 12(A) is a diagram illustrating a manner of placing another original on an original table; Figure 12(B) shows an example of the actual density variation of the original of Fig. 12(A); and Figure 12(C) shows the density data of the original of Fig. 12(A) detected by a conventional copying apparatus. DESCRIPTION OF THE PREFERRED EMBODIMENTS Example 1 Figure 1 shows diagrammatically a color copying apparatus according to an embodiment of the present invention. An original table 2 and an original cover 2a are provided on the top of the housing 1 of the copying apparatus. Under the original table 2 is disposed an optical system 3 which projects the light of an exposure lamp 4 to an original placed on the original table 2 and guides the light reflected from the original to the image projection area of a belt-like photosensitive body 5. An optical sensor 6 is disposed in the vicinity of the exposure lamp 4. The sensor 6 and the lamp 4 are mounted on a scanning unit (not shown) and moved to scan the original along the directions indicated by the arrow A so that the sensor 6 receives sequentially the light reflected from each portions of the original. The photosensitive body 5 constitutes a part of an electrophotographic unit 7 for color copying. A paper feed unit 8 is disposed on one side of the housing 1, and a paper exit unit 9 on the opposite side of the housing. A sheet of paper fed from the paper feed unit 8 is moved to the electrophotographic unit 7 where the image of the original is transferred to the paper, then the paper is discharged to the paper exit unit 9. Figure 2 illustrates diagrammatically the control unit of the copying apparatus. In the control unit, a CPU 11 is connected to an A/D converter 14b, an I/O interface 15, a RAM 16 and a ROM 17 via data bus 12 and an address bus 13. The ROM 17 stores the program for operating the CPU 11. The RAM 16 is backed up by a battery 18, and stores density data as described later. The exposure lamp 4 is connected to the I/O interface 15 so that the lighting of the exposure lamp 4 and the exposure voltage are controlled by the CPU 11. The sensor 6 is connected to the A/D converter 14b through an amplifier 14a. Figure 3 shows the amplifier 14a in more detail. The output of the sensor 6 is integrated by an integrator 14c to such a degree that the variation in the output becomes smooth. The output of the integrator 14c is amplified by the amplifying circuit 14d, and then supplied to the CPU 11 via the A/D converter 14b. When the original A is prescanned to obtain the density data, the exposure lamp 4 lights under the control of the CPU 11, and the optical sensor 6 receives the light reflected from the original A. The output of the sensor 6 is supplied to the CPU 11 to obtain digital data concerning the density of the original A. With reference to Fig. 4, the relation between the original A and the output of the amplifier 14a in the prescanning will be described. Figure 4(A) shows the original A placed on the original table 2 with the original cover 2a opened. The original A consists of white paper Ab and a photograph or illustration Aa pasted on the paper Ab. On the both sides of the original A, portions 2c of the original table 2 are exposed. The both ends of the original table 2 constitute areas 2d for pressing a wide original. Figure 4(C) shows a waveform of the output of the amplifier 14a when the original A is prescanned. In Fig. 4(C), the ordinate represents the output of the amplifier 14a, and the abscissa represents the distance which the sensor 6 has moved from the home position indicated in Fig. 4(B). In this embodiment, the sensor 6 is positioned near the middle of the lamp 4 to move along the center axis of the original table 2 elongating perpendicular to the scanning direction. The areas b in Fig. 4(C) where the output level is high correspond to the white areas Ab of the original A, and the area a correspond to the photograph Aa. The areas c where the output level is very low (V c ) correspond to the portions 2c which are black areas. The areas d where the output level is high as in the areas b correspond to the original pressing area 2d. In this embodiment, as described above, the output of the sensor 6 is supplied to the CPU 11 after being integrated. If there is not a black area in the photograph Aa (namely, there is no continuously extending black area), the output level in the area a never falls to the level in the area c (i.e., V c ). Conversely, if there is a black area in the photograph Aa, the portion of the area a corresponding to the black area falls to the output level of V c . According to this embodiment, the copy parameters are adjusted on the basis of the density data which are obtained by eliminating the data corresponding to black areas from data accumulated in the prescanning, as described below. Figure 5 is a flow chart of the operation of the CPU 11 in the prescanning process. The output data of the sensor 6 are sent to the CPU 11, and stored in the RAM 16 (step A1). Data corresponding to black areas (i.e., data the level of which is V c ) are eliminated from the stored data (step A2). The average of the remaining data is calculated (step A3). The copy parameters such as the level of the exposure voltage, the surface potential of the photosensitive body 5 and the bias voltage are adjusted in accordance with the thus obtained average of the density data (steps A4 to A6). Then, a copying process is conducted under the adjusted conditions. Example 2 Figure 6 is a flow chart of setting threshold density level according to a second embodiment of the invention. A reference original A O shown in Fig. 8 is placed on the original table 2. The reference original A O is of A4 size and divided into two sections A OH and A OL . The first section A OH formed in the first half of the original A O has the lowest density which can be recognized as an image area by the density detection system. The second section A OL formed in the latter half of the original has the highest density which can be recognized as an image area by the density detection system. The reference original A O having such a configuration may be supplied for each copying apparatus as required, or alternatively, the user may prepare such a reference original according to the conditions of the actual use of his copying apparatus. In step B1, the scanning unit on which the exposure lamp 4 and the sensor 6 are mounted returns to its home position. Then, the lamp 4 is lighted by applying an exposure voltage of 70V, and the scanning unit begins to move in the direction A (step B2). In this prescanning process, the operation of reading the density is delayed by a predetermined time (step B3) and terminated in advance of the end of the white area A OH , so that the reading of the density is restricted within a predetermined range (hereinafter, referred to as "reading range") which is narrower than the white and black areas A OH and A OL , thereby preventing errors from appearing in the data obtained in the edge portions of the black and white areas. When the scanning unit reaches the reading range of the first half A OH , the storage areas Sum and Count in the RAM 16 are cleared to be initialized (step B4). The output of the sensor 6 is supplied to the CPU 11 through the A/D converter 14b (step B5) to be sampled. The sampled data from the sensor 6 is added to the contents of the storage area Sum, and the contents of the storage area Count are incremented (step B6). In step B7, it is checked whether the scanning unit has moved over the reading range of the first half A OH or not. When the scanning unit is still within the reading range, the process of step B5 is repeated until the scanning unit reaches the end of the reading range. When the scanning unit has moved over the reading range, the calculation of [Sum ÷ Count] is conducted, and the quotient, which means the average of the density data obtained in the first half or white area A OH , is stored in a storage area HiLm of the RAM 16 which stores the threshold density values for a pale color (pale-side threshold value) (step B8). After the process for the first half A OH has been completed, the system waits till the scanning unit reaches the reading range of the latter half A OL (step B9). When the scanning unit reaches the reading range of the latter half A OL , the storage areas Sum and Count are cleared to be initialized (step B10). The output of the sensor 6 is supplied to the CPU 11 through the A/D converter 14b to be sampled (step B11). The sampled data from the sensor 6 are added to the contents of the storage area Sum, and the contents of the storage area Count is incremented (step B12). In step B13, it is checked whether the scanning unit has moved over the reading range of the latter half A OL or not. When the scanning unit is still within the reading range, the process of step B11 is repeated until the scanning unit reaches the end of the reading range of the latter half A OL . When the scanning unit has moved over the reading range, the calculation of [Sum ÷ Count] is conducted, and the quotient, which is the average of the density data obtained in the latter half or black area A OL , is stored in a storage area LoLm of the RAM 16 which stores the threshold density value for a thick color (thick-side threshold value) (step B14). After the reading ranges of both the white and black areas have been scanned, the contents of the storage areas HiLm and LoLm are compared with each other (step B15). As described above, the reference original A O is placed so that the white area A OH and the black are A OL are scanned in this sequence. Hence, the contents of the storage area HiLm are always greater than those of the storage area LoLm. If the reference original A O is placed in a positionally reversed manner, i.e., the original A O is placed so that the black area A OL is scanned first, the relation between the values HiLm and LoLm is reversed, resulting in that, as will be apparent later, the density data of an original to be copied cannot be detected. To avoid this difficulty, the contents of the storage area HiLm is swapped with those of the storage area LoLm using a temporary storage area Temp, when the contents of the storage area HiLm is not greater than those of the storage area LoLm (step B16). After the two threshold density values (pale-side and thick-side threshold values) have been set in this way, the scanning unit returns to the home position (step B17). These threshold density values stored in the RAM 16 are retained even when the power of the copying apparatus is off. The operation of a copy process in the copying apparatus in which the threshold density values have been thus preset will be described with reference to Fig. 7. When the copying apparatus is turned on, the apparatus is initialized and warmed up (step B21), and waits for the depress of a copy button (not shown) (step B22). When an original to be copied is placed on the original table 2 and the copy button is depressed, it is checked whether the automatic density adjusting mode has been selected or not (step B23). When the automatic density adjusting mode has been selected, the lamp 4 is lighted by applying an exposure voltage of 70V, and the scanning unit begins to move to scan the original (step B24). The storage areas Sum and Count are cleared to be initialized (step B25). The output of the sensor 6 is supplied to the CPU 11 through the A/D converter 14b to be sampled, and the sampled data from the sensor 6 is temporarily stored in the storage area Temp (step B26). The value stored in the storage area Temp is compared with the pale-side threshold value which has been stored in the storage area HiLm (step B27), and also with the thick-side threshold value which has been stored in the storage area LoLm (step B28). When the value stored in the storage area Temp is between the threshold values stored in the storage areas HiLm and LoLm, it is added to the contents of the storage area Sum, and the contents of the storage area Count is incremented (step B29). Hereinafter, the area of the original from which the output existing between the two threshold values is referred to "image area". In step B30, it is checked whether the scanning unit has moved over the original or not. When the value stored in the storage area Temp is judged in step B27 to be greater than the pale-side threshold value stored in the storage area HiLm, or when the value stored in the storage area Temp is judged in step B28 to be smaller than the thick-side threshold value stored in the storage area LoLm, the process proceeds to step B30, skipping step B29. If it is judged in step B30 that the scanning unit has not yet moved over the original, the process returns to step B26 to repeat the above-mentioned procedures. Thus, only when the output of the sensor 6 is between the thick-side threshold value and the pale-side threshold value (namely, the image area has been scanned), this loop allows the output of the sensor 6 to be added to the contents of the storage area Sum. When it is judged in step B30 that the scanning unit has moved over the original, the calculation of [Sum ÷ Count] is conducted, and the quotient, which is the average of the density data obtained from the image area, is stored in the storage area Sum of the RAM 16 (step B31). The exposure voltage is adjusted to comply with the value stored in the storage area Sum. In this way, the automatic adjustment of copy density is conducted by setting the image area on the basis of the values which have been stored in the storage areas HiLm and LoLm of the RAM 16 as threshold density values, resulting in eliminating the adverse effects on the copy quality caused by the variations in the characteristics of an individual copying apparatus. The user may suitably select or prepare the reference original A o so that the image area (i.e., the range between the threshold density values) can be adequately preset to meet the kind of an original to be copied. After the level of the exposure voltage is set in step B32, the scanning unit returns to the home position (step B33). Then, the copy cycle for copying the original starts (step B34). In this copy cycle, the voltage the level of which has been set in step B32 is applied to the exposure lamp 4 so as to obtain a copy the density of which is properly adjusted in accordance with the conditions of the original. If the automatic density adjusting mode has not been selected, the process proceeds from step B23 to step B35 to set the level of the exposure voltage to a value which has been preset by the operator, and the process further proceeds to step B33 to return the scanning unit to the home position. In this case, the level of the exposure voltage is not always an optimal one, which may cause a copy of an insufficient quality. In this example, a single reference original having white and black areas is used for adjusting the threshold density values. Alternatively, two reference original having a different color may be used. In this case, the prescanning process is conducted for each reference original. Example 3 Figure 9 is a flow chart of the prescanning process in a third embodiment of the invention. In this embodiment, the RAM 16 has storage areas 16a for density data and flag areas 16b which correspond respectively to the storage areas 16a, as shown in Fig. 10. When an original to be copied is placed on the original table 2 and the copy button is depressed, a scanning unit starts to move for prescanning (step C1). The density data of the original are sampled at a specified time interval (step C2), and stored sequentially in the storage areas 16a (step C3). When the scanning unit has moved over the original, it returns to the home position (step C4). Then, the stored density data are retrieved for density data (data obtained from white areas) which are greater than a predetermined upper threshold value and also for density data (data obtained from black areas) which are smaller than a predetermined lower threshold value (step C5). In step C7, a flag is set in the flag areas 16b corresponding to the areas 16a storing the extreme density data obtained from white and black areas and also to the areas 16a storing density data which have been obtained within a predetermined time period (for example, 60ms) from the time when each of those extreme density data has been obtained. Then, in steps C9 and C10, the level of the exposure voltage is adjusted on the basis of density data which are obtained by excluding the data to which flags are set from the data obtained in step C3. The above-mentioned upper and lower threshold values may be preset in the same manner as described in Example 2. In this specification, the invention has been described by illustrating embodiments in the form of a copying apparatus. However, the invention is not restricted to a copying machine but also applicable to other image forming apparatus and image reading apparatus such as an image scanner. It is understood that various other modifications will be apparent to and can be readily made by those skilled in the art without departing from the scope of this invention defined in the claims. Accordingly, it is not intended that the scope of the claims appended hereto be limited to the description as set forth herein.

Claims: An image processing apparatus comprising: a density detection means (4, 6) for detecting the density of an original (A) to be copied, the apparatus being arranged such that said detection means detects said density in a process of prescanning the original prior to said original being copied; and an adjusting means (11, 15) for adjusting at least one of the copy parameters of said apparatus on the basis of a group of detected density data, for copying the original; characterized by correction means (A2) for eliminating the data obtained from a portion of a predetermined color from said group of detected density data. An image processing apparatus according to claim 1, wherein said predetermined color is black. An image processing apparatus comprising: a density detection means (4, 6, 8, B14) for detecting the density of an original (A) to be copied, the apparatus being arranged such that said detection means detects said density in a process of prescanning the original prior to said original being copied; and an adjusting means (11, 15) for adjusting at least one of the copy parameters of said apparatus on the basis of a group of detected density data, for copying the original; characterized in that said density detection means is further arranged for detecting the density of a first reference original having a dark color, and the density of a second reference original having a bright color; a reference density storage means (16) is provided, for storing the density values of said two reference originals as two predetermined values; and said adjusting means (11, 15) is arranged for adjusting said at least one copy parameter on the basis of a group of detected density data which exist between said two stored values. An image processing apparatus comprising: a density detection means (4, 6) for detecting the density of an original (A) to be copied, the apparatus being arranged such that said detection means detects said density in a process of prescanning the original prior to said original being copied; and an adjusting means (11, 15) for adjusting at least one of the copy parameters of said apparatus on the basis of a group of detected density data, for copying the original; characterized by a judging means (B27, B28) which is arranged for judging whether density data obtained from portions of the original exist between two predetermined values or not; and a correction means (B29) for eliminating, from said group of detected density data, extreme density data which exist beyond the range between said two predetermined values. An apparatus according to claim 4, wherein said correction means (B29) further eliminates density data which are obtained during a predetermined time period including the time when each of said extreme density data is obtained. An image processing apparatus according to one of the preceding claims, characterized in that it is a copying apparatus. An image processing apparatus according to one of the claims 1 to 5, characterized in that it is an image reading apparatus.

Inventors: INAMOTO KIYOSHI, KAMIMURA TAISUKE, MAEDA YASUTAKA, NISHIMURA HIDEYUKI, OHNISHI KAZUYUKI, OKANO TOKIYUKI, SHIMAZAWA YOICHI, SOHDA KANZUNORI, TAKATA KYOUICHI, TOKISHIGE MASATO, UENO YUKUHIKO, INAMOTO, KIYOSHI, KAMIMURA, TAISUKE, MAEDA, YASUTAKA, NISHIMURA, HIDEYUKI, OHNISHI, KAZUYUKI, OKANO, TOKIYUKI, SHIMAZAWA, YOICHI, SOHDA, KANZUNORI, TAKATA, KYOUICHI, TOKISHIGE, MASATO, UENO, YUKUHIKO, SOHDA, KAZUNORI, UENO, YUKIHIKO
Applicants: SHARP KK, SHARP KABUSHIKI KAISHA
Application year: 1989
Main classification: G03G15
IPC codes: G03G15