Image processing apparatus

Abstract: An image processing apparatus comprises: an input device for supplying color image information; a discrimination unit to discriminate whether the color image information includes a predetermined image or not in accordance with a color distribution of the color image information supplied by the input device; and a processing circuit to process the color image information in accordance with the result of the discrimination of the discriminating means. The color image information is constructed by a plurality of color component signals. The color distribution is a distribution of the color image information in a color space.

Description: The present invention relates to a color image processing apparatus and, more particularly, to a discriminating device for discriminating whether an input image represented in electrical input image data represents any of a plurality of predetermined color specific originals. In recent years, as the diffusion and realization of a high picture quality of a color original copying apparatus progress, a fear such that a forgery crime of bank notes, stocks and bonds, or the like occurs is rising. To prevent such a forgery crime, there has been proposed a method in European Application EP-A-0382549 whereby a pattern of a special shape is extracted from an output of a line sensor to read an original and is compared with predetermined template data and the presence or absence of a bank note or the like is detected and, in the case where the presence of a bank note is detected, the copying operation is interrupted. Techniques to prevent such a forgery of bank notes or the like have been proposed in European Applications EP-A-0342060 and EP-A-0366399. However, generally, a position, an angle, and the like of an original put on an original base plate of a copying apparatus are not known at all and the original mixedly exists together with the other originals, so that it is extremely difficult to extract a pattern of a desired specific shape from those originals. Even if the extraction of the desired pattern has succeeded, the pattern as an object to be extracted differs depending on the kind (money amount, country which has issued) of the bank note. The pattern matching process needs to be performed in consideration of a possibility for each kind. Thus, an amount of data to be processed and a processing time are extremely large and long. Further, a data amount of a template for the pattern matching increases as the number of patterns to be extracted increases. A necessary memory capacity is also very large. On the other hand, in such a kind of apparatus, generally, a process to convert a color component of a color original into a predetermined value is effective means for discriminating a color tone of the original. For instance, when considering the case where a check is made to see if an original having a special color tone is included in the original or not, and if it is included, the copying operation is stopped, a construction as shown in Fig. 24 is considered. The color separated R, G, and B signals are A/D converted by an A/D converter 1301 and are subsequently shading-corrected by a shading correction circuit 1302. Output signals of the shading correction circuit 1302 are sent to a logarithm (log) converter 1303 and a lookup table (hereinafter, referred to as an LUT) 1306. Output signals from the log converter 1303 are transmitted through a masking circuit 1304 and an undercolor removal circuit (hereinafter, referred to as an UCR circuit) 1305, so that they are converted into Y, M, C, and K signals to print and output and a copy image is formed by those signals. On the other hand, data of 0 or 1 indicating whether the input R, G, and B signals correspond to the color of the specific original or not has previously been written in the LUT 1306. When they correspond to the original color, the "1" signal is generated. Reference numeral 1307 denotes a counter to count the number of appearing times of "1" and 1308 indicates a comparator for comparing a count value with a predetermined threshold value and for outputting a "1" signal when the count value is larger than the threshold value. When the "1" signal is generated from the comparator, a selector 1309 stops the generation of the image signal and replaces to a fixed value such as 255, thereby interrupting the formation of a copy image. In the above construction, when it is assumed that each of the input R, G, and B signals consists of seven bits, the LUT 1306 needs a capacity of 2 Mbits. If the lookup table of such a large capacity is made operative on a pixel unit basis of an original image, however, a response time of tens of nanoseconds is required. There is a drawback such that it is impossible to cope with such a response time by a cheap EPROM or the like. An object of the invention is to provide an image processing apparatus which can accurately discriminate a specific original. Still another object of the invention is to enable a plurality of specific originals to be simultaneously discriminated. Further another object of the invention is to effectively prevent a forgery of bank notes or the like. According to the present invention, there is provided a discrimination device for discriminating whether an input image represented in electrical input image data represents any of a plurality of predetermined colour specific originals and for generating a discrimination signal indicating the result of the discrimination, comprising a common memory storing respective colour characteristics for each predetermined specific original, and processing means operable in response to one receipt by the device of said input image data in electrical form to discriminate therefrom with reference to the data stored in the common memory whether said input image represents any of said plurality of predetermined specific originals irrespective of the angle of the input image, and to generate the discrimination signal in dependence thereon. The present invention also provides an image forming apparatus, comprising image forming means for processing electrical input image data and generating therefrom an output image on a recording medium, and a discriminating device for discriminating whether an input image represented in the input image data represents any of a plurality of predetermined colour specific originals and for generating a discrimination signal indicating the result of the discrimination, said image forming means being controlled on the basis of the discrimination signal to prevent faithful reproduction of a predetermined specific original, wherein said discriminating device comprises a common memory storing respective colour characteristics for each predetermined specific original, and processing means operable in response to one receipt by the device of said input image data in electrical form to discriminate therefrom with reference to the data stored in the common memory whether said input image represents any of said plurality of predetermined specific originals, and to generate the discrimination signal in dependence thereon. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a diagram showing an example of a construction of a first embodiment; Fig. 2 is a diagram for explaining the sampling of a target color; Fig. 3 is a diagram showing an example of a distribution of a target color; Fig. 4 is a detailed diagram of a color judgment lookup table; Fig. 5 is a diagram for explaining a judgment area; Figs. 6-1A to 6-1D and 6-2A to 6-2D are diagrams showing examples of histograms; Figs. 7A and 7B are diagrams showing examples of results of processes; Fig. 8 is a block diagram showing the second embodiment; Fig. 9 is now deleted; Fig. 10 is a block diagram showing the third embodiment of a copying apparatus in which an image reading apparatus is installed; Fig. 11 is a flowchart for explaining a copying operation of a CPU 1021 according to the embodiment; Fig. 12 is a block diagram showing the fourth embodiment as a main section of a copying apparatus in which the image reading apparatus is installed; Fig. 13 is a block diagram showing an internal construction of an image scanner unit of a copying apparatus in an embodiment; Fig. 14 is a circuit diagram showing a construction of a thinning circuit 2111 according to the sixth embodiment; Fig. 15 is a flowchart for explaining the operation by a CPU in the sixth embodiment; Fig. 16A is a block diagram showing a construction of a specific original judgment unit 2112 according to the sixth embodiment; Fig. 16B is a block diagram showing a construction of an OR write circuit 2411; Fig. 16C is a timing chart of a timing generation circuit to generate timing signals; Fig. 17 is a block diagram showing a typical construction of integrators 4011 to 4018; Figs. 18A and 18B are diagrams for explaining integrating effects; Figs. 19A and 19B are diagrams for explaining the relations between specific originals and a color space; Fig. 20 is a diagram for explaining the relation between color space data of a specific original and a judgment ROM 2401; Fig. 21 is a diagram showing the positional relation between a specific original and a recognition area; Fig. 22 is a side sectional view showing an internal construction of a copying apparatus of the sixth embodiment of the invention; Fig. 23 is a block diagram showing a construction of a thinning circuit according to the seventh embodiment; Fig. 24 is a block diagram showing a construction of an image scanner unit according to a conventional example; and Fig. 25 is a diagram for explaining a method of judging a specific original by using a color space. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS <First embodiment> According to the following embodiment of the invention, an attention is paid to the color constructing a bank note or the like. A hue in a certain limited window in an original image and a distribution are extracted, thereby detecting the presence or absence of the bank note or the like. Further, if it is determined that the bank note or the like exists, the image in the window is generated in a format different from the ordinary format, thereby preventing a forgery crime. The embodiment of the invention will now be described in detail hereinbelow with reference to the drawings. Fig. 1 is a block diagram showing a construction of the first embodiment of the invention. An original 102 put on an original base glass 101 is irradiated by a halogen lamp 103 for illuminating an original. An image of the original is formed onto a CCD line sensor 105 by a rod lens array 104. Color separation filters of R, G, and B are dot-sequentially coated onto the CCD line sensor 105. The sensor 105 generates color separation signals of the original at a pixel density of about 400 d.p.i. (dot per inch). For instance, a line sensor which is constructed by arranging three line sensors of R, G, and B in parallel can be also used as a line sensor 105. The component elements 103 to 105 are scanned in the direction shown by an arrow and the original image is sequentially read out line by line and is generated. A sample and hold circuit (S/H circuit) 106 samples and holds an output signal of the CCD Line sensor 105 every pixel. An A/D converter 107 converts analog signals from the S/H circuit 106 into digital signals. A shading correction circuit 108 corrects an output fluctuation due to a sensitivity variation among the pixels of the CCD line sensor. R, G, and B signals which are generated from the shading correction circuit 108 are converted into the C (cyan), M (magenta), and Y (yellow) signals of complementary colors by a logarithm (log) conversion circuit 109. A minimum value K (black) of C, M, and Y is extracted by a black extraction circuit 110. A masking circuit 111 and an UCR (undercolor removal) circuit 112 execute well-known color correcting processes. The image data is subsequently transferred to a selector 118 as an area-sequential signal of C, M, Y, and K. On the other hand, the R, G, and B output signals of the shading correction circuit 108 are averaged by a mean circuit 113 on the basis of N x N pixels (N = about 8 to 32 pixels). Output signals of the mean circuit 113 are transmitted through a lookup table (LUT) 114, which will be explained hereinlater, and data of the whole area of the original is temporarily stored into a frame buffer 115. At this time, simultaneously with the averaging process, the R, G, and B output signals are sub-sampled at every interval of M pixels (M = about 8 to 32 pixels), thereby reducing a data amount. The averaging and sub-sampling processes are executed at least one of the main scanning direction and the sub scanning direction. The data which has temporarily stored in the frame buffer 115 is subjected to a process as will be explained hereinlater by a CPU 116, thereby discriminating the presence or absence of the bank note or the like. Such a discrimination is executed with respect to a plurality of areas in the original. If it is determined that the bank note exists, the CPU 116 sends an address of an image corresponding to the relevant area to a gate signal generation circuit 117. The generation circuit 117 sends a gate signal to the selector 118. The selector 118 supplies the image signals C, M, Y, and K from the UCR circuit 112 for the area in which the bank note or the like doesn't exist and also supplies a dummy signal (fixed value signal) for the area in which the bank note or the like exists. For instance, 0 or FF can be used as a dummy signal. An output signal of the selector 118 is again converted into the analog signal by a D/A converter 119. The analog signal is compared with an output signal of a triangle wave generation circuit 120 synchronized with an image clock by a comparator 121. An output signal of the comparator 121 is transmitted through a laser driver 122 and pulse width modulates a semiconductor laser 123. A semiconductor laser output is collimated by a proper optical system and scans on a photo sensitive drum 125 by a polygon mirror 124 which rotates at a high speed, thereby writing a latent image. The latent image formed on the drum 125 is subjected to a developing process, a copy transferring process, and a fixing process (not shown) and a visible image is area sequentially formed onto a paper in accordance with the order of C, M, Y, and K and the copying operation is completed. In the above operation, a data storing process into the frame buffer and a discriminating process can be executed upon prescanning and a gate signal as a result of the discrimination can be also generated upon main scanning. On the other hand, it is also possible to construct in a manner such that the data is fetched at the first time (scan of Y) of the area sequential scan of Y, M, C, and K and the discriminating processes are executed at the second and third times (scans of M and C) of the scan and the gate signal is generated only for the final area (at the fourth time) (scan of K). The discriminating processes by the LUT 114 and CPU 116 will now be described. The case where three kinds of bank notes A, B, and C are used as objects to be discriminated will now be considered. First, standard samples are prepared with respect to the bank notes A, B, and C and are sampled at 32 points as shown in Fig. 2, thereby obtaining R, G, and B values corresponding to each point. The sampling points corresponding to the bank note A are set to R a1 to R a32 , G a1 to G a32 , and B a1 to B a32 . The sampling points corresponding to the bank note B are set to R b1 to R b32 , G b1 to G b32 , and B b1 to B b32 . The sampling points corresponding to the bank note C are set to R c1 to R c32 , G c1 to G c32 , and B c1 to B c32 . Color difference signals α (= R - G) and β (= G - B) are subsequently obtained. Distributions of α and β are as shown in, e.g., Fig. 3. Each of the bank notes A, B, and C has a group of 32 points. The LUT 114 generates a code C g indicating to which one of the groups of the bank notes A, B and C the R, G, and B values of the original image are closest. The LUT 114 also generates a code C n indicating to which one of 1 to 32 in the closest group the R, G, and B values are closest. For instance, in the case of Fig. 3, C g = 2 (B group) and C n = 6 are generated. The details have a construction as shown in Fig. 4. The code C g is set to 1 in the case where the R, G, and B values are close to A; 2 in the case where they are close to B; and 3 in the case where they are close to C. Reference numerals 401 and 402 denote subtracters to calculate α (= R - G) and β ( = G - B) from the R, G, and B values. Reference numeral 403 denotes an LUT for generating the code signal C g (either one of 1, 2, and 3 is generated in correspondence to each of A, B, and C) indicating to which one of the groups of the A, B, and C in Fig. 3 the values of α and β are closest and the code C n (either one of 1 to 32 is generated) indicating to which one of the 32 points of A, B, and C the values of α and β are closest. When the above shortest distance is equal to or larger than a predetermined value (that is, in the case of none of A, B, and C), C g = 0 and C n = 0 are generated. Since the brightness information is lost in the case of the classification due to only the color difference signals α and β, an LUT 404 and a window comparator 405 are used in consideration of such a case. Reference numeral 404 denotes the second LUT to store a standard value of G corresponding to C g and C n . For instance, when C g = 2 and C n = 6, a value G b6 of G for the standard sample is generated. The value G b6 and the value of G of the original image are supplied to the window comparator 405, thereby discriminating whether the following condition is satisfied or not. G b6 - d ≦ G ≦ G b6 + d where, d denotes a predetermined constant. The result of the discrimination is supplied to a selector 406. When the condition (1) is satisfied, C g and C n are directly generated. When the condition (1) is not satisfied, C g and C n are reset to 0 and generated. The original image is converted into the code information C g and C n by the above processes and they are stored into the frame buffer 115. After the values of C g and C n were written into the frame buffer 115 with respect to the whole area of the original, the CPU 116 then reads out those data from the buffer 115 and discriminates the presence or absence of the bank note. The above discriminating process will now be described. The content in the frame buffer 115 is first divided into a plurality of areas as shown in Fig. 5. The whole area of the original image 102 is sub-sampled every M pixels and converted into the codes C g and C n and the resultant data is stored in the frame buffer 115. Therefore, each area is obtained by dividing the original into a plurality of windows each having a predetermined size. Histograms of C g and C n are subsequently formed in each area. The histogram of C g is as shown in, e.g., Fig. 6-1A or 6-2A. It is now assumed that Figs. 6-1A to 6-1D show histograms of the area 1. Figs. 6-2A to 6-2D show histograms of the area 2. C g = 0 is excluded because it is not close to all of A, B, and C. Histograms of C n with respect to the cases of C g = 1, 2, 3 are as shown in Figs. 6-1B, 6-1C, 6-1D, 6-2B, 6-2C, and 6-2D. In the above drawings, each of Figs. 6-1A and 6-2A shows the number of pixels having a color close to either one of A, B, and C which exist in the target area. Each of Figs. 6-1B, 6-2B, 6-1C, 6-2C, 6-1D, and 6-2D shows to which one of the colors 1 to 32 in each group of A, B, and C the color is deviated. Therefore, in the case where the bank note exists in the target area, the histogram of C g is concentrated to either one of 1, 2, and 3. On the contrary, it is possible to consider such that the histogram of C n is uniformly distributed to 1 to 32 (this is because since 1 to 32 correspond to the colors of respective positions of the bank note as shown in Fig. 2, if the bank note exists, those colors ought to be uniformly included). In the examples of Figs. 6-1A to 6-2D, (1) in the area 1, although the histogram is concentrated to C g = 2, the histogram of C n when C g = 2 is concentrated at one point and it is considered such that a number of similar colors happened to be merely included. On the other hand, (2) in the area 2, the histogram is concentrated to C g = 3 and the histogram of C n corresponding to C g = 3 is also equivalently distributed to 1 to 32, so that it is possible to determine that the bank note exists. It is, therefore, sufficient to calculate the next parameters from the histograms of C g and C n and to execute the judgment. Further, N n (1) to N n (32) are reordered (i.e. the values of the bracketed index (k) are interchanged) so as to be ranked by count value. Thus, N n (1)' is the highest number of pixels for a value of C n . Reordering of the numbers N n (k)' from the N n (k) is performed by the CPU 116. The distribution parameters are subsequently calculated as follows. where, N g (1), N g (2), N g (3): degrees in which the pixels of the colors close to the groups A, B, and C are included σ(1), σ(2), σ(3): degrees of distributions of 1 to 32 in the groups A, B, and C From the above description, when the following conditions are satisfied, it is determined that the bank note exists. In the case where the bank note exists, as mentioned above, the gate signal is generated from the gate signal generation circuit 117 and the image of the relevant area is erased. Figs. 7A and 7B show the results of the processes which have been executed as mentioned above. Fig. 7A shows an original image in the case where bank notes are put at positions 701 and 702. Fig. 7B shows a copy image which is generated. The results of the judgment indicate the existence of the bank notes at positions 703, 704, 705, and 706 and the gate signal is generated so as to paint the images in the relevant areas in black (hatched portions). <Second embodiment> Fig. 8 shows a block diagram of the second embodiment. The descriptions about the same portions as those in Fig. 1 are omitted here. The output of the UCR circuit 112 is supplied to a smoothing circuit 801 and a line buffer 802. Outputs of the smoothing circuit 801 and the line buffer 802 are supplied to the selector 118 and are switched in accordance with the gate signal generated from the gate signal generation circuit 117 as a result of the judgment. In this case, in the area which has been determined that the bank note exists, a blurred image which has been subjected to a smoothing process is generated and the object to copy the specific image is not accomplished. According to the above embodiment of the invention, the forgery crime can be prevented by a relatively simple construction. Since the judging processes are executed on the basis of only the colors of the original, the stable results of the judgments can be obtained irrespective of the positions and angles at which the bank notes or the like are put. Further, even if a plurality of objects to be judged are set or an object is changed, it is also possible to easily cope with such a case by merely changing the lookup table. In the above embodiment, the R, G, and B signals have been used as input signals. However, it is also possible to use input signals such as (Y, M, C), (L*, a*, b*), (Y, I, Q), (Y, C r , C b ), or the like. On the other hand, although the color difference signals R-G and G-B have been used to judge the color, for instance, the signals can be also converted into the signals such as (Y, I, Q), (L*, a*, b*), (L, U, V), (H, L, S), or the like. Code information can be also formed by a three-dimensional distribution by including not only the color but also the brightness. In the case where the existence of the specific original has been determined, the process which is executed is not limited to the painting process or smoothing process but it is sufficient to perform other process such as a stop of the copying operation which is different from the process for the ordinary original. As mentioned above, a color image processing apparatus which can accurately discriminate a specific original can be provided. <Third embodiment> Fig. 10 is a block diagram showing the third embodiment of a copying apparatus in which an image reading apparatus has been installed. In the copying apparatus shown in Fig. 10, an original 1001 put on an original base glass 1002 is illuminated by an original illuminating halogen lamp 1003 upon prescanning and main scanning and an image is formed onto a CCD line sensor 1005 by a rod lens array 1004. Color separation filters of R, G, and B are dot-sequentially coated onto the CCD line sensor 1005. The sensor 1005 generates color separation signals of the original every pixel and every line in accordance with the order of R, G, B, R, G, B, .... Reference numeral 1006 denotes a sample and hold circuit (hereinafter, referred to as an S/H circuit). The S/H circuit 1006 samples and holds an output signal of the CCD line sensor 1005 every pixel. An analog/ digital converter (hereinafter, referred to as an A/D converter) 1007 converts analog signals which are generated from the S/H circuit 1006 into digital signals. A shading correction circuit 1008 corrects an output fluctuation due to a variation is sensitivities among the pixels of the CCD line sensor 1005. An input masking circuit 1009 masking-processes R, G, and B signals which are supplied from the shading correction circuit 1008 in accordance with characteristics of the CCD. Output signals of the input masking circuit 1009 are sent to a histogram formation circuit 1010 and to a template unit 1017, which will be explained hereinlater. The histogram formation circuit 1010 forms histograms from the R, G, and B signals sent from the input masking circuit 1009 and stores into a memory 1014 at the post stage. The template unit 1017 has a first template 1015 and second templates 1016a to 1016n to collate with the image data of the original which has been read. Reference numeral 1015 denotes the memory (first template) to store pattern information of a plurality of specific originals such as bank notes of, for instance, n countries. In accordance with the general pattern information about the color, shape, and the like of the bank note of each country which has been stored, a check is made to see if there is a possibility such that the input image corresponds to either one of them or not. Reference numerals 1016a to 1016n denote the memories (2nd templates) to store detailed information such as pattern, color, and the like of the corresponding bank notes every pattern information stored in the first template. A further detailed judgment is executed for the input image which has been judged by the first template. Reference numeral 1018 denotes an OR circuit. When at least one of outputs of the second templates 1016a to 1016n indicates a result of the judgment of the presence of the bank note, such a judgment signal is sent to a switch unit 1012, thereby turning off the switch unit 1012. Thus, the normal image data is not sent to the printer unit 1013 and the forgery of the bank note can be prevented. A color processing circuit 1011 executes color processes such as logarithm conversion, masking, UCR (undercolor removal), and the like. The switch unit 1012 controls the operation of a printer unit 1013 at the post stage. The printer unit 1013 is constructed by, for example, a laser beam printer and is set into a printing mode when the switch unit 1012 is set to ON. The memory 1014 stores the histograms formed by the histogram formation circuit 1010 upon prescanning. Reference numeral 1021 denotes a CPU to control the whole apparatus; 1022 indicates an ROM in which control programs (programs according to a flowchart of Fig. 11 and the like) to operate the CPU 1021 have been stored; and 1023 an RAM which is used as a work area of various programs. The operation according to the above construction will now be described. Fig. 11 is a flowchart for explaining the control of the copying operation which is executed by the CPU 1021 of the embodiment. First, the operation in the prescanning mode will now be described. In the prescanning mode, the original size, original concentration, and the like are ordinarily detected. In the embodiment, however, the following processes are also executed. In accordance with a copy instruction by an operation unit (not shown) (step S1), the original 1001 put on the original base glass 1002 is illuminated by the halogen lamp 1003 and an image is formed onto the CCD line sensor 1005 (step S2). The signal converted by the sensor 1005 is sent to the S/H circuit 1006 and is sampled and held every pixel. After that, the signals are converted into the digital signals by the A/D converter 1007. Subsequently, the digital signals of R, G, and B are transmitted through the shading correction circuit 1008 and the input masking circuit 1009 and are subjected to the shading correction and the masking process. The output signals R, G, and B of the input masking circuit 1009 are supplied to the histogram formation circuit 1010 and the template unit 1017. The histogram data formed by the histogram formation unit 1010 is temporarily stored into the memory 1014. On the other hand, the signals sent to the template unit 1017 are collated with the contents in the first template 1015, thereby judging the presence or absence of the bank note (step S3). The control regarding such a judgment is executed by the CPU 1021. Thus, if it is determined that there is no possibility such that the input image data corresponds to all of the bank notes registered in the second templates 1016a to 1016n, a switch ON signal is transmitted to the switch unit 1012 and the switch unit 1012 is turned ON. Thus, the ordinary copying operation is performed. On the contrary, if it is decided that there is a possibility such that the input image data corresponds to either one of the bank notes registered in the second templates 1016a to 1016n, the detailed judgment using the second templates is executed in the next main scan. The operation by the prescan is finished by the above operation and the main scan to execute the ordinary copying operation is subsequently performed (step S5). The main scan is executed total four times with respect to Y, M, C, and K in a manner similar to the first embodiment. The processes similar to those in the prescan are executed until the input masking circuit 1009. The signals which are generated from the input masking circuit 1009 are sent to the histogram formation circuit 1010 and the template unit 1017. Histograms are formed by the histogram formation circuit 1010 on the basis of the signals transmitted and the foregoing predetermined color processes are executed by the color processing circuit 1011 at the post stage. After that, when the switch unit 1012 is set to ON, the color processed signals are sent to the printer unit 1013 through the switch unit 1012 and generated as a hard copy. The ON/OFF operations of the switch unit 1012 in the main scan will now be described. The histograms formed by the histogram formation circuit 1010 are sent to the memory 1014 and compared with the histograms stored upon prescanning by the CPU 1021 (step S6). The result of the comparison is sent to the switch unit 1012 and when both of the histograms coincide (step S7), the switch unit 1012 is held to the ON state and the ordinary copying operation is performed (step S8). If both of the histograms differ (step S7), this means that the original upon prescanning differs from the original upon main scanning and there is also a possibility such that the bank note has been put on the original base glass after completion of the prescan. Therefore, the switch unit 1012 is set to OFF and the copying operation is stopped. By the above processing flow, it is possible to check to see if the original upon prescanning differs from the original put on the original base glass 1002 upon main scanning or not. If the original has been exchanged, the copying operation can be inhibited. On the other hand, the signal sent to the template unit 1017 in the main scan in the case where it is determined that there is a possibility of the existence of the bank note upon prescanning is supplied through the first template to the second templates 1016 and the pattern information, color information, and the like are respectively collated (step S10) after completion of the main scan (step S9) since the kinds of specific originals, that is, the countries and kinds of the bank notes had previously been judged in the first template 1015 upon prescanning. Thus, if it is determined that the input image data doesn't relate to the bank note, the switch ON signal is sent to the switch unit 1012, the switch unit 1012 is held to the ON state, and the ordinary copying operation is started (step S12). On the contrary, if the existence of the bank note is determined, the switch OFF signal is sent to the switch unit 1012, the switch unit 1012 is turned OFF, and the copying operation is stopped. As described above, according to the embodiment, for instance, the two kinds of comparing processes are executed between the first template having the color distribution data about a plurality of bank notes and the detailed second templates having the data of various kinds of bank notes. Therefore, it is possible to prevent that the time of the copying operation becomes longer than the ordinary copying time due to the time which is required to judge the bank notes. On the other hand, since the sameness (or identity) of the original in the prescan and the original in the main scan is also discriminated, it is possible to prevent the forgery of the bank note due to the exchange or the like of the original after completion of the prescan. In the above third embodiment, the bank note has been mentioned as an example of an object which is used to prevent the forgery. However, the invention is not limited to such an example but can be also applied to the cases of preventing the forgery of stocks and bonds, various contract documents, and the like. Various kinds of printers such as laser beam printer of the electrophotographic type, thermal copy transfer printer, dot printer, ink jet printer, etc. can be also used as a printer unit 1013. The algorithm in the first embodiment can be also used as an algorithm for the judgments which are executed in the above templates. Each of the above templates is constructed by a RAM, a ROM, or the like. Therefore, by rewriting the content in the RAM or by exchanging the ROM, it is also possible to cope with the case where an object whose copying operation should be inhibited has been changed (for instance, the case where the pattern, color, or the like of the bank note has been changed). <Fourth embodiment> Fig. 12 is a block diagram showing the fourth embodiment as a main section of a copying apparatus in which the image reading apparatus has been installed. In the diagram, the component elements similar to those in Fig. 10 are designated by the same reference numerals. An input unit 1030 has a construction similar to the construction until the input masking circuit 1009 in Fig. 10. In the fourth embodiment, a print permission from the template unit 1017 is directly instructed to the printer unit 1013. In the main scan, the output signals R, G, and B from the input unit 1030 are sent to the histogram formation circuit 1010 and the template unit 1017. The signals sent to the histogram formation circuit 1010 are transmission along a path similar to that in the third embodiment and are transferred to the printer unit 1013 when the switch unit 1012 is set to ON. The template unit 1017 has the first template 1015 (not shown) and the second templates 1016a to 1016n (not shown) similar to those in the third embodiment. The presence or absence of the bank notes in the original is judged by using those templates. At this time, if the absence of the bank notes is determined, a print permission signal having a function similar to that of the switch ON signal in the third embodiment is directly supplied to the printer unit 1013. On the contrary, if the existence of the bank note is decided, the data in the address in which the presence of the bank note in the original has been determined is sent to the printer unit 1013. Upon reception of the signal of such data, the printer unit 1013 generates a reproduction image in which the portion indicated by the address data is black. In this case, the printing process can be easily executed if an AND circuit to calculate the AND with the image data in the address of an object to be painted in black is provided in the data input section in the printer unit 1013. An effect similar to that in the third embodiment can be also obtained by the above construction. <Fifth embodiment> The fifth embodiment has a construction similar to that of the fourth embodiment mentioned above. The printer unit 1013 which has received the address data from the template unit 1017 generates an image which is made blurred to an extent such that it cannot be used as a bank note corresponding to the received address data. As such a method, a method of a mosaic processing or the like to reduce the image resolution can be also used. An effect similar to that in the first embodiment can be also derived by the above construction. As described above, the copy of the original image which has been determined to be a specific original can be certainly inhibited. <Sixth embodiment> Fig. 13 is a block diagram showing an internal construction of an image scanner unit of a copying apparatus according to the sixth embodiment of the invention. In the diagram, reference numeral 2101 denotes an A/D converter for converting analog signals of R, G, and B which are sent from image input means such as CCD line sensor, host computer, or the like (not shown) into digital signals. Reference numeral 2102 denotes a shading correction circuit for shading correcting the digital R, G, and B signals. Reference numeral 2103 denotes a logarithm (log) converter which is constructed by a lookup table ROM (or RAM) to convert the shading corrected R, G, and B signals (luminance signals) into the concentration signals; 2104 a masking circuit; and 2105 an UCR circuit. A masking process and an UCR (under color removal) process are executed to the concentration signals from the log converter 2103 by the masking circuit 2104 and the UCR circuit 2105. Reference numeral 2111 denotes a thinning circuit for thinning out the corrected R, G, and B signals from the shading correction circuit 2102. A construction of the thinning circuit 2111 will be described hereinlater with reference to Fig. 14. Reference numeral 2112 denotes a specific original judgment unit to judge the presence or absence of a specific original on the basis of the thinned-out R, G, and B signals from the thinning circuit 2111. A construction of the specific original judgment unit 2112 will be described hereinlater with reference to Fig. 16. Fig. 14 is a circuit diagram showing a construction of the thinning circuit 2111 according to the sixth embodiment. In the diagram, reference numerals 2201a, 2201b, and 2201c denote flip-flops which operate by the same clock CLK as that of the image signal; and 2202a, 2202b, and 2202c denote flip-flops which operate by a clock CLK' which is derived by frequency dividing the clock CLK into 1/4. Waveforms of clocks CLK 2203 and clocks CLK' 2204 are also shown in Fig. 14. The thinning circuit 2111 operates so as to sample the time-sequential image data every predetermined n clocks. A construction of the copying apparatus will now be described. Fig. 22 is a side sectional view showing an internal construction of the copying apparatus of the sixth embodiment of the invention. In the diagram, reference numeral 1201 denotes an image scanner unit for reading an original and for executing a digital signal process; and 1202 a printer unit for printing and outputting an image corresponding to the original image which has been read by the image scanner unit 1201 onto a paper in a full color. In the image scanner unit 1201, reference numeral 1200 denotes a mirror surface pressing plate. An original 1204 put on an original base glass (hereinafter, referred to as a platen) 1203 is illuminated by a lamp 1205. The reflected light is led to mirrors 1206, 1207, and 1208 and an image is formed through a lens 1209 onto a 3-line sensor (hereinafter, referred to as a CCD) 1210 which is constructed by arranging three R, G, and B line sensors in parallel. The image data is sent to a signal processing unit 1211 as full color information components of red (R), green (G), and blue (B). The lamp 1205 and the mirror 1206 are mechanically moved at a velocity v and the mirrors 1207 and 1208 are also mechanically moved at a velocity of v/2 in the direction (subscanning direction) perpendicular to the electrical scanning direction (main scanning direction) of the line sensor, thereby scanning the whole area of the original. The signal processing unit 1211 electrically processes the read image signal and separates into the components of magenta (M), cyan (C), yellow (Y), and black (Bk) and sends to the printer unit 1202. One of the components of M, C, Y, and Bk is sent to the printer unit 1202 by a single scan of the original by the image scanner unit 1201. A single print is completed by total four scans of the original. The image signal of M, C, Y, or Bk sent from the image scanner unit 1201 is supplied to a laser driver 1212. The laser driver 1212 modulates and drives a semiconductor laser 1213 in accordance with the image signal. A laser beam is reflected and transmitted by a polygonal mirror 1214, an f- lens 1215, and a mirror 1216 and scans on a photo sensitive drum 1217. Reference numeral 1218 denotes a rotary developing device comprising: a magenta developing unit 1219, a cyan developing unit 1220, a yellow developing unit 1221, and a black developing unit 1222. The above four kinds of developing units are alternately come into contact with the photo sensitive drum 1217 and an electrostatic latent image formed on the drum 1217 is developed by toners of respective colors. Reference numeral 1223 denotes a copy transfer drum. A paper which has been fed from a paper cassette 1224 or 1225 is wound around the copy transfer drum 1223 and the image developed on the photo sensitive drum 1217 is copy transferred onto the paper. After the images of four colors of M, C, Y, and Bk were sequentially copy transferred onto the paper, the paper passes through a fixing unit 1226 and is discharged out of the copying apparatus. Fig. 16A is a block diagram showing a construction of the specific original judgment unit 2112 shown in Fig. 13. Fig. 17 is a block diagram showing typical constructions of integrators 4011 to 4018. Figs. 18A and 18B are diagrams for explaining integrating effects according to the sixth embodiment. Figs. 19A and 19B are diagrams for explaining the relations between the specific originals and the color spaces. Fig. 20 is a diagram showing the relation between the color space data of a specific original and the data in a judgment ROM 2401. Fig. 21 is a diagram showing the positional relation between the specific original and the recognition area. Fig. 25 is a diagram for explaining a judging method of a specific original by using a color space. In Fig. 16A, the judgment ROM 2401 is constructed by a read only memory of a data width of 8 bits and an address width of 15 bits. Data corresponding to eight kinds of predetermined specific originals are sotred into the ROM 2401. R, G, and B color image signals supplied from the image scanner unit 1201 are sent as address signals of the judgment ROM 2401. Information'indicating whether the image data of the specific originals shown in Figs. 19A, 19B, and 20 exist in the corresponding R, G, and B spaces or not has been stored in the judgment ROM 2401. In the case where the colors shown by input color signals 2313, 2314, and 2315 are included in color distribution ranges of the image portions of specific originals A and B in the hatched portions in the RGB spaces shown in Figs. 19A and 19B, an output signal of the judgment ROM 2401 is set to 1. Otherwise, the output signal is set to 0. The judgment information generated from the ROM 2401 is supplied to the integrators 4011 to 4018 through a latch circuit 2402. Since the integrators 4011 to 4018 have the same construction, the integrator 4011 will now be described as a typical example. Fig. 17 is a block diagram for explaining the integrator 4011. In Fig. 17, reference numerals 2501 and 2504 denote multipliers; 2502 an adder; and 2503 a latch circuit to adjust a timing. The multiplier 2504 executes a multiplication of x i x 255(1 - β) to the ith signal x i (0 or 1) which is supplied by using a predetermined weight coefficient β. The result of the multiplication is supplied to a B side of the adder 2502. On the other hand, the multiplier 2501 executes a multiplication of y i-1 x β to the (i-1)th output'signal y i-1 which is supplied from the latch circuit 2503. The result of the multiplication is supplied to an A side of the adder 2502. The adder 2502 performs an addition of x i x 255 (1 - β) + y i-1 x β and generates the result of the addition as yi. That is, the integrator 4011 executes an integration expressed by the following equation (2), y i = x i x 255(1 - β) + y i-1 x β for all of the input data. By executing the above integration, in the case where the input value "1" to the integrator 4011 continues as shown in Fig. 18B, the output value from the integrator 4011 approaches 255 as shown in Fig. 18A. On the other hand, in the case where the input value "0" continues, the output value approaches 0. Since comparison arithmetic units 4001 to 4008 have the same construction, the comparison arithmetic unit 4001 will now be described as a typical example. A magnitude of an output value A from the integrator 4011 is compared with a magnitude of a predetermined constant value B stored in a register 4021. A judgment signal C 1 indicative of the result of the comparison is generated in accordance with the following conditions (3). From the above process, in the case where the input color signals continuously coincide with the image data of the specific original, the output signal C 1 from the comparison arithmetic unit 4001 is set to 1. The other comparison arithmetic units 4002 to 4008 and registers 4022 to 4028 also function in a manner similar to the comparison arithmetic unit 4001 and the register 4021. Counters 2421 to 2428 also have the same construction. The counter 2421 is counted up only when the output signal C 1 is set to 1. The counter 2421 counts the number of pixels included in a specific original recognition area corresponding to a hatched portion in Fig. 21. An OR write circuit 2411 calculates the ORs of output signals C 1 to C 8 of the comparison arithmetic units 4001 to 4008 and writes the ORs into an RAM 2412. The RAM 2412 has the same size as that of the judgment ROM 2401 and has a bit width of 8 bits and an address width of 16 bits. Fig. 16B is a block diagram showing a construction of the OR write circuit 2411. Reference numeral 2412 denotes an SRAM of 32K. The signals of R, G, and B each consisting of five bits are supplied to input terminals A 0 to A 14 as address buses. Data 4021 to 4028 after completion of the OR calculations, which will be explained hereinlater, are supplied to input terminals D 0 to D 7 as data. Reference numeral 4112 denotes a timing generation circuit to generate timing signals shown in Fig. 16C. In the OR arithmetic operating section in the dashed region, the stored data is read out of the input terminals D 0 to D 7 in response to a read enable signal OE at timings of the clock CLK' with respect to the addresses designated by the input signals to the input terminals A 0 to A 14 and is latched into latch circuits. On the other hand, the OR circuits calculate the ORs of the input signals 4021 to 4028 and the latched memory data. The calculated ORs are generated from the buffer memory at an inverter timing R io . If at least one of the data which are sequentially input by the input signals 4021 to 4028 for the addresses which are specified by the R, G, and B signals each consisting of five bits is equal to "1", the "1" data is stored into the SRAM 2412. Since the input signals D 0 to D 7 are stored into the independent addresses, the judging process can be executed in parallel for the eight kinds of specific originals. By counting the number of bits "1" as a result of the judgment stored in the RAM 2412, a volume in the RGB space of the hatched portion as count data in Fig. 25 is calculated. In Fig. 16A, reference numeral 2415 denotes a CPU to control the whole specific original judgment unit 2112; 2415a an ROM in which a program according to a flowchart of Fig. 15 and the like by which the CPU 2415 operates have been stored; and 2415b an RAM which is used as a work area of various programs. The CPU 2415 mainly reads the data of the counters 2421 to 2428 and the RAM 2412 and discriminates whether a target original exists in the input originals or not. An input of the integrator in Fig. 17 is shown by X i and an output is shown by Y i (1 ≦ i ≦ 8). A calculating process according to the following equation (4) is performed. Y i+1 =β·Y i + 255(1 - β)X i In the above equation (4), β denotes a constant to control an integrating effect of the integrator. The following relation is satisfied within a range of 0 < β < 1. That is, an integration value change curve slowly changes as a set value of β shown in Fig. 18B approaches 1. On the contrary, as the set value of β approaches 0, the change curve suddenly changes. In the embodiment, β = 31/32. A recognition object is set by presuming an original of a size as large as a bank note. However, if a smaller original image such as a stamp or the like is used as a recognition object, it is proper to set β to a smaller value such as 7/8. The value of β can be also set to an arbitrary value in accordance with a recognition object by a scan unit (not shown). Fig. 15 is a flowchart for explaining the control by the CPU 2415 in the sixth embodiment. First, when information to start the reading of the original is detected, an INH signal 2404 is set to "0" in step S1201 at the start of the reading of the original. After that, the reading of the original is instructed in step S1202. In step S1203, a variable n is set to 1. That is, a count value of the nth counter is sequentially stored into the RAM 2412. In step S1204, the value of the counter in Fig. 16A, in this case, the value of the counter 2421 because n = 1 is read and is stored into a variable area set in the RAM 2412. In step S1205, the total number of "1" data stored in the variable area in the RAM 2412 in Fig. 16A is calculated. The total number is set to a variable vol. The variable vol denotes a value indicative of a volume of the hatched portion in Fig. 25, that is, vol = T jd . In step S1206, a check is made'to see if the value of the variable area is equal to or larger than a predetermined constant K or not. The value of the variable area corresponds to the number of pixels in the recognition area shown in the hatched portion in Fig. 21. Therefore, by comparing a magnitude of the value of the variable area with a magnitude of the constant K, the presence or absence of a possibility such that the input image relates to a bank note original is discriminated. That is, when the variable area value is larger than K, it is determined that there is a possibility such that the input image relates to the bank note original. In step S1207, the value of the variable vol which has been set in step S1205 and a similarity r between the measured image data in the color space shown by the following equation (5) and the image data of the specific original are calculated and the similarity r is compared with the constant γ. In Fig. 25, T ORG denotes image data of a specific original (hereinafter, referred to as specific image data) which has previously been registered and corresponds to the hatched portion displayed in the RGB space and indicates a volume among the RGB coordinate space. T jd denotes image data of the read original (hereinafter, referred to as measured image data) and corresponds to a hatched portion in which the measured image data such that the output signals of the comparison arithmetic units 4001 to 4008 are set to 1 has been displayed in the RGB space. T jd indicates a volume in the RGB coordinate space. The similarity r in the above case is expressed by the following equation (5). r = T jd T ORG As the value of the similarity r approaches 1, the similarity between the measured image data and the specific image data is high. Since vol = T jd ' r = vol T ORG ≥ γ (where, γ (gamma) indicates a constant which is determined by experiments and denotes a matching ratio in the color space. It is assumed that γ = 0.7.) is discriminated. If a result of the discrimination is true, it is decided that the similarity between the measured image data and the specific image data is high and that the copy should be inhibited. In the above construction, outputs of the flip-flops 2202a, 2202b, and 2202c in Fig. 14 are data obtained by thinning out the image signal into 1/4. Therefore, it is sufficient to also set an operating speed of the LUT (lookup table) of the judgment ROM 2401 in Fig. 16A to a value which is 1/4 of the speed in the conventional apparatus. As mentioned above, in the extraction of the color components of the color original, the LUT of a large capacity can be constructed by an EPROM or the like of a relatively slow response speed. In other words, the balance between the capacity of the LUT and the response speed can be held. <Seventh embodiment> Fig. 23 is a block diagram showing a construction of the thinning circuit 2111 according to the seventh embodiment. Only the thinning circuit regarding R is shown here as a typical example of R, G, and B. The clocks CLK and CLK' are the same as those in Fig. 14. In Fig. 23, reference numeral 2301 denotes a flip-flop which operates by the clock CLK and holds the image signal before the thinning process is executed; 2302 an adder; 2303 a flip-flop to hold the result of the addition; and 2304 an AND gate to calculates the AND between a Q output signal of the flip-flop 2303 and a reset signal RST (2305) which is set to 0 every four periods of the clock CLK. Reference numeral 2306 denotes a bit shift circuit to multiply the result of the addition from the adder 2302 by 1/4 time and 2307 indicates a flip-flop which operates by the clock CLK'. In the above construction, the mean value of four adjacent pixels are generated every four periods of the clock CLK. The smoothing process of four pixels is also executed simultaneously with the thinning-out process. As mentioned above, the thinning circuit according to the seventh embodiment obtains an addition mean value of the time-sequential image data of predetermined n clocks and subsequently samples. In the above case, random noises included in the original image signal are eliminated and a color judging accuracy is improved. As described above, in the extraction of the color components of a color original, the LUT of a large capacity can be constructed by an EPROM or the like of a relatively slow response speed. In other words, the balance between the capacity of the LUT and the response speed can be held. The present invention is not limited to the foregoing embodiments but many modifications and variations are possible within the scope of the appended claims of the invention.

Claims: A discrimination device for discriminating whether an input image represented in electrical input image data represents any of a plurality of predetermined colour specific originals and for generating a discrimination signal indicating the result of the discrimination, comprising: a common memory (114, 403, 1015, 2401) storing respective colour characteristics for each predetermined specific original; and processing means (116, 1021, 2415) operable in response to one receipt by the device of said input image data in electrical form to discriminate therefrom with reference to the data stored in the common memory whether said input image represents any of said plurality of predetermined specific originals irrespective of the angle of the input image, and to generate the discrimination signal in dependence thereon. A device according to claim 1, wherein said colour characteristics stored in the common memory characterise the colour distribution in a colour space of each respective predetermined specific original, and said processing means is arranged to perform the discrimination on the basis of the stored data and the colour distribution of the input image data. A device according to claim 1 or claim 2, wherein said processing means includes a plurality of discriminating units (4001-4008, 4011-4018, 2421-2428), each corresponding to a respective one of said plurality of predetermined specific originals, and each being operable to discriminate whether said input image represents a respective one of the predetermined specific originals. A device according to claim 3, wherein said common memory (2041) comprises a look-up memory addressable by pixel colour values of the input image data and having a plurality of output signal lines each corresponding to a respective one of the discriminating units for supplying a respective series of signals to each discriminating unit indicating for a corresponding series of pixel values whether each pixel value matches a stored colour characteristic of the corresponding predetermined specific original. A device according to claim 3 or claim 4, wherein said discriminating units are arranged so as to operate in parallel. A device according to any of claims 3 to 5, wherein said processing means further includes means (2411, 2412) for combining output signals from the plurality of discriminating units to generate said discrimination signal. A device according to any preceding claim, wherein said colour characteristics stored in the common memory are characteristics of a plurality of banknotes. A device according to any preceding claim, further comprising an image reader (104, 105, 1004, 1005, 1201) for scanning an image and generating said electrical input image data. A device according to claim 8, operable to determine whether the input image represents any of the plurality of predetermined specific originals concurrently with the generation of input image data in electrical form by the image reader. An image forming apparatus (106-125, 1006-1023, 1202, 1211), comprising image forming means (106-112, 116, 119-125, 1006-1013, 1202) for processing electrical input image data and generating therefrom an output image on a recording medium; and a discriminating device (113-118, 1017, 1021, 2112) for discriminating whether an input image represented in the input image data represents any of a plurality of predetermined colour specific originals and for generating a discrimination signal indicating the result of the discrimination; said image forming means being controlled on the basis of the discrimination signal to prevent faithful reproduction of a predetermined specific original; wherein said discriminating device comprises: a common memory (114, 403, 1015, 2401) storing respective colour characteristics for each predetermined specific original; and processing means (116, 1021, 2415) operable in response to one receipt by the device of said input image data in electrical form to discriminate therefrom with reference to the data stored in the common memory whether said input image represents any of said plurality of predetermined specific originals, and to generate the discrimination signal in dependence thereon.

Inventors: FUNADA MASAHIRO, OHTA EIJI, OUTA KENICHI, TAKARAGI YOICHI, FUNADA, MASAHIRO, OHTA, EIJI, OUTA, KENICHI, TAKARAGI, YOICHI
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1991
Main classification: G07D7
IPC codes: G07D7, H04N1