Apparatus for image reading or processing

Abstract: There is disclosed an apparatus for image reading or processing, that can precisely identify the pattern of a particularly pattern, such as of banknotes or securities of which faithful copying is to be prohibited. The apparatus is provided with a detecting unit for detecting the positional information of the original image, and a discriminating unit for extracting the pattern data of a certain part of the original image and discriminating whether the original image is the predetermined image, based on the similarly between the pattern data and a predetermined pattern.

Description: The present invention relates to an image forming apparatus for discriminating whether an input image is a predetermined image. The technical development for hard copying, for example with copying machines, has been aimed at faithful reproduction of the original image. As a result, there is now made available a high-quality copying machine which can provide a reproduced image excellent in color reproduction and not distinguishable from the original image. Particularly the development of digital full-color copying machine has improved the quality of copied image to a level not distinguishable from the original image by human eyes, and has enabled to obtain such copy within a short time with a simple operation. However such image reproduction in a form very close to the original image will have significant social influence, as it may be abused for the forgery of banknotes or other valuable securities. Existing image processing apparatus, such as copying machines, are powerless for such abuse for forgery. The present applicant already disclosed technologies for preventing the forgery of particular images in EP-A-0342060 (published 15 November 1989) and EP-A-0366399 (published 2 May 1990). EP-A-0342060 discloses a technology for altering the image forming process in case the original image to be copied is identified as a predetermined particular image, and for altering the process according to the level of similarity to the particular image. EP-A-0366399 discloses a technology for registering an image of which copying is to be prohibited by reading said image with a reader, and for renewing such registration. However such technologies still have room for improvement in the realization of the image processing apparatus capable of effectively preventing the forgery of particular images, particularly in the detection of particular image and in the image processing control in response to such detection. According to the present invention, there is provided a method of controlling an image forming apparatus as set out in claim 1, an image forming apparatus as set out in claim 26, and a control device for controlling an image forming apparatus as set out in claim 51. Optional features are set out in the other claims. An embodiment of the present invention provides an apparatus for image processing capable of precisely identifying predetermined original images, such as banknotes or valuable securities, of which faithful reproduction is to be prohibited. In embodiments of the invention the image processing apparatus is provided with means for discriminating whether the input image is a predetermined image, and control means for changing the process for a subset of the colour components constituting said input image, in case said input image is identified as said predetermined image by said discrimination means. The invention may be adapted for use in an apparatus completing an image reading operation by plural mechanical scanning operations, for example an electrophotographic colour copying machine. One such embodiment provides an apparatus provided with scanning means for scanning an image plural times, and discrimination means for discriminating whether image is a predetermined image stepwise in said scanning operations, utilizing the outputs of plural scanning operations of said scanning means. Other objects of embodiments and the advantages thereof will become apparent from the following description of the embodiments. which is to be taken in conjunction with the attached drawings, in which: Fig. 1 is a view showing a banknote placed on an original support table; Fig. 2 is a schematic view of an apparatus constituting a first embodiment; Fig. 3 is a chart showing the relation between different modes and four scanning operations; Fig. 4 is a block diagram of an image scanner; Fig. 5 is a timing chart thereof; Fig. 6 is a block diagram of a window comparator shown in Fig. 4; Fig. 7 is a circuit diagram of a block processing unit shown in Fig. 4; Fig. 8 is a circuit diagram of a water-mark detection unit shown in Fig. 4; Fig. 9 is a circuit diagram of an address decoder shown in Fig. 4; Fig. 10 is a flow chart of the function of the first embodiment; Fig. 11 is a view showing the principle of positional detection; Figs. 12, 13, 14A, 14B, 14C, 15A and 15B are views showing the principle of pattern matching; Fig. 16 is a view showing the basic structure of a digital full-color copying machine in the second embodiment; Fig. 17 is a block diagram of the second embodiment; Figs. 18, 19A, 19B and 20 are flow charts of the control sequence of the second embodiment; Fig. 21 is a block diagram of a third embodiment; Fig. 22 is a flow chart of the control sequence of the third embodiment. In the following embodiments there are shown applications of the present invention to a copying machine, but the present invention is not limited to such embodiments and is naturally applicable to various other apparatus. [1st embodiment] The first embodiment discloses a digital color copying machine for effecting color recording in plane-sequential manner, and the detection of predetermined image is conducted stepwise in sequential manner by plural scanning operations in relation to said plane-sequential recording. Fig. 2 is an external view of an apparatus constituting the first embodiment of the present invention. The apparatus shown in Fig. 2 is composed of an image scanner unit 201 for reading an original image and applying digital signal processing thereto, and a printer unit 202 for printing a full-color image corresponding to the original image read by the image scanner unit 201. An original document 204, supported between a mirror-faced pressing plate 200 and an original supporting glass plate (hereinafter called platen) 203 is illuminated by a lamp 205, and the reflected light is guided by mirrors 206, 207, 208 and is focused by a lens 209 onto a 3-line sensor (hereinafter called CCD) 210, which sends the full-color information in the form of red (R), green (G) and blue (B) components to a signal processing unit 211. The entire area of the original is scanned by mechanical movement of the lamp 205 and the mirror 206 with a speed v, and the mirrors 207, 208 with a speed v/2, in a direction perpendicular to the electrical scanning direction of the line sensor. The signal processing unit 211 electrically processes the signals obtained by said scanning operation to obtain components of magenta (M), cyan (C), yellow (Y) and black (Bk) which are sent to the printer unit 202. One of said components M, C, Y, Bk is supplied to the printer unit 202 at each original scanning operation in the image scanning unit 201, so that a printout is completed by four original scanning operations. The image signal of the component M, C, Y or Bk sent from the image scanner unit 201 is supplied to a laser driver 212, which in response modulates a semiconductor laser 213. The emitted laser beam scans a photosensitive drum 217, by means of a polygon mirror 214, an f lens 215, and a mirror 216. A rotary developing unit 218 is composed of a magenta developing station 219, a cyan developing station 220, a yellow developing station 221 and a black developing station 222, which are in succession brought into contact with the photosensitive drum 217, thereby developing electrostatic latent images formed thereon with toner. A sheet fed from a sheet cassette 224 or 225 is wound on a transfer drum 223, and receives the transfer of the image developed on the photosensitive drum 217. After four color images of M, C, Y and Bk are transferred in succession, the sheet is discharged through a fixing unit 226. The present embodiment will be explained in detail with respect to the prevention of forgery of Japanese 10,000-Yen banknote (or bill), as an example of the predetermined image, but the present invention is naturally not limited to such embodiment, and is applicable to the prevention forgery of other predetermined images such as other banknotes, valuable securities, contract documents and so on. In the present embodiment, a copying operation is completed by four scanning operations as explained above, and the function of the image scanner unit 201 and the printer unit 202 in each scanning operation are shown in Fig. 3. In case of prevention of forgery of 10,000-Yen banknote, in the first scanning operation, the image scanner is in a mode 1 for detecting the approximate position of 10,000-Yen banknote, and the printer unit forms the magenta image. In the second scanning operation, the image scanner is in a mode 2 for detecting the exact position and angle of the banknote. In the third scanning operation, the image scanner is in a mode 3, for calculating the position of the red stamp mark of 10,000-Yen banknote from the position and angle detected in the second scanning operation, then extracts the data of said red stamp mark and discriminates whether it is actually the red stamp mark. At the same time the printer unit forms a yellow image. In the fourth scanning operation, the image scanner is in a mode 4, and effects the measure for prevention of forgery, if the forgery is identified to be intended in the third scanning operation. Fig. 5 is a timing chart showing the function of various parts of the image scanner of the present embodiment. A VSYNC signal, indicating the effective image section in the sub scanning direction, assumes a level "1" in the sections for effecting the image scanning operations for C, M, Y and Bk in succession. An effective image section signal VE in the main scanning direction assumes a level "1" where the image is rendered effective. A main scanning synchronization signal HSYNC regulates, in the section of level "1", the start position of the main scanning operation. A pixel synchronization (clock) signal CLK causes the transfer of the image data at the upshift from "0" to "1". A signal CLK16 regulates the timing of a 16 x 16 block processed signal to be explained later, at the upshift from "0" to "1". [Image scanner unit] Fig. 4 is a block diagram of the image scanner unit 201, in which CCD's 210-1, 210-2, 210-3 having spectral sensitivities respectively in red, green and blue colors generate signals digitized in 8 bits or levels from 0 to 255. Since said sensors 210-1, 210-2, 210-3 are mutually spaced as shown in Fig. 2 delay elements 401, 402 are provided for compensating the spatial aberration. Logarithmic converters 403, 404, 405 are composed of look-up table ROM's and convert luminance signals into density signals. A known masking and undercolor removal (UCR) circuit 406 generates, from input signals of three primary colors, output signals of Y, M, C, Bk with a predetermined number of bits (for example 8 bits), at each scanning operation. An OR gate 407 calculates the logic OR of the output of the circuit 406 and the value stored in a register 408. The register 408 normally has a value 00 H so that the output of the circuit 406 is transmitted to the printer unit, but, in case of a forgery preventing operation, a value FF H is set in the register 408 through a data bus from a CPU 417, thereby providing an image uniformly filled with toner. The CPU 417 controls the apparatus in various modes thereof. A window comparator 408' discriminates the input of a signal of a predetermined level designated by the CPU 417, thus detecting the background level in the modes 1 and 2, or the red stamp mark in the mode 3. A block process circuit 409 effects processing on every 16 x 16 block of the output signals of the window comparator 408'. A random access memory (RAM) 412 stores data switched by a selector 411, at addresses selected by a selector 413. A main scanning counter 419 is reset by the HSYNC signal, then effects a count-up operation in synchronization with the CLK signal, and generates 13-bit main scanning (X) addresses X12 - X0. A sub scanning address counter 420 is reset in the section "0" of the VSYNC signal, effects a count-up operation at the timing of the HSYNC signal, and generates 13-bit sub-scanning (Y) addresses Y12 - Y0. The CPU 417 effects data writing into and reading from the RAM 412 by controlling selectors 411, 413, 415, 416 and an address decoder 414, according to the operating mode. The CPU 417 is provided with a RAM/ROM 418. A watermark detection circuit 410 serves to detect the watermarked portion of the banknote. Fig. 6 is a block diagram of the window comparator 408' shown in Fig. 4, wherein registers 601, 602, 603, 604, 605, 606 are connected to the data bus of the CPU 417 and store values designated by the CPU 417. Each of comparators 607, 608, 609, 610, 611, 612 releases an output signal "1" only when input singals A, B satisfy a condition A > B. An AND gate 613 releases an output signal "1" only when all the comparators provide output signals "1", and otherwise releases a signal "0". Thus, when the registers 601, 602, 603, 604, 605, 606 respectively stores R H , R L , G H , G L , B H , B L , the window comparator 408' releases an output signal "1" only when the input signals R, G, B satisfy all the relations. R L < R < R H : G L < G < G H : and B L < B < B H and an output signal "0" otherwise. Fig. 7 is a circuit diagram of the block process circuit 409 shown in Fig. 4. Serially connected fifteen D-flip-flops (DFF) 701 - 715 serve to delay the input signal in succession, in synchronization with the pixel clock signal CLK, and are cleared to "0" in the non-image section where VE = "0". There are also provided a 5-bit up-down counter 738, an OR gate 737 and an AND gate 740, which function as shown in the following table. VSYNC VE X t X t-15 Counter output 0 X X X 0 (cleared) X 0 X X 0 (cleared) 1 1 0 0 Retain 1 1 0 1 Count-down 1 1 1 0 Count-up 1 1 1 1 Retain Thus the output of the counter 738 is cleared to "0" in a period where the signal VSYNC or VE is "0"; retained when X t = X t-15 ; counted up when X t = 1 and X t-15 = 0; or counted down when X t = 0 and X t-15 = 1. In this manner there is obtained the total number "1" in sixteen data X t - X t-15 . Said output is further supplied to first-in first out (FIFO) memories 721 - 735 of one line each, whereby the data of 16 lines are simultaneously supplied to and added in an adder 741. Thus the total number SUM of "1" in a window of 16 x 16 pixels is obtained, ranging from 0 to 256. A digital comparator 742 compares the output SUM of the adder 741 with a reference value TW predetermined by the CPU 714 and releases the result "1" or "0". In this manner the noise elimination in a block of 16 x 16 pixels can be achieved by suitably selecting the reference value TW. Fig. 8 shows watermark detection circuit 410, which simultaneously processes 19 lines with 18 FIFO memories 819, ..., 820, ..., 821. Ten D-flip-flops are serially connected to each of said 19 lines, as indicated by 801, 802, 803, ..., 804; 805, 806, 807, ..., 808, ...; 809, 810, 811, ..., 812; ...; 813, 814, 815, ..., 816, and additional nine D-flip-flops, indicated by ..., 817, 818 are serially connected to the D-flip-flop 812. All these DFF's are driven by the clock signal CLK16. A signal "1" is released through AND gates 823, 824, 825 when the DFF's 804, 808, ..., 812, 816 (19 vertical blocks) and DFF's 809, 810, 811, 812, ..., 817, 818 (19 horizontal blocks) provide output signals "1", and the position in this state is latched and sent to the CPU 417. Fig. 9 is a block diagram of the address decoder 414. Registers 901 - 909 connected to the data bus of the CPU are respectively given desired values by said CPU. There are provided four circuit blocks 910 - 913, but the following explanation will be given on the block 910, since they are mutually identical in structure. Each of subtractors 914, 915 provides A - B based on inputs A, B. The most significant bit (MSB) of said output serves as a sign bit, which is "1" if A - B is negative. Each of comparators 916, 917 provides an output "1" if inputs A, B satisfy a relation A < B, but provides "0" if the MSB of the input A is "1", regardless of the input B. Thus, when the register 909 stores a value BXY, AND gates 918, 919, 920 of the block 910 provide outputs: X1 = X-address - RX1, Y1 = Y-address - RY1, E1 = 1, only if following conditions: are satisfied. Similarly, in the block 911, there are obtained outputs: X2 = X-address - RX2, Y2 = Y-address - RY2, E2 = 1, only if following conditions: Similarly, in the block 912, there are obtained outputs: X3 = X-address - RX3, Y3 = Y-address - RY3, E3 = 1, only if following conditions: are satisfied. Similarly, in the block 913, there are obtained outputs: X4 = X-address - RX4, Y4 = Y-address - RY4, E4 = 1, only if following conditions: are satisfied. When the values RX1, RY1, ..., RX4, RY4 are so selected that only one at maximum of the conditions (1), (2), (3) and (4) can be satisfied at the same time, OR gates 921, 922, 923, 924, 925 provide output signals in the following manner. The OR gate 921 releases one of X1, X2, X3 and X4. The OR gate 924 releases a signal "1" when any of said conditions is satisfied. The OR gate 925 releases one of Y1, Y2, Y3 and Y4. The OR gates 922, 923 provides outputs signals in the following manner: Condition 922 (A17) 923 (A18) (1) satisfied 0 0 (2) satisfied 1 0 (3) satisfied 0 1 (4) satisfied 1 1 none satisfied 0 0 [Process flow] Fig. 3 shows four modes 1 - 4 of the image scanner unit and the outputs of the printer unit corresponding to four scanning operations in the present embodiment. Fig. 10 is a flow chart showing the control sequence of the CPU. In a step 1001, the CPU 417 sets the mode 1 for the first scanning operation. In said mode 1, the printer unit generates the magenta image, and the approximate position of the watermarked portion of the banknote is detected. For this purpose, the CPU 417 sets values for detecting the background of the banknote in the registers 601 - 606 of the window comparator 408' shown in Fig. 6. In such state, a step 1002 starts the first scanning. Fig. 1 shows a 10,000-Yen banknote placed on the platen. In the first scanning in the mode 1, the window comparator provides output signals "1" in the hatched areas, namely in the watermarked area and the peripheral area. Since such signals continue in excess of a predetermined number of pixels in the vertical and horizontal directions in the watermarked area, the watermark detection circuit 410 latches an address corresponding to a position (Xc, Yc) and sends said address to the CPU 417. Thus the CPU 417 can know the approximate value of the center (Xc, Yc) of the banknote. Then a step 1003 sets the mode 2, in which the selectors 411, 413, 415, 416 are set at A, and the address decoder 414 is given following values: RX2 = RX3 = RX4 = RY2 = RY3 = RY4 = 0. In the second scanning in a step 1004, by selecting T approximately equal to 128 mm in the RAM 412, there can be obtained a bit map in which the hatched areas alone are "1" in the broken-lined frame. Said dimension 128 mm is selected because the banknote can be contained in the broken-lined area regardless of the kind or position thereof. In a step 1005, the CPU 417 detects the exact position and angle of the banknote from said bit map. In this operation the CPU sets the selectors 411, 413 respectively at C, B for freely reading the data in the RAM 412. There is adopted a method of detecting four corners of the banknote, as shown in Fig. 11. More specifically, with the banknote position as shown in Fig.11, four corners are detected, based on facts that: and Although the details will not be explained, the conditions (5) and (6), if suitably employed, allow to detect the four corners regardless of the angle of the banknote. Also the angle  in Fig. 1 can be obtained from an equation:  = tan -1 Y 1 - Y 0 X 1 - X 0 Also the position of the red stamp mark is determined from thus obtained position and angle. Since the banknote can be placed upward, downward, face up or face down, the red stamp mark appears one of the positions (X s1 , Y s1 ), (X s2 , Y s2 ), (X s3 , Y s3 ) and (X s4 , Y s4 ) shown in Fig. 1. These positions can be determined by simple calculations from (X 0 , Y 0 ) and . Then a step 1006 sets the mode 3 for the third scanning, in which the selectors 411, 413, 415 and 416 are respectively set at B, A, B and B. In the address decoder 414, there are set conditions; RX 1 = X s1 , RY 1 = Y s1 , RX 2 = X s2 , RY 2 = Y s2 , RX 3 = X s3 , RY 3 = Y s3 , RX 4 = X s4 , RY 4 = Y s4 and BXY is selected at a number of pixels approximately corresponding to a size of 300 mm which sufficiently cover the red stamp mark shown in Fig. 1. Also the registers of the window comparator 408 shown in Fig. 4 are given such values as to generate signal "1" only in the red color part of the red stamp mark. Then a step 1007 executes the third scanning, and the output of the window comparator 408' is stored in the RAM 412, in four positions shown in Fig. 1, where the red stamp mark may appear. Subsequently a step 1008 extracts the red stamp mark by an algorithm to be explained later, and the mark is identified in a step 1009. In the absence of possibility of forgery, namely in the absence of the red stamp mark, a step 1010 executes the fourth scanning, and a step 1012 fixes the toners of four colors Y, M, C and Bk. On the other hand, if the step 1009 detects the red stamp mark, indicating the possibility of forgery, a step 1011 executes a measure for preventing the forgery. More specifically, a value FF H is set in the register, which normally stores 00 H , of the window comparator 408 shown in Fig. 4, whereby said signal FF H is sent to the printer unit, thus depositing the black toner over the entire surface and disabling the proper copying. In the foregoing description it is assumed that each scanning operation is conducted corresponding to the printing operation of the printer unit, but it is also possible to detect the position of the watermark at a pre-scanning operation if such pre-scanning is conducted. [Pattern matching] In the following there will be given a detailed explanation on the pattern matching conducted in the step 1008. Since a banknote has two red stamp marks respectively on top and bottom faces, two mark patterns are registered in advance for identifying a banknote. When the data of a predetermined area of the original image are stored in the RAM 412, the CPU 417 executes a pattern matching operation with reference to the content of said RAM 412, according to a flow chart shown in Fig. 12. Now the RAM 412 stores four sets of binary data, called areas 1 - 4, as candidates for the predetermined area. At first a sequence starting from a step 1102 is conducted on the data of the area 1; The step 1102 executes a window processing for noise elimination, in a similar manner as the 16 x 16 block process explained above. Fig. 13 shows an example of the binary image 1201 of the area 1, wherein each square represents a pixel which can be white, represented as blank, or black represented as hatched. This image is scanned with a window 1202 of 2 x 2 pixels, and a new black pixels is defined if the number of black pixels in said window is equal to or larger than 2. This scanning process provides a noise-eliminated pattern 1203 which is vertically and horizontally reduced to 1/2 in size. The window at the illustrated position, containing only one black pixel, is replaced by a white pixel in 1204. Then a step 1104 calculates the position of center of gravity of the pattern 1203, through the already known method, by projecting the pattern 1203 in the vertical and horizontal direction. Then the level of similarity is calculated by standard pattern matching. At first, in a step 1105, a standard pattern registered in advance as a dictionary is fetched from the ROM 418 to the CPU. Said standard pattern is the pattern of the red stamp mark of the banknote, but the simple comparison of the pattern in the step 1103 with said standard pattern does not necessarily provide satisfactory result, since the detected pattern may be rotated by the angle of the banknote on the platen. The above-explained situation is shown in Fig. 14. For this reason there may be stored, as the standard pattern, plural patterns obtained by rotating the pattern of the red stamp mark at a pitch of several degrees, and selected a suitable one from said plural patterns. For example there can be employed 24 patterns obtained by rotating the red stamp mark in a range of 0 - 360° at a pitch of 15°, and the calculation of similarity can be conducted with sufficient precision, by selecting one of said plural patterns according to the already detected angle  of the banknote; namely a pattern of rotation angle of 0° for a range -8° ≦  < 8°, a pattern of rotation angle of 15° for a range 8° ≦  < 24°, a pattern of rotation angle of 30° for a range 24° ≦  < 40° and so on. Since the rotation angle  of the banknote may be different from the rotation angle of the red stamp mark by 180°, it is necessary to select the standard pattern of 180° when that of 0° is selected. Likewise it is necessary to select the rotation angle 195° at selecting 15°, and the rotation angle 210° at selecting 30°. Thus the calculation of similarity is always conducted twice. Then a step 1106 calculates the similarity or correlation. This can be achieved in various methods, one of which will be explained in the following (Fig. 15). The extracted pattern (a) is represented by B(i, j) while the selected standard pattern (b) of a certain rotation angle is represented by P(i, j), wherein said B(i, j) or P(i, j) assumes a value "1" for a black pixel or "0" for a white pixel. Using the center of gravity (i BC , j BC ) of the pattern B(i, j) and that (i PC , j PC ) of the pattern P(i, j), determined in the step 1104 shown in Fig. 12, the correlation of two patterns is deterimined by the following equation: wherein ⊕ means exclusive sum of P and B. Thus the equation (1) gives the Hamming distance of the patterns B(i, j) and P(i, j) when the centers of gravity thereof are matched. The similarity of both patterns is larger as COR increases. In the present embodiment, in order to improve the reliability of similarity and to minimize the mistaken recognition, the correlation is obtained by the following equation (2) modified from (1): wherein "." indicates logic product, and P(i-i PC , j-j PC ) indicates the discrimination of P, adding 2 to COR in case P and B are both black pixels but subtracting 1 from COR in case P = 0 and B = 1 thereby significantly improving the precision of recognition. After the calculation of the correlation or similarity COR, a step 1107 compares said COR with a predetermined threshold value Th. In case of COR > Th, indicating the presence of the red stamp mark, there is identified the presence of a banknote (step 1108), and the matching operation is terminated. In case of COR < Th, indicating the absence of the red stamp mark in the currently processed area, the value of n is increased by 1 if it is smaller than 4, and the pattern matching operation of the steps 1101 - 1109 is repeated for the next area. If the step 1109 identifies n = 4, indicating the absence of the red stamp mark in any of the 1st to 4th areas, there is identified the absence of a banknote (step 1110) and the matching operation is terminated. Although the present embodiment has been explained in relation to the prevention of forgery of Japanese 10,000-Yen banknote, it has a wide field of application and is applicable for example to valuable securities, foreign banknotes or newly revised banknotes as long as then contain a relatively wide background and a characteristic pattern such as a red stamp mark or a particular design. It is also not limited to the copying machine of electrophotographic type, but is applicable to those of ink jet type, thermal imaging type etc. Furthermore it can be utilized as an additional function for a printer of stand-alone type. In the present embodiment, the size and position of the original placed on the platen are detected prior to the pattern matching with the pre-registered pattern. In case of an apparatus in which the original is fed continuously to the reader unit equipped with a line sensor, the present embodiment can be applied by reciprocating the original with respect to said reader unit so that the same original can be scanned plural times. The present embodiment enables to prevent the forgery of a banknote or the like, by detecting the position and angle of said banknote by the background part thereof, thereby identifying a characteristic pattern such as the red stamp mark, and effecting the pattern matching with said pattern. Thus the present embodiment can securely identify the predetermined image. [Embodiment 2] In the following there will be explained a full-color digital copying machine constituting a second embodiment of the present invention. Fig. 16 shows the structure of said full-color digital copying machine of the second embodiment. Said structure will not be explained in detail, since it is similar to that of the first embodiment shown in Fig. 2. Fig. 17 is a block diagram of a signal processing unit 4211 shown in Fig.16 , of the second embodiment. In Fig. 17 there are provided a color processing circuit 4101 for generating Y, M, C and Bk signals from R, G and B signals; a selector 4102 for selecting one of said Y, M, C and Bk signals; a feature extracting circuit 4103 for extracting the feature of the input image; a predetermined image data memory 4104 storing image data with predetermined features in advance; a judgement circuit 4105 for comparing the data extracted by the feature extracting circuit 4103 with the data stored in the memory 4104 and releasing the result of judgement; a coordinate signal generating circuit 4106 for generating a coordinate signal of the image, based on the pixel clock signal CLK and the horizontal synchronization signal HSYNC; and an OR gate 4107 for sending a toner amount signal to a laser driver 4212 in response to an H-level signal from the judgement circuit 4105 or a color signal from the selector 4102. The function of the above-explained structure is as follows. R, G and B color signals obtained from a CCD 4210 are subjected to A/D conversion, and supplied to a color processing circuit 4101 for generating M, C, Y and Bk toner amount signals, corresponding to the reproduced color, from the R, G and B signals, for example by an undercolor removal process for generating the Bk signal, and a masking process for compensating the spectral characteristics of the toners. Then one of said C, M, Y and Bk signals is selected by the selector 4102, corresponding to the color of development in the printer. On the other hand, the digital R, G and B color signals are supplied to the feature extraction circuit 4103 for extracting the feature of the input image according to a predetermined algorithm, based on the presence of a predetermined pattern, a predetermined color or a color distribution in the input image. The judgement circuit 4105 compares the feature data extracted by said extraction circuit 4103 with feature data 4104 extracted in advance by the same algorithm from the image of which copying is to be prohibited, and releases the result of judgement. In the second embodiment, if the presence of the predetermined image is judged, the judgement signal assumes the H-level state, whereby the OR gate 4107 always releases an H-level signal regardless of the image signal released from the selector 4102 and an image uniformly filled in with the toner is obtained. The copying of the predetermined image is thus prevented. The coordinate signal generating circuit 4106 generates a coordinate signal of the image, based on the pixel clock signal CLK and the horizontal sync signal HSYNC. Said coordinate signal is supplied to the judgement circuit 4105 for filling in only a predetermined area of the image. In the following there will be explained the control sequence of the second embodiment, with reference to a flow chart shown in Fig. 18. When the copying operation is started, a magenta (M) developing station 4219 is selected for image development (step S4301). Then the original image is scanned by a scanner 4201, and R, G and B image siganls obtained by a CCD 4210 are supplied to the signal processing circuit 4211 for obtaining, as explained before, the toner signals M, C, Y and Bk, of which the M signal is selected and sent to the laser driver 4212. At the same time the feature of the original image is extracted from the R, G and B signals. The M signal is not gated, however, since the final result of judgement can only be obtained when the scanning operation is completed. Thus the M signal is used for forming a latent image on a drum 4217 through the laser 4213 according to a normal process, and said image is developed and transferred (S4302). Then a C developing station 4220 is selected for the second color (S4303). However, if the presence of the predetermined image is judged in the magenta scanning (S4304), the judgement circuit 4105 provides an H-level signal to uniformly fill in all the image or a part thereof with the cyan toner (S4306'). Then the sheet is fixed and discharged at this point (S4313) and the copying operation is terminated. On the other hand, if the magenta scanning identifies the absence of the predetermined image (S4304), there is conducted ordinary copying control, wherein the cyan toner is used for development and transferred corresponding to the image signal (S4305). The judgement of the predetermined image is then conducted again. It is also possible to effect the judgement only in the magenta color scanning and to unconditionally effecting the copying operations for Y and Bk colors without the judgement in the cyan color scanning, but the probability of detection can be improved by repeating the judging operation. It is also possible to expand the range of detection or to improve the certainty of detection, for example by varying the condition of feature extraction or the condition of judgement, or the detected pattern itself, from the detection in the magenta color scanning. Also in the yellow color copying operation, the result of judgement obtained in the cyan color scanning (S4307) is used for controlling the Y signal and the corresponding copying operation (S4308, S4309). Also in the black color copying operation, the result of judgement obtained in the yellow color scanning (S4311) is used for controlling the Bk signal and the corresponding copying operation (S4312, S4313'). The final black color copying operation is conducted in normal manner without judgement, because the result of judgement in the scanning operation cannot be reflected in the copying operation. The control sequence shown in the flow chart in Fig. 18 is featured by a fact that the prohibition of copying can be achieved without hindering the ordinary copying operation. Fig. 19 is a flow chart showing another control sequence different from that shown in Fig. 18. In this flow chart, the developing station is not selected under the result of judgement is obtained, and, if the presence of the predetermined image is identified, the uniform toner deposition is conducted with a color same as that of the scanning operation in which said judgement is made. This sequence can improve the certainty of judgement since the judgement can be conducted four times at maximum (S4403, S4407, S4411, S4415). This control sequence is suitable for an apparatus in which the result of judgement can be obtained relatively rapidly. In the control sequences shown in Figs. 18 and 19 , the entire area of image is uniformly filled in with the toner when the presence of the predetermined image is identified, but it is also possible to effect such uniform toner deposition only in a desired area of the image, utilizing the coordinate signal generating function as already explained in relation to Fig. 17. Fig. 20 shows another control sequence in which the image is uniformly filled in with the black toner in case the presence of the predetermined image is identified (S4503, S4506, S4509). This sequence is featured by a fact that the image can be completely filled in with the black irrespective of the toners of other colors deposited before the result of judgement is obtained. Thus the predetermined image can be erased with black color even if the judgement in the scanning operation for M, C or Y color is mistaken. As explained in the foregoing, the second embodiment can prevent the forgery of banknotes, security documents etc. by providing the copying apparatus, particularly the full-color copying machine, with means for recognizing the predetermined image of the banknote or security document, effecting the recognition of image in the course of copying operation, and, if the original image to be copied or a part thereof is identified as the predetermined image, uniformly filling in the entire area of the copy sheet or a part thereof with the toner employed in the copying operation, thereby preventing the forgery. In case the predetermined image is identified, the result of said identification may be shown on a display unit, in order to inform the operator, in advance, that a totally or partially filled-in image is going to be produced. [Embodiment 3] Fig.21 is a block diagram of a third embodiment wherein components 4101 - 4107 are same as those in Fig. 17. A specific pattern generating circuit 4108 generates a predetermined pattern when the judgement circuit 4105 releases an H-level signal, and said pattern signal is synthesized with the image signal in the OR gate 4107 to prevent the forgery. Said pattern can be, for example a periodic pattern such as gratings or dots, or a certain character pattern such as "SAMPLE". Such specific pattern may be formed with the toner of a color next to the color used for judgement as in the second embodiment shown in Fig. 18, or the toner of a color used for judgement as shown in Fig. 19, or the toner of black color or a predetermined color as shown in Fig. 20. In the second embodiment, the predetermined image cannot be identified from the reproduced image regardless whether forgery is intended, because the reproduced copy or a part thereof is uniformly filled in with the toner. On the other hand, the third embodiment (Fig. 22) is featured by a fact that the obtained copy can be satisfactorily utilized, for example for reference, if said specific pattern is suitably selected, as the copy is not uniformly filled in with the toner. In such case, however, the image development and transfer have to be conducted always on M, C, Y and Bk colors regardless of the result of judgement, since the obtained image will become incomplete if the copying operation is terminated after the synthesis of said specific pattern.

Claims: A method of controlling an image forming apparatus which forms an output image by generating sequentially a predetermined number of respective overlying colour component images on a recording medium and which has a forgery prevention function capable of inhibiting faithful reproduction of an input image if it is determined that the input image corresponds to a specific reference image, the method comprising the steps of: judging whether input image data represents a specific reference image by reference to pre-stored characteristics of said specific reference image; generating faithfully at least one, but not all of, said respective colour component images on a recording medium while said judgement is being performed; and if it is determined that the input image data represents a specific reference image, controlling the image formation process subsequently such that an unfaithful image in at least one colour component is generated on the recording medium, thereby preventing faithful reproduction of the input image. A method according to claim 1, wherein, during a normal copying operation, said apparatus is controlled so as to form said colour component images in a predetermined order, and wherein said unfaithful image is formed in the colour component which is formed last during normal copying. A method according to claim 2, wherein said colour component which is formed last is black. A method according to any preceding claim, wherein said judgement is conducted in a plurality of steps, each step being performed using input image data received for forming a respective one of said colour component images. A method according to claim 4, wherein an area of the input image is identified in a first step or steps, and it is judged in a subsequent step or steps whether image data in the identified area represents said specific reference image. A method according to claim 5, wherein said input image data includes pre-scan image data such that a colour component image is not formed using the pre-scan input image data, and wherein said area is identified using the pre-scan input image data. A method according to any preceding claim, wherein said judgement is performed using noise-eliminated input image data. A method according to claim 1, wherein judgement is performed a plurality of times, each judgement using input image data received for forming a respective one of said colour component images. A method according to claim 8, wherein said plurality of judgements are in respect of the same specific reference image. A method according to claim 8, wherein said plurality of judgements are in respect of different specific reference images. A method according to claim 8, wherein said unfaithful image is formed in the same colour component as that in which the judgement which determined the input image data to represent a specific reference image was made. A method according to claim 11, wherein, during a normal copying operation, said apparatus is controlled so as to form said colour component images in a predetermined order, and said method further comprises the step of forming an extra colour component image on the recording medium when it is determined that the input image data represents a specific reference image using input image data for the colour component image which is formed last during normal operation. A method according to claim 8, wherein said unfaithful image is formed in a different colour component to that in which the judgement which determined the input image data to represent a specific reference image was made. A method according to claim 13, wherein, during a normal copying operation, said apparatus is controlled so as to form said colour component images in a predetermined order, and wherein said unfaithful image is formed in the colour component successive to the colour component in which the judgement which determined the input image data to represent a specific reference image was made. A method according to any preceding claim, wherein said judgement is performed on the basis of pattern matching. A method according to any preceding claim, wherein said judgement is performed on the basis of detecting a predetermined colour. A method according to any of claims 1 to 14, wherein said judgement is performed on the basis of the colour distribution in the input image. A method according to any preceding claim, wherein said unfaithful image comprises an image which is completely block-filled. A method according to any of claims 1 to 17, wherein said unfaithful image comprises an image which is block-filled in a part only thereof. A method according to any of claims 1 to 17, wherein said unfaithful image comprises a pattern synthesized with the relevant colour component image. A method according to claim 20, wherein said pattern is a character pattern. A method according to any preceding claim, wherein said apparatus is a stand-alone printer. A method according to any of claims 1 to 21, wherein said image forming apparatus includes an image reading section for optically scanning an original document, and wherein said image reading section is controlled so as to scan said original document a plurality of times, and wherein each colour component image is formed using input image data from a respective scan. A method according to claim 23, wherein said apparatus is an electrophotographic copying machine. A method according to any preceding claim, wherein said specific reference image is a banknote. An image forming apparatus for forming an output image by generating sequentially a predetermined number of respective overlying colour component images on a recording medium and having a forgery prevention function capable of inhibiting faithful reproduction of an input image if it is determined that the input image corresponds to a specific reference image, the apparatus having control means for controlling the apparatus so as to: judge whether input image data represents a specific reference image by reference to pre-stored characteristics of said specific reference image; generate faithfully at least one, but not all of, said respective colour component images on a recording medium while said judgement is being performed; and if it is determined that the input image data represents a specific reference image, perform the image formation process subsequently such that an unfaithful image in at least one colour component is generated on the recording medium, thereby preventing faithful reproduction of the input image. Apparatus according to claim 26, wherein the control means is arranged to control the apparatus so that, during a normal copying operation, said apparatus forms said colour component images in a predetermined order, and forms said unfaithful image in the colour component which is formed last during normal copying. Apparatus according to claim 27, wherein the control means is arranged to control the apparatus so that said colour component which is formed last is black. Apparatus according to any of claims 26 to 28, wherein the control means is arranged to control the apparatus so that said judgement is conducted in a plurality of steps, each step being performed using input image data received for forming a respective one of said colour component images. Apparatus according to claim 29, wherein the control means is arranged to control the apparatus so that an area of the input image is identified in a first step or steps, and the apparatus judges in a subsequent step or steps whether image data in the identified area represents said specific reference image. Apparatus according to claim 30, wherein said input image data includes pre-scan image data such that the apparatus does not form a colour component image using the pre-scan input image data, and wherein the control means is arranged to control the apparatus so that the apparatus identifies said area using the pre-scan input image data. Apparatus according to any of claims 26 to 31, wherein the control means is arranged to control the apparatus so that the apparatus performs said judgement using noise-eliminated input image data. Apparatus according to claim 26, wherein the control means is arranged to control the apparatus so that judgement is performed a plurality of times, each judgement using input image data received for forming a respective one of said colour component images. Apparatus according to claim 33, wherein the control means is arranged to control the apparatus so that said plurality of judgements are in respect of the same specific reference image. Apparatus according to claim 33, wherein the control means is arranged to control the apparatus so that said plurality of judgements are in respect of different specific reference images. Apparatus according to claim 33, wherein the control means is arranged to control the apparatus so that said unfaithful image is formed in the same colour component as that in which the judgement which determined the input image data to represent a specific reference image was made. Apparatus according to claim 36, wherein the control means is arranged to control the apparatus so that, during a normal copying operation, said apparatus forms said colour component images in a predetermined order, and forms an extra colour component image on the recording medium when it determines that the input image data represents a specific reference image using input image data for the colour component image which is formed last during normal operation. Apparatus according to claim 33, wherein the control means is arranged to control the apparatus so that said unfaithful image is formed in a different colour component to that in which the judgement which determined the input image data to represent a specific reference image was made. Apparatus according to claim 38, wherein the control means is arranged to control the apparatus so that, during a normal copying operation, said apparatus forms said colour component images in a predetermined order, and forms said unfaithful image in the colour component successive to the colour component in which the judgement which determined the input image data to represent a specific reference image was made. Apparatus according to any of claims 26 to 39, wherein the control means is arranged to control the apparatus so that said judgement is performed on the basis of pattern matching. Apparatus according to any of claims 26 to 40, wherein the control means is arranged to control the apparatus so that said judgement is performed on the basis of detecting a predetermined colour. Apparatus according to any of claims 26 to 39, wherein said judgement is performed on the basis of the colour distribution in the input image. Apparatus according to any of claims 26 to 42, wherein the control means is arranged to control the apparatus so that said unfaithful image comprises an image which is completely block-filled. Apparatus according to any of claims 26 to 42, wherein the control means is arranged to control the apparatus so that said unfaithful image comprises an image which is block-filled in a part only thereof. Apparatus according to any of claims 26 to 42, wherein the control means is arranged to control the apparatus so that said unfaithful image comprises a pattern synthesized with the relevant colour component image. Apparatus according to claim 45, wherein said pattern is a character pattern. Apparatus according to any of claims 26 to 46, comprising a stand-alone printer. Apparatus according to any of claims 26 to 46, including an image reading section (201; 4201) for optically scanning an original document, wherein said image reading section is controlled so as to scan said original document a plurality of times, and wherein the apparatus forms each colour component image using input image data from a respective scan. Apparatus according to claim 48, comprises an electrophotographic copying machine. Apparatus according to any of claims 26 to 49, wherein said specific reference image is a banknote. A control device (211; 4211) for controlling an image forming apparatus which forms an output image by generating sequentially a predetermined number of respective overlying colour component images on a recording medium to provide the apparatus with a forgery prevention function capable of inhibiting faithful reproduction of an input image if it is determined that the input image corresponds to a specific reference image, the control device being adapted to control the image forming apparatus such that the apparatus: judges whether input image data represents a specific reference image by reference to pre-stored characteristics of said specific reference image; generates faithfully at least one, but not all of, said respective colour component images on a recording medium while said judgement is being performed; and if it is determined that the input image data represents a specific reference image, performs the image formation process subsequently such that an unfaithful image in at least one colour component is generated on the recording medium, thereby preventing faithful reproduction of the input image. A device according to claim 51 adapted to control the image forming apparatus such that, during a normal copying operation, said apparatus forms said colour component images in a predetermined order, and forms said unfaithful image in the colour component which is formed last during normal copying. A device according to claim 52, adapted to control the image forming apparatus such that said colour component which is formed last is black. A device according to any of claims 51 to 53, adapted to control the image forming apparatus such that said judgement is conducted in a plurality of steps, each step being performed using input image data received for forming a respective one of said colour component images. A device according to claim 54, adapted to control the image forming apparatus such that an area of the input image is identified in a first step or steps, and it is judged in a subsequent step or steps whether image data in the identified area represents said specific reference image. A device according to claim 55, wherein said input image data includes pre-scan image data such that a colour component image is not formed using the pre-scan input image data, and said device is adapted to control the image forming apparatus such that said area is identified using the pre-scan input image data. A device according to any of claims 51 to 56, adapted to control the image forming apparatus such that said judgement is performed using noise-eliminated input image data. A device according to claim 51, adapted to control the image forming apparatus such that judgement is performed a plurality of times, each judgement using input image data received for forming a respective one of said colour component images. A device according to claim 58, adapted to control the image forming apparatus such that said plurality of judgements are in respect of the same specific reference image. A device according to claim 58, adapted to control the image forming apparatus such that said plurality of judgements are in respect of different specific reference images. A device according to claim 58, adapted to control the image forming apparatus such that said unfaithful image is formed in the same colour component as that in which the judgement which determined the input image data to represent a specific reference image was made. A device according to claim 61, adapted to control the image forming apparatus such that, during a normal copying operation, said apparatus forms said colour component images in a predetermined order, and forms an extra colour component image on the recording medium when it is determined that the input image data represents a specific reference image using input image data for the colour component image which is formed last during normal operation. A device according to claim 58, adapted to control the image forming apparatus such that said unfaithful image is formed in a different colour component to that in which the judgement which determined the input image data to represent a specific reference image was made. A device according to claim 63, adapted to control the image forming apparatus such that, during a normal copying operation, said apparatus forms said colour component images in a predetermined order, and forms said unfaithful image in the colour component successive to the colour component in which the judgement which determined the input image data to represent a specific reference image was made. A device according to any of claims 51 to 64, adapted to control the image forming apparatus such that said judgement is performed on the basis of pattern matching. A device according to any of claims 51 to 65, adapted to control the image forming apparatus such that said judgement is performed on the basis of detecting a predetermined colour. A device according to any of claims 51 to 64, adapted to control the image forming apparatus such that said judgement is performed on the basis of the colour distribution in the input image. A device according to any of claims 51 to 67, adapted to control the image forming apparatus such that said unfaithful image comprises an image which is completely block-filled. A device according to any of claims 51 to 67, adapted to control the image forming apparatus such that said unfaithful image comprises an image which is block-filled in a part only thereof. A device according to any of claims 51 to 67, adapted to control the image forming apparatus such that said unfaithful image comprises a pattern synthesized with the relevant colour component image. A device according to claim 70, wherein said pattern is a character pattern. A device according to any of claims 51 to 71, wherein said image forming apparatus is a stand-alone printer. A device according to any of claims 51 to 71, wherein said image forming apparatus includes an image reading section (201; 4201) for optically scanning an original document, and wherein said image reading section is controlled so as to scan said original document a plurality of times, and wherein each colour component image is formed using input image data from a respective scan. A device according to claim 73, wherein said apparatus is an electrophotographic copying machine. A device according to any of claims 51 to 74, wherein said specific reference image is a banknote.

Inventors: FUNADA MASAHIRO, KAWASE MICHIO, OHTA KENICHI, SUZUKI YOSHIYUKI, FUNADA, MASAHIRO, KAWASE, MICHIO, OHTA, KENICHI, SUZUKI, YOSHIYUKI, FUNADA, MASAHIRO, C/O CANON K.K., KAWASE, MICHIO, C/O CANON K.K., OHTA, KENICHI, C/O CANON K.K., SUZUKI, YOSHIYUKI, C/O CANON K.K.
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1990
Main classification: G03G21
IPC codes: H04N1, G03G21, G06T1, G07D7