Image processing apparatus and method

Abstract: Color space conversion and correction processing are performed on inputted R, G and B image data 1 by an RF converter 2, and Y, M, C and K image data 3 is obtained. In the case where Y, M, C and K or Y, M and C image data is directly inputted, the RF converter 2 is passed through without being processed. Inverse processing is performed on the Y, M, C and K image data 3 by a conversion table 6 where a conversion table is set in advance, and the original R, G and B image data is obtained. An image recognition circuit 7 recognizes an image on the basis of the R, G and B image data outputted from the conversion table 6. By virtue of the above process, when an image of a specified document is to be recognized, image recognition can be performed with high precision on the basis of R, G and B image data where inverse conversion has been performed on Y, M, C and K image data or Y, M and C image data.

Description: The present invention relates to an image recognition apparatus and method for recognizing an image represented by inputted image data. Conventionally, color printing was unable to perform unless it was done by a professional printer, however, today, along with the penetration of color copying machine or color printer, color printing can be easily performed by anyone, and high quality full-color print can be easily obtained. Since the law prohibits making copies of documents such as paper money, stocks or bonds, the demand is high for a technique to prevent copying (reproduction) of a document whose images should not be copied (reproduced) (hereinafter referred to as a "specified document") by employing a color copying machine or a color printer, even though such apparatuses are widely used. Prevention technique is to generate reference data based on image data of a specified document and determine whether or not an inputted image is a specified image by referring to the reference data. Most of such techniques are performed by mapping inputted image data in a memory, extracting characteristics of the input document, and performing pattern matching or fuzzy analysis or the like on the input document stored in the memory to detect characteristics of a specified document, thereby preventing copying (reproduction) of the specified document. There is an apparatus which performs detection of such characteristics in the R, G and B color space and an apparatus which performs the same in the Y, M, C and K color space for a printer. Image processing software recently available are capable of handling both color spaces: the R, G and B color space and the Y, M, C and K color space. In order to output a full-color image by a printer having low tonality e.g. an inkjet printer, image processing such as dither processing or error diffusion processing or the like for increasing pseudo-tonality is generally performed. Such processing is performed by employing a method of representing halftone by controlling, in a unit dimension, magnitude of an area which is represented by each color components such as C, M, Y and K (hereinafter referred to as the "area halftone method"). The processing is a technique used to increase tonality in a low spatial frequency of an image. When the area halftone method is utilized, resolution of an outputted image tends to deteriorate. However on account of recent significant improvement in resolution of printers, deterioration in resolution of the outputted image is kept to a minimum level. Fig. 1 is a block diagram showing an arrangement of a printer. Image data 101 of the R, G and B color space inputted from a host computer (not shown) or the like is converted to image data 103 of the Y, M, C and K color space for a printer by a reproduction converter 102 (hereinafter referred to as "RF converter"). In other words, the RF converter 102 converts image data from the R, G and B color space to the Y, M, C and K color space, and performs under color removal processing (hereinafter referred to as "UCR") as well as masking processing for correcting color reproducing characteristics of colorant e.g. a toner or the like, are performed. The image data 103 is then inputted to a printer engine 104 where each of color component images respectively having Y, M, C and K colors is placed on top of each other, and outputted as a color image output 105. A printer is an image forming apparatus which forms a color image by subtractive mixture. Therefore, no matter what color space inputted data has, image data ultimately inputted into the printer engine 104 is the data converted into the Y, M, C and K color space or the Y, M and C color space. There is also a case where the RF conversion is performed by an image processing software driven on a host computer, such as an image retouching software, a printer driver or the like. In this case, image data of the Y, M, C and K color space is directly inputted into a printer. As set forth above, in order to determine in a printer unit whether or not an image subjected to printing is an image of a specified document, it is necessary to detect the specified document in the Y, M, C and K color space or the Y, M and C color space. As functions of a host computer have recently improved, in most cases, image data is first converted to the Y, M, C and K or Y, M and C data form by the aforementioned image processing software before being sent to a printer. Therefore, in order to detect the specified document in the printer unit, it is necessary to recognize an image in the Y, M, C and K color space or the Y, M and C color space. However, image recognition in the Y, M, C and K or Y, M and C color spaces raises the following problem. In the R, G and B color space, image recognition can be performed on the basis of luminance data which has a relatively large dynamic range. On the other hand, since Y, M and C data is obtained by performing log conversion on the luminance data of R, G and B color space, the dynamic range of the Y, M and C data is compressed, making it difficult to perform accurate image recognition. Moreover, when conversion into Y, M, C and K data is performed, amplitude of each of the Y, M and C data is further compressed by the UCR processing, resulting in further deterioration of accuracy in image recognition. Furthermore, correction (gamma correction) is performed for each of the color components (Y, M, C and K) in order to correct characteristics of a printer engine. Because of the differences, the relationship between Y, M, C and K image data and original luminance data in the R, G and B color space becomes non-linear. Moreover, errors or the like generated in the conversion process also influences accuracy of the image recognition operation. Accordingly, precise image recognition cannot be performed on the basis of Y, M, C and K or Y, M and C image data. When the "area halftone method" is utilized, accurate image recognition is possible only when the relationship between input data and output data of the area halftone processing is linear. However, if non-linear processing is included to the area halftone processing, precise image reproduction such as that will be described later becomes difficult and accurate image recognition cannot be expected. Fig. 8 shows a relationship between a luminance signal and a density signal in general. Herein, the RF conversion will be explained in a simplified form of luminance-density conversion. Generally, the characteristics of conversion from R, G and B data to Y, M, C and K data result in a graph in Fig. 8. The horizontal axis in Fig. 8 expresses a normalized value of luminance signals of R, G and B and the vertical axis expresses a normalized value of density signals of Y, M, C and K. For instance, when a luminance signal value is 0.3, the corresponding density signal value is 0.5. When the conversion from R, G and B to Y, M, C and K is characterized by the graph shown in Fig. 8, if four pixels having a luminance signal value 0.3 as indicated by reference numeral 111 in Fig. 9 is inputted in the RF converter, an output of the RF converter results in the reference numeral 112 in Fig. 9. When the signal 112 is inputted to a dither processor to perform dither processing in a unit of 2×2 pixels, the signal data is converted to representation values 0 and 1 indicative of a density value, as illustrated by reference numeral 113 in Fig. 9. Printing out the signal data would result in reference numeral 114 in Fig. 9. Herein, a mean value of density in the entire printout is 0.5. In other words, the density data indicated by the reference numeral 112 in Fig. 9, where each pixel has a density value of 0.5, is expressed by the method of area halftone. In performing image recognition, if luminance data is to be restored on the basis of the signal where the aforementioned dither processing has been performed, the above described condition of utilizing the area halftone method, that is, to have linear relationship between input data and output data, cannot be satisfied because non-linear luminance-density conversion shown in Fig. 8 is performed on the dither-processed signal. Restoring of luminance data from the dither-processed signal is equivalent to obtaining of data indicated by reference numeral 115 in Fig. 9 from the data 113 in Fig. 9 by utilizing the conversion characteristics shown in Fig. 8. Herein, a mean value of luminance data 111 is 0.3 while the mean value of the luminance data 115 is 0.5. As described above, a printer system employing the area halftone processing e.g., dither processing or error diffusion processing, raises the problem of extreme deterioration of image recognition capability, or in the worse case, inability of image recognition operation. EP-A-0665477 discloses an apparatus for image reading or processing, that can precisely identify the pattern of a particular 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 similarity between the pattern data and a predetermined pattern. EP-A-0497466 discloses an apparatus for performing a colour transformation or colour retouch operation on multibit digital data defining P colour components of image pixels. The apparatus comprises a look-up table which is addressed by N most significant bits (MSBs) of each colour component value and which contains coarse versions of output pixel colour component values. An interpolator is responsive to M least significant bits (LSBs) of each colour component value to interpolate fine versions of the output pixel values from the course output pixel values obtained from the look-up table. A processor loads course output pixel data for each colour component into the 2 NP addresses of the look-up table which may be addressed by the M MSBs of the input pixel data. The processor is adapted to cause the value of N progressibly to increase with successive iterations. The present invention has been made in consideration of the above situation. The present invention provides an image recognition apparatus as set out in claim 1. The present invention also provides a method of processing image data to perform image recognition as set out in claim 6. The present invention further provides a computer program product as set out in claim 11. Optical features are set out in claims 2 to 5, 7 to 10 and 12. Embodiments of the invention will now be described in conjunction with the accompanying drawings, in which like reference characters designate the same or similar parts throughout the figures thereof: Fig. 1 is a block diagram showing an arrangement of a printer; Fig. 2 is a block diagram showing an arrangement of an image processing apparatus according to an embodiment of the present invention; Fig. 3 is a block diagram showing an arrangement of an image processing apparatus according to the second embodiment of the present invention; Fig. 4 is a block diagram showing a modified example of the second embodiment; Fig. 5 is a block diagram showing an arrangement of an image processing apparatus according to the third embodiment; Fig. 6 is a block diagram showing a modified example of the third embodiment; Fig. 7 is a block diagram showing a modified example of an image processing apparatus according to the first, second and third embodiments; Fig. 8 is a graph showing a general relationship between a luminance signal and a density signal; Fig. 9 is a diagram for explaining luminance-density conversion and dither processing; Fig. 10 is a block diagram showing an arrangement of an image processing apparatus according to the fourth embodiment of the present invention; Fig. 11 is a diagram for explaining operation of a mean value calculator shown in Fig. 10; Fig. 12 is a block diagram showing an arrangement of an image processing apparatus according to the fifth embodiment of the present invention; Fig. 13 is a block diagram showing an arrangement of an image processing apparatus according to the sixth embodiment of the present invention; Fig. 14 is a block diagram showing an arrangement of an image processing apparatus according to the seventh embodiment of the present invention; Fig. 15A is a flowchart showing a process according to the first to fifth embodiments of the present invention; Fig. 15B is a flowchart showing a process according to the sixth and seventh embodiments of the present invention; and Fig. 16 is a diagram showing an example of a memory map utilized as a memory medium for storing program codes in an embodiment. <First Embodiment> Fig. 2 is a block diagram showing an arrangement of an image processing apparatus according to an embodiment of the present invention. In Fig. 2, a control unit 21 constituted with CPU 21a, ROM 21b, RAM 21c, I/O and the like controls the entire apparatus according to control programs stored in the ROM 21b. An operation panel 20 comprises a keyboard or a touch panel for inputting an operator's instruction to the control unit 21, and a display constituted with an LCD or the like where operation status and operation conditions of the apparatus are displayed by the control unit 21. An R, G and B digital image signal 1 inputted from a host computer (not shown) or the like is converted to a Y, M, C and K digital image signal 3 by an RF converter 2. The RF converter 2 performs conversion from an R, G and B color space to a Y, M and C color space in addition to UCR processing, masking processing and density conversion (gamma correction) processing for correcting color reproducing characteristics of toner or the like. In the case where a Y, M, C and K or a Y, M and C digital image signal is directly inputted by an image processing software driven on the host computer, the RF converter 2 is set by the operation panel 20 or the image processing software such that the inputted signal is passed through the RF converter 2 without being processed. The Y, M, C and K digital image signal 3 outputted from the RF converter 2 is inputted to a printer engine 4 and a conversion table 6 constituted with a look-up table e.g. ROM or the like. The printer engine 4 outputs a printout 5, forming a color image on the basis of image data from the RF converter 2. The digital image data, on which conversion to be described later is performed by the conversion table 6, is inputted to an image recognition circuit 7. The image recognition circuit 7 stores reference data of the R, G and B color space generated based on image data of specified documents. The image recognition circuit 7 determines whether or not an inputted image is an image of one of the specified documents by performing pattern matching or fuzzy analysis based on the reference data. The determination result is outputted as a signal Det 8. The control unit 21 determines in accordance with the signal Det 8 whether or not the image subjected to printing is the specified document; and if it is determined that the image to be printed is the specified document, printing operation of the printer engine 4 is suspended, or process control e.g. stopping fixing process is performed, or image data is deformed e.g., printing out an all-black image, to impede printing of the exact image of the specified document. Herein, an example of setting the conversion table 6 will be provided. The reference image signal 1 of the R, G and B color space representing predetermined color patches are inputted to the apparatus and the above described color space conversion and correction processing are performed on the signal 1 by the RF converter 2 to obtain an image signal 3 of the Y, M, C and K color space. Based on a correlation between the reference image signal 1 and the obtained image signal 3, the most appropriate inverse conversion table data for inverse-converting the Y, M, C and K image data outputted from the RF converter 2 into R, G and B image data is obtained. The inverse conversion table data obtained in the above manner may be written in the conversion table 6 when the apparatus is shipped to a user. Further, in consideration of the case where a C, M, Y and K image signal or a C, M and Y image signal is directly inputted and passed through the RF converter 2 without being processed, characteristics of the RF conversion in a typical image processing software may be obtained, and the most appropriate inverse conversion table for such conversion characteristics, for example, an inverse conversion table corresponding to average characteristics of the conversion characteristics, can be set. When a signal passes through the RF converter 2 without being processed, the conversion table 6 can be switched to such conversion table corresponding to the average characteristics. The image signal inverse-converted from the Y, M, C and K color space to the R, G and B color space by the conversion table 6 obtained in the above manner is free of influences of color space conversion and various correction processing by the RF converter 2. Because the RF conversion by the RF converter 2 employs various processing e.g., color space conversion, UCR, masking, correction of engine characteristics and so on, the outputted Y, M, C and K image data has a low image contrast in appearance, particularly due to the influence of UCR processing. The conversion table 6 serves to remove the influence of the various characteristics of the RF converter 2 and to reproduce image data which is consistent with the original R, G and B digital image data. Therefore, on account of the conversion table 6, the influence of RF conversion can be removed from image data inputted to the image recognition circuit 7; and as a result, the contrast of image data can be enhanced thereby improving accuracy in determining an image of the specified document. Note that in the above description, an example is provided based on Y, M, C and K image data. The same concept is applicable to a case of Y, M and C image data to realize image recognition. As set forth above, according to the first embodiment, an image can be recognized with high precision on the basis of Y, M, C and K image data or Y, M and C image data on which RF conversion has been performed. If the image is determined as a specified document, printing of the exact image of the inputted image data is impeded by suspending printing operation or by other similar operation. <Second Embodiment> Hereinafter, an image processing apparatus according to a second embodiment of the present invention will be described. Note that in the second embodiment, the same reference numerals are assigned to compositional parts identical to those in the first embodiment and descriptions thereof will be omitted. Fig. 3 is a block diagram showing an arrangement of an image processing apparatus according to the second embodiment of the present invention. The configuration differs from that of the first embodiment shown in Fig. 3 in that the conversion table and the image recognition circuit are provided for each of the Y, M and C color components. That is, the apparatus comprises a conversion table 61 and an image recognition circuit 71 for an yellow component, a conversion table 62 and an image recognition circuit 72 for a magenta component, and a conversion table 63 and an image recognition circuit 73 for a cyan component. Moreover, determination results obtained from the three image recognition circuits are subjected to OR calculation by an OR circuit 9 to obtain a signal Det 8. The most appropriate conversion table has different characteristics for each of the color components. Therefore, it is possible to obtain the most appropriate recognition characteristics for an entire image by providing a most appropriate conversion table for each of the color components and performing correction in the respective color component. In this case, the image recognition circuit 71 stores reference data having red and green components in the R, G and B color space, which correspond to yellow in the Y, M and C color space; the image recognition circuit 72 stores reference data having blue and red color components which correspond to magenta; and the image recognition circuit 73 stores reference data having green and blue color components which correspond to cyan. Note that the conversion tables are not limited to three colors (Y, M and C) but may be provided for any plural colors; for instance, in the case of four colors Y, M, C and K, the same effects can be attained. Furthermore, the determination results need not be processed by the OR circuit 9 to obtain the signal Det 8, but each of the determination results may be directly inputted to the control unit 21. Moreover, the number of the set of conversion table and a image recognition circuit can be changed in accordance with an image forming mode (four-color forming mode or three-color forming mode). Further as shown in Fig. 4, it is also possible to constitute each of the conversion table 64 and the reference data storing unit of the image recognition circuit 7 with a RAM, to perform image recognition by setting the conversion table 64 according to e.g., a processing color of the printer engine 4, and setting a combination of color components of reference data corresponding to the processing color in the image recognition circuit 7. In this case, a conversion table for each of the C, M and Y color components and reference data for each of the R, G and B color components are predeterminedly stored in the ROM 21b of the control unit 21. <Third Embodiment> Hereinafter, an image processing apparatus according to the third embodiment of the present invention will be described. Note that in the third embodiment, the same reference numerals are assigned to compositional parts identical to those in the first embodiment and description thereof will be omitted. Fig. 5 is a block diagram showing an arrangement of an image processing apparatus according to the third embodiment. The apparatus differs from the arrangement of each of the foregoing embodiments by comprising a selector 10 for selecting an output from three conversion tables in accordance with a processing color signal COL 13, and by performing image recognition in accordance with the output of the selected conversion table. The printer engine 4 outputs the processing color signal COL 13 indicative of a processing color component, that is, a color component of an image being formed. The selector 10 selects a conversion table of the processing color, for instance, when the printer engine 4 forms an image having yellow component, the selector 10 selects the conversion table 61 for yellow. The image recognition circuit 7 changes a combination of color components of reference data in accordance with the processing color signal COL 13 to perform image recognition. As shown in Fig. 6, it is also possible for the image recognition circuit 7 to control the selector 10 in accordance with characteristics of an image subjected to image recognition. By virtue of this, image recognition can be performed on the image data which has been inverse-converted by the most appropriate conversion table corresponding to the characteristics of an image of the specified document. Moreover, the conversion table may be constituted with a rewritable memory e.g. RAM or the like, and conversion table data may be set for each color in accordance with the processing color signal COL 13. <Modifications of the First to Third Embodiments> In the foregoing embodiments, descriptions have been given in the case where image data of the R, G and B color space is inputted from a host computer. As shown in Fig. 7, the present invention can also be applied to a case of sequentially-arranged color plane image data (a form of data arranged in a way that each color-plane image data of Y, M, C and K color planes or Y, M and C color planes is inputted sequentially) from an external apparatus 26 e.g., a host computer or image scanner and the like, to a printer unit 25. In Fig. 7, the sequentially-arranged color plane image data in Y, M, C and K inputted from the external apparatus 26 e.g., a host computer, is inputted to the printer unit 25 via an interface 22. The interface 22 outputs color instruction data 24 indicating color of the color plane data currently inputted or to be inputted, and sequentially outputs Y, M, C and K color plane data 23 to a conversion table 68 and the printer engine 4. According to the color instruction data 24, the control unit 21 sets conversion table data corresponding to the color plane in the conversion table 68, and sets a combination of color components of reference data which corresponds to the color plane in the image recognition circuit 7. If a determination result by the image recognition circuit 7 indicates that at least one of the color planes (one of Y, M, C and K) is the specified image, the control unit 21 performs the processing described in the first embodiment to impede the printing, such as changing the process of the printer engine 4. As set forth above, according to the first to third embodiments and the modified embodiment, it is possible to provide an image processing method and apparatus thereof which is capable of performing image recognition with high precision on the basis of density image data such as Y, M, C and K image data or Y, M and C image data. When an image of the specified document is determined, it is possible to impede printing of the exact image of inputted image data. <Fourth Embodiment> An image processing apparatus according to a fourth embodiment of the present invention will be described below. Note that in the fourth embodiment, the same reference numerals are assigned to compositional parts identical to those in the first embodiment and descriptions thereof will be omitted. Fig. 10 is a block diagram showing an arrangement of an image processing apparatus according to the fourth embodiment of the present invention. The Y, M, C and K digital image signal 3 outputted from the RF converter 2 is inputted to a dither processor 31 for dither processing, thereafter inputted to the printer engine 4 and a mean value calculator 32. The printer engine 4 outputs a printout 5, forming a color image on the basis of the image data inputted from the dither processor 31. Note that in case where an image signal on which pseudo half-tone processing e.g., dither processing or the like, has been performed is inputted by an image processing software driven on a host computer, the dither processor 31 is so set by the operation panel 20 or the image processing software that the inputted signal is passed through the processor 31 without being processed. The image data inputted in the mean value calculator 32 is subjected to mean value calculation and inputted in the conversion table 6 constituted by a ROM or the like. The conversion table 6 performs non-linear conversion of converting inputted density data to luminance data. Digital image data converted by the conversion table 6 is inputted to the image recognition circuit 7. After the determination result of the image recognition circuit 7 is outputted as a signal Det 8, the control unit 21 determines based on the signal Det 8 whether or not the image to be printed is an image of the specified document, and if it is determined that the image to be printed is the specified document, printing of the exact image thereof is impeded. Herein, the mean value calculation performed by the mean value calculator 32 operates to reduce the influence of dither processing from the dither-processed image data. Fig. 11 is provided to explain operation of the mean value calculator 32, showing output image data of the dither processor 31. Reference symbol P(x,y) denotes each pixel. Since dither processing is a technique to express a single tone by a plurality of pixels included in a matrix, a processing unit of mean value calculation performed by the mean value calculator 32 must be larger or equal to the size of the matrix. Assuming that the size of the dither matrix is n×m pixels and a processing unit of the mean value calculator 32 is N×M pixels, N≧n(≧2), M≧m(≧2) must be satisfied. The effect of the mean value calculator 32 would be reduced if the above conditions are not satisfied. The block area from P(1,1) to P(N,M) in Fig. 11 indicates the smallest processing unit of mean value calculation, and the mean value PAVE of the block is obtained by the following equation: By obtaining the mean value PAVE for each block, an effect of dither processing can be removed, making it possible to perform forthcoming non-linear conversion. By virtue of the conversion table 6 which performs non-linear conversion, it is possible to obtain image data approximated to the inputted image data. Therefore, the accuracy of image recognition of the specified document by the image recognition circuit 7 can be improved. As set forth above, according to the fourth embodiment, it is possible to recognize an image with precision on the basis of Y, M, C and K or Y, M and C image data on which the RF conversion and pseudo half-tone processing e.g. dither processing or the like, has been performed. If an image of the specified document is determined, printing of the exact image of inputted image data can be impeded by, for instance, suspending the printing operation. <Fifth Embodiment> An image processing apparatus according to a fifth embodiment of the present invention will be described next. Note that in the fifth embodiment, the same reference numerals are assigned to compositional parts identical to those in the fourth embodiment and descriptions thereof will be omitted. Fig. 12 is a block diagram showing an arrangement of an image processing apparatus according to the fifth embodiment of the present invention. The arrangement of the apparatus differs from that of the fourth embodiment in Fig. 10 by comprising, instead of the mean value calculator 32, a Low Pass Filter (LPF) 11 which limits a band of inputted image data in a two-dimensional space. The LPF 11 suppresses high frequency components and passes low frequency components of the image, making it possible to reduce the influence of the dither processor 31. Accordingly, it is possible to perform accurate image recognition even for the image data on which dither processing has been performed, as similar to the fourth embodiment. Note that the band pass of the LPF 11 needs to be lower than a frequency band of the dither processing. If the condition is not satisfied, the effect of band limitation would be reduced. Note that in the foregoing fourth and fifth embodiments, an example has been provided in the case of applying dither processing. However, other pseudo half-tone processing such as the error diffusion method or the like can achieve the same effects as a matter of course, as long as the principle of the area halftone method is utilized. Furthermore, the method of inverse conversion of the pseudo half-tone processing is not limited to mean value calculation or low pass filtering. Any method is applicable so long as the method aims at substantial restoration of the image data preceding the pseudo half-tone processing. Even if complete restoration of the image data is not achieved, it is acceptable as long as the method of inverse conversion results in data whose image is easily recognizable. As has been described above, according to the fourth and fifth embodiments, image recognition can be performed with high precision on the basis of image data on which pseudo half-tone processing has been performed. If an image to be printed is determined as the specified document, printing of the exact image of the inputted image data is impeded by, for instance, suspending the printing operation. <Sixth Embodiment> An image processing apparatus according to a sixth embodiment of the present invention will be described below. In the sixth embodiment, the same reference numerals are assigned to compositional parts identical to those in the first embodiment and descriptions thereof will be omitted. Fig. 13 is a block diagram showing an arrangement of an image processing apparatus according to the sixth embodiment of the present invention. Y, M, C and K digital image signal 3 outputted from the RF converter 2 is inputted to the printer engine 4, the conversion table 6 constituted by RAM or the like, and analysis unit 12. The printer engine 4 outputs a printout 5, forming a color image on the basis of the image data outputted from the RF converter 2. The digital image data converted by the conversion table 6 is inputted to the image recognition circuit 7 to determine whether or not an image represented by the converted digital image data is the specified document. If it is determined that the image is the specified document, the image recognition circuit 7 outputs a control signal to the printer engine 4 to impede printing of the exact image of the specified document, whereby suspending the printing operation by changing at least a part of the operation of processing means of a printer, or deforming the image data e.g., printing an all-black image. Herein the conversion table of the conversion table 6 is set by the analysis unit 12. Operation of the setting is described below. The printer engine 4 outputs a request signal 33 to the host computer (or to an image processing software driven on the host computer), which requests outputting of predetermined color patches data, at the time of initializing the apparatus, such as when power of the apparatus is turned on or the apparatus is reset, or at the time of changing a color space of inputted data by the operation panel 20. Herein, the printer engine 4 does not execute printing operation until the predetermined color patch data is inputted in accordance with the request signal 33. Color patches data of the R, G and B color space outputted from the host computer in response to the request signal 33 is subjected to conversion and correction processing by the RF converter 2 and inputted to the analysis unit 12. Color patches data of the Y, M, C and K color space, obtained by performing conversion and correction processing on R, G and B digital image data representing predetermined color patches by the image processing software which has received the request signal 33, is passed through the RF converter 2 and inputted to the analysis unit 12. The analysis unit 12 calculates correlation between the data inversely converted from the Y, M, C and K color space into the R, G and B color space, and the predetermined color patches data stored in an internal memory of the analysis unit 12. Based on the correlation, the most appropriate inverse conversion table data is calculated for inverse-converting Y, M, C and K image data, which has been converted from R, G and B image data by the RF converter 2, or which has been directly inputted, into R, G and B image data. The calculated conversion table data is then written in the conversion table 6. On account of the conversion table 6 obtained in the above manner, an image signal inversely converted from the Y, M, C and K color space to the R, G and B color space is free of the above described influence of the color space conversion and the various correction processing performed by the RF converter 2 (or RF conversion performed by the image processing software). Furthermore, by rewriting conversion table data of the conversion table 6 in the inverse RF conversion utilizing the color patches data, it is possible to surely remove the influence of the RF conversion even in the case where the characteristics of the conversion is unclear, e.g., RF conversion performed by the image processing software. Accordingly, by virtue of the conversion table 6, it is possible to remove the influence of RF conversion from image data, resulting to enhance contrast of the image data, thereby improving accuracy of image recognition, e.g., improving accuracy of recognizing an image of the specified document. As set forth above, according to the sixth embodiment, even in the case where RF conversion is performed on inputted R, G and B image data in the apparatus, or in the case where Y, M, C and K or Y, M and C image data on which RF conversion has been performed is directly inputted, accurate image recognition can be performed on the basis of the Y, M, C and K or Y, M and C image data. And when an image of the specified document is determined, it is possible to impede printing of the exact image of the specified document. The present embodiment is particularly advantageous for generating inverse conversion table data in a case where the RF converter 2 is manufactured by another manufacturer and the conversion characteristics of the RF converter 2 is not known. <Seventh Embodiment> Hereinafter, an image processing apparatus according to a seventh embodiment of the present invention will be described. Note that in the seventh embodiment, the same reference numerals are assigned to compositional parts identical to those in the sixth embodiment and descriptions thereof will be omitted. Fig. 14 is a block diagram showing an arrangement of an image processing apparatus according to the seventh embodiment of the present invention. As similar to the sixth embodiment, the printer engine 4 prints out color patches data inputted in response to the request signal 33. An image input unit 15 then reads the printout 5 of the color patches data utilizing a color image scanner 14 complying with an instruction from the operation panel 20, and inputs the read image data of the R, G and B color space into the analysis unit 12. The analysis unit 12 calculates correlation in the same manner as the above described sixth embodiment, and inverse conversion table data obtained from the data indicative of the correlation is written in the conversion table 6. Herein, when the request signal 33 is outputted, the printer engine 4 does not execute printing operation except for the image signal inputted in response to the request signal 33. Moreover, when the power of the apparatus is turned on, or apparatus is reset, or a color space of input data is changed, the control unit 21 functions to limit printing operation of the printer engine 4 until reading of the printout 5 is instructed and the analysis of the analysis unit 12 is normally completed. Note that the color image scanner 14 is not necessarily embodied in the apparatus, but an external device such as a colorimeter or the like may be utilized. In this case, reading of the printout 5 is performed on a recording sheet or a recording medium, instead of on a photosensitive drum or a transfer drum. <Modifications of the First to Seventh Embodiments> In the foregoing embodiments, descriptions have been provided for a case where a color space of inputted image data is any of RGB, YMCK or YMC color spaces. However, the present invention is not limited to this color space, but may be applied to data of any arbitrary color space in which a plurality of components define each colour (e.g., Lab, Luv, YCrCb, XYZ, YIQ, HSI and so on). Further, the conversion table 6 and the image recognition circuit 7 may be provided for each of color component data. For instance, one of the color component data outputted from the conversion table may be selected in accordance with the processing color signal outputted from the printer engine 4, and may be inputted to the image recognition circuit 7 to perform image recognition. Moreover, for instance, it is also possible to control color component data selected in accordance with a print mode (the four-color print or the three-color print). It is also possible to configure the apparatus such that process conditions of color space conversion and correction processing performed by the RF converter 2 can be changed from an external apparatus (e.g., host computer) or the operation panel 20. Process conditions can also be changed for each of the Y, M, C and K colors or can be altered in accordance with a print mode (four-color print in Y, M, C and K or three-color print in Y, M and C). Furthermore, in the above described embodiments, conversion means is described as an LUT (Look-Up Table). However, the present invention is not limited to the LUT, but may employ any converter as long as single input data is converted to single output data, and may be constituted with a calculator, e.g., a multiplier or an adder, or a software and the like to achieve the above described effects. An inverse conversion utilizing the conversion means needs not necessarily be the inverse conversion of all of UCR, masking, or density conversion, but may be an inverse conversion of only one of the above. Moreover, with respect to accuracy of the inverse conversion by the conversion means, it is acceptable as long as the process aims at reducing the influence of a conversion process predeterminedly performed on the input image data by enhancing the contrast (dynamic range) of image data subjected to image recognition. Furthermore, the image recognition circuit in the foregoing embodiment may be constituted with a substrate or a card independent from a printer body such as a printer engine, or as a unit such as a semiconductive chip. Further, the above described inverse conversion means may be added to the substrate, the card, or the semiconductive chip. Still further, the image recognition unit may be included in an image scanner or a copying machine, in addition to a printer. Embodiments of the invention may comprise a system constituted by a plurality of devices (e.g., host computer, interface, reader, printer) or to an apparatus comprising a single device (e.g., copy machine, facsimile). Further, embodiments may comprise a storage medium storing program codes for performing the aforesaid processes : A system or an apparatus may then read the program codes with a computer (e.g., CPU, MPU) from the storage medium, then execute the program. In this case, the program codes read from the storage medium realize the new functions, and the storage medium storing the program codes constitutes an embodiment of the invention. In other words, each module realized by program codes realizes the function of each compositional part of an embodiment and such module is readable by a computer. Further, the storage medium, such as a floppy disk, a hard disk, an optical disk, a magneto-optical disk, CD-ROM, CD-R, a magnetic tape, a non-volatile type memory card, and ROM can be used for providing the program codes. Furthermore, besides aforesaid functions according to the above embodiments are realized by executing the program codes which are read by a computer, embodiments may comprise an OS (Operating System) or the like for a computer which performs a part or entire processes in accordance with designations of the program codes and realizes functions according to the above embodiments. Furthermore, embodiments also include a case where, after the program codes read from the storage medium are written in a function expansion card which is inserted into the computer or in a memory provided in a function expansion unit which is connected to the computer, CPU or the like contained in the function expansion card or unit performs a part or entire process in accordance with designations of the program codes and realizes functions of the above embodiments. In the case where an embodiment comprises an aforementioned storage medium, in a simple description, the storage medium may store modules which realize a process performing the inverse processing (such as the inverse RF conversion and an inverse process of the pseudo halftone processing) and the image recognition, shown in flowcharts in Fig. 15A or 15B. That is, the storage medium stores the modules shown in the memory map in Fig. 16. More specifically, program codes which correspond to "inverse RF conversion" module and "image recognition" module are stored in the storage medium. The present invention is not limited to the above embodiments and various changes and modifications can be made within the scope of the claims.

Claims: An image recognition apparatus for processing image data on which a color conversion converting a plurality of components defining colours in a first colour space to a plurality of components defining the colours in a second colour space and its associated processing have been performed, comprising: inverse processing means (6,11,12,21,32,61-68) for performing an inverse conversion process of the color conversion and for performing contrast-enhancing processing on the image data so as to reduce deterioration of image quality resulting from the associated processing on the image data; and recognition means (7,9,10,21,71-73) for recognizing an image represented by the image data processed by said inverse processing means. The apparatus according to claim 1, further comprising means for generating a control signal for controlling an image processing apparatus (4) in accordance with a recognition result obtained by the recognition means. The apparatus according to claim 2, wherein: the image processing apparatus (4) is operable to perform a printout operation of the image data; and the means for generating the control signal is arranged to generate the control signal to control the image processing apparatus (4) so that the image processing apparatus does not perform a normal printout operation when the recognition means recognizes a specified image. The apparatus according to any of claims 1 to 3, wherein the color conversion is a conversion which converted image data in luminance color space to image data in density colour space. The apparatus according to any of claims 1 to 4, wherein the associated processing includes at least one of UCR processing, masking processing and density correction processing. A method of processing image data on which a color conversion converting a plurality of components defining colours in a first colour space to a plurality of components defining the colours in a second colour space and its associated processing have been performed, to perform image recognition, comprising: performing an inverse conversion process of the color conversion (S12); performing contrast-enhancing processing on the image data so as to reduce deterioration of image quality resulting from the associated processing on the image data (S12); and performing image recognition processing (S13) using the image data after the inverse color conversion processing and the contrast-enhancing processing. The method according to claim 6, further comprising the step of generating a control signal for controlling an image processing apparatus (4) in accordance with a recognition result obtained in the recognition processing step. The method according to claim 7, wherein: the image processing apparatus (4) is operable to perform a printout operation of the image data; and the control signal is generated to control the image processing apparatus (4) so that the image processing apparatus (4) does not perform a normal printout operation when a specific image is recognized in the recognition processing step. The method according to any of claims 6 to 8, wherein the color conversion is a conversion which converted image data in luminance colour space to image data in density color space. The method according to one of claims 6 to 9, wherein the associated processing includes at least one of UCR processing, masking processing and density correction processing. A computer program product comprising a carrier carrying instructions for causing a programmable processing apparatus to become operable to perform a method as set out in at least one of claims 6 to 10. A computer program product according to claim 11, when embodied as a storage medium storing the instructions.

Inventors: MURAMATSU MIZUKI, NAKAJIMA HIROFUMI, OWADA MITSURU, MURAMATSU, MIZUKI, NAKAJIMA, HIROFUMI, OWADA, MITSURU
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1996
Main classification: H04N1
IPC codes: H04N1