JP6455083B2 - Image reading apparatus and program - Google Patents

Image reading apparatus and program Download PDF

Info

Publication number
JP6455083B2
JP6455083B2 JP2014224236A JP2014224236A JP6455083B2 JP 6455083 B2 JP6455083 B2 JP 6455083B2 JP 2014224236 A JP2014224236 A JP 2014224236A JP 2014224236 A JP2014224236 A JP 2014224236A JP 6455083 B2 JP6455083 B2 JP 6455083B2
Authority
JP
Japan
Prior art keywords
color
barcode
print medium
displayed
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2014224236A
Other languages
Japanese (ja)
Other versions
JP2016091258A (en
Inventor
明美 森田
明美 森田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2014224236A priority Critical patent/JP6455083B2/en
Publication of JP2016091258A publication Critical patent/JP2016091258A/en
Application granted granted Critical
Publication of JP6455083B2 publication Critical patent/JP6455083B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像読取装置及びプログラムに関し、特にカラー印刷媒体に表示されたカラーバーコードを読み取る技術に関する。   The present invention relates to an image reading apparatus and a program, and more particularly to a technique for reading a color barcode displayed on a color print medium.

バーコードはデジタル情報を記録するための記号の一種であり、情報処理装置により読み取り可能な記号である。近年ではデータ容量を増加させるため、複数の色を用いて情報を表す2次元のカラーバーコードが提供されている。カラーバーコードは、入力されたデータをコード化して得られた値に応じて、例えばシアン(C)、マゼンタ(M)、イエロー(Y)及びブラック(K)等のように予め定められた色を用いてビットマップ画像等として生成される。そして、この生成されたビットマップ画像等に表示される色の塗料を用いて印刷用紙等の印刷媒体上にカラーバーコードが印刷される。印刷媒体に表示されるカラーバーコードの読み取り方法として、カラーバーコードを走査してビットマップデータを取得し、カラーバーコードの各データブロックから抽出される色値をデータ値に変換することによりデジタル情報を取得する方法が提案されている(例えば特許文献1)。   A bar code is a kind of symbol for recording digital information, and is a symbol readable by an information processing apparatus. In recent years, in order to increase the data capacity, a two-dimensional color barcode that represents information using a plurality of colors has been provided. The color barcode is a predetermined color such as cyan (C), magenta (M), yellow (Y), black (K), etc., depending on the value obtained by encoding the input data. Is generated as a bitmap image or the like. Then, a color barcode is printed on a printing medium such as printing paper using a color paint displayed on the generated bitmap image or the like. As a method of reading the color barcode displayed on the printing medium, the color barcode is scanned to obtain bitmap data, and the color value extracted from each data block of the color barcode is converted into a data value. A method for acquiring information has been proposed (for example, Patent Document 1).

特開2007−323632号公報JP 2007-323632 A

しかし、印刷媒体が白色以外の色によって着色されている場合、印刷媒体上に塗布される塗料の色と混色する場合があり、そのためカラーバーコード生成時にビットマップ画像等において設定された色と異なる色でカラーバーコードが印刷媒体上に表示されることがある。そうすると、印刷媒体上に表示されるカラーバーコードを読み取って得られたデータ値が、当該カラーバーコードを生成する際にコード化して得られたデータ値と異なってしまい、カラーバーコードを正確に解読できない事態が生じるという問題がある。   However, if the print medium is colored with a color other than white, it may be mixed with the color of the paint applied on the print medium, and therefore different from the color set in the bitmap image or the like when generating the color barcode. Color barcodes may be displayed on the print media by color. Then, the data value obtained by reading the color barcode displayed on the print medium is different from the data value obtained by coding when generating the color barcode, and the color barcode is accurately There is a problem that an unbreakable situation occurs.

そこで本発明は、上記のような従来の問題点を解決課題として、カラー印刷媒体に表示されたカラーバーコードを読み取り可能とした画像読取装置及びプログラムを提供することを目的とする。   Accordingly, an object of the present invention is to provide an image reading apparatus and a program capable of reading a color barcode displayed on a color print medium, with the above-described conventional problems as solutions.

上記目的を達成するため、請求項1の発明は、カラー印刷媒体に表示されたカラーバーコードを含む画像を読み取る画像読取手段と、前記画像読取手段により読み取られた前記カラーバーコードを含む画像を解析して前記カラー印刷媒体において表示された色を特定する特定手段と、前記特定手段により特定された色に基づき前記カラーバーコードを解析する解析手段とを備え、前記解析手段は、前記カラーバーコードを構成するブロックの色と前記特定手段により特定された前記カラー印刷媒体において表示された色との差が所定値以下である色を前記カラー印刷媒体において表示された色と同じ色として前記カラーバーコードを解析する画像読取装置であることを特徴とする構成である。 In order to achieve the above object, the invention of claim 1 is directed to image reading means for reading an image including a color barcode displayed on a color print medium, and an image including the color barcode read by the image reading means. Specifying means for analyzing and specifying the color displayed on the color print medium; and analyzing means for analyzing the color barcode based on the color specified by the specifying means , the analyzing means comprising the color bar The color in which the difference between the color of the block constituting the code and the color displayed on the color print medium specified by the specifying means is equal to or less than a predetermined value is the same color as the color displayed on the color print medium a construction which is characterized in that an image reading apparatus you analyze the bar code.

請求項2の発明は、カラー印刷媒体に表示されたカラーバーコードを含む画像を読み取る画像読取手段と、前記画像読取手段により読み取られた前記カラーバーコードを含む画像を解析して前記カラー印刷媒体において表示された色を特定する特定手段と、前記特定手段により特定された色に基づき前記カラーバーコードを解析する解析手段と、特定のカラー印刷媒体と対応付けられた模様に関する模様情報を取得する模様情報取得手段と、を備え、前記特定手段は、前記カラーバーコードに含まれる特定のカラー印刷媒体を定義する定義情報を読み取って当該定義情報により定義されるカラー印刷媒体と対応付けられた模様情報を参照し、前記模様に応じて前記カラーバーコードを構成するブロックの位置毎に色を特定し、前記解析手段は、前記カラー印刷媒体において前記カラーバーコードが表示される位置毎に前記カラーバーコードを解析する画像読取装置であることを特徴とする構成である。 According to a second aspect of the present invention, there is provided an image reading unit that reads an image including a color barcode displayed on a color print medium, and an image that includes the color barcode read by the image reading unit to analyze the color print medium. Obtaining a pattern information relating to a pattern associated with a specific color printing medium, a specifying unit for specifying the color displayed in the step, an analyzing unit for analyzing the color barcode based on the color specified by the specifying unit Pattern information acquisition means, wherein the specifying means reads definition information defining a specific color print medium included in the color barcode, and associates with a color print medium defined by the definition information Referring to the information, specifying the color for each position of the block constituting the color barcode according to the pattern, the analysis means A configuration wherein the an image reading apparatus which color barcode analyzing the color barcode for each position to be displayed in the color printing medium.

請求項3の発明は、画像読取装置であって、カラー印刷媒体に表示される画像であって、カラーバーコードと、前記カラーバーコードとは異なる対象画像とを含む画像を読み取る画像読取手段と、前記画像読取手段により読み取られる前記画像に含まれるカラーバーコードを解析して前記カラー印刷媒体において表示される前記カラーバーコードの色を特定する特定手段と、前記特定手段により特定された色に基づき前記カラーバーコードを解析し、前記カラーバーコードに対応する第1情報を生成する解析手段と、前記画像読取手段により読み取られる前記画像に含まれる前記対象画像を解析し、前記対象画像に対応する第2情報を生成する第2情報生成手段と、前記第1情報と前記第2情報との差分を検出する差分検出手段と、前記差分検出手段により前記第1情報と前記第2情報との差分が検出された場合に、前記カラー印刷媒体に表示される前記対象画像が変更されたことを報知する報知手段と、前記特定手段により特定された色の濃度と前記カラー印刷媒体の色との差を検出する濃度差検出手段と、前記濃度差検出手段により検出された濃度の差が所定値以下であり、且つ、前記差分検出手段により所定箇所以上の差分が検出された場合、前記カラー印刷媒体において表示される前記カラーバーコードの色の特定においてエラーが生じたことを判定する判定手段とを備え、前記報知手段は、前記カラー印刷媒体において表示される前記カラーバーコードの色の特定においてエラーが生じたことを報知することを特徴とする構成である。 According to a third aspect of the present invention, there is provided an image reading device for reading an image which is displayed on a color print medium and includes a color barcode and a target image different from the color barcode. Analyzing the color barcode included in the image read by the image reading unit to specify the color of the color barcode displayed on the color print medium; and specifying the color specified by the specifying unit. Analyzing the color barcode based on the analysis, and generating the first information corresponding to the color barcode, analyzing the target image included in the image read by the image reading unit, and corresponding to the target image Second information generating means for generating second information, difference detecting means for detecting a difference between the first information and the second information, and the difference If the difference between the first information by means output and said second information is detected, and informing means for informing that the target image to be displayed on said color print medium is changed, specified by the specifying means a density difference detecting means for detecting a difference between the color of the color density and the color print medium, the difference between the detected density by the density difference detection means Ri der below a predetermined value, and the difference detecting means If the difference between the above predetermined locations is detected by, e Bei and a determination means for determining that the Oite error occurs to a specific color of the color barcode that appears in the color printing medium, the notification means a construction which is characterized by notifying that the Oite error occurs to a specific color of the color barcode that appears in the color printing medium.

請求項4の発明は、請求項1乃至3のいずれかに記載の画像読取装置において、前記特定手段は、前記カラー印刷媒体に表示されたカラーバーコードに含まれる前記カラーバーコードが印刷された色を定義する指標に基づき前記カラー印刷媒体において表示された色を特定することを特徴とする構成である。   According to a fourth aspect of the present invention, in the image reading apparatus according to any one of the first to third aspects, the color barcode included in the color barcode displayed on the color print medium is printed by the specifying unit. The configuration is characterized in that the color displayed on the color print medium is specified based on an index defining the color.

請求項5の発明は、請求項4に記載の画像読取装置において、前記特定手段は、前記カラーバーコードの所定位置に配置される前記指標を解析することを特徴とする構成である。   According to a fifth aspect of the present invention, in the image reading apparatus according to the fourth aspect, the specifying unit analyzes the index arranged at a predetermined position of the color barcode.

請求項6の発明は、画像読取装置であって、カラー印刷媒体に表示されたカラーバーコードを含む画像を読み取る画像読取手段と、前記画像読取手段により読み取られた前記カラーバーコードを含む画像を解析して前記カラー印刷媒体において表示された色を特定する特定手段と、前記特定手段により特定された色に基づき前記カラーバーコードを解析する解析手段と、前記カラー印刷媒体の色を検出する媒体色検出手段と、所定の記憶手段又は外部のサーバーから前記カラーバーコードに使用される色を定義した使用色情報を取得する使用色情報取得手段と、を備え、前記特定手段は、前記使用色情報取得手段によって取得される前記使用色情報と前記媒体色検出手段により検出される前記カラー印刷媒体の色とに基づき前記カラー印刷媒体において表示された色を特定することを特徴とする構成である。 According to a sixth aspect of the present invention, there is provided an image reading apparatus for reading an image including a color barcode displayed on a color print medium, and an image including the color barcode read by the image reading unit. Analysis means for analyzing and specifying the color displayed on the color print medium, analysis means for analyzing the color barcode based on the color specified by the specification means, and medium for detecting the color of the color print medium Color detecting means; and used color information acquiring means for acquiring used color information defining a color used for the color barcode from a predetermined storage means or an external server, and the specifying means includes the used color the color printing medium based on the color of the color printing medium to be detected the use color information acquired by the information acquisition means and by the medium color detecting means A construction which is characterized by identifying the displayed color in.

請求項7の発明は、請求項6に記載の画像読取装置において、前記媒体色検出手段は、前記特定手段により前記カラーバーコードを含む画像が解析されて前記カラーバーコードの配列が特定されることに伴い前記画像のうち前記カラーバーコードを除いた部分から前記カラー印刷媒体の色を検出することを特徴とする構成である。   According to a seventh aspect of the present invention, in the image reading apparatus according to the sixth aspect, the medium color detecting means analyzes an image including the color barcode by the specifying means and specifies the arrangement of the color barcodes. Accordingly, the color of the color print medium is detected from a portion of the image excluding the color barcode.

請求項8の発明は、請求項3、6又は7に記載の画像読取装置において、前記解析手段は、前記カラーバーコードを構成するブロックの色と前記特定手段により特定された前記カラー印刷媒体において表示された色との差が所定値以下である色を前記カラー印刷媒体において表示された色と同じ色として前記カラーバーコードを解析することを特徴とする構成である。 According to an eighth aspect of the present invention, in the image reading apparatus according to the third, sixth, or seventh aspect , the analyzing unit includes a color of a block constituting the color barcode and the color print medium specified by the specifying unit. The color barcode is analyzed with a color having a difference from a displayed color equal to or less than a predetermined value as the same color as the color displayed on the color print medium.

請求項9の発明は、請求項3、6、7又は8に記載の画像読取装置において、特定のカラー印刷媒体と対応付けられた模様に関する模様情報を取得する模様情報取得手段をさらに備え、前記特定手段は、前記カラーバーコードに含まれる特定のカラー印刷媒体を定義する定義情報を読み取って当該定義情報により定義されるカラー印刷媒体と対応付けられた模様情報を参照し、前記模様に応じて前記カラーバーコードを構成するブロックの位置毎に色を特定し、前記解析手段は、前記カラー印刷媒体において前記カラーバーコードが表示される位置毎に前記カラーバーコードを解析することを特徴とする構成である。 A ninth aspect of the present invention is the image reading apparatus according to the third, sixth, seventh or eighth aspect , further comprising pattern information acquisition means for acquiring pattern information regarding a pattern associated with a specific color print medium, The specifying unit reads the definition information defining the specific color print medium included in the color barcode, refers to the pattern information associated with the color print medium defined by the definition information, and according to the pattern A color is specified for each position of a block constituting the color barcode, and the analysis unit analyzes the color barcode for each position where the color barcode is displayed on the color print medium. It is a configuration.

請求項10の発明は、プログラムであって、画像読取装置を、カラー印刷媒体に表示されたカラーバーコードを含む画像を読み取る画像読取手段、前記画像読取手段により読み取られた前記カラーバーコードを含む画像を解析して前記カラー印刷媒体において表示された色を特定する特定手段、前記特定手段により特定された色に基づき前記カラーバーコードを解析する解析手段、として機能させ、前記解析手段は、前記カラーバーコードを構成するブロックの色と前記特定手段により特定された前記カラー印刷媒体において表示された色との差が所定値以下である色を前記カラー印刷媒体において表示された色と同じ色として前記カラーバーコードを解析することを特徴とする構成である。 According to a tenth aspect of the present invention , there is provided a program, wherein the image reading apparatus includes an image reading unit that reads an image including a color barcode displayed on a color print medium, and the color barcode read by the image reading unit. specifying means for specifying the color displayed by analyzing an image in the color printing medium, analyzing means for analyzing the color barcode based on the identified color by the specifying means, to function as the analyzing means, wherein A color whose difference between the color of the block constituting the color barcode and the color displayed on the color print medium specified by the specifying means is equal to or less than a predetermined value is the same color as the color displayed on the color print medium The color bar code is analyzed .

請求項11の発明は、プログラムであって、画像読取装置を、カラー印刷媒体に表示されたカラーバーコードを含む画像を読み取る画像読取手段、前記画像読取手段により読み取られた前記カラーバーコードを含む画像を解析して前記カラー印刷媒体において表示された色を特定する特定手段、前記特定手段により特定された色に基づき前記カラーバーコードを解析する解析手段、特定のカラー印刷媒体と対応付けられた模様に関する模様情報を取得する模様情報取得手段、として機能させ、前記特定手段は、前記カラーバーコードに含まれる特定のカラー印刷媒体を定義する定義情報を読み取って当該定義情報により定義されるカラー印刷媒体と対応付けられた模様情報を参照し、前記模様に応じて前記カラーバーコードを構成するブロックの位置毎に色を特定し、前記解析手段は、前記カラー印刷媒体において前記カラーバーコードが表示される位置毎に前記カラーバーコードを解析することを特徴とする構成である。 The invention of claim 11 is a program that includes an image reading device for reading an image including a color barcode displayed on a color print medium, and the color barcode read by the image reading means. A specifying unit that analyzes an image to identify a color displayed on the color print medium, an analysis unit that analyzes the color barcode based on the color specified by the specifying unit, and a specific color print medium Color information defined by the definition information by reading the definition information defining the specific color print medium included in the color barcode. With reference to the pattern information associated with the medium, the block that constitutes the color barcode according to the pattern The identifying color for each position, the analyzing means is configured, which comprises analyzing the color barcode for each position where the color barcode in the color printing medium is displayed.

請求項12の発明は、プログラムであって、画像読取装置を、カラー印刷媒体に表示される画像であって、カラーバーコードと、前記カラーバーコードとは異なる対象画像とを含む画像を読み取る画像読取手段、前記画像読取手段により読み取られる前記画像に含まれるカラーバーコードを解析して前記カラー印刷媒体において表示される前記カラーバーコードの色を特定する特定手段、前記特定手段により特定された色に基づき前記カラーバーコードを解析し、前記カラーバーコードに対応する第1情報を生成する解析手段、前記画像読取手段により読み取られる前記画像に含まれる前記対象画像を解析し、前記対象画像に対応する第2情報を生成する第2情報生成手段、前記第1情報と前記第2情報との差分を検出する差分検出手段、前記差分検出手段により前記第1情報と前記第2情報との差分が検出された場合に、前記カラー印刷媒体に表示される前記対象画像が変更されたことを報知する報知手段、前記特定手段により特定された色の濃度と前記カラー印刷媒体の色との差を検出する濃度差検出手段、前記濃度差検出手段により検出された濃度の差が所定値以下であり、且つ、前記差分検出手段により所定箇所以上の差分が検出された場合、前記カラー印刷媒体において表示される前記カラーバーコードの色の特定においてエラーが生じたことを判定する判定手段として機能させ、前記報知手段は、前記カラー印刷媒体において表示される前記カラーバーコードの色の特定においてエラーが生じたことを報知することを特徴とする構成である。 The invention according to claim 12 is a program for reading an image that is displayed on a color print medium by an image reading device and includes a color barcode and a target image different from the color barcode. A reading unit, a specifying unit that analyzes a color barcode included in the image read by the image reading unit and specifies a color of the color barcode displayed on the color print medium, and a color specified by the specifying unit Analyzing the color barcode based on the analysis, generating first information corresponding to the color barcode, analyzing the target image included in the image read by the image reading unit, and corresponding to the target image Second information generating means for generating second information to be performed, difference detecting means for detecting a difference between the first information and the second information, If the difference between the first information and the second information is detected by the difference detection means, informing means for informing that the target image to be displayed on said color print medium is changed, specified by the specifying means density difference detecting means for detecting a difference between the color of the color density and the color print medium, the difference between the detected density by the density difference detection means Ri der below a predetermined value, and, by the difference detecting means when the predetermined positions above difference is detected, then it functions as a judging means for judging that the Oite error occurs to a specific color of the color barcode that appears in the color printing medium, the notification means a construction which is characterized by notifying that the Oite error occurs to a specific color of the color barcode that appears in the color printing medium.

請求項13の発明は、請求項10乃至12のいずれかに記載のプログラムにおいて、前記特定手段は、前記カラー印刷媒体に表示されたカラーバーコードに含まれる前記カラーバーコードが印刷された色を定義する指標に基づき前記カラー印刷媒体において表示された色を特定することを特徴とする構成である。   According to a thirteenth aspect of the present invention, in the program according to any one of the tenth to twelfth aspects, the specifying unit selects a color on which the color barcode included in the color barcode displayed on the color print medium is printed. The configuration is characterized in that a color displayed on the color print medium is specified based on an index to be defined.

請求項14の発明は、請求項13に記載のプログラムにおいて、前記特定手段は、前記カラーバーコードの所定位置に配置される前記指標を解析することを特徴とする構成である。   A fourteenth aspect of the invention is the program according to the thirteenth aspect, wherein the specifying means analyzes the index arranged at a predetermined position of the color barcode.

請求項15の発明は、プログラムであって、画像読取装置を、カラー印刷媒体に表示されたカラーバーコードを含む画像を読み取る画像読取手段、前記画像読取手段により読み取られた前記カラーバーコードを含む画像を解析して前記カラー印刷媒体において表示された色を特定する特定手段、前記特定手段により特定された色に基づき前記カラーバーコードを解析する解析手段、前記カラー印刷媒体の色を検出する媒体色検出手段、所定の記憶手段又は外部のサーバーから前記カラーバーコードに使用される色を定義した使用色情報を取得する使用色情報取得手段、として機能させ、
前記特定手段は、前記使用色情報取得手段によって取得される前記使用色情報と前記媒体色検出手段により検出される前記カラー印刷媒体の色とに基づき前記カラー印刷媒体において表示された色を特定することを特徴とする構成である。
According to a fifteenth aspect of the present invention , there is provided a program, the image reading apparatus including an image reading unit that reads an image including a color barcode displayed on a color print medium, and the color barcode read by the image reading unit. A specifying unit that analyzes an image and identifies a color displayed on the color print medium, an analysis unit that analyzes the color barcode based on the color specified by the specifying unit, and a medium that detects the color of the color print medium color detection means, a predetermined storage means or external use color information acquiring unit that the use color information acquiring that defines the colors used in the color bar code from the server, and then allowed to function in,
The specifying unit specifies a color displayed on the color print medium based on the use color information acquired by the use color information acquisition unit and the color of the color print medium detected by the medium color detection unit. It is the structure characterized by this.

請求項16の発明は、請求項15に記載のプログラムにおいて、前記媒体色検出手段は、前記特定手段により前記カラーバーコードを含む画像が解析されて前記カラーバーコードの配列が特定されることに伴い前記画像のうち前記カラーバーコードを除いた部分から前記カラー印刷媒体の色を検出することを特徴とする構成である。   According to a sixteenth aspect of the present invention, in the program according to the fifteenth aspect, the medium color detecting means analyzes an image including the color barcode by the specifying means and specifies the arrangement of the color barcode. Accordingly, the color of the color print medium is detected from a portion of the image excluding the color barcode.

請求項17の発明は、請求項12、15又は16に記載のプログラムにおいて、前記解析手段は、前記カラーバーコードを構成するブロックの色と前記特定手段により特定された前記カラー印刷媒体において表示された色との差が所定値以下である色を前記カラー印刷媒体において表示された色と同じ色として前記カラーバーコードを解析することを特徴とする構成である。 According to a seventeenth aspect of the present invention, in the program according to the twelfth, fifteenth, or sixteenth aspect , the analyzing means is displayed on the color print medium specified by the specifying means and the color of the block constituting the color barcode. The color barcode is analyzed with a color having a difference from a predetermined color equal to or less than a predetermined value as the same color as that displayed on the color print medium.

請求項18の発明は、請求項12、15、16又は17に記載のプログラムにおいて、特定のカラー印刷媒体と対応付けられた模様に関する模様情報を取得する模様情報取得手段、としてさらに機能させ、前記特定手段は、前記カラーバーコードに含まれる特定のカラー印刷媒体を定義する定義情報を読み取って当該定義情報により定義されるカラー印刷媒体と対応付けられた模様情報を参照し、前記模様に応じて前記カラーバーコードを構成するブロックの位置毎に色を特定し、前記解析手段は、前記カラー印刷媒体において前記カラーバーコードが表示される位置毎に前記カラーバーコードを解析することを特徴とする構成である。 According to an eighteenth aspect of the present invention, in the program according to the twelfth, fifteenth, sixteenth, or seventeenth aspect , the program further functions as a pattern information acquisition unit that acquires pattern information related to a pattern associated with a specific color print medium, The specifying unit reads the definition information defining the specific color print medium included in the color barcode, refers to the pattern information associated with the color print medium defined by the definition information, and according to the pattern A color is specified for each position of a block constituting the color barcode, and the analysis unit analyzes the color barcode for each position where the color barcode is displayed on the color print medium. It is a configuration.

画像読取装置の一構成例を示す図である。It is a figure which shows one structural example of an image reading apparatus. 第1実施形態の画像読取装置の機能構成の一例を示すブロック図である。It is a block diagram which shows an example of a function structure of the image reading apparatus of 1st Embodiment. カラーバーコードの一構成例を示す図である。It is a figure which shows one structural example of a color barcode. カラーバーコードに含まれるブロックを拡大した図である。It is the figure which expanded the block contained in a color barcode. (a)は模様を有する印刷用紙の一例を示す図であり、(b)は模様を有する印刷用紙にカラーバーコードが表示される例を示す図である。(A) is a figure which shows an example of the printing paper which has a pattern, (b) is a figure which shows the example in which a color barcode is displayed on the printing paper which has a pattern. 模様を有する印刷用紙に表示されるカラーバーコードの一例を示す図である。It is a figure which shows an example of the color barcode displayed on the printing paper which has a pattern. 透明ブロックを含むカラーバーコードの一例を示す図である。It is a figure which shows an example of the color barcode containing a transparent block. 第1実施形態の画像読取装置で行われる処理手順の一例を示すフローチャートである。3 is a flowchart illustrating an example of a processing procedure performed by the image reading apparatus according to the first embodiment. 第1実施形態における表示色特定処理の詳細な処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the detailed process sequence of the display color specific process in 1st Embodiment. 第1実施形態における模様処理の詳細な処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the detailed process sequence of the pattern process in 1st Embodiment. 第1実施形態におけるコード解析処理の詳細な処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the detailed process sequence of the code analysis process in 1st Embodiment. 第1実施形態における文書読取処理の詳細な処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the detailed process sequence of the document reading process in 1st Embodiment. 第1実施形態における差分検出処理の詳細な処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the detailed process sequence of the difference detection process in 1st Embodiment. 差分検出処理により文書に変更箇所を報知する報知画面の一例を示す図である。It is a figure which shows an example of the alerting | reporting screen which alert | reports a change location to a document by difference detection processing. 第2実施形態の画像読取装置の機能構成の一例を示すブロック図である。It is a block diagram which shows an example of a function structure of the image reading apparatus of 2nd Embodiment. 第2実施形態における表示色特定処理の詳細な処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the detailed process sequence of the display color specific process in 2nd Embodiment. 第2実施形態におけるコード解析処理の詳細な処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the detailed process sequence of the code analysis process in 2nd Embodiment.

以下、本発明に関する好ましい実施形態について、図面を参照しつつ詳細に説明する。なお、以下に説明する実施形態において互いに共通する部材には同一符号を付しており、それらにつき重複する説明は省略する。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. In the embodiments described below, members that are common to each other are denoted by the same reference numerals, and redundant descriptions thereof are omitted.

(第1実施形態)
図1は、本実施形態における画像読取装置1の構成例を示す図である。本実施形態においてカラーバーコードC1は印刷用紙Pに表示されている文書DM1をコード化することにより生成したものであり、文書DM1と共に印刷用紙Pに表示されている。このように文書DM1と文書DM1をコード化して生成したカラーバーコードC1とを同一の印刷用紙P上に表示するのは、文書DM1に対して変更が加えられた場合に、変更が加えられた箇所を検出するためである。すなわち、例えば文書DM1を作成すると共に文書DM1をコード化してカラーバーコードC1を生成し、文書DM1とカラーバーコードC1を同一の印刷用紙Pに印刷した後に、文書DM1の作成者から文書DM1及びカラーバーコードC1が表示された印刷用紙Pが第三者に交付され、複数の第三者を経由する場合、文書DM1が流通途中で第三者により改ざんされるおそれがある。そこで画像読取装置1は、ユーザーによる読み取り指示を検知すると、印刷用紙Pに表示される文書DM1とカラーバーコードC1を含む画像を読み取ることにより、文書DM1につきカラーバーコードC1を生成したのと同様にコード化すると共に、カラーバーコードC1を解析する。そして、文書DM1のコード化により取得したデータ値と、カラーバーコードC1を解析することにより取得したデータ値とを比較し、差分の検出を行う。両者のデータ値の間に差分が検出されない場合は、少なくともカラーバーコードC1が印刷用紙Pに印刷されてから差分の検出を行うまでの間、文書DM1が変更されていないと結論づけることができる。つまり、上記の例においてカラーバーコードC1は文書DM1が作成された際に文書DM1をコード化して生成されたのであり、作成者により作成されたときの文書DM1に対応するものである。そして、画像読取装置1により文書DM1をコード化して取得されたデータ値は、画像読取装置1による読み取り時の文書DM1に対応するものである。したがって、画像読取装置1によりカラーバーコードC1を解析して取得されたデータ値と文書DM1をコード化して取得されたデータ値との間に差分が検出されないということは、カラーバーコードC1が生成されたときの文書DM1と画像読取装置1による読み取り時の文書DM1とが同一であると言えるのである。他方、差分が検出された場合、カラーバーコードC1が生成されたときの文書DM1と画像読取装置1により読み取られたときの文書DM1とは同じではないということになる。上記の例でいうと文書DM1の作成者がカラーバーコードC1を生成して印刷用紙Pに印刷してから取得者が取得した文書DM1を画像読取装置1により読み取るまでの間に、文書DM1が変更されたということが言えるのである。このような場合、画像処理装置1は、文書DM1における変更箇所を表示パネル17に表示することにより、取得者(ユーザー)に対して文書DM1が変更されたことを報知する。
(First embodiment)
FIG. 1 is a diagram illustrating a configuration example of an image reading apparatus 1 according to the present embodiment. In the present embodiment, the color barcode C1 is generated by encoding the document DM1 displayed on the printing paper P, and is displayed on the printing paper P together with the document DM1. The reason why the document DM1 and the color barcode C1 generated by encoding the document DM1 are displayed on the same printing paper P is changed when the document DM1 is changed. This is to detect the location. That is, for example, the document DM1 is generated and the document DM1 is encoded to generate a color barcode C1, and after the document DM1 and the color barcode C1 are printed on the same printing paper P, the document DM1 and the document DM1 When the printing paper P on which the color barcode C1 is displayed is delivered to a third party and passes through a plurality of third parties, the document DM1 may be falsified by the third party during the distribution. Therefore, when the image reading apparatus 1 detects a reading instruction from the user, the image reading apparatus 1 reads the image including the document DM1 and the color barcode C1 displayed on the printing paper P, and thus generates the color barcode C1 for the document DM1. And the color barcode C1 is analyzed. Then, the data value acquired by encoding the document DM1 is compared with the data value acquired by analyzing the color barcode C1, and the difference is detected. If no difference is detected between the two data values, it can be concluded that the document DM1 has not been changed at least after the color barcode C1 is printed on the printing paper P until the difference is detected. That is, in the above example, the color barcode C1 is generated by encoding the document DM1 when the document DM1 is created, and corresponds to the document DM1 created by the creator. The data value obtained by encoding the document DM1 by the image reading device 1 corresponds to the document DM1 when being read by the image reading device 1. Therefore, the fact that no difference is detected between the data value obtained by analyzing the color barcode C1 by the image reading apparatus 1 and the data value obtained by encoding the document DM1, the color barcode C1 is generated. It can be said that the document DM1 when read and the document DM1 read by the image reading device 1 are the same. On the other hand, when the difference is detected, it means that the document DM1 when the color barcode C1 is generated and the document DM1 when read by the image reading device 1 are not the same. In the above example, the document DM1 is created between the time when the creator of the document DM1 generates the color barcode C1 and prints it on the printing paper P until the document DM1 acquired by the acquirer is read by the image reading device 1. It can be said that it has changed. In such a case, the image processing apparatus 1 notifies the acquirer (user) that the document DM1 has been changed by displaying the changed part in the document DM1 on the display panel 17.

なお、本実施形態では上記のように文書DM1が変更されたか否かを判定する場合について説明するが、本発明はこのような場合に限定されるものではない。すなわち、カラーバーコードC1は文書DM1に対応するものである必要はなく、また、画像読取装置1は文書DM1を読み取ってコード化したり、カラーバーコードC1のデータ値と文書DM1をコード化して生成したデータ値の差分を検出することも必要ではない。例えば着色された梱包材表面に内容物その他の情報をコード化したカラーバーコードC1が表示されている場合に、カラーバーコードC1を解析してコード化された情報を読み取るなど、要するにカラー印刷媒体に表示されるカラーバーコードC1を解読し、当該カラーバーコードC1からデータ値を正確に読み取り可能な画像読取装置1であればよいのである。   In the present embodiment, the case where it is determined whether or not the document DM1 has been changed will be described. However, the present invention is not limited to such a case. That is, the color barcode C1 does not have to correspond to the document DM1, and the image reading apparatus 1 reads and codes the document DM1, or generates the data value of the color barcode C1 and the document DM1 by coding. It is not necessary to detect the difference between the measured data values. For example, when a color barcode C1 in which contents or other information is coded is displayed on the surface of the colored packing material, the color printing medium is basically analyzed by reading the coded information by analyzing the color barcode C1. Any image reading apparatus 1 that can decode the color bar code C1 displayed on the screen and accurately read the data value from the color bar code C1 may be used.

図2は、画像読取装置1のハードウェア構成及び機能構成の一例を示すブロック図である。画像読取装置1において図示しない所定のプログラムを実行することにより、CPUが制御部10として機能する。また、画像読取装置1は、印刷用紙Pに表示されたカラーバーコードC1を含む画像を読み取るスキャナ部16と、プログラム等を記憶する記憶部12とを備える。スキャナ部16はユーザーの読み取り指示を検知すると、印刷用紙Pを読み取ることにより、当該印刷用紙Pに表示される文書DM1及びカラーバーコードC1を含むカラービットマップ画像を生成する。なお、印刷用紙PにおけるカラーバーコードC1の表示位置は文書DM1の表示位置と異なる位置であればよく、例えば印刷用紙Pにおける文書DM1が表示される面の反対面に表示されてもよい。このような場合、スキャナ部16は文書DM1を含むカラービットマップ画像とは別に、カラーバーコードC1を含むカラービットマップ画像を生成してもよい。   FIG. 2 is a block diagram illustrating an example of a hardware configuration and a functional configuration of the image reading apparatus 1. The CPU functions as the control unit 10 by executing a predetermined program (not shown) in the image reading apparatus 1. Further, the image reading apparatus 1 includes a scanner unit 16 that reads an image including the color barcode C1 displayed on the printing paper P, and a storage unit 12 that stores a program and the like. When the scanner unit 16 detects a reading instruction from the user, the scanner unit 16 reads the printing paper P to generate a color bitmap image including the document DM1 and the color barcode C1 displayed on the printing paper P. The display position of the color barcode C1 on the printing paper P may be a position different from the display position of the document DM1, and may be displayed on the opposite side of the surface on which the document DM1 is displayed, for example. In such a case, the scanner unit 16 may generate a color bitmap image including the color barcode C1 separately from the color bitmap image including the document DM1.

制御部10はさらに、スキャナ部16により生成されたカラービットマップ画像情報(以下、「画像情報」という)の入力を受け付ける入力部20と、入力部20への画像情報の入力が受け付けられたことに応じて画像情報からカラーバーコードC1を検出するカラーバーコード検出部24と、カラーバーコード検出部24により検出されたカラーバーコードC1を解析して印刷用紙Pに表示される色を特定する特定部21と、特定部21により特定された色に基づきカラーバーコードC1を解析するコード解析部22とを備える。   The control unit 10 further receives an input unit 20 that receives input of color bitmap image information (hereinafter referred to as “image information”) generated by the scanner unit 16, and has received input of image information to the input unit 20. The color barcode detection unit 24 that detects the color barcode C1 from the image information in accordance with the color information, and the color barcode C1 detected by the color barcode detection unit 24 is analyzed to identify the color displayed on the printing paper P. The identification unit 21 and a code analysis unit 22 that analyzes the color barcode C1 based on the color identified by the identification unit 21 are provided.

入力部20がスキャナ部16により生成された画像情報の入力を受け付けると、カラーバーコード検出部24は当該画像情報から、カラーバーコードC1を検出する。図3はカラーバーコードC1の構成の一例を示す拡大図である。カラーバーコードC1は、カラーバーコードC1の位置、配列方向やカラーバーコードC1を構成するブロックの大きさ等を規定する位置決め用シンボルC10と、カラーバーコードC1が印刷された色を定義する指標C15と、指標C15で定義された色により着色されたデータブロックCBとを備える。データブロックCBには複数色で着色された多数のブロックが含まれる。このデータブロックCBは、個々のブロックの色によって、文書DM1に基づいてコード化されたデータを表現するものであり、カラーバーコードC1の解読対象となる実態データ部分に相当する。カラーバーコード検出部24は、まずカラーバーコードC1を含む画像から位置決め用シンボルC10を検出し、画像情報の中からカラーバーコードC1を検出する。   When the input unit 20 receives the input of the image information generated by the scanner unit 16, the color barcode detection unit 24 detects the color barcode C1 from the image information. FIG. 3 is an enlarged view showing an example of the configuration of the color barcode C1. The color barcode C1 includes a positioning symbol C10 that defines the position, arrangement direction, size of the blocks constituting the color barcode C1, and the like, and an index that defines the color on which the color barcode C1 is printed. C15 and a data block CB colored by the color defined by the index C15. The data block CB includes a large number of blocks colored with a plurality of colors. The data block CB represents data coded based on the document DM1 by the color of each block, and corresponds to the actual data portion to be decoded by the color barcode C1. The color barcode detection unit 24 first detects the positioning symbol C10 from the image including the color barcode C1, and detects the color barcode C1 from the image information.

特定部21は、スキャナ部により読み取られたカラーバーコードC1を含む画像を解析して印刷用紙PにおいてカラーバーコードC1のデータブロックCBに含まれる各ブロックにおいて表示された色(以下、「表示色」という)を特定する処理部である。カラーバーコード検出部24によりカラーバーコードC1が検出されると、特定部21は、例えばカラーバーコードC1を含む画像を解析してRGB値を特定することによりカラーバーコードC1の表示色を特定する。カラーバーコードC1が表示される印刷用紙Pが白色である場合、カラーバーコードC1を印刷するため印刷用紙Pに塗布された塗料の色に基づき、印刷用紙PにカラーバーコードC1が表示される。他方、印刷用紙Pが白色以外の色により着色されている場合、カラーバーコードC1を印刷する際に印刷用紙Pに塗布された塗料の色と印刷用紙Pの色とが混色することにより、カラーバーコードC1は塗料の色と異なる色で表示されることがある。このような場合に、使用された塗料の色に基づきカラーバーコードC1を解読しようとすると解読エラーが生じる。そこで、特定部21により表示色を特定し、この表示色に基づきカラーバーコードC1を解読することにより解読エラーを生じることなく正確にカラーバーコードC1を解読可能なのである。   The specifying unit 21 analyzes the image including the color barcode C1 read by the scanner unit and displays the color (hereinafter, “display color”) displayed on each block included in the data block CB of the color barcode C1 on the printing paper P. ”). When the color barcode C1 is detected by the color barcode detection unit 24, the specifying unit 21 specifies the display color of the color barcode C1 by analyzing an image including the color barcode C1 and specifying RGB values, for example. To do. When the printing paper P on which the color barcode C1 is displayed is white, the color barcode C1 is displayed on the printing paper P based on the color of the paint applied to the printing paper P for printing the color barcode C1. . On the other hand, when the printing paper P is colored with a color other than white, the color of the paint applied to the printing paper P and the color of the printing paper P when the color barcode C1 is printed are mixed, so that the color The barcode C1 may be displayed in a color different from the color of the paint. In such a case, if an attempt is made to decode the color barcode C1 based on the color of the paint used, a decoding error occurs. Therefore, by specifying the display color by the specifying unit 21 and decoding the color barcode C1 based on the display color, the color barcode C1 can be accurately decoded without causing a decoding error.

特定部21は、さらに印刷用紙P1に表示されたカラーバーコードC1に含まれるカラーバーコードC1が印刷された色を定義する指標C15を検知する指標検知部38を備える。指標検知部38はカラーバーコードC1の所定位置に配置される指標C15を検知する。指標C15はカラーバーコードC1の予め規定された位置に配置されてもよく、また、指標C15の位置、範囲を特定するためのブロックを備えてもよい。特定部21は、指標検知部38が検知した指標C15を解析し、カラーバーコードC1として印刷された色が印刷用紙Pにおいて表示されている表示色を特定する。例えば指標C15が図3に示すように着色されたブロックにより表示される場合、特定部21は、指標C15に含まれるブロックの表示色を特定する。   The specifying unit 21 further includes an index detection unit 38 that detects an index C15 that defines a color printed with the color barcode C1 included in the color barcode C1 displayed on the printing paper P1. The index detection unit 38 detects an index C15 arranged at a predetermined position of the color barcode C1. The index C15 may be arranged at a predetermined position of the color barcode C1, and may include a block for specifying the position and range of the index C15. The specifying unit 21 analyzes the index C15 detected by the index detecting unit 38, and specifies the display color in which the color printed as the color barcode C1 is displayed on the printing paper P. For example, when the index C15 is displayed as a colored block as shown in FIG. 3, the specifying unit 21 specifies the display color of the block included in the index C15.

また、特定部21は、位置決め用シンボルC10に基づいてカラーバーコードC1のデータブロックCBの配列方向を特定し、また、位置決め用シンボルC10又は指標C15に基づきデータブロックCBを構成する各ブロック間の間隔(ピッチ)を特定してもよい。   The specifying unit 21 specifies the arrangement direction of the data block CB of the color barcode C1 based on the positioning symbol C10, and between the blocks constituting the data block CB based on the positioning symbol C10 or the index C15. The interval (pitch) may be specified.

コード解析部22は、特定部21により特定された色に基づきカラーバーコードC1を解析する処理部である。特定部21が図3の指標C15を解析して印刷用紙Pにおいて表示されるカラーバーコードC1の色を特定すると、コード解析部22は、特定された色に基づき、データブロックCBを構成する各ブロックの色を判別してコード化処理を行う。コード解析部22は、特定部21により特定された配列方向及びピッチに基づいてデータブロックCBの各ブロックを解読する順序を決定し、決定した順序に従いデータブロックCBの各ブロックの解読を行う。   The code analyzing unit 22 is a processing unit that analyzes the color barcode C1 based on the color specified by the specifying unit 21. When the specifying unit 21 analyzes the index C15 of FIG. 3 and specifies the color of the color barcode C1 displayed on the printing paper P, the code analyzing unit 22 configures each data block CB based on the specified color. The block color is discriminated and the encoding process is performed. The code analysis unit 22 determines the order of decoding each block of the data block CB based on the arrangement direction and the pitch specified by the specifying unit 21, and decodes each block of the data block CB according to the determined order.

まずコード解析部22は、解読順序に従い各ブロックの色の特定を行う。具体的には、決定した解読順序に従って最初に解読するブロックの色を抽出する。ブロックの色は例えばRGB値として抽出される。次にこのブロックの色が特定部21により特定された表示色と同一か否かを判定する。同一か否かの判定は、両者のRGB値を比較するなどにより行われる。判定の結果、ブロックの色が表示色のいずれかと同一であると判定した場合には、当該ブロックの色を表示色に特定する。なお、汚損や色褪せ等により印刷用紙Pの特定の箇所のみが異なる色である場合があり得る。そうすると、そのような特定の箇所上に印刷されたブロックは、指標の色と同一とならない場合があり得る。そこで、コード解析部22は、カラーバーコードC1を構成する各ブロックの色と特定部21により特定された表示色との差が所定値以下である場合に、当該ブロックの色を表示色と同じ色としてカラーバーコードC1を解析する。各ブロックの色が表示色と同一でないと判定した場合に、コード解析部22は、表示色と当該ブロックの色のRGB値の差が所定値以下であれば当該ブロックの色を表示色と同色と特定する。例えば図4に示すように特定部21により特定された表示色が色CB1であって、データブロックCBを構成するブロックの色が色CB1と同一ではない色CB2、CB3又はCB4のいずれかである場合、色CB1とRGB値の差が所定値以下である色CB2、色CB3及び色CB4はいずれも色CB1として特定される。これにより、印刷用紙Pの一部が汚損や色褪せ等によりデータブロックCBを構成するブロックの一部が他の部分と異なる色で表示されている場合にも、データブロックCBを構成するブロックの色を指標C15に含まれるブロックの表示色と同じと判別することができ、カラーバーコードC1を解析することが可能となる。   First, the code analysis unit 22 specifies the color of each block according to the decoding order. Specifically, the color of the block to be decoded first is extracted according to the determined decoding order. The color of the block is extracted as an RGB value, for example. Next, it is determined whether or not the color of this block is the same as the display color specified by the specifying unit 21. Whether or not they are the same is determined by comparing the RGB values of both. As a result of the determination, when it is determined that the color of the block is the same as one of the display colors, the color of the block is specified as the display color. Note that there may be a case where only a specific portion of the printing paper P has a different color due to stains or fading. Then, the block printed on such a specific location may not be the same as the color of the index. Therefore, when the difference between the color of each block constituting the color barcode C1 and the display color specified by the specifying unit 21 is equal to or less than a predetermined value, the code analyzing unit 22 sets the color of the block to the same as the display color. The color barcode C1 is analyzed as a color. If it is determined that the color of each block is not the same as the display color, the code analysis unit 22 sets the color of the block to the same color as the display color if the difference between the RGB values of the display color and the color of the block is equal to or less than a predetermined value. Is identified. For example, as shown in FIG. 4, the display color specified by the specifying unit 21 is the color CB1, and the color of the block constituting the data block CB is any one of the colors CB2, CB3, or CB4 that is not the same as the color CB1. In this case, the color CB2, the color CB3, and the color CB4 in which the difference between the color CB1 and the RGB value is equal to or smaller than a predetermined value are all specified as the color CB1. Thereby, even when a part of the printing paper P is displayed in a color different from the other parts due to a stain or fading, the color of the block constituting the data block CB is displayed. Can be determined to be the same as the display color of the block included in the index C15, and the color barcode C1 can be analyzed.

制御部10は、特定の印刷用紙Pと対応付けられた模様に関する模様情報40を取得する模様情報取得部30を備えてもよい。画像読取装置1は、模様を有する特定の印刷用紙Pをスキャンなどにより予め登録することが可能であり、登録した特定の印刷用紙Pの模様に関する模様情報を記憶部12に記憶することが可能である。図5(a)に示すように印刷用紙Pに模様D1が表示される場合、画像読取装置1は予め印刷用紙Pの模様D1を登録できる。そして、図5(b)のように模様D1を有する印刷用紙PにカラーバーコードC1が表示される場合、特定部21は、カラーバーコードC1から当該模様D1と対応付けられる印刷用紙Pを特定する用紙コードCP1を読み取って当該用紙コードCP1により特定される印刷用紙Pと対応付けられた模様情報40を参照し、模様情報40に応じてカラーバーコードC1を構成するブロックの位置毎にカラーバーコードC1の表示色を特定する。特定部21によりブロックの位置毎に表示色が特定されると、コード解析部22は、印刷用紙PにおいてカラーバーコードC1が表示される位置毎にカラーバーコードC1を解析する。   The control unit 10 may include a pattern information acquisition unit 30 that acquires pattern information 40 related to a pattern associated with a specific printing paper P. The image reading apparatus 1 can register a specific printing paper P having a pattern in advance by scanning or the like, and can store pattern information regarding the registered pattern of the specific printing paper P in the storage unit 12. is there. When the pattern D1 is displayed on the printing paper P as shown in FIG. 5A, the image reading apparatus 1 can register the pattern D1 on the printing paper P in advance. When the color barcode C1 is displayed on the printing paper P having the pattern D1 as shown in FIG. 5B, the specifying unit 21 specifies the printing paper P associated with the pattern D1 from the color barcode C1. The color code is read at each position of the block constituting the color barcode C1 according to the pattern information 40 by referring to the pattern information 40 associated with the printing paper P specified by the paper code CP1 The display color of the code C1 is specified. When the display color is specified for each block position by the specifying unit 21, the code analysis unit 22 analyzes the color barcode C1 for each position where the color barcode C1 is displayed on the printing paper P.

図6は模様D1を有する印刷用紙P上にカラーバーコードC1が表示される場合の一例を示す図である。この場合、模様D1の色と混色することによりカラーバーコードC1の色は模様D1の色の影響を受ける。カラーバーコードC1は模様D1と対応付けられる印刷用紙Pを特定する用紙コードCP1を備える。用紙コードCP1は、例えば模様D1の色による影響を受けない黒色(K)により表示される。そして、特定部21は、位置決め用シンボル10を検知してカラーバーコードC1を抽出すると、用紙コードCP1を読み取ることにより、模様情報取得部30に模様D1に関する模様情報40を読み出させる。用紙コードCP1をまず読み取って模様情報40を読み出させた後に、特定部21は、模様情報40を参照した上で模様D1に応じてカラーバーコードC1の指標C15の表示色を特定する。特定部21は、例えば模様情報40に基づき画像情報から模様D1を除去した上で指標C15の表示色の特定を行う。また、コード解析部22は、特定部21により模様D1を除去して特定された表示色に基づき、カラーバーコードC1のデータブロックCBを配列順序に従い解読する。用紙コードCP1を読み取って模様情報40を参照した上でブロック毎に色を特定することによって、表示色を的確に特定することが可能となる。   FIG. 6 is a diagram illustrating an example in which the color barcode C1 is displayed on the printing paper P having the pattern D1. In this case, the color of the color barcode C1 is affected by the color of the pattern D1 by being mixed with the color of the pattern D1. The color barcode C1 includes a paper code CP1 that specifies the printing paper P associated with the pattern D1. The paper code CP1 is displayed in black (K) that is not affected by the color of the pattern D1, for example. Then, when the specifying unit 21 detects the positioning symbol 10 and extracts the color barcode C1, the specifying unit 21 reads the paper code CP1, thereby causing the pattern information acquisition unit 30 to read the pattern information 40 regarding the pattern D1. After reading the paper code CP1 and reading the pattern information 40, the specifying unit 21 refers to the pattern information 40 and specifies the display color of the index C15 of the color barcode C1 according to the pattern D1. The specifying unit 21 specifies the display color of the index C15 after removing the pattern D1 from the image information based on the pattern information 40, for example. In addition, the code analyzing unit 22 decodes the data block CB of the color barcode C1 according to the arrangement order based on the display color specified by removing the pattern D1 by the specifying unit 21. By specifying the color for each block after reading the paper code CP1 and referring to the pattern information 40, the display color can be accurately specified.

制御部10はまた、文書DM1をコード化する情報生成部25と、情報生成部25によるコード化処理により生成された情報とコード解析部22がカラーバーコードC1を解析することにより取得された情報との差分を検出する差分検出部26と、差分検出部26により差分が検出された場合に、印刷用紙Pに表示される文書DM1が変更されたことを報知する報知部27とを有する。   The control unit 10 also includes an information generation unit 25 that encodes the document DM1, information generated by the encoding process by the information generation unit 25, and information acquired by the code analysis unit 22 analyzing the color barcode C1. And a notification unit 27 for notifying that the document DM1 displayed on the printing paper P has been changed when the difference is detected by the difference detection unit 26.

情報生成部25は、文書DM1に対応する部分の画像を読み取って、文書DM1に対応する情報を生成する処理部である。情報生成部25は、スキャナ部16により生成された画像情報からカラーバーコードC1に対応する部分を除去して文書DM1に対応する部分を特定し、当該部分をコード化する。情報生成部25は、文書DM1に対応する部分のビットマップ画像をエンコードすることにより、文書DM1に対応する情報(以下、「第2情報」という)を生成する。或いは、ビットマップ画像に基づきコード化するほかに、ビットマップ画像に対してOCR(Optical Character Recognition)処理を施した上でテキストデータを生成し、このテキストデータに基づきコード化してもよい。なお、印刷用紙Pが模様D1を有する場合、カラーバーコードC1の解析の場合と同様に模様情報40を記憶部12から読み出して参照し、模様D1を除去した上で文書DM1をコード化してもよい。   The information generation unit 25 is a processing unit that reads an image of a portion corresponding to the document DM1 and generates information corresponding to the document DM1. The information generation unit 25 removes the portion corresponding to the color barcode C1 from the image information generated by the scanner unit 16, identifies the portion corresponding to the document DM1, and encodes the portion. The information generation unit 25 generates information corresponding to the document DM1 (hereinafter referred to as “second information”) by encoding a bit map image corresponding to the document DM1. Alternatively, in addition to encoding based on a bitmap image, text data may be generated after performing OCR (Optical Character Recognition) processing on the bitmap image, and encoding may be performed based on the text data. If the printing paper P has the pattern D1, the pattern information 40 is read from the storage unit 12 and referenced as in the case of the analysis of the color barcode C1, and after the pattern D1 is removed, the document DM1 is encoded. Good.

差分検出部26は、情報生成部25により生成された第2情報と、コード解析部22によりカラーバーコードC1が解析され、これにより取得された情報(以下、「第1情報」という)との差分を検出する処理部である。本実施形態において、カラーバーコードC1は文書DM1をコード化することにより生成され印刷用紙Pに印刷されており、カラーバーコードC1を解析して取得される第1情報は、カラーバーコードC1の印刷時における文書DM1に対応するものである。他方、情報生成部25により生成された第2情報はこれとは異なり、画像読取装置1により読み取られた際の文書DM1に対応するものである。そうすると、第1情報と第2情報との間に差分が検出されない場合、カラーバーコードC1の印刷時における文書DM1と画像読取装置1により読み取られたときの文書DM1との間に変更箇所はなく、両者は同一であることが判明する。これに対して、第1情報と第2情報との間に差分が検出された場合、カラーバーコードC1の印刷時における文書DM1と画像読取装置1により読み取られたときの文書DM1との間に変更された箇所があり、両者は同一ではないことが判明する。差分検出部26により、文書DM1をコード化することによりカラーバーコードC1が生成され印刷用紙Pに印刷されてから当該印刷用紙Pが画像読取装置1により読み取られるまでの間に、文書DM1が変更されたか否かを判定可能となり、これによって文書DM1に対して改ざん等がなされたか否かを推認することが可能となるのである。   The difference detection unit 26 includes the second information generated by the information generation unit 25 and the information obtained by analyzing the color barcode C1 by the code analysis unit 22 (hereinafter referred to as “first information”). A processing unit for detecting a difference. In the present embodiment, the color barcode C1 is generated by encoding the document DM1 and printed on the printing paper P, and the first information obtained by analyzing the color barcode C1 is the color barcode C1. This corresponds to the document DM1 at the time of printing. On the other hand, the second information generated by the information generating unit 25 is different from the second information and corresponds to the document DM1 when read by the image reading apparatus 1. Then, if no difference is detected between the first information and the second information, there is no change between the document DM1 when the color barcode C1 is printed and the document DM1 when read by the image reading device 1. It turns out that both are the same. On the other hand, when a difference is detected between the first information and the second information, between the document DM1 when the color barcode C1 is printed and the document DM1 when read by the image reading device 1 There are changes, and it turns out that they are not the same. The document DM1 is changed between the time when the color barcode C1 is generated by encoding the document DM1 by the difference detection unit 26 and is printed on the printing paper P until the printing paper P is read by the image reading device 1. It is possible to determine whether or not the document DM1 has been tampered with.

報知部27は、差分検出部26により第1情報と第2情報との差分が検出された場合に、印刷用紙Pに表示される文書DM1が変更されたことを報知する処理部である。差分検出部26により差分が検出された場合、例えば図14に示すように、表示パネル17に文書画像G1を表示すると共に、差分検出部26により検出された差分に対応する文書画像G1における箇所を、例えば強調表示DM10によりハイライトする。これにより、文書DM1のいずれの箇所につき、カラーバーコードC1が印刷用紙Pに印刷されてから現時点までの間に変更されたのかがユーザーに対して明確に報知可能となる。   The notification unit 27 is a processing unit that notifies that the document DM1 displayed on the printing paper P has been changed when the difference between the first information and the second information is detected by the difference detection unit 26. When a difference is detected by the difference detection unit 26, for example, as shown in FIG. 14, the document image G1 is displayed on the display panel 17, and a location in the document image G1 corresponding to the difference detected by the difference detection unit 26 is displayed. For example, highlighting is performed by highlighting DM10. As a result, it is possible to clearly notify the user about which part of the document DM1 the color barcode C1 has been changed from when it was printed on the printing paper P to the present time.

制御部10は、さらに印刷用紙Pの色を検知する用紙色検知部31と、特定部21により特定された表示色と用紙色検知部31により検知された印刷用紙Pの色の濃度差を検出する濃度差検出部33と、特定部21によって特定された表示色のエラー判定を行うエラー判定部34とを備えてもよい。用紙色検知部31と濃度差検出部33とエラー判定部34は特定部21によって特定された表示色がエラーであるか否か判定(以下、「エラー判定」という)を行う場合に機能する処理部である。エラー判定を行うか否かはユーザーにより設定可能である。   The control unit 10 further detects a paper color detection unit 31 that detects the color of the printing paper P, and a difference in density between the display color specified by the specification unit 21 and the color of the printing paper P detected by the paper color detection unit 31. A density difference detection unit 33 that performs the error determination of the display color specified by the specifying unit 21 may be provided. The paper color detection unit 31, the density difference detection unit 33, and the error determination unit 34 function when determining whether or not the display color specified by the specifying unit 21 is an error (hereinafter referred to as "error determination"). Part. Whether or not to perform error determination can be set by the user.

本実施形態において、エラー判定は以下のような場合に特定部21により特定された表示色が誤りであるか否かを判定する。上述したとおりカラーバーコードC1を構成するデータブロックCBには、複数色で着色された多数のブロックが含まれるのが一般的である。しかし、データブロックCBを構成するブロックの一部が透明である場合もある。図7は、このような透明ブロックを備えるカラーバーコードC1の構成例を示す図である。このような場合、透明ブロックC20はデータがブランクとなるのではなく所定のデータ値に対応するものである。透明ブロックC20は、カラーバーコードC1が印刷用紙Pに印刷されると印刷用紙Pの色(下地部分の色)により表示される。さらに、指標C15に含まれるブロックC21の色と印刷用紙Pの色との濃度の差が所定値以下である場合に、ブロックC21と透明ブロックC20とが識別困難な事態が発生する。そうすると、コード解析部22が指標C15によって特定されたカラーブロックC1の表示色に基づいてデータブロックCBを構成する各ブロックを解読した場合に、透明ブロックC20と同じく印刷用紙Pの色により表示される透明ブロックであるにもかかわらずブロックC21と同じ色であると誤判別されたり、或いはブロックC21と同じ色を有するブロックであるにもかかわらず印刷用紙Pの色すなわち透明ブロックであると誤判別されたりする畏れがある。このような誤判別が生じるとカラーバーコードC1の解析により生成される第1情報が誤ったものとなり、その結果、差分検出部26が第1情報と第2情報との差分を誤って検出することがあり得るのである。そこで、このようなブロックの色の誤判別を回避するため、特定部21により特定された表示色と印刷用紙Pの色との濃度差が所定値以下の場合、画像処理装置1は、特定部21により特定された表示色が誤りであるか否かの判定をおこなってもよい。上記した用紙色検知部31と、濃度差検出部33と、エラー判定部34とは、画像処理装置1がエラー判定を行う場合に機能する。   In this embodiment, the error determination determines whether the display color specified by the specifying unit 21 is an error in the following cases. As described above, the data block CB constituting the color barcode C1 generally includes a large number of blocks colored with a plurality of colors. However, some of the blocks constituting the data block CB may be transparent. FIG. 7 is a diagram illustrating a configuration example of the color barcode C1 including such a transparent block. In such a case, the transparent block C20 corresponds to a predetermined data value rather than blank data. When the color barcode C1 is printed on the printing paper P, the transparent block C20 is displayed by the color of the printing paper P (the color of the background portion). Furthermore, when the difference in density between the color of the block C21 and the color of the printing paper P included in the index C15 is equal to or less than a predetermined value, a situation occurs in which it is difficult to identify the block C21 and the transparent block C20. Then, when the code analysis unit 22 decodes each block constituting the data block CB based on the display color of the color block C1 specified by the index C15, it is displayed in the color of the printing paper P as in the transparent block C20. Although it is a transparent block, it is erroneously determined to be the same color as the block C21, or it is erroneously determined to be the color of the printing paper P, that is, the transparent block, although it is a block having the same color as the block C21. There is a drowning. When such misidentification occurs, the first information generated by the analysis of the color barcode C1 becomes incorrect, and as a result, the difference detection unit 26 detects the difference between the first information and the second information by mistake. It can happen. Therefore, in order to avoid such erroneous determination of the color of the block, when the density difference between the display color specified by the specifying unit 21 and the color of the printing paper P is equal to or less than a predetermined value, the image processing apparatus 1 It may be determined whether or not the display color specified by 21 is an error. The paper color detection unit 31, the density difference detection unit 33, and the error determination unit 34 described above function when the image processing apparatus 1 performs error determination.

用紙色検知部31は、印刷用紙Pの色を検知する処理部である。用紙色検知部31は、例えばスキャナ部16により生成された画像情報からカラーバーコードC1及び文書DM1が表示される領域を検知し、これらを画像情報から除去して下地部分を抽出して下地部分の色を解析して印刷用紙Pの色を特定してもよい。或いは、特定部21により、カラーバーコードC1の配列や各ブロック間のピッチが特定される場合に、ピッチやカラーバーコードC1の外の下地部分を抽出して色を解析し、印刷用紙Pの色を特定してもよい。   The paper color detection unit 31 is a processing unit that detects the color of the printing paper P. For example, the paper color detection unit 31 detects an area in which the color barcode C1 and the document DM1 are displayed from the image information generated by the scanner unit 16, removes these from the image information, extracts the background portion, and extracts the background portion. The color of the printing paper P may be specified by analyzing the color of the printing paper P. Alternatively, when the specifying unit 21 specifies the arrangement of the color barcode C1 and the pitch between the blocks, the base portion outside the pitch and the color barcode C1 is extracted to analyze the color, and the printing paper P A color may be specified.

濃度差検出部33は、特定部21により指標C15に基づき特定された表示色の濃度と印刷用紙Pの色の濃度との差を検出する処理部である。濃度差検出部33は、例えば特定部21により指標C15に基づき特定された表示色のRGB値と印刷用紙Pの色のRGB値との差を算出することにより濃度差を検出する。指標C15に基づき特定された表示色と印刷用紙Pの色との濃度差が高くなるのに応じて表示色と印刷用紙Pの色が識別容易となるのに対し、両者の濃度差が低くなるのに応じて表示色と印刷用紙Pの色が識別困難となる。   The density difference detection unit 33 is a processing unit that detects a difference between the density of the display color specified by the specifying unit 21 based on the index C15 and the color density of the printing paper P. For example, the density difference detection unit 33 detects the density difference by calculating the difference between the RGB value of the display color specified by the specifying unit 21 based on the index C15 and the RGB value of the color of the printing paper P. As the density difference between the display color specified based on the index C15 and the color of the printing paper P increases, the color of the display color and the printing paper P can be easily identified, whereas the density difference between the two decreases. Accordingly, it becomes difficult to distinguish between the display color and the color of the printing paper P.

そして、濃度差検出部33により検出された表示色の濃度と印刷用紙Pの色の濃度との差が所定値以下である場合に、差分検出部26により所定箇所以上の差分が検出された場合、エラー判定部34は特定部21により特定された表示色が誤りであるとのエラー判定を行う。特定部21により特定された表示色と印刷用紙Pの色の濃度差が所定値以下の場合、コード解析部22がデータブロックCBのブロックの色を誤って判別する畏れがあるからである。他方、濃度差が所定値以上である場合、エラーはないと判定する。   When the difference between the display color density detected by the density difference detection unit 33 and the color density of the printing paper P is equal to or less than a predetermined value, the difference detection unit 26 detects a difference greater than or equal to a predetermined location. The error determination unit 34 performs error determination that the display color specified by the specifying unit 21 is incorrect. This is because if the density difference between the display color specified by the specifying unit 21 and the color of the printing paper P is equal to or smaller than a predetermined value, the code analyzing unit 22 may erroneously determine the block color of the data block CB. On the other hand, if the density difference is greater than or equal to a predetermined value, it is determined that there is no error.

濃度差が所定値以下であっても直ちにエラーが生じたと判定するのではなく、特定部21により特定された表示色に基づいてデータブロックCBを解読し、差分検出部26による第1情報と第2情報との差分検出の結果、所定箇所以上の差分が検知された場合に、表示色の特定につきエラーが生じたと判定してもよいし、或いは濃度差が所定値以下である場合に、特定部21により特定された表示色にエラーがあると判定してもよい。すなわち、文書DM1に対応するカラーバーコードC1が文書DM1と共に同一の印刷用紙Pに表示されている場合、印刷用紙Pに表示される文書DM1は変更されることを予定していない文書であるのが一般的である。にもかかわらず、差分検出部26により所定箇所以上の差分が検出されたという場合、文書DM1に対して多数の変更が行われた可能性も否定できないものの、表示色同士で近い色が存在したため、データブロックCBの色の検出に誤りが生じ、正確にカラーバーコードC1が解析されなかった可能性も十分にある。そこで、検出された差分が所定箇所以上である場合、そもそも表示色の特定においてエラーがあったものと判定するものである。   Even if the density difference is equal to or less than the predetermined value, it is not determined that an error has occurred immediately, but the data block CB is decoded based on the display color specified by the specifying unit 21 and the first information and the first information by the difference detecting unit 26 are decoded. As a result of detecting the difference between the two information, if a difference of a predetermined location or more is detected, it may be determined that an error has occurred in specifying the display color, or if the density difference is equal to or less than the predetermined value You may determine with the display color specified by the part 21 having an error. That is, when the color barcode C1 corresponding to the document DM1 is displayed on the same printing paper P together with the document DM1, the document DM1 displayed on the printing paper P is a document that is not scheduled to be changed. Is common. Nevertheless, if the difference detection unit 26 detects a difference of a predetermined location or more, there is a possibility that many changes have been made to the document DM1, but there are colors close to the display colors. There is also a possibility that an error has occurred in the color detection of the data block CB, and the color barcode C1 has not been correctly analyzed. Therefore, if the detected difference is greater than or equal to the predetermined location, it is determined that there was an error in specifying the display color in the first place.

エラー判定部34により表示色の特定につきエラーがあったものと判定された場合、報知部27は、表示色の特定につきエラー判定結果を報知する。例えば、報知部27は、表示パネル17にエラー判定結果を表示することにより報知し、或いは音声によりユーザーに報知する。   When the error determination unit 34 determines that there is an error for specifying the display color, the notification unit 27 notifies the error determination result for specifying the display color. For example, the notification unit 27 notifies the user by displaying the error determination result on the display panel 17 or notifies the user by voice.

次に、本実施形態における画像読取装置1において行われる処理手順について説明する。図8は画像読取装置1により行われる主たる処理手順の一例を示すフローチャートである。画像読取装置1は、操作パネル15をユーザーが操作することによる読み取り指示を検知すると(ステップS1)、印刷用紙P上に印刷された文書DM1及びカラーバーコードC1を含む画像を読み取り(ステップS2)、読取画像情報を生成する(ステップS3)。次に、読取画像情報を解析して印刷用紙PにおけるカラーバーコードC1の表示色を特定する表示色特定処理を行う(ステップS4)。表示色特定処理の詳細な処理手順については後述する。表示色特定処理(ステップS4)を行った後に、表示色に基づいてカラーバーコードC1のデータブロックCBを解析するコード解析処理を行う(ステップS5)。コード解析処理(ステップS5)の詳細な処理手順については後述する。コード解析処理を行うと、カラーバーコードC1の読み取り済みか否かを判定し(ステップS6)、カラーバーコードC1の読み取り済みであると判定された場合(ステップS6でYES)、読取画像情報の文書DM1を読み取ってコード化する文書読取処理を行う(ステップS7)。文書読取処理(ステップS7)の詳細な処理手順については後述する。文書読取処理(ステップS7)を行った後に、文書DM1をコード化したことにより生成される第2情報と、コード解析処理(ステップS5)によりカラーバーコードC1が解析されて生成された第1情報との差分を検出する差分検出処理を行って(ステップS8)処理を終了する。ステップS6においてカラーバーコードC1が読み取り済みでないと判定された場合(ステップS6でNO)、例えばカラーバーコードC1のデータブロックCBの解析処理においてエラー等が生じたことによりカラーバーコードC1の解読が正常に完了しなかったような場合に、ステップS7及びS8をスキップし、カラーバーコードC1の読み取りにおいてエラーが生じたことを報知して(ステップS9)処理を終了する。   Next, a processing procedure performed in the image reading apparatus 1 in the present embodiment will be described. FIG. 8 is a flowchart illustrating an example of a main processing procedure performed by the image reading apparatus 1. When the image reading device 1 detects a reading instruction when the user operates the operation panel 15 (step S1), the image reading device 1 reads an image including the document DM1 and the color barcode C1 printed on the printing paper P (step S2). Then, read image information is generated (step S3). Next, display color specifying processing for analyzing the read image information and specifying the display color of the color barcode C1 on the printing paper P is performed (step S4). A detailed processing procedure of the display color specifying process will be described later. After performing the display color specifying process (step S4), a code analysis process for analyzing the data block CB of the color barcode C1 based on the display color is performed (step S5). A detailed processing procedure of the code analysis processing (step S5) will be described later. When the code analysis process is performed, it is determined whether or not the color barcode C1 has been read (step S6). If it is determined that the color barcode C1 has been read (YES in step S6), the read image information is read. A document reading process for reading and encoding the document DM1 is performed (step S7). A detailed processing procedure of the document reading process (step S7) will be described later. Second information generated by encoding the document DM1 after the document reading process (step S7), and first information generated by analyzing the color barcode C1 by the code analysis process (step S5). A difference detection process for detecting the difference between the two is performed (step S8), and the process is terminated. If it is determined in step S6 that the color barcode C1 has not been read (NO in step S6), for example, an error or the like has occurred in the analysis processing of the data block CB of the color barcode C1, and the color barcode C1 is decoded. If it is not completed normally, steps S7 and S8 are skipped, notification that an error has occurred in reading the color barcode C1 (step S9), and the process is terminated.

図9は、表示色特定処理(図8のステップS4)の詳細な処理手順の一例を示すフローチャートである。表示色特定処理において、画像読取装置1は例えばカラーバーコードC1の位置決め用シンボルC10を検出して読取画像情報からカラーバーコードC1を抽出する(ステップS21)。カラーバーコードC1を抽出すると、カラーバーコードC1に印刷用紙Pを識別するための用紙コードCP1が検出されたか否かを判定し(ステップS22)、用紙コードCP1が検出された場合には(ステップS22でYES)、用紙コードCP1を読み出して(ステップS23)用紙コードCP1から模様情報40を含む印刷用紙Pに関する用紙情報を読み出す(ステップS24)。次に、読み出した用紙情報を参照し、当該印刷用紙Pに模様があるか否かを判定する(ステップS25)。模様があると判定された場合(ステップS25でYES)、カラーバーコードC1から模様を除去する模様処理(ステップS26)を行う。模様処理の詳細な処理手順については後述する。他方、用紙情報において当該印刷用紙Pの模様がないと判定された場合(ステップS25でNO)、模様処理(ステップS26)をスキップする。なお、ステップS22において抽出したカラーバーコードC1に特定の印刷用紙Pを特定する用紙コードCP1が検出されなかった場合(ステップS22でNO)、ステップS23乃至S26の処理をスキップする。   FIG. 9 is a flowchart showing an example of a detailed processing procedure of the display color specifying process (step S4 in FIG. 8). In the display color specifying process, for example, the image reading apparatus 1 detects the positioning symbol C10 of the color barcode C1 and extracts the color barcode C1 from the read image information (step S21). When the color barcode C1 is extracted, it is determined whether or not the paper code CP1 for identifying the printing paper P is detected in the color barcode C1 (step S22). If the paper code CP1 is detected (step S22). The paper code CP1 is read (YES in S22) (step S23), and the paper information regarding the printing paper P including the pattern information 40 is read from the paper code CP1 (step S24). Next, referring to the read paper information, it is determined whether or not there is a pattern on the print paper P (step S25). If it is determined that there is a pattern (YES in step S25), a pattern process (step S26) for removing the pattern from the color barcode C1 is performed. A detailed processing procedure of the pattern processing will be described later. On the other hand, when it is determined in the paper information that there is no pattern on the printing paper P (NO in step S25), the pattern processing (step S26) is skipped. Note that if the paper code CP1 that specifies the specific printing paper P is not detected in the color barcode C1 extracted in step S22 (NO in step S22), the processing in steps S23 to S26 is skipped.

次に、カラーバーコードC1から指標C15を検出し(ステップS27)、検出した指標C15を読み取る(ステップS28)。指標C15を読み取ることにより、指標C15において定義されているカラーバーコードC1の色を特定する(ステップS29)と共に、データブロックCBを解析する際の配列方向を特定し(ステップS30)、また、データブロックCBにおける各ブロック間のピッチを検出する(ステップS31)。これらの処理により、指標C15に基づき表示色を特定し、また、データブロックCBを解析する順序を規定する配列方向及び各ブロック間のピッチを特定する。その結果、画像読取装置1は、データブロックCBを構成する各ブロックについて配列方向に従い最初に読み取るブロックの色を読み取り、最初のブロックの色を読み取った後、上記処理により特定したピッチを空けて配置される次のブロックの色を読み取り、データブロックCBを構成する全てのブロックについて読み取り可能となるのである。仮に、カラーバーコードC1を印刷用紙Pに印刷する際に塗布された塗料の色が印刷用紙Pの色と混色することにより、カラーバーコードC1が使用された塗料の色と相違することになったとしても、上記の表示色特定処理により表示色を特定することにより、カラーバーコードC1におけるデータブロックCBを解読可能となるのである。   Next, the index C15 is detected from the color barcode C1 (step S27), and the detected index C15 is read (step S28). By reading the index C15, the color of the color barcode C1 defined in the index C15 is specified (step S29), the arrangement direction for analyzing the data block CB is specified (step S30), and the data The pitch between each block in the block CB is detected (step S31). Through these processes, the display color is specified based on the index C15, and the arrangement direction that defines the order in which the data blocks CB are analyzed and the pitch between the blocks are specified. As a result, the image reading device 1 reads the color of the first block to be read according to the arrangement direction for each block constituting the data block CB, and after reading the color of the first block, arranges with the pitch specified by the above processing. The color of the next block to be read can be read, and all the blocks constituting the data block CB can be read. If the color of the paint applied when the color barcode C1 is printed on the printing paper P is mixed with the color of the printing paper P, the color of the paint using the color barcode C1 is different. Even so, the data block CB in the color barcode C1 can be decoded by specifying the display color by the display color specifying process.

次に、指標C15を読み取ることにより特定した表示色がエラーであるか否かを検出するエラー判定を行う設定か否かを判定する(ステップS32)。エラー判定を行うか否かは、ユーザーにより設定可能である。エラー判定を行う設定ではないと判定された場合(ステップS32でNO)、模様処理(ステップS26)を行ったか否かを判定する(ステップS33)。ここで、エラー判定を行う設定である場合(ステップS32でYES)、又はエラー判定を行う設定でない場合であっても模様処理を行った場合(ステップS33でYES)には、ステップS34以下により表示色の特定についてエラーを検出するエラー判定を行う。ここで模様処理(ステップS26)を行った場合にエラー判定を行うのは以下の理由による。すなわち、印刷用紙Pの模様D1の色がカラーバーコードC1において使用される色のいずれかと同じ色であった場合、模様処理により模様D1をカラーバーコードC1から除去する際にカラーバーコードC1において使用される模様D1と同色の色も除去されてしまう。そうすると、指標C15の色が模様D1と同色であった場合、指標C15の色も除去されるため表示色を正しく特定できないことになる。そこで、模様処理を行った場合には、エラー判定を行う設定でなかったとしてもエラー判定を行い、表示色の特定につきエラーがあるか否かを判定する方がベターなのである。   Next, it is determined whether or not the error determination for detecting whether or not the display color specified by reading the index C15 is an error is set (step S32). Whether or not to perform error determination can be set by the user. When it is determined that the error determination is not set (NO in step S32), it is determined whether or not the pattern processing (step S26) has been performed (step S33). Here, if it is set to perform error determination (YES in step S32), or if it is not set to perform error determination, pattern processing is performed (YES in step S33), the display is performed from step S34 onward. An error determination is performed to detect an error in specifying the color. Here, the error determination is performed when the pattern processing (step S26) is performed for the following reason. That is, when the color of the pattern D1 on the printing paper P is the same color as any of the colors used in the color barcode C1, the pattern D1 is removed from the color barcode C1 by pattern processing. The same color as the pattern D1 used is also removed. Then, when the color of the index C15 is the same color as the pattern D1, the color of the index C15 is also removed, so that the display color cannot be correctly specified. Therefore, when pattern processing is performed, it is better to perform error determination even if the error determination is not set, and to determine whether or not there is an error in specifying the display color.

エラー判定を行う場合、画像読取装置1は指標C15の色の濃度を特定し(ステップS34)、次に印刷用紙Pの色の濃度を特定する(ステップS35)。そして、指標C15の色の濃度と印刷用紙Pの色の濃度との差(n1)を算出し(ステップS36)、n1が所定値以下であるか否かを判定する(ステップS37)。n1が所定値以下であると判定した場合(ステップS37でYES)には、後述するように差分検出処理(図8のステップS8)でエラー判定を行うよう判定フラグをONに設定して(ステップS38)表示色特定処理を終了する。なお、このような処理とは異なり、n1が所定値以下であると判定した場合(ステップS37でYES)、ただちに表示色の特定につきエラーがあると判定してもよい。他方、n1が所定値以下ではないと判定した場合(ステップS37でNO)、表示色と印刷用紙Pの色とは識別困難であるとは言えないとして表示色の特定につきエラーはないと判定し、ステップS38をスキップして表示色特定処理を終了する。   When performing error determination, the image reading apparatus 1 specifies the color density of the index C15 (step S34), and then specifies the color density of the printing paper P (step S35). Then, a difference (n1) between the color density of the index C15 and the color density of the printing paper P is calculated (step S36), and it is determined whether n1 is equal to or less than a predetermined value (step S37). If it is determined that n1 is equal to or smaller than the predetermined value (YES in step S37), the determination flag is set to ON to perform error determination in the difference detection process (step S8 in FIG. 8) as described later (step S37). S38) The display color specifying process is terminated. Unlike such processing, if it is determined that n1 is equal to or smaller than the predetermined value (YES in step S37), it may be determined immediately that there is an error in specifying the display color. On the other hand, if it is determined that n1 is not less than the predetermined value (NO in step S37), it is determined that there is no error in specifying the display color because it cannot be said that the display color and the color of the printing paper P are difficult to distinguish. Step S38 is skipped, and the display color specifying process is terminated.

図10は、模様処理(図9のステップS26)の詳細な処理手順の一例を示すフローチャートである。画像読取装置1はまず、印刷用紙PにおけるカラーバーコードC1が表示される位置を検出する(ステップS41)。印刷用紙PにおけるカラーバーコードC1の表示位置を検出すると、次にカラーバーコードC1と重なる位置に表示される模様を特定し(ステップS42)、カラーバーコードC1と重なる模様を除去して模様処理を終了する(ステップS43)。模様処理を行うことにより、カラーバーコードC1から模様を除去した上で表示色の特定を行うことが可能となる。   FIG. 10 is a flowchart illustrating an example of a detailed processing procedure of the pattern processing (step S26 in FIG. 9). First, the image reading apparatus 1 detects a position where the color barcode C1 is displayed on the printing paper P (step S41). When the display position of the color barcode C1 on the printing paper P is detected, the pattern displayed next at the position overlapping the color barcode C1 is specified (step S42), and the pattern overlapping the color barcode C1 is removed to perform pattern processing. Is finished (step S43). By performing the pattern processing, it is possible to specify the display color after removing the pattern from the color barcode C1.

図11は、コード解析処理(図8のステップS5)の詳細な処理手順の一例を示すフローチャートである。画像読取装置1は表示色特定処理(図8のステップS4)で指標C15によりカラーバーコードC1の表示色、配列方向及び各ブロック間のピッチを特定している。そこで、配列に基づいてデータブロックCBを構成する各ブロックの解読順序を決定する(ステップS51)。次に、決定した解読順序に基づき、最初に解読するブロックを特定して当該最初のブロックの色を抽出する(ステップS52)。そして、抽出したブロックの色が指標C15により特定した表示色の色と同一であるか否かを判定し(ステップS53)、同一であると判定した場合(ステップS53でYES)、当該ブロックの色を特定する(ステップS54)。他方、指標C15により特定した表示色の色とブロックの色とが同一でないと判定した場合(ステップS53でNO)、ブロックの色と指標C15の色とのRGB値の差を算出し(ステップS55)、ブロックの色と指標C15の色とのRGB値の差が所定値以内であるか否かを判定する(ステップS56)。RGB値の差が所定値以内である場合には(ステップS56でYES)、当該ブロックの抽出された色と指標C15により特定した表示色とは同色であると判断して当該ブロックの色を特定する(ステップS54)。すなわち、カラーバーコードC1が表示されている印刷用紙Pの一部が汚損又は色褪せ等により変色することがあり得るため、カラーバーコードC1を構成する一部のブロックが表示色と異なる色で表示される場合があり得る。そこで、表示色との差が所定値以内であって近い色にて表示されるブロックについては、表示色と同一であるとみなして特定することにより、エラーを生じることなくカラーバーコードC1を解読することが可能となる。他方、RGB値の差が所定値以内でない場合には(ステップS56でNO)、当該ブロックの色を特定できないためコード読み取りにおいてエラーが生じたとしてステップS54以降の処理を行うことなくコード解析処理を終了する。   FIG. 11 is a flowchart showing an example of a detailed processing procedure of the code analysis process (step S5 in FIG. 8). The image reading apparatus 1 specifies the display color, the arrangement direction, and the pitch between each block of the color barcode C1 by using the index C15 in the display color specifying process (step S4 in FIG. 8). Therefore, the decoding order of each block constituting the data block CB is determined based on the arrangement (step S51). Next, based on the determined decoding order, the block to be decoded first is specified, and the color of the first block is extracted (step S52). Then, it is determined whether or not the color of the extracted block is the same as the color of the display color specified by the index C15 (step S53). If it is determined that the color is the same (YES in step S53), the color of the block Is specified (step S54). On the other hand, if it is determined that the color of the display color specified by the index C15 is not the same as the color of the block (NO in step S53), the difference between the RGB values of the block color and the color of the index C15 is calculated (step S55). ), It is determined whether or not the RGB value difference between the block color and the color of the index C15 is within a predetermined value (step S56). If the difference between the RGB values is within a predetermined value (YES in step S56), it is determined that the extracted color of the block is the same color as the display color specified by the index C15, and the color of the block is specified. (Step S54). That is, a part of the printing paper P on which the color barcode C1 is displayed may be discolored due to dirt or fading, so that some blocks constituting the color barcode C1 are displayed in a color different from the display color. It may be done. For this reason, blocks that are displayed in close colors with a difference from the display color within a predetermined value are identified as being the same as the display color, so that the color barcode C1 can be decoded without causing an error. It becomes possible to do. On the other hand, if the difference between the RGB values is not within the predetermined value (NO in step S56), the code analysis processing is performed without performing the processing from step S54 onward because an error has occurred in the code reading because the color of the block cannot be specified. finish.

次に解読順序に基づき全てのブロックの色を特定済みか否かを判定し(ステップS57)、全ブロックの色について特定済みでないと判定した場合(ステップS57でNO)、解読順序に基づき、当該ブロックと所定のピッチを隔てた位置にある次のブロックを特定し、当該ブロックの色を抽出して(ステップS58)ステップS53乃至S57の処理を全てのブロックの色の特定を終了するまで繰り返す。全ブロックの色を特定済みとなった場合(ステップS57でYES)、特定した色に基づきコード化処理を行い(ステップS59)カラーバーコードC1に対応する第1情報を生成してコード解析処理を終了する(ステップS60)。コード解析処理により、カラーバーコードC1が生成された時点における文書DM1に対応する第1情報が生成される。   Next, it is determined whether or not the colors of all the blocks have been specified based on the decoding order (step S57). When it is determined that the colors of all the blocks have not been specified (NO in step S57), The next block located at a predetermined pitch from the block is specified, the color of the block is extracted (step S58), and the processing of steps S53 to S57 is repeated until the specification of the colors of all the blocks is completed. When the colors of all the blocks have been specified (YES in step S57), the encoding process is performed based on the specified color (step S59), and the first information corresponding to the color barcode C1 is generated to perform the code analysis process. The process ends (step S60). Through the code analysis process, first information corresponding to the document DM1 at the time when the color barcode C1 is generated is generated.

図12は文書読取処理(図8のステップS7)の詳細な処理手順の一例を示すフローチャートである。まず、読取画像情報からカラーバーコードC1を除去し、文書DM1を抽出する(ステップS71)。次に、印刷用紙Pに模様があるか否かを判定する(ステップS72)。文書読取処理に先行する表示色特定処理(図9のフローチャート)において当該印刷用紙P1に模様があるか否か既に判定されている(ステップS25)が、文書読解処理においても模様の有無を判定する。模様があると判定された場合(ステップS72でYES)、模様処理(図10のフローチャート)を行い、文書DM1から模様を除去する。これに対して模様がないと判定された場合、模様処理をスキップする。   FIG. 12 is a flowchart showing an example of a detailed processing procedure of the document reading process (step S7 in FIG. 8). First, the color barcode C1 is removed from the read image information, and the document DM1 is extracted (step S71). Next, it is determined whether or not there is a pattern on the printing paper P (step S72). Whether or not there is a pattern on the printing paper P1 in the display color specifying process (flowchart in FIG. 9) preceding the document reading process has already been determined (step S25), but whether or not there is a pattern is also determined in the document reading process. . If it is determined that there is a pattern (YES in step S72), pattern processing (the flowchart in FIG. 10) is performed to remove the pattern from the document DM1. On the other hand, if it is determined that there is no pattern, the pattern processing is skipped.

次に、文書DM1について文字認識を行うか否かを判定する(ステップS74)。例えばカラーバーコードC1が文書DM1のテキストデータに基づき生成されていた場合には、文書読取処理において文書DM1をコード化する際にも文字認識を行った上でテキストデータを元にコード化する必要があるからである。そこで、文字認識を行うか否かの判定に際して、一例としてカラーバーコードC1を解析するコード解析処理(図11のフローチャート)において生成された第1情報を参照し、第1情報が文書DM1のテキストデータに対応するものであれば文字認識を行うと判定してよい。文字認識を行うと判定した場合(ステップS74でYES)、OCR(Optical Character Recognition)処理等により文字認識を行い(ステップS75)、文書DM1に対応するテキスト情報を生成する(ステップS76)。他方、文字認識を行わないと判定した場合(ステップS74でNO)、ステップS75及びS76の処理をスキップする。最後に、文書DM1についてコード化処理を行い(ステップS77)、文書DM1に対応する第2情報を生成して文書読取処理を終了する(ステップS78)。文書読取処理により、現時点における文書DM1に対応した第2情報が生成される。   Next, it is determined whether or not character recognition is performed for the document DM1 (step S74). For example, when the color barcode C1 is generated based on the text data of the document DM1, it is necessary to perform encoding based on the text data after performing character recognition when the document DM1 is encoded in the document reading process. Because there is. Therefore, when determining whether or not to perform character recognition, for example, the first information generated in the code analysis process (flowchart of FIG. 11) for analyzing the color barcode C1 is referred to, and the first information is the text of the document DM1. If it corresponds to data, it may be determined that character recognition is performed. When it is determined that character recognition is to be performed (YES in step S74), character recognition is performed by OCR (Optical Character Recognition) processing or the like (step S75), and text information corresponding to the document DM1 is generated (step S76). On the other hand, if it is determined that character recognition is not performed (NO in step S74), the processes in steps S75 and S76 are skipped. Finally, the encoding process is performed on the document DM1 (step S77), the second information corresponding to the document DM1 is generated, and the document reading process is ended (step S78). Through the document reading process, second information corresponding to the document DM1 at the present time is generated.

図13は、差分検出処理(図8のステップS8)の詳細な処理手順の一例を示すフローチャートである。コード解析処理(図11のフローチャート)によりカラーバーコードC1を解析した結果、カラーバーコードC1が生成された時点における文書DM1に対応した第1情報が生成され、文書読取処理(図12のフローチャート)により現時点における文書DM1に対応する第2情報が生成された。そこで、第1情報と第2情報とを比較し(ステップS81)、第1情報と第2情報との間に差分を検出したか否かを判定し(ステップS82)、差分を検出しない場合(ステップS82でNO)にはカラーバーコードC1が印刷用紙Pに印刷されてから現時点まで変更されていないことが判明する。したがって、以下の処理を行うことなく差分検出処理を終了する。   FIG. 13 is a flowchart illustrating an example of a detailed processing procedure of the difference detection process (step S8 in FIG. 8). As a result of analyzing the color barcode C1 by the code analysis process (flowchart of FIG. 11), first information corresponding to the document DM1 at the time when the color barcode C1 is generated is generated, and the document reading process (flowchart of FIG. 12). Thus, the second information corresponding to the document DM1 at the present time is generated. Therefore, the first information and the second information are compared (step S81), it is determined whether or not a difference is detected between the first information and the second information (step S82), and the difference is not detected (step S82). In step S82 NO), it is found that the color barcode C1 has not been changed since the printing on the printing paper P. Therefore, the difference detection process is terminated without performing the following process.

他方、差分を検出したと判定した場合(ステップS82でYES)、画像読取装置1は表示色特定につきエラー判定を行う判定フラグがONに設定されているか否かを判定する(ステップS83)。判定フラグがONに設定されていない場合(ステップS83でNO)、検出された差分から文書DM1における変更箇所を特定し(ステップS84)、文書DM1における変更箇所を報知して差分検出処理を終了する(ステップS85)。そして、文書DM1における変更箇所の報知方法として、表示パネル17に図14の例示のような文書画像G1を表示し、変更箇所を強調表示DM10によりハイライトすることが考えられる。なお、図14の表示と共に音声により変更箇所を報知してもよい。   On the other hand, if it is determined that a difference has been detected (YES in step S82), the image reading apparatus 1 determines whether or not a determination flag for performing an error determination for specifying a display color is set to ON (step S83). If the determination flag is not set to ON (NO in step S83), the changed part in the document DM1 is specified from the detected difference (step S84), the changed part in the document DM1 is notified, and the difference detection process is ended. (Step S85). Then, as a method for notifying the changed part in the document DM1, it is conceivable to display the document image G1 as illustrated in FIG. 14 on the display panel 17 and highlight the changed part with the highlight display DM10. In addition, you may alert | report a change location with an audio | voice with the display of FIG.

これに対してステップS83で判定フラグがONに設定されていると判定した場合(ステップS83でYES)、差分を検出した箇所が所定数以上あるか否かを判定し(ステップS86)、所定数以上あると判定した場合には(ステップS86でYES)表示色の特定においてエラーが発生したことを報知して差分検出処理を終了する(ステップS87)。他方、差分を検出した箇所が所定数以上ではないと判定した場合(ステップS86でNO)、表示色の特定においてエラーは発生していないと判定し、当該差分から文書DM1の変更箇所を特定し(ステップS84)、文書DM1の変更箇所をユーザーに対して報知して(ステップS85)差分検出処理を終了する。   On the other hand, if it is determined in step S83 that the determination flag is set to ON (YES in step S83), it is determined whether or not there are a predetermined number or more of points where the difference is detected (step S86). If it is determined that there is an error (YES in step S86), it is notified that an error has occurred in specifying the display color, and the difference detection process is terminated (step S87). On the other hand, if it is determined that the number of locations where the difference is detected is not greater than or equal to the predetermined number (NO in step S86), it is determined that no error has occurred in specifying the display color, and the change location of the document DM1 is specified from the difference. (Step S84) The change location of the document DM1 is notified to the user (Step S85), and the difference detection process is terminated.

(第2実施形態)
次に、本発明の第2実施形態について説明する。第1実施形態では、印刷用紙Pに表示される表示色を指標に基づき特定する場合について説明した。本実施形態では、指標に基づかず、印刷用紙Pの色とカラーバーコードC1を印刷する際に使用される使用色に基づいて印刷用紙Pに表示される表示色を特定する場合について説明する。図15は、本実施形態における画像読取装置1の構成を示すブロック図である。第1実施形態と同一の符号を付した構成は第1実施形態において説明したものと同様である。
(Second Embodiment)
Next, a second embodiment of the present invention will be described. In the first embodiment, the case where the display color displayed on the printing paper P is specified based on the index has been described. In the present embodiment, a case will be described in which the display color displayed on the printing paper P is specified based on the color of the printing paper P and the color used when printing the color barcode C1 without using the index. FIG. 15 is a block diagram illustrating a configuration of the image reading apparatus 1 according to the present embodiment. The structure which attached | subjected the code | symbol same as 1st Embodiment is the same as that of what was demonstrated in 1st Embodiment.

制御部10は、記憶部12に記憶される用紙情報50を取得する用紙情報取得部61を備える。また、制御部10の特定部21は、印刷用紙Pの色を検出する用紙色検出部65をさらに備える。記憶部12は、カラーバーコードC1に使用される色を定義した使用色情報70と、印刷用紙Pに関する用紙情報50を備える。用紙情報50は、印刷用紙Pの模様に関する模様情報40を含んでおり、さらに印刷用紙Pの色に関する用紙色情報55を含むものでもよい。なお、使用色情報70は記憶部12に記憶されている場合のほかに、画像読取装置1と通信可能に接続されたサーバー(図示せず)等に記憶されていてもよい。或いは、文書DM1をコード化してカラーバーコードC1を生成した装置(図示せず)と画像読取装置1とが通信可能に接続されている場合、画像読取装置1はこの装置から使用色情報70を取得してもよい。   The control unit 10 includes a paper information acquisition unit 61 that acquires the paper information 50 stored in the storage unit 12. The specifying unit 21 of the control unit 10 further includes a paper color detection unit 65 that detects the color of the printing paper P. The storage unit 12 includes used color information 70 that defines colors used for the color barcode C1 and paper information 50 related to the printing paper P. The paper information 50 includes pattern information 40 relating to the pattern of the printing paper P, and may further include paper color information 55 relating to the color of the printing paper P. In addition to the case where the use color information 70 is stored in the storage unit 12, the use color information 70 may be stored in a server (not shown) or the like connected to be communicable with the image reading apparatus 1. Alternatively, when the apparatus (not shown) that encodes the document DM1 and generates the color barcode C1 and the image reading apparatus 1 are communicably connected to each other, the image reading apparatus 1 obtains the used color information 70 from the apparatus. You may get it.

用紙情報取得部61は、カラーバーコードC1に印刷用紙Pを特定する用紙コードCP1が検出された場合に記憶部12に記憶される用紙情報50を読み出して当該用紙コードCP1に対応する印刷用紙Pに関する用紙情報50を抽出する処理部である。   The paper information acquisition unit 61 reads the paper information 50 stored in the storage unit 12 when the paper code CP1 specifying the printing paper P is detected in the color barcode C1, and the printing paper P corresponding to the paper code CP1. This is a processing unit for extracting paper information 50 relating to the paper.

用紙色検出部65は、印刷用紙Pの色を検出する処理部である。用紙色検出部65は、用紙情報取得部61が取得した用紙情報50に含まれる用紙色情報55に基づき印刷用紙Pの色を検出することが可能である。また、これとは別に、用紙色検出部65は、特定部21によりカラーバーコードC1を含む画像が解析されてカラーバーコードC1の配列が特定されることに応じて印刷用紙Pの色を検出してもよい。具体的には、特定部21によりカラーバーコードC1を含む画像が解析され、カラーバーコードC1の位置決め用シンボルC10に基づきデータブロックCBの配列方向及び各ブロック間のピッチが検出されることに伴い、用紙色検出部65は、例えば各ブロック間のピッチやカラーバーコードC1の外に表示されている下地部分から印刷用紙Pの色を検出することが可能である。これにより、印刷用紙Pに関する用紙色情報55が記憶部12に記憶されていない場合にも、用紙色検出部65は印刷用紙Pの色を検出可能である。或いは、スキャナ部16により印刷用紙Pが読み取られてカラーバーコードC1及び文書DM1を含む画像情報が入力部20に入力された場合に、用紙色検出部65は、カラーバーコードC1及び文書DM1を特定した上でこれらを除去した下地部分を抽出し、下地部分の色を検出することによって印刷用紙Pの色を検出してもよい。   The paper color detection unit 65 is a processing unit that detects the color of the printing paper P. The paper color detection unit 65 can detect the color of the printing paper P based on the paper color information 55 included in the paper information 50 acquired by the paper information acquisition unit 61. Separately from this, the paper color detection unit 65 detects the color of the printing paper P in response to the image of the color barcode C1 being analyzed by the specifying unit 21 and the arrangement of the color barcode C1 being specified. May be. Specifically, an image including the color barcode C1 is analyzed by the specifying unit 21, and the arrangement direction of the data block CB and the pitch between the blocks are detected based on the positioning symbol C10 of the color barcode C1. The paper color detection unit 65 can detect the color of the printing paper P from, for example, the pitch between the blocks or the background portion displayed outside the color barcode C1. Thereby, even when the paper color information 55 relating to the printing paper P is not stored in the storage unit 12, the paper color detection unit 65 can detect the color of the printing paper P. Alternatively, when the printing paper P is read by the scanner unit 16 and image information including the color barcode C1 and the document DM1 is input to the input unit 20, the paper color detection unit 65 reads the color barcode C1 and the document DM1. The color of the printing paper P may be detected by extracting the ground portion from which these have been identified and detecting the color of the ground portion.

そして、特定部21は、カラーバーコードC1に使用される色を定義した使用色情報70と用紙色検出部65により検出される印刷用紙Pの色とに基づき、印刷用紙Pに表示された表示色を特定する。特定部21は、記憶部12に記憶される使用色情報70を読み出し、この使用色情報70と用紙色検出部65により検出された印刷用紙Pの色に基づき、印刷用紙Pに表示されるカラーバーコードC1の表示色を算出する。これにより、本実施形態における画像読取装置1は、カラーバーコードC1に指標C15が存在しない場合に印刷用紙Pに表示される表示色を特定可能であり、特定された表示色に基づいてカラーバーコードC1を読み取ることが可能となるのである。   Then, the specifying unit 21 displays the display displayed on the print paper P based on the use color information 70 that defines the color used for the color barcode C1 and the color of the print paper P detected by the paper color detection unit 65. Identify the color. The specifying unit 21 reads the use color information 70 stored in the storage unit 12, and the color displayed on the print paper P based on the use color information 70 and the color of the print paper P detected by the paper color detection unit 65. The display color of the barcode C1 is calculated. Thereby, the image reading apparatus 1 according to the present embodiment can specify the display color displayed on the printing paper P when the index C15 does not exist in the color barcode C1, and the color bar based on the specified display color. The code C1 can be read.

また、本実施形態においても、ユーザーの設定に応じてエラー判定を行ってもよい。すなわち、使用色情報70に透明が含まれている場合、印刷用紙Pへの印刷の際に透明とされたブロックは印刷用紙Pの色で表示される。そして、特定部21により特定された表示色のうち印刷用紙Pの色と識別困難な色が存在する場合、コード解析部22がデータブロックCBを構成するブロックを解読する際にブロックの色を誤判別する畏れがある。そこで、表示色と印刷用紙Pの色との濃度差の検出を行い、両者の濃度差が所定値以下の場合にエラー判定を行うことにより、ブロックの色の誤判別を防止することが可能となる。他方、使用色情報70に透明が含まれていない場合にはエラー判定を行わない。すなわち、印刷用紙Pの色で表示されるブロックは生じないことから、特定部21により特定された表示色に基づき、コード解析部22はデータブロックCBの各ブロックの色を誤判別することなく特定可能だからである。   Also in the present embodiment, error determination may be performed according to user settings. That is, when the use color information 70 includes transparency, the block that is made transparent when printing on the printing paper P is displayed in the color of the printing paper P. If the display color specified by the specifying unit 21 is difficult to distinguish from the color of the printing paper P, the code analyzing unit 22 misinterprets the block color when the block constituting the data block CB is decoded. There is a fear to separate. Therefore, by detecting the density difference between the display color and the color of the printing paper P and performing error determination when the density difference between the two is equal to or less than a predetermined value, it is possible to prevent erroneous determination of the block color. Become. On the other hand, if the use color information 70 does not include transparency, error determination is not performed. That is, since no block is displayed in the color of the printing paper P, the code analysis unit 22 specifies the color of each block of the data block CB based on the display color specified by the specification unit 21 without erroneous determination. Because it is possible.

図16は、本実施形態における表示色特定処理(図8のステップS4)の詳細な処理手順の一例を示すフローチャートである。画像読取装置1は、読み取った画像情報からカラーバーコードC1の位置決め用シンボルC10を読み取って(ステップS91)カラーバーコードC1を抽出する(ステップS92)。抽出したカラーバーコードC1に含まれる位置決め用シンボルC10に応じてカラーバーコードC1の配列方向を特定すると共に(ステップS93)、カラーバーコードC1のデータブロックCBを構成する各ブロック間のピッチを検出する(ステップS94)。次に、抽出したカラーバーコードC1から用紙コードCP1が検出されたか否かを判定する(ステップS95)。用紙コードCP1は、第1実施形態において説明したとおり印刷用紙Pの色の影響を受けない黒色(K)などにより表示されており、カラーバーコードC1の表示色の特定に先んじて読み取り可能である。用紙コードCP1を検出したと判定された場合(ステップS95でYES)、検出した用紙コードCP1を読み出して(ステップS96)当該用紙コードCP1により特定される印刷用紙Pに関する用紙情報50を記憶部12から読み出す(ステップS97)。さらに読み出した用紙情報50に模様に関する模様情報40があるか否かを判定し(ステップS98)、模様情報40があれば模様処理(図10のフローチャート)を行って抽出したカラーバーコードC1から当該模様情報40により特定される模様を除去する。   FIG. 16 is a flowchart showing an example of a detailed processing procedure of the display color specifying process (step S4 in FIG. 8) in the present embodiment. The image reading device 1 reads the positioning symbol C10 of the color barcode C1 from the read image information (step S91), and extracts the color barcode C1 (step S92). The arrangement direction of the color barcode C1 is specified according to the positioning symbol C10 included in the extracted color barcode C1 (step S93), and the pitch between the blocks constituting the data block CB of the color barcode C1 is detected. (Step S94). Next, it is determined whether or not the paper code CP1 is detected from the extracted color barcode C1 (step S95). The paper code CP1 is displayed in black (K) or the like that is not affected by the color of the printing paper P as described in the first embodiment, and can be read prior to specifying the display color of the color barcode C1. . If it is determined that the paper code CP1 is detected (YES in step S95), the detected paper code CP1 is read (step S96), and the paper information 50 relating to the printing paper P specified by the paper code CP1 is stored from the storage unit 12. Read (step S97). Further, it is determined whether or not the read sheet information 50 includes the pattern information 40 related to the pattern (step S98). If there is the pattern information 40, the pattern processing (flowchart in FIG. 10) is performed to extract the color information from the color barcode C1. The pattern specified by the pattern information 40 is removed.

他方、ステップS95において抽出したカラーバーコードC1から用紙コードCP1を検出しなかったと判定された場合(ステップS95でNO)、印刷用紙Pの色を特定する(ステップS99)。印刷用紙Pの色を特定する処理の一例として、カラーバーコードC1の配列及び各ブロック間のピッチに基づいて、例えば各ブロック間のピッチやカラーバーコードC1の外に表示される下地部分から印刷用紙Pの色を抽出して特定する。また、ステップS98において模様情報40がないと判定された場合にも(ステップS98でNO)、同様に印刷用紙Pの色の特定を行う(ステップS99)。この場合、用紙コードが検出されなかった場合(ステップS95でNO)における印刷用紙Pの色の特定方法と同様の方法により印刷用紙Pの色の特定を行うほか、用紙情報50に印刷用紙Pの色に関する用紙色情報55が含まれている場合には用紙色情報55に基づき印刷用紙Pの色を特定してもよい。   On the other hand, when it is determined that the paper code CP1 is not detected from the color barcode C1 extracted in step S95 (NO in step S95), the color of the printing paper P is specified (step S99). As an example of the process of specifying the color of the printing paper P, printing is performed from, for example, the pitch between the blocks or the background portion displayed outside the color barcode C1, based on the arrangement of the color barcode C1 and the pitch between the blocks. The color of the paper P is extracted and specified. Also, when it is determined in step S98 that there is no pattern information 40 (NO in step S98), the color of the printing paper P is similarly specified (step S99). In this case, the color of the printing paper P is specified by the same method as the method of specifying the color of the printing paper P when the paper code is not detected (NO in step S95), and the printing paper P is included in the paper information 50. When the paper color information 55 relating to the color is included, the color of the printing paper P may be specified based on the paper color information 55.

次に、記憶部12に記憶される使用色情報70を読み出し(ステップS100)、表示色を特定する(ステップS101)。模様処理を行った場合は、カラーバーコードC1から模様が除去されてカラーバーコードC1は使用色にて表示されているため、使用色を表示色として特定する。他方、模様処理を行っていない場合(ステップS95でNO、又はステップS98でNOの場合)には、カラーバーコードC1に印刷用紙Pの色が除去されることなく残っているため、特定した印刷用紙の色(ステップS99)と使用色に基づいて表示色を算出することになる。表示色特定処理における上記の処理を行うことにより、画像読取装置1は指標C15を用いることなくカラーバーコードC1にて表示される表示色を特定することが可能となるのである。   Next, the used color information 70 stored in the storage unit 12 is read (step S100), and the display color is specified (step S101). When the pattern processing is performed, since the pattern is removed from the color barcode C1 and the color barcode C1 is displayed in the use color, the use color is specified as the display color. On the other hand, when the pattern processing is not performed (NO in step S95 or NO in step S98), the color of the printing paper P remains in the color barcode C1 without being removed, so that the specified printing is performed. The display color is calculated based on the paper color (step S99) and the used color. By performing the above process in the display color specifying process, the image reading apparatus 1 can specify the display color displayed by the color barcode C1 without using the index C15.

さらに、表示色特定処理においては、エラー判定を行うか否かを判定する(ステップS102)。エラー判定を行うか否かは、ユーザーにより設定可能である。エラー判定を行う設定であると判定した場合(ステップS102でYES)、以下に説明するステップS104乃至ステップS108によりエラー判定を行う。他方、エラー判定を行う設定となっていないと判定した場合(ステップS102でNO)、さらに模様処理(ステップS26)を行ったか否かを判定し(ステップS103)、模様処理を行ったと判定した場合(ステップS103でYES)、第1実施形態にて説明したのと同様の理由によりエラー判定を行う。   Further, in the display color specifying process, it is determined whether or not to perform error determination (step S102). Whether or not to perform error determination can be set by the user. If it is determined that the error determination is set (YES in step S102), error determination is performed in steps S104 to S108 described below. On the other hand, if it is determined that the error determination is not set (NO in step S102), it is further determined whether or not pattern processing (step S26) has been performed (step S103), and it is determined that pattern processing has been performed. (YES in step S103), error determination is performed for the same reason as described in the first embodiment.

エラー判定を行うと判定された場合(ステップS102でYES又はステップS103でYES)、ステップS101で特定された表示色の濃度を特定する(ステップS104)。次に、ステップS99で特定された用紙色の濃度を特定し(ステップS105)、その上で表示色と用紙色との濃度差(n1)を算出する(ステップS106)。算出された濃度差(n1)が所定値以下であるか否かを判定し(ステップS107)、所定値以下であると判定した場合(ステップS107でYES)、表示色と用紙色とは識別困難であると言えることから、差分検出部26による差分検出処理(図7のステップS8)でエラー判定を行うよう判定フラグをONに設定して(ステップS108)表示色特定処理を終了する。これに対して、算出された濃度差(n1)が所定値以下ではないと判定した場合(ステップS107でNO)、表示色と用紙色とは識別困難であるとは言えないことから、表示色の特定につきエラーはないと判定し、判定フラグをONにすることなく(ステップS108をスキップ)表示色特定処理を終了する。   If it is determined that error determination is to be performed (YES in step S102 or YES in step S103), the density of the display color specified in step S101 is specified (step S104). Next, the density of the paper color specified in step S99 is specified (step S105), and then the density difference (n1) between the display color and the paper color is calculated (step S106). It is determined whether or not the calculated density difference (n1) is equal to or smaller than a predetermined value (step S107). If it is determined that the calculated density difference (n1) is equal to or smaller than the predetermined value (YES in step S107), the display color and the paper color are difficult to distinguish. Therefore, the determination flag is set to ON so that error determination is performed in the difference detection process (step S8 in FIG. 7) by the difference detection unit 26 (step S108), and the display color specifying process is terminated. On the other hand, if it is determined that the calculated density difference (n1) is not less than or equal to the predetermined value (NO in step S107), it cannot be said that the display color and the paper color are difficult to distinguish. It is determined that there is no error in specifying the display color, and the display color specifying process is terminated without turning ON the determination flag (step S108 is skipped).

図17は、本実施形態におけるコード解析処理(図8のステップS5)の詳細な処理手順の一例を示すフローチャートである。まず、上述した表示色特定処理(図16のフローチャート)において特定された配列方向(図16のステップS93)に基づき、解読順序を決定する(ステップS111)。そして決定した解読順序に基づき、最初に解読するブロックの色を抽出する(ステップS112)。抽出したブロックの色が表示色特定処理において特定された表示色と同一であるか否かを判定し(ステップS113)、表示色と同一であると判定した場合(ステップS113でYES)、当該抽出したブロックの色を特定する(ステップS114)。他方、表示色と同一でないと判定した場合(ステップS113でNO)、表示色と当該抽出したブロックの色とのRGB値の差を算出する(ステップS115)。そして、表示色と当該抽出したブロックの色とのRGB値の差が所定値以内であるか否かを判定し(ステップS116)、所定値以内であれば当該抽出したブロックの色と表示色とを同一であると見なしてブロックの色を特定する(ステップS114)。これに対して、表示色と当該抽出したブロックの色とのRGB値の差が所定値以内でないと判定した場合(ステップS116でNO)、以降の処理を行うことなくコード解析処理を終了する。これにより、印刷用紙Pに部分的な汚損や色褪せ等が存在し、そのためカラーバーコードC1に含まれる一部のブロックの色が表示色と僅かに異なるような場合にも、ブロックの色を表示色と同一であると特定することで、カラーバーコードC1の解読においてエラーが生じることを回避可能となる。他方、ブロックの色と表示色との差が所定値以上となる場合、すなわちブロックの色と表示色とが相当程度異なると判定される場合には、ブロックの色を表示色と同一であると特定することなくコード解析処理を終了し、カラーバーコードC1の解読においてエラーが生じたことをユーザーに対して報知する(図8のステップS9)。   FIG. 17 is a flowchart showing an example of a detailed processing procedure of the code analysis processing (step S5 in FIG. 8) in the present embodiment. First, the decoding order is determined based on the arrangement direction (step S93 in FIG. 16) specified in the display color specifying process (flowchart in FIG. 16) described above (step S111). Based on the determined decoding order, the color of the block to be decoded first is extracted (step S112). It is determined whether or not the color of the extracted block is the same as the display color specified in the display color specifying process (step S113). If it is determined that the color is the same as the display color (YES in step S113), the extraction is performed. The color of the selected block is specified (step S114). On the other hand, if it is determined that it is not the same as the display color (NO in step S113), a difference in RGB value between the display color and the extracted block color is calculated (step S115). Then, it is determined whether or not the difference between the RGB values of the display color and the extracted block color is within a predetermined value (step S116), and if it is within the predetermined value, the extracted block color and display color are determined. Are identified as the same, and the color of the block is specified (step S114). On the other hand, if it is determined that the RGB value difference between the display color and the extracted block color is not within the predetermined value (NO in step S116), the code analysis process is terminated without performing the subsequent processes. As a result, even when the print paper P is partially soiled or faded, and the color of some blocks included in the color barcode C1 is slightly different from the display color, the block color is displayed. By specifying that it is the same as the color, it is possible to avoid an error in decoding the color barcode C1. On the other hand, when the difference between the block color and the display color is equal to or greater than a predetermined value, that is, when it is determined that the block color and the display color are considerably different, the block color is the same as the display color. The code analysis process is terminated without specifying, and the user is notified that an error has occurred in decoding the color barcode C1 (step S9 in FIG. 8).

抽出したブロックの色を特定すると(ステップS114)、全ブロックの色について特定済みか否かを判定し(ステップS117)、全ブロックの色について特定済みでないと判定した場合には(ステップS117でNO)、解読順序に従って、抽出したブロックとピッチを隔てて配列される次のブロックの色を抽出し(ステップS118)、ステップS113乃至S117の処理を全てのブロックの色の特定が終了するまで繰り返す。データブロックCBを構成する全てのブロックの色の特定が済むと判定した場合(ステップS117でYES)、画像読取装置1はデータブロックCBを読み取ってコード化する処理を行って(S119)カラーバーコードC1に対応する第1情報を生成する。   When the color of the extracted block is specified (step S114), it is determined whether the color of all the blocks has been specified (step S117). When it is determined that the color of all the blocks has not been specified (NO in step S117). ) According to the decoding order, the color of the next block arranged at a pitch from the extracted block is extracted (step S118), and the processing of steps S113 to S117 is repeated until the specification of the colors of all the blocks is completed. If it is determined that the colors of all the blocks constituting the data block CB have been specified (YES in step S117), the image reading apparatus 1 performs processing for reading and encoding the data block CB (S119). First information corresponding to C1 is generated.

(変形例)
以上、本発明に関する第1及び第2実施形態につき説明したが、本発明は上述した各実施形態において説明したものに限られない。すなわち、本発明には、上述した各実施形態の他、様々な変形例を適用することが可能である。
(Modification)
The first and second embodiments related to the present invention have been described above, but the present invention is not limited to those described in the above-described embodiments. In other words, in addition to the above-described embodiments, various modifications can be applied to the present invention.

例えば、上記各実施形態では、カラーバーコードC1を用いて印刷用紙Pに表示される文書DM1が変更されたか否かを検出する画像読取装置1を示したが、本発明はこれに限られるものではなく、単にカラー印刷媒体に表示されたカラーバーコードを読み取る画像読取装置1でもよい。すなわち、カラー印刷媒体に表示されたカラーバーコードを読み取って情報を取得する画像読取装置1であって、この場合、上記各実施形態における表示色特定処理及びコード解析処理を行うが、文書読取処理や差分検出処理を行わない。また、この場合、画像読取装置1の制御部10は、表示色特定処理及びコード解析処理にかかわる構成を備えるが、文書読取処理や差分検出処理にかかわる構成を備える必要がない。   For example, in each of the above-described embodiments, the image reading apparatus 1 that detects whether or not the document DM1 displayed on the printing paper P has been changed using the color barcode C1 has been described. However, the present invention is not limited to this. Instead, the image reading apparatus 1 may simply read a color barcode displayed on a color print medium. That is, the image reading apparatus 1 acquires information by reading a color barcode displayed on a color print medium. In this case, the display color specifying process and the code analysis process in each of the above embodiments are performed. And the difference detection process is not performed. In this case, the control unit 10 of the image reading apparatus 1 includes a configuration related to the display color specifying process and the code analysis process, but does not need to include a configuration related to the document reading process or the difference detection process.

また、上記各実施形態では、スキャナや複合機などスキャナ部16を備えた画像読取装置1を例示したが、本発明はこれに限られるものではなく、画像読取装置1はカラーバーコードを含む画像を読み取り可能な装置であればよく、例えばデジタルカメラやWebカメラなどでもよい。   Further, in each of the above embodiments, the image reading apparatus 1 including the scanner unit 16 such as a scanner or a multifunction machine is illustrated, but the present invention is not limited to this, and the image reading apparatus 1 includes an image including a color barcode. For example, a digital camera or a Web camera may be used.

また、上記各実施形態では、模様に関する模様情報40が画像読取装置1の記憶部12に記憶されており、必要に応じこれを読み出す場合について説明したが、これに限られず、例えば画像読取装置1と通信可能に接続されたサーバー等から取得してもよい。   Further, in each of the above embodiments, the pattern information 40 related to the pattern is stored in the storage unit 12 of the image reading apparatus 1 and is read as necessary. However, the present invention is not limited to this. For example, the image reading apparatus 1 You may acquire from the server etc. which were connected so that communication was possible.

上記各実施形態では、印刷用紙Pに文書DM1が表示されている場合を例にしたが、文書に限られるものではなく、絵画、図形など画像であればよい。   In each of the above embodiments, the case where the document DM1 is displayed on the printing paper P is taken as an example. However, the present invention is not limited to the document, and may be an image such as a picture or a figure.

さらに上記各実施形態では、カラー印刷媒体の例として印刷用紙Pを用いて説明したが、これに限らず、例えばカラー梱包材、カラー掲示板やカラー看板等、カラーバーコードを印刷可能な媒体であればよい。
Further, in each of the above embodiments, the description has been given using the printing paper P as an example of the color printing medium. That's fine.

1 画像読取装置
16 スキャナ部(画像読取手段)
21 特定部(特定手段)
22 コード解析部(解析手段)
25 情報生成部(第2情報生成手段)
26 差分検出部(差分検出手段)
27 報知部(報知手段)
30 模様情報取得部(模様情報取得手段)
33 濃度差検出部(濃度差検出手段)
34 エラー判定部(判定手段)
65 用紙色検出部(媒体色検出手段)
70 使用色情報
CP1 用紙コード(定義情報)
DM1 文書(対象画像)
DESCRIPTION OF SYMBOLS 1 Image reader 16 Scanner part (image reading means)
21 Identification part (identification means)
22 Code analysis unit (analysis means)
25 Information generator (second information generator)
26 Difference detection unit (difference detection means)
27 Notification unit (notification means)
30 Pattern information acquisition unit (pattern information acquisition means)
33 Density Difference Detection Unit (Density Difference Detection Unit)
34 Error determination unit (determination means)
65 Paper color detection unit (medium color detection means)
70 Used color information CP1 Paper code (definition information)
DM1 document (target image)

Claims (18)

カラー印刷媒体に表示されたカラーバーコードを含む画像を読み取る画像読取手段と、
前記画像読取手段により読み取られた前記カラーバーコードを含む画像を解析して前記カラー印刷媒体において表示された色を特定する特定手段と、
前記特定手段により特定された色に基づき前記カラーバーコードを解析する解析手段と、
を備え
前記解析手段は、前記カラーバーコードを構成するブロックの色と前記特定手段により特定された前記カラー印刷媒体において表示された色との差が所定値以下である色を前記カラー印刷媒体において表示された色と同じ色として前記カラーバーコードを解析することを特徴とする画像読取装置。
Image reading means for reading an image including a color barcode displayed on a color print medium;
A specifying unit that analyzes an image including the color barcode read by the image reading unit and specifies a color displayed on the color print medium;
Analyzing means for analyzing the color barcode based on the color specified by the specifying means;
Equipped with a,
The analyzing means displays on the color print medium a color whose difference between the color of the block constituting the color barcode and the color displayed on the color print medium specified by the specifying means is a predetermined value or less. An image reading apparatus that analyzes the color barcode as the same color as the selected color .
カラー印刷媒体に表示されたカラーバーコードを含む画像を読み取る画像読取手段と、
前記画像読取手段により読み取られた前記カラーバーコードを含む画像を解析して前記カラー印刷媒体において表示された色を特定する特定手段と、
前記特定手段により特定された色に基づき前記カラーバーコードを解析する解析手段と、
特定のカラー印刷媒体と対応付けられた模様に関する模様情報を取得する模様情報取得手段と、
を備え
前記特定手段は、前記カラーバーコードに含まれる特定のカラー印刷媒体を定義する定義情報を読み取って当該定義情報により定義されるカラー印刷媒体と対応付けられた模様情報を参照し、前記模様に応じて前記カラーバーコードを構成するブロックの位置毎に色を特定し、
前記解析手段は、前記カラー印刷媒体において前記カラーバーコードが表示される位置毎に前記カラーバーコードを解析することを特徴とする画像読取装置。
Image reading means for reading an image including a color barcode displayed on a color print medium;
A specifying unit that analyzes an image including the color barcode read by the image reading unit and specifies a color displayed on the color print medium;
Analyzing means for analyzing the color barcode based on the color specified by the specifying means;
Pattern information acquisition means for acquiring pattern information related to a pattern associated with a specific color print medium;
Equipped with a,
The specifying unit reads definition information defining a specific color print medium included in the color barcode, refers to pattern information associated with the color print medium defined by the definition information, and corresponds to the pattern Specify the color for each position of the block constituting the color barcode,
The image reading apparatus , wherein the analyzing unit analyzes the color barcode for each position where the color barcode is displayed on the color print medium .
カラー印刷媒体に表示される画像であって、カラーバーコードと、前記カラーバーコードとは異なる対象画像とを含む画像を読み取る画像読取手段と、
前記画像読取手段により読み取られる前記画像に含まれるカラーバーコードを解析して前記カラー印刷媒体において表示される前記カラーバーコードの色を特定する特定手段と、
前記特定手段により特定された色に基づき前記カラーバーコードを解析し、前記カラーバーコードに対応する第1情報を生成する解析手段と、
前記画像読取手段により読み取られる前記画像に含まれる前記対象画像を解析し、前記対象画像に対応する第2情報を生成する第2情報生成手段と、
前記第1情報と前記第2情報との差分を検出する差分検出手段と、
前記差分検出手段により前記第1情報と前記第2情報との差分が検出された場合に、前記カラー印刷媒体に表示される前記対象画像が変更されたことを報知する報知手段と、
前記特定手段により特定された色の濃度と前記カラー印刷媒体の色との差を検出する濃度差検出手段と、
前記濃度差検出手段により検出された濃度の差が所定値以下であり、且つ、前記差分検出手段により所定箇所以上の差分が検出された場合、前記カラー印刷媒体において表示される前記カラーバーコードの色の特定においてエラーが生じたことを判定する判定手段と、
を備え、
前記報知手段は、前記カラー印刷媒体において表示される前記カラーバーコードの色の特定においてエラーが生じたことを報知することを特徴とする画像読取装置。
An image reading unit that reads an image that is displayed on a color print medium and includes a color barcode and a target image different from the color barcode;
A specifying unit that analyzes a color barcode included in the image read by the image reading unit and specifies a color of the color barcode displayed on the color print medium;
Analyzing means for analyzing the color barcode based on the color specified by the specifying means, and generating first information corresponding to the color barcode;
Analyzing the target image included in the image read by the image reading means, and generating second information corresponding to the target image;
Difference detection means for detecting a difference between the first information and the second information;
Informing means for informing that the target image displayed on the color print medium has been changed when the difference between the first information and the second information is detected by the difference detecting means;
A density difference detecting means for detecting a difference between the color density specified by the specifying means and the color of the color print medium;
Difference in concentration detected by the density difference detection means Ri der below a predetermined value, and, if more than a predetermined point of difference is detected by the difference detecting means, said color barcode that appears in the color printing medium a judging means for judging that a Oite error a specific color occurs in,
Bei to give a,
The notification means, wherein the color images reader you characterized by notifying that the Oite error occurs to a specific color of the color barcode that appears in the print medium.
前記特定手段は、前記カラー印刷媒体に表示されたカラーバーコードに含まれる前記カラーバーコードが印刷された色を定義する指標に基づき前記カラー印刷媒体において表示された色を特定することを特徴とする請求項1乃至3のいずれかに記載の画像読取装置。   The specifying means specifies a color displayed on the color print medium based on an index defining a color printed with the color barcode included in the color barcode displayed on the color print medium. The image reading apparatus according to claim 1. 前記特定手段は、前記カラーバーコードの所定位置に配置される前記指標を解析することを特徴とする請求項4に記載の画像読取装置。   The image reading apparatus according to claim 4, wherein the specifying unit analyzes the index arranged at a predetermined position of the color barcode. カラー印刷媒体に表示されたカラーバーコードを含む画像を読み取る画像読取手段と、
前記画像読取手段により読み取られた前記カラーバーコードを含む画像を解析して前記カラー印刷媒体において表示された色を特定する特定手段と、
前記特定手段により特定された色に基づき前記カラーバーコードを解析する解析手段と、
前記カラー印刷媒体の色を検出する媒体色検出手段と、
所定の記憶手段又は外部のサーバーから前記カラーバーコードに使用される色を定義した使用色情報を取得する使用色情報取得手段と、
を備え、
前記特定手段は、前記使用色情報取得手段によって取得される前記使用色情報と前記媒体色検出手段により検出される前記カラー印刷媒体の色とに基づき前記カラー印刷媒体において表示された色を特定することを特徴とする画像読取装置。
Image reading means for reading an image including a color barcode displayed on a color print medium;
A specifying unit that analyzes an image including the color barcode read by the image reading unit and specifies a color displayed on the color print medium;
Analyzing means for analyzing the color barcode based on the color specified by the specifying means;
Medium color detecting means for detecting the color of the color printing medium ;
Use color information acquisition means for acquiring use color information defining a color used for the color barcode from a predetermined storage means or an external server;
Bei to give a,
The specifying unit specifies a color displayed on the color print medium based on the use color information acquired by the use color information acquisition unit and the color of the color print medium detected by the medium color detection unit. images reader you wherein a.
前記媒体色検出手段は、前記特定手段により前記カラーバーコードを含む画像が解析されて前記カラーバーコードの配列が特定されることに伴い前記画像のうち前記カラーバーコードを除いた部分から前記カラー印刷媒体の色を検出することを特徴とする請求項6に記載の画像読取装置。   The medium color detecting means analyzes the image including the color barcode by the specifying means and specifies the arrangement of the color barcode, so that the color barcode is removed from the portion of the image excluding the color barcode. The image reading apparatus according to claim 6, wherein the color of the print medium is detected. 前記解析手段は、前記カラーバーコードを構成するブロックの色と前記特定手段により特定された前記カラー印刷媒体において表示された色との差が所定値以下である色を前記カラー印刷媒体において表示された色と同じ色として前記カラーバーコードを解析することを特徴とする請求項3、6又は7に記載の画像読取装置。 The analyzing means displays on the color print medium a color whose difference between the color of the block constituting the color barcode and the color displayed on the color print medium specified by the specifying means is a predetermined value or less. The image reading apparatus according to claim 3 , wherein the color barcode is analyzed as the same color as the selected color. 特定のカラー印刷媒体と対応付けられた模様に関する模様情報を取得する模様情報取得手段、
を更に備え、
前記特定手段は、前記カラーバーコードに含まれる特定のカラー印刷媒体を定義する定義情報を読み取って当該定義情報により定義されるカラー印刷媒体と対応付けられた模様情報を参照し、前記模様に応じて前記カラーバーコードを構成するブロックの位置毎に色を特定し、
前記解析手段は、前記カラー印刷媒体において前記カラーバーコードが表示される位置毎に前記カラーバーコードを解析することを特徴とする請求項3、6、7又は8に記載の画像読取装置。
Pattern information acquisition means for acquiring pattern information related to a pattern associated with a specific color print medium;
Further comprising
The specifying unit reads definition information defining a specific color print medium included in the color barcode, refers to pattern information associated with the color print medium defined by the definition information, and corresponds to the pattern Specify the color for each position of the block constituting the color barcode,
It said analyzing means includes an image reading apparatus according to claim 3,6,7 or 8, characterized in that analyzing the color barcode for each position where the color barcode in the color printing medium is displayed.
画像読取装置を、
カラー印刷媒体に表示されたカラーバーコードを含む画像を読み取る画像読取手段、
前記画像読取手段により読み取られた前記カラーバーコードを含む画像を解析して前記カラー印刷媒体において表示された色を特定する特定手段、
前記特定手段により特定された色に基づき前記カラーバーコードを解析する解析手段、
として機能させ
前記解析手段は、前記カラーバーコードを構成するブロックの色と前記特定手段により特定された前記カラー印刷媒体において表示された色との差が所定値以下である色を前記カラー印刷媒体において表示された色と同じ色として前記カラーバーコードを解析することを特徴とするプログラム。
The image reading device
Image reading means for reading an image including a color barcode displayed on a color print medium;
A specifying unit that analyzes an image including the color barcode read by the image reading unit and specifies a color displayed on the color print medium;
Analyzing means for analyzing the color barcode based on the color specified by the specifying means;
To function as,
The analyzing means displays on the color print medium a color whose difference between the color of the block constituting the color barcode and the color displayed on the color print medium specified by the specifying means is a predetermined value or less. A program for analyzing the color barcode as the same color as the selected color .
画像読取装置を、
カラー印刷媒体に表示されたカラーバーコードを含む画像を読み取る画像読取手段、
前記画像読取手段により読み取られた前記カラーバーコードを含む画像を解析して前記カラー印刷媒体において表示された色を特定する特定手段、
前記特定手段により特定された色に基づき前記カラーバーコードを解析する解析手段、
特定のカラー印刷媒体と対応付けられた模様に関する模様情報を取得する模様情報取得手段、
として機能させ
前記特定手段は、前記カラーバーコードに含まれる特定のカラー印刷媒体を定義する定義情報を読み取って当該定義情報により定義されるカラー印刷媒体と対応付けられた模様情報を参照し、前記模様に応じて前記カラーバーコードを構成するブロックの位置毎に色を特定し、
前記解析手段は、前記カラー印刷媒体において前記カラーバーコードが表示される位置毎に前記カラーバーコードを解析することを特徴とするプログラム。
The image reading device
Image reading means for reading an image including a color barcode displayed on a color print medium;
A specifying unit that analyzes an image including the color barcode read by the image reading unit and specifies a color displayed on the color print medium;
Analyzing means for analyzing the color barcode based on the color specified by the specifying means;
Pattern information acquisition means for acquiring pattern information related to a pattern associated with a specific color print medium;
To function as,
The specifying unit reads definition information defining a specific color print medium included in the color barcode, refers to pattern information associated with the color print medium defined by the definition information, and corresponds to the pattern Specify the color for each position of the block constituting the color barcode,
The analysis means analyzes the color barcode for each position where the color barcode is displayed on the color print medium .
画像読取装置を、
カラー印刷媒体に表示される画像であって、カラーバーコードと、前記カラーバーコードとは異なる対象画像とを含む画像を読み取る画像読取手段、
前記画像読取手段により読み取られる前記画像に含まれるカラーバーコードを解析して前記カラー印刷媒体において表示される前記カラーバーコードの色を特定する特定手段、
前記特定手段により特定された色に基づき前記カラーバーコードを解析し、前記カラーバーコードに対応する第1情報を生成する解析手段、
前記画像読取手段により読み取られる前記画像に含まれる前記対象画像を解析し、前記対象画像に対応する第2情報を生成する第2情報生成手段、
前記第1情報と前記第2情報との差分を検出する差分検出手段、
前記差分検出手段により前記第1情報と前記第2情報との差分が検出された場合に、前記カラー印刷媒体に表示される前記対象画像が変更されたことを報知する報知手段、
前記特定手段により特定された色の濃度と前記カラー印刷媒体の色との差を検出する濃度差検出手段、
前記濃度差検出手段により検出された濃度の差が所定値以下であり、且つ、前記差分検出手段により所定箇所以上の差分が検出された場合、前記カラー印刷媒体において表示される前記カラーバーコードの色の特定においてエラーが生じたことを判定する判定手段、
として機能させ、
前記報知手段は、前記カラー印刷媒体において表示される前記カラーバーコードの色の特定においてエラーが生じたことを報知することを特徴とするプログラム。
The image reading device
An image reading unit that reads an image that is displayed on a color print medium and includes a color barcode and a target image different from the color barcode;
A specifying unit for analyzing a color barcode included in the image read by the image reading unit and specifying a color of the color barcode displayed on the color print medium;
Analyzing means for analyzing the color barcode based on the color specified by the specifying means, and generating first information corresponding to the color barcode;
A second information generating unit that analyzes the target image included in the image read by the image reading unit and generates second information corresponding to the target image;
Difference detection means for detecting a difference between the first information and the second information;
Informing means for informing that the target image displayed on the color print medium has been changed when the difference between the first information and the second information is detected by the difference detecting means;
A density difference detecting means for detecting a difference between the color density specified by the specifying means and the color of the color print medium;
Difference in concentration detected by the density difference detection means Ri der below a predetermined value, and, if more than a predetermined point of difference is detected by the difference detecting means, said color barcode that appears in the color printing medium determining means for determining that the Oite error occurs in a particular color of
And then allowed to function in,
The notification means, wherein the to Help program that informs that a Oite error occurs to a specific color of the color barcode that appears in the color printing medium.
前記特定手段は、前記カラー印刷媒体に表示されたカラーバーコードに含まれる前記カラーバーコードが印刷された色を定義する指標に基づき前記カラー印刷媒体において表示された色を特定することを特徴とする請求項10乃至12のいずれかに記載のプログラム。   The specifying means specifies a color displayed on the color print medium based on an index defining a color printed with the color barcode included in the color barcode displayed on the color print medium. The program according to any one of claims 10 to 12. 前記特定手段は、前記カラーバーコードの所定位置に配置される前記指標を解析することを特徴とする請求項13に記載のプログラム。   The program according to claim 13, wherein the specifying unit analyzes the index arranged at a predetermined position of the color barcode. 画像読取装置を、
カラー印刷媒体に表示されたカラーバーコードを含む画像を読み取る画像読取手段、
前記画像読取手段により読み取られた前記カラーバーコードを含む画像を解析して前記カラー印刷媒体において表示された色を特定する特定手段、
前記特定手段により特定された色に基づき前記カラーバーコードを解析する解析手段、
前記カラー印刷媒体の色を検出する媒体色検出手段、
所定の記憶手段又は外部のサーバーから前記カラーバーコードに使用される色を定義した使用色情報を取得する使用色情報取得手段、
として機能させ、
前記特定手段は、前記使用色情報取得手段によって取得される前記使用色情報と前記媒体色検出手段により検出される前記カラー印刷媒体の色とに基づき前記カラー印刷媒体において表示された色を特定することを特徴とするプログラム。
The image reading device
Image reading means for reading an image including a color barcode displayed on a color print medium;
A specifying unit that analyzes an image including the color barcode read by the image reading unit and specifies a color displayed on the color print medium;
Analyzing means for analyzing the color barcode based on the color specified by the specifying means;
Medium color detecting means for detecting the color of the color print medium;
Use color information acquisition means for acquiring use color information defining a color used for the color barcode from a predetermined storage means or an external server;
And then allowed to function in,
The specifying unit specifies a color displayed on the color print medium based on the use color information acquired by the use color information acquisition unit and the color of the color print medium detected by the medium color detection unit. features and to Help program that.
前記媒体色検出手段は、前記特定手段により前記カラーバーコードを含む画像が解析されて前記カラーバーコードの配列が特定されることに伴い前記画像のうち前記カラーバーコードを除いた部分から前記カラー印刷媒体の色を検出することを特徴とする請求項15に記載のプログラム。   The medium color detecting means analyzes the image including the color barcode by the specifying means and specifies the arrangement of the color barcode, so that the color barcode is removed from the portion of the image excluding the color barcode. The program according to claim 15, wherein the color of the print medium is detected. 前記解析手段は、前記カラーバーコードを構成するブロックの色と前記特定手段により特定された前記カラー印刷媒体において表示された色との差が所定値以下である色を前記カラー印刷媒体において表示された色と同じ色として前記カラーバーコードを解析することを特徴とする請求項12、15又は16に記載のプログラム。 The analyzing means displays on the color print medium a color whose difference between the color of the block constituting the color barcode and the color displayed on the color print medium specified by the specifying means is a predetermined value or less. The program according to claim 12, 15 or 16 , wherein the color barcode is analyzed as the same color as the selected color. 特定のカラー印刷媒体と対応付けられた模様に関する模様情報を取得する模様情報取得手段、
としてさらに機能させ、
前記特定手段は、前記カラーバーコードに含まれる特定のカラー印刷媒体を定義する定義情報を読み取って当該定義情報により定義されるカラー印刷媒体と対応付けられた模様情報を参照し、前記模様に応じて前記カラーバーコードを構成するブロックの位置毎に色を特定し、
前記解析手段は、前記カラー印刷媒体において前記カラーバーコードが表示される位置毎に前記カラーバーコードを解析することを特徴とする請求項12、15、16又は17に記載のプログラム。
Pattern information acquisition means for acquiring pattern information related to a pattern associated with a specific color print medium;
Further function as
The specifying unit reads definition information defining a specific color print medium included in the color barcode, refers to pattern information associated with the color print medium defined by the definition information, and corresponds to the pattern Specify the color for each position of the block constituting the color barcode,
18. The program according to claim 12, 15, 16 or 17 , wherein the analysis unit analyzes the color barcode for each position where the color barcode is displayed on the color print medium.
JP2014224236A 2014-11-04 2014-11-04 Image reading apparatus and program Active JP6455083B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014224236A JP6455083B2 (en) 2014-11-04 2014-11-04 Image reading apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014224236A JP6455083B2 (en) 2014-11-04 2014-11-04 Image reading apparatus and program

Publications (2)

Publication Number Publication Date
JP2016091258A JP2016091258A (en) 2016-05-23
JP6455083B2 true JP6455083B2 (en) 2019-01-23

Family

ID=56019698

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014224236A Active JP6455083B2 (en) 2014-11-04 2014-11-04 Image reading apparatus and program

Country Status (1)

Country Link
JP (1) JP6455083B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3468608B2 (en) * 1995-04-26 2003-11-17 三菱電機株式会社 Verification device for printed matter
JPH10283446A (en) * 1997-04-08 1998-10-23 Nippon I D Tec Kk Multicolor recording type matrix code recording sheet
JP2001052142A (en) * 1999-08-06 2001-02-23 Toshiba Corp Id card, id card issuing device and id card authenticating device
JP5115404B2 (en) * 2008-09-01 2013-01-09 株式会社デンソーウェーブ 2D code
US8714456B2 (en) * 2009-09-30 2014-05-06 Shift Co. Ltd. Two-dimensional code, two-dimensional code reader, and program
JP2012183796A (en) * 2011-03-08 2012-09-27 Fuji Xerox Co Ltd Image processing apparatus, image forming apparatus, and program

Also Published As

Publication number Publication date
JP2016091258A (en) 2016-05-23

Similar Documents

Publication Publication Date Title
US11182659B2 (en) Generating and decoding two-dimensional code
JP4557866B2 (en) Mixed code, mixed code generation method and apparatus, and recording medium
Grillo et al. High capacity colored two dimensional codes
US8915440B2 (en) Four dimensional (4D) color barcode for high capacity data encoding and decoding
US10885411B2 (en) Machine-readable image encoding data
EP2937817B1 (en) Information code, information code generation method, information code reader device, and information code usage system
JP6590335B2 (en) Two-dimensional code and method for reading the two-dimensional code
CN104246794A (en) Two-dimensional barcodes having a plurality of different regions
CN106462786A (en) Two-dimensional code, two-dimensional-code analysis system, and two-dimensional-code generation system
JP5182182B2 (en) Color correction method and imaging system
US20160110580A1 (en) Code reading device and code reading program
EP3050289B1 (en) Digital watermarks
JP6455083B2 (en) Image reading apparatus and program
JP2008299412A (en) Optical recognition code recognition result display method
US10887491B2 (en) Image processing apparatus for processing of highlighted regions
JP2017191420A (en) Two-dimensional code storage medium and two-dimensional code reading method
JP2008287414A (en) Optical recognition code recognition system, method, and program
JP2008021009A (en) Bar code recognition device, method and program
JP2018026025A (en) Code reading device, control program and control method
EP2831809B1 (en) Security feature
JP2020134625A (en) Image formation apparatus
KR100784200B1 (en) Method and Device for decoding the code having code information according to image
JP7202520B2 (en) Image processing device
JP4832996B2 (en) Information detection device
JP7415399B2 (en) Information code, information code medium, information code generation method, and information code reading device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171018

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180704

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180710

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180828

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20181120

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20181203

R150 Certificate of patent or registration of utility model

Ref document number: 6455083

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150