Image processing apparatus

Abstract: An image processing apparatus of the present invention inputs image data representing an image, discriminates whether the image represented by the input image data is a first predetermined image, and discriminates whether the image represented by the input image data is a second predetermined image different from the first predetermined image, the above-mentioned two discrimination performing discriminating operation parallelly.

Description: This invention relates to an image processing apparatus and method for detecting a specific original. Recent improvements in the picture quality of copying machines which now have a color capability have been accompanied by the fear of counterfeiting of specific originals such as bank notes and securities. In order to recognize a specific original in a copying machine or the like, a method such as pattern matching with the shape of an input image has been proposed. For example, in pattern matching, the inclination of an inputted original image is corrected and then the image is matched with an image pattern already registered. In the example of the prior art described above, however, there is a limit on processing speed and it is difficult to deal with apparatus of higher speeds. In addition, when it is attempted to execute processing simultaneously with regard to a large variety of specific originals, this is difficult to accomplish for the same reason. Further, in the example of the prior art described above, however, not only is there a limit upon processing speed, but the processing circuitry is complicated as well. As a consequence, it is difficult to deal with processing in a case where there is an increase in the kinds of specific originals to be judged. One technique for preventing the counterfeiting of bank notes or the like is to register beforehand the data of a specific original in color space and provide means for comparing and collating this data with an input original image, whereby the specific original can be distinguished. Such a technique has been proposed by the present applicant. with this example of the technique, however, only comparison and collation in the color space are carried out. Consequently, there is the possibility that an image having substantially the same color but a different shape will be judged mistakenly to be the specific original. Further, the prior-art example described above is such that pattern matching with a specific original is performed after the position and inclination of an original placed upon the platen have been investigated. As a result, high-speed processing is difficult and judgments cannot be made in real-time when the original is scanned. In the example of the prior art described above, the degree of similarity between an input original and a previously registered specific original is investigated, and the input original is judged to be a specific original when the degree of similarity exceeds a threshold value. This means that an erroneous judgment is highly possible if an original similar to the specific original is inputted. EP-A-0382549 discloses 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. GB-A-2078368 discloses a colour detector system for sorting objects on the basis of their colour, which establishes the shapes of the spectra of light from a small area of an object to be tested and of a standard object, by means of a spectroscope and a photo-diode array, and uses an analogue comparator, an error counter and a further digital comparator to make an accurate assessment of the similarity of the shapes of the spectra. The spectrum of the standard object may be held in a memory. The present invention provides an image discriminating device as set out in claim 1. The present invention also provides an image processing apparatus as set out in claim 7. The present invention also provides an image discrimination method as set out in claim 8. The present invention further provides a computer program product as set out in claim 9. An embodiment provides an image processing apparatus capable of raising the precision with which a specific original such as a bank note is discriminated. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram showing the construction of an image scanner 201 in a background example; Fig. 2 is an external view showing an image processing apparatus in the background example; Fig. 3 is a block diagram showing the construction of a judging circuit 409 in the background example; Fig. 4A is a block diagram showing a thinning-out circuit in the background example; Fig. 4B is a block diagram showing a frequency diving circuit in the background example; Fig. 5 is a block diagram showing an integrator 306 in the background example; Fig. 6 is a timing chart for the main scanning direction in the background example; Figs. 7A and 7B are diagrams for describing an example of the input/output of the integrator in the background example; Fig. 8 is a diagram showing an example of processed results in the background example; Figs. 9A and 9B are block diagrams showing the construction of an image processing apparatus according to a first embodiment; Fig. 10 is a diagram showing the relationship between color-space data of the texture of a specific original data in judging ROM according to the first embodiment; Fig. 11 is a block diagram showing the construction of the ROM according to the first embodiment; Fig. 12 is a diagram showing the relationship between color-space data of the line-drawing portion of a specific original and data in judging ROM according to the first embodiment; Fig. 13 is a diagram illustrating the integration coefficients of the integrator according to the first embodiment; Fig. 14 is a diagram illustrating the circuit construction of the integrator according to the first embodiment; Fig. 15 is a diagram illustrating the integration coefficients of the integrator according to the first embodiment; Fig. 16 is a diagram illustrating the circuit construction of the integrator according to the first embodiment; Fig. 17 is a diagram for conceptually describing the construction of a copying machine; Figs. 18A and 18B are conceptual view in which the processing performed by the circuit of Figs. 9A, 9B is described in R, G, B color space; Fig. 19 is a block diagram for describing the construction of a zone detection circuit according to the first embodiment; Fig. 20 is a diagram for describing the operation of the zone detecting circuit of Figs. 9A and 9B; Figs. 21A - 21D are diagrams for describing image patterns in which edge quantity OUT is calculated to be large in accordance with the first embodiment; Figs. 22A and 22B are block diagrams showing the construction of an edge calculating circuit according to the first embodiment; Fig. 23 is a block diagram showing a circuit for describing a volume-ratio judging circuit of Figs. 9A and 9B; and Fig. 24 is a conceptual view for describing color matching processing of a line-drawing portion in R, G, B colour space. It should be noted that the term "specific original" as used hereinafter refers to originals the duplication of which is prohibited, such as securities, gift certificates and bank notes, and includes also originals which are contrary to public order and good customs and originals for specific applications. Though a copying machine is illustrated below, it goes without saying that this does not impose a limitation upon the invention, which can be applied also to various other apparatus, such as printers. BACKGROUND EXAMPLE - NOT AN EMBODIMENT Fig. 2 is an external view showing a background example of an image processing apparatus. In Fig. 2, numeral 201 denotes an image scanning section for scanning an original and performing digital signal processing. Numeral 202 designates a printing section for printing out an image, which corresponds to the original image read by the scanning section 201, on paper in full color. The image scanning section 201 includes a pressure plate 200 having a mirror surface. An original 204 on a glass platen 203 is irradiated by means of lamps 205, an image is formed on a three-line sensor (hereinafter referred to as a "CCD") 210 via mirrors 206, 207, 208 and a lens 209, and the image is sent to a signal processor 211 as full-color information red (R), green (G) and blue (B) components. The entire original is scanned by mechanically moving the lamps 205 and mirror 206 at a velocity v as well as the mirrors 207, 208 at a velocity 1/2 v in a direction perpendicular to the electrical scanning direction of the line sensor. The signal processor 211 electrically processes the read signal, separates the signal into magenta (M), cyan (C), yellow (Y) and black (Bk) components and sends these components to the printing section 202. At least one component among the M, C, Y, Bk components is sent to the printing section 202 per scan of the original in the image scanning section 201, and a signal print-out is completed by a total of four scans of the original. The M, C, Y or Bk image signal received from the image scanning section 201 is sent to a laser driver 212. The laser driver 212 modulates and drives a semiconductor laser 213 in dependence upon the particular image signal. The laser light is made to scan across a photosensitive drum 217 via a polygon mirror 214, an f- lens 215 and a mirror 216. Numeral 218 denotes a revolving developer comprising a magenta developing section 219, a cyan developing section 220, a yellow developing section 221 and a black developing section 222. These four developers come into alternate contact with the photosensitive drum 217 so that an electrostatic latent image formed on the photosensitive drum 217 is developed by means of toners. Numeral 223 denotes a transfer drum upon which paper fed from a paper cassette 224 or 225 is wound so that the image developed on the photosensitive drum 217 may be transferred to the paper. After the four colors M, C, Y, Bk have thus been transferred successively, the paper is ejected through a fixing unit 226. <Image Scanner> Fig. 1 is a block diagram showing the construction of an image scanner 201 in the background example. Numerals 210-1, 210-2, 210-3 denote CCDs spectral sensitivity characteristics for red (R), green (G) and blue (B). Each CCD outputs a signal quantized to 0 - 255 in eight bits. The sensors 210-1, 210-2, 210-3 used in the background example are arranged so as to be spaced apart by fixed distances, and therefore a displacement in terms of time is corrected in delay elements 401 and 402. Numerals 403, 404, 405 are log converters constituted by a look-up table ROM or RAM for converting a luminance signal into a density signal. Numeral 406 denotes a well-known masking-UCR circuit. Though a detailed description is omitted, the circuit 406, in accordance with three primary-color signals inputted thereto, sequentially outputs Y, M, C, Bk signals of a prescribed bit length, e.g., eight bits, whenever there is a reading operation. Numeral 407 denotes a space filter which corrects the space frequency of the output signal from the circuit 406. Numeral 408 denotes a density converting circuit for correcting the density characteristic possessed by the printer 202. Like the log converters 403 - 405, this circuit is constituted by a look-up table ROM or RAM. Shown at numeral 409 is a specific-original judging circuit for judging whether at least one of a plurality of specific originals is being read in, and for outputting a judgment signal H in the form of "0" or "1". Numeral 410 represents an OR gate for taking the OR between the judgment signal H, which is the output of the judging circuit 409, and each bit of the eight-bit output V of the density converting circuit 408, and outputting V'. When the judgment signal H is logical "1", namely when it is judged that a specific original is being read, the output V' is equal to FF H irrespective of the value of the input signal V. When the judgment signal H is logical "0", namely when it is judged that a specific original is not being read, the value of the input signal V is outputted without change as the output V'. <Timing Chart> Fig. 4A is a block diagram showing a thinning-out circuit in the background example, Fig. 4B is a block diagram showing a frequency driving circuit, and Fig. 6 is a timing chart for the main scanning direction. In Figs. 4A and 4B, HSYNC represents a main-scanning synchronizing signal for achieving synchronization with the start of main scanning. CLK is an image transfer clock which, in this background example, is basic clock of a variety of image processing operations. CLK' represents a clock obtained by frequency division of the CLK signal by four. This serves as the basic clock in the judging circuit 409. A SEL signal is a timing signal using in a thinning-out circuit 301, described above. This is generated by a circuit of the kind shown in Fig. 4B, which is constituted by an inverter 451, a two-bit counter 452, an inverter 453 and an AND gate 454. After being cleared (initialized) by the HSYNC signal, which is the main-scanning synchronizing signal, the two-bit counter 452 counts the CLK signal and outputs the counted value in the form of two bits. The higher order bit D1 of the counter 452 is outputted as the CLK' signal, and the result of taking the AND between this signal and a signal obtained by inverting the lower order bit D0 of the counter is outputted as the SEL signal. As a result, data is held by the CLK signal in the thinning-out circuit 301 shown in Fig. 4A. The thinning-out circuit 301 comprises flip-flops 455, 456, 457 and 461, 462, 463, selectors 458, 459 and 460, and flip-flops 464, 465, 466 which hold data by the CLK' signal. By virtue of the construction described above, the R (or G, B) signal transferred by the CLK signal is thinned out at a ratio of 1/4, and an R' (or G', B') signal synchronized to CLK' can be obtained. <Judging Circuit> Fig. 3 is a block diagram showing the construction of the judging circuit 409 in the background example Numeral 301 represents the thinning-out circuit of the kind shown in Fig. 4A. This circuit thins out the data in order to lighten the processing load of the judging circuit. Numeral 302 denotes a color-matching look-up table (hereinafter referred to as a "color-matching LUT") for subjecting the thinned-out data to an operation for matching color, which is an image characteristic, using plural types of images of interest (images corresponding to specific originals, such as securities and bank notes) that have been prepared in advance. The color-matching LUT 302 is a read-only memory. Numerals 303, 304, 305 denote color judging circuits, each of which is composed of an integrator 306 shown in Fig. 5, a register 307 and a comparator 308. These circuits independently judge whether a specific image is contained in an original in a plurality of specific originals. Numeral 309 designates an OR circuit which, when it is judged that one or more outputs of the color judging circuits 303 - 305 contains an image of interest, delivers an output "1" as the judgment signal H. When it is judged that none of outputs of the color judging circuits 303 - 305 contains an image of interest, the OR circuit 309 delivers an output "0" as the judgment signal H. <Integrator> Fig. 5 is a block diagram showing the construction of the integrator 306 in the background example. In Fig. 5, numerals 501, 505 denote flip-flops which hold data at the timing of the leading edge of the clock signal CLK'. Numeral 502 denotes a multiplier to which two eight-bit signals (A, B) are inputted. The multiplier 502 multiplies these signals together and outputs an eight-bit signal ( AxB / 255) as the result. Numeral 503 denotes a multiplier to which a one-bit input signal (A) and an eight-bit input signal (B) are applied. The multiplier 503 multiplies these signals together and outputs an eight-bit signal (AxB) as the result. Numeral 504 denotes an adder to which two eight-bit signals (A, B) are inputted. The multiplier 504 adds these signals together and outputs an eight-bit signal (A+B) as the result. Accordingly, in the integrator of this background example, an eight-bit output signal Yi is expressed by the following equation when a two-valued input signal x 1 is applied: y i = (α/255)y i-1 + β · x i-1 where α and β represent constants that have been preset by CPU. The various characteristics of the integrator are decided by the sizes of these values. For example, in a case where α = 247, β = 8 holds, examples of inputs and outputs of the present integrator are as shown in Figs. 7A, 7B. That is, an output y i of the kind shown in Fig. 7B is produced in response to an input x i-1 , of the kind shown in Fig. 7A. Regardless of the fact that the periphery is almost "0", as in the manner of input X i-1 indicated at 701, 702, an input of kind "1" is considered to be noise. Similarly, regardless of the fact that the periphery is almost "1", as in the manner of input X i-1 indicated at 703, a input of kind of "0" is considered to be noise. This is processed by the integrator, an appropriate threshold value of the kind indicated at 704 is set in the register 307 of Fig. 3, and the output y i of the integrator is binarized based upon this threshold value, thereby making it possible to eliminate the noise. <Results of processing> Fig. 8 is a diagram showing an example of the results of processing according to the background example In Fig. 8, numeral 801 denotes an original and numeral, 803 designates a specific original which, in this apparatus, is to be judged as part of an image. Numeral 802 represents outputted results in a case where the original has been copied in this apparatus. The portion corresponding to the specific original 803 is painted out, as in a suppressed portion shown at 804. Thus, the portion of the specific original 803 cannot be copied. In accordance with the background example, as described above, judgment processing can be applied to a specific original at the same time that an image is read in or at the same time as an image processing operation. FIRST EMBODIMENT Figs. 9A and 9B are block diagrams showing the circuit construction of the specific-document judging unit 4403 according to a first embodiment. In Figs. 9A and 9B, numeral 6301 denotes an identifying circuit for identifying a flat zone (including half-tone portion) and a line-drawing zone of an original image inputted in real-time. For example, identifying pixel by pixel is performed in accordance with the size of edge component. Numeral 6302 denotes a ROM (read-only memory) storing color data indicative of the texture of a specific original. The ROM 6302 stores data for carrying out matching in the color space shown in Fig. 10. Fig. 11 illustrates the constitution of the ROM 6302, in which "1" is written in a case where the color of a flat portion of a specific original exists in RGB color space, and' "0" is written in the absence of the color of a flat portion. The five higher order bits of each of the colors R, G, B of an input original enter the address lines of the ROM 6302. The latter outputs "1" as a flat-portion color matching signal 6315 in a case where the R, G, B signals match the color data of the texture portion of a specific original, and outputs "0" as the flat-portion color matching signal 6315 when there is no matching. A ROM 6321 stores color data indicative of a line-drawing portion of a specific original. The ROM 6321 stores data for carrying out matching in the color space shown in Fig. 12. The ROM 6321 outputs "1" as a line-drawing portion color matching signal 6316 in a case where the R, G, B signals match the color data of the line-drawing portion of a specific original, and outputs "0" as the line-drawing portion color matching signal 6316 when there is no matching. The outputted matching signals 6315, 6316 enter eight color matching units (for judging eight types of specific originals in parallel). Judging circuits A-1 through A-8 have the same construction, and therefore only the judging circuit A-1 will be described as a typical example. An integrator 6303 executes processing for integrating the flat-portion color masking signal relating to the texture of a specific original. Fig. 13 is a diagram illustrating the integration coefficients of the integrator 6303, and Fig. 14 is a diagram illustrating the circuit construction of the integrator 6303. In Fig. 14, numeral 6303-1 denotes a ROM for generating the coefficient β. A line-drawing zone signal 6314 and a flat-zone signal 6313 are applied to the ROM 6303-1 as address input signals, and the ROM selects and outputs one of the coefficients β 1 , β 2 , 1 (where 0<β 2 <β 1 <1 is assumed to hold) shown in the table of Fig. 13. Numeral 6303-2 denotes a ROM for generating the input signal x i x 255 (1-β) [= ε in the assumption of this embodiment). The line-drawing zone signal 6314, the flat-zone signal 6313 and the flat-portion color matching signal 6315 are applied to the ROM 6303-2 as address input signals, and the ROM selects and outputs one of the coefficients ε 1 , ε 2 , 0 shown in the table of Fig. 13. Numerals 6303-3, 6303-4 and 6303-5 denote a multiplier, an adder and a latch circuit, respectively. In a case where the value of the flat-portion color matching signal 6315 continues at "1" when the flat-zone signal 6313 is true (= "1"), the value of a texture integration signal 6317 approaches 255 owing to the integration processing performed by the integrator 6303. In a case where the value of the flat-portion color matching signal 6315 continues at "0", the value of the texture integration signal 6317 approaches "0". Numeral 6306 denotes an integration processing circuit related to the line-drawing portion color matching signal 6316. Fig. 15 is a diagram illustrating the integration coefficients of the integrator 6306, and Fig. 16 is a block diagram illustrating the circuit construction of the integrator 6306. The construction of the integrating circuit of Fig. 16 is substantially the same as that of Fig. 14, and integration processing is performed based upon the predetermined coefficients shown in Fig. 15. In Fig. 16, 6306-1, 6306-2 represents selectors, and numerals 6303-3, 6303-4 and 6303-5 denote a multiplier, an adder and a latch circuit, respectively. In a case where a texture-judgment signal 6318 is "1', namely a case where a line-drawing portion having a color the same as that of a line-drawing portion of a specific original exists continuously in the vicinity of a flat zone of an input original having a color the same as that of the texture portion of the specific original, a line-drawing integration signal 6319 approaches 255; otherwise, the line-drawing integration signal 6319 approaches 0. Fig. 17 is a diagram for conceptually describing Figs. 9A and 9B. In Fig. 17, numeral 6302 denotes a flat-portion color template which stores color information indicative of the flat portion of a specific original serving as a reference for matching, and numeral 6321 denotes a line-drawing portion color template which stores color information indicative of the line-drawing portion of the above-mentioned specific original. Both of these templates are constituted by ROMs. Items of color information indicative of the texture portion of the specific original and color information indicative of the line-drawing portion of the specific original, both of which have been sampled in advance by a template-information creating unit 7003, are set in each of the templates 6302, 6321 as color-distribution information in the color space. The template-information creating unit 7003, which is constituted by a CPU, samples color-distribution in the color space of the specific original when the specific original is read in from the above-mentioned reader, and writes this information in the templates 6302, 6321, which are constituted by RAMs. As a result, color-distribution information indicative of a specific original whose duplication is to be inhibited can be created by the system itself and set in the templates 6302, 6321. On the basis of the zone signals 6313, 6314 detected by the zone detecting unit 6301, color matching processing (described earlier) is carried out with regard to each of the flat and line-drawing portions by a flat-portion color matching unit 7000 and a line-drawing portion color matching unit 7001. The line-drawing portion color matching unit 7001 operates in such a manner that the line-drawing integration signal 6319 increases only when the texture-judgment signal 6318 is true (= "1"). A judgment signal 6322 is indicative of the fact that an original is a specific original only when judgment signals from a pixel-counter judging unit 7002 and a judgment signal from a volume-ratio judging unit 6311 are both true (= "1"). Figs. 18A and 18B are views conceptually illustrating, in RGB color space, the processing performed by the circuit of Figs. 9A and 9B. Color matching processing of a texture portion (the flat portion of the image signal) is performed using the observed image (the input color signal) and texture data that has been registered in the template 6302, and processing is performed in such a manner that the line-portion integration signal 6319 increases only in a case where the texture-judgment signal 6318 is true (= "1"). In other words, the judgment signal 6320 becomes true (= "1") only if a line drawing of a specific color is contained within a texture portion of a specific color. (Description of the zone detecting circuit 6301) Fig. 19 is a block diagram for describing the construction of the zone detecting circuit 6301, and Fig. 20 is a diagram for describing the operation of the zone detecting circuit 6301, of Figs 9A and 9B. Further, Figs. 21A - 21D are diagrams for describing image patterns in which an edge quantity signal OUT is calculated to be large. In Fig. 19, numerals 6081, 6082 denote line buffers for applying a delay of one line to a pixel, 6083 an edge-quantity calculating circuit for calculating an edge quantity in this embodiment, 6086, 6087 comparators for comparing the output of the edge-quantity calculating circuit 6083 with different constants p, q, respectively, and 6084, 6085 registers in which the constants applied to the comparators 6086, 6087 are stored, respectively. It should be noted that the constants stored in the registers 6084, 6085 may be values applied from other components, in which case the registers 6084, 6085 can be deleted. Figs. 22A and 22B are block diagrams showing the edge-quantity calculating circuit 6083 according to the first embodiment. Shown in Figs. 22A and 22B are latch circuits 7101-1 through 7101-9 for applying a delay of one pixel, arithmetic units 7102-1 through 7102-4 each for obtaining the average of the two inputs applied thereto, arithmetic units 7103-1, 7103-2 each for obtaining and outputting the largest (max) and smallest (min) of the two inputs applied thereto, an arithmetic unit 7104-1 for outputting the largest (max) of the two inputs applied thereto, an arithmetic unit 7104-2 for outputting the smallest (min) of the two inputs applied thereto, and an arithmetic unit 7106 for calculating the sum, namely (max) + (min), of the two inputs applied thereto. The operation performed by the foregoing arrangement will now be described. Pixel data, from input data lines X, Y, Z, delayed by the line buffers 6081, 6082 (Fig. 19) is delayed in such a manner that a 3 x 3 window is formed by the nine latch circuits 7101-1 through 7101-9. The state of this window is as illustrated in Fig. 20. The arithmetic operations shown in Fig. 20 are carried out by the above-mentioned arithmetic units 7102-1 through 7102-4, 7103-1, 7103-2, 7104, 7105 and 7106. As a result, the edge-quantity signal OUT is produced. The value of the edge-quantity signal OUT calculated from the 3 x 3 pixel matrix having a pixel of interest at its center has an especially large value in the case of four linear patterns of the kind shown in Figs. 21A through 21D. A specific original which is not allowed to be duplicated, which here is typified by a bank note, largely is composed of line diagrams and texture. Accordingly, the shape, namely straight-line portions, present on an original can be detected effectively by the above-described circuit arrangement. In this embodiment, a case where the value of the edge-quantity signal OUT is enlarged is not limited solely to the aforementioned Figs. 21 through 21D. (Description of the volume-ratio judging circuit) Fig. 23 is a block diagram showing a circuit for_ describing the volume-ratio judging circuit of Figs. 9A and 9B, and Fig. 24 is a conceptual view for describing color matching processing of a line-drawing portion in R, G, B color space according to the first embodiment. In a case where the line-drawing judgment signal 6320 is "1" and the corresponding bit a RAM 7402 is "0" in an OR writing circuit 7401 in Fig. 23, "1" is written in the corresponding bit of the RAM 7402 and a counter 7404 is incremented. In a case where the conditions are other than those mentioned above, the OR writing circuit does not operate the counter 7404 and the RAM 7402. A reset unit 7403 is for zero-clearing the RAM 7402 and counter 7404. This unit operates when a read-interval signal Vsync makes a transition from high to low. The value in the counter 7404 corresponds to the value of U dj shown in Fig. 24, and a volume-ratio judgment signal 6323 is produced by comparing the counter value with a threshold value 7405. Thus, as described above, items of data relating to the color of the texture portion of a specific original and the color of a line-drawing portion of the specific original are registered beforehand, the flat zone and line-drawing zone of an input original image are identified in real-time, and a comparison is made with the pre-registered color data corresponding to each of the zones, thereby making possible more accurate identification of a specific original. In the first embodiment described above, the value of the line-drawing integration signal 6319 is increased only if the texture judgement signal 6318 is true (= "1"). In the embodiment described above, attention is directed to the counterfeiting of paper currency. However, this does not impose a limitation upon the present invention, for the invention can be applied to all specific originals, such as originals of securities, the duplication of which would have a deleterious effect upon society. An embodiment may comprise a color-image retrieval apparatus, such as a design-image filing system. Further the method of color image separation described above can be replaced by another well-known method. Embodiments of the present invention may comprise a system composed of a plurality of devices or an apparatus comprising one device. It goes without saying that an embodiment may comprise a program to attain the above-mentioned effects when supplied to a system or apparatus.

Claims: An image discriminating device comprising means for determining whether input colour image pixel data (RGB) represents a predetermined specific original and means for generating a discrimination signal (6318) for controlling an image processing apparatus which processes the input image data, characterised in that the means for determining whether the input image pixel data represents a predetermined specific original comprises: edge detection means (6301) for receiving the input colour image pixel data (G;RGB) and detecting therefrom line-drawing portions of the input image; and discrimination means (6302, 7000, 6321, 7001) for discriminating whether the input image data represents said predetermined specific original by examining data from the input image in dependence upon the results of the detection by the detection means defining which portions of the input image are line-drawing portions, to determine whether or not pixels representing line drawings having colour characteristics of said predetermined specific original and also pixels other than the pixels representing said line drawings, which other pixels also have colour characteristics of the predetermined specific original, are contained in the same part of the input image such that the respective regions of the input image containing the line-drawing pixels and the said other pixels lie one within the other, the input image being determined to be said predetermined specific original if both pixels representing line drawings having colour characteristics of said predetermined specific original and also pixels other than the pixels representing said line drawings, which other pixels also have colour characteristics of said predetermined specific original, are present at the same part of the input image such that the respective regions of the input image containing the line-drawing pixels and the said other pixels lie one within the other. The device according to claim 1, wherein said edge detection means is arranged to detect the line-drawing portion by using a plurality of pixels in a block. The device according to claim 1 or claim 2, wherein said edge detection means is arranged to detect straight lines in the input image data. The device according to any preceding claim, further comprising an image reader (4201) for scanning an image and generating said input image data. The device according to any preceding claim arranged as a forgery-prevention device for controlling the image processing apparatus to provide the apparatus with a forgery-prevention function. The device according to any preceding claim, wherein said predetermined specific original is a banknote. An image processing apparatus, comprising: an image discriminating device according to any preceding claim; and image forming means (4202) for processing said input image data and generating therefrom an output image on a recording medium (4406); wherein said discrimination signal from said discriminating device is arranged to prevent faithful reproduction of said predetermined specific original by said apparatus. An image discriminating method comprising determining whether input colour image pixel data (RGB) represents a predetermined specific original and generating a discrimination signal (6318) for controlling an image processing apparatus which processes the input image data, characterised in that the step of determining whether the input image pixel data represents a predetermined specific original comprises: an edge detection step of receiving the input colour image pixel data (G:RGB) and detecting therefrom line-drawing portions of the input image; and a discrimination step (6302, 7000, 6321, 7001) of discriminating whether the input image data represents said predetermined specific original by examining data from the input image in dependence upon the results of the detection in the detection step defining which portions of the input image are line-drawing portions, to determine whether or not pixels representing line drawings having colour characteristics of said predetermined specific original and also pixels other than the pixels representing said line drawings, which other pixels also have colour characteristics of the predetermined specific original, are contained in the same part of the input image such that the respective regions of the input image containing the line-drawing pixels and the said other pixels lie one within the other, the input image being determined to be said predetermined specific original if both pixels representing line drawings having colour characteristics of said predetermined specific original and also pixels other than the pixels representing said line drawings, which other pixels also have colour characteristics of said predetermined specific original, are present at the same part of the input image such that the respective regions of the input image containing the line-drawing pixels and the said other pixels lie one within the other. A computer program product comprising a carrier carrying instructions which when loaded into a programmable processing apparatus program said apparatus to become configured as a device as set out in at least one of claims 1 to 3.

Inventors: FUNADA MASAHIRO, OHTA EIJI, OHTA KEN-ICHI, TAKARAGI YOICHI, FUNADA, MASAHIRO, OHTA, EIJI, OHTA, KEN-ICHI, TAKARAGI, YOICHI
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1991
Main classification: H04N1
IPC codes: H04N1