JP4793868B2 - Writing medium, writing information detection device, writing information detection method, program, and recording medium - Google Patents

Writing medium, writing information detection device, writing information detection method, program, and recording medium Download PDF

Info

Publication number
JP4793868B2
JP4793868B2 JP2006253149A JP2006253149A JP4793868B2 JP 4793868 B2 JP4793868 B2 JP 4793868B2 JP 2006253149 A JP2006253149 A JP 2006253149A JP 2006253149 A JP2006253149 A JP 2006253149A JP 4793868 B2 JP4793868 B2 JP 4793868B2
Authority
JP
Japan
Prior art keywords
dimensional code
dot
code pattern
image
coordinates
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.)
Expired - Fee Related
Application number
JP2006253149A
Other languages
Japanese (ja)
Other versions
JP2008077201A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2006253149A priority Critical patent/JP4793868B2/en
Publication of JP2008077201A publication Critical patent/JP2008077201A/en
Application granted granted Critical
Publication of JP4793868B2 publication Critical patent/JP4793868B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、電子文書に情報を付加するために利用される筆記媒体と、その筆記媒体に鉛筆やボールペン等の普通の筆記具を用いて加筆された情報を高精度に検出する装置及び方法に関する。   The present invention relates to a writing medium used for adding information to an electronic document, and an apparatus and method for accurately detecting information added to the writing medium using an ordinary writing tool such as a pencil or a ballpoint pen.

特許文献1に、光学的に読み取り可能なコードシンボルがマトリックス配置された紙に、小型カメラを備えたペンを用いて加筆すると同時に、同カメラでコードシンボルを読み取って座標情報を取得することにより、加筆情報をリアルタイムに読み取って加筆前の紙面情報と加筆情報を関連付けるシステムが記載されている。   In Patent Document 1, by adding a code symbol that is optically readable to a matrix using a pen equipped with a small camera, and simultaneously reading the code symbol with the camera to obtain coordinate information, A system is described in which retouching information is read in real time to associate preprinted paper information with retouching information.

特許文献2に、X座標、Y座標、コードの方向を表すパターンと、ホーミングパターンと呼ばれる他のパターンより大きくてコードの中心に配置されたパターンとからなり、それらが人の目にはみえないことを特徴とする2次元コードが記載されている。   Patent Document 2 is composed of a pattern representing the X-coordinate, Y-coordinate, and code direction, and a pattern that is larger than another pattern called a homing pattern and arranged at the center of the code, and these are not visible to human eyes. A two-dimensional code characterized by this is described.

特許文献3に、ドットを所定の位置からずらすことにより、1ドットで2ビット以上の情報を持たせる2次元コードが記載されている。この2次元コードは水平、垂直方向の座標情報を有し、それを読み取ることにより2次元コードの座標を検出できる。   Patent Document 3 describes a two-dimensional code that gives information of 2 bits or more per dot by shifting the dot from a predetermined position. This two-dimensional code has horizontal and vertical coordinate information, and the coordinates of the two-dimensional code can be detected by reading the coordinate information.

特許文献4に、カメラ付きの特殊なペンで紙に筆記中に、その紙に印刷された、座標と文書情報がエンコードされた2次元ドットパターンを、そのカメラで読み取ることにより、どの文書のどの位置に筆記中であるかを検出する技術が開示されている。   In Patent Document 4, when writing on paper with a special pen equipped with a camera, the two-dimensional dot pattern encoded on the paper and encoded with coordinates and document information is read by the camera, which document of which A technique for detecting whether a position is being written is disclosed.

特許文献5の図11に、文書IDがエンコードされた2次元コードが1つと、4隅にタイミングマークが印刷された紙文書に、鉛筆やボールペン等の普通の筆記具で筆記した後、この紙文書をスキャナを用いて読み取って画像として入力し、この画像から筆記の軌跡を抽出する方法が記載されている。   In FIG. 11 of Patent Document 5, a paper document on which a two-dimensional code encoded with a document ID is encoded and timing marks are printed at four corners is written with an ordinary writing tool such as a pencil or a ballpoint pen. Is read out using a scanner and input as an image, and a writing locus is extracted from the image.

特開2000−293303号公報JP 2000-293303 A 米国特許第5661506号明細書US Pat. No. 5,661,506 国際公開第00/73981号パンフレットInternational Publication No. 00/73981 Pamphlet 特開2006−85679号公報JP 2006-85679 A 特開2005−122682号公報JP 2005-122682 A

特許文献1〜4に記載された技術は、ペンにカメラやCPUなどを装着した特殊な筆記デバイスの利用が必須であるという制約がある。   The techniques described in Patent Documents 1 to 4 have a restriction that it is essential to use a special writing device in which a camera, a CPU, and the like are attached to a pen.

特許文献3に記載された技術では、紙文書にドットパターンは黒色材、それ以外の文書内容はカラー色材を用いて印刷され、赤外光を透過する色のボールペンと赤外カメラを用いて筆記することにより、カメラの画像には筆記軌跡や文書内容が見えず容易に筆記を取得することが可能であった。しかし、このような紙に鉛筆のような普通の筆記具で筆記した後、その紙をスキャナなどで読み取っても、筆記と文書内容との区別ができず、筆記情報を抽出することができない。   In the technique described in Patent Document 3, a dot pattern is printed on a paper document using a black material, and other document contents are printed using a color material, and a ballpoint pen and an infrared camera that transmit infrared light are used. By writing, it was possible to easily obtain the writing without seeing the writing trajectory or the document contents in the camera image. However, even if such a paper is written with an ordinary writing tool such as a pencil and then the paper is read with a scanner or the like, the writing cannot be distinguished from the document content, and writing information cannot be extracted.

特許文献5には、普通の筆記具を用いて筆記した紙文書をスキャナで読み取った画像を入力し、この画像と原本の画像とを4隅のタイミングマークを用いて位置あわせし、画像間の差分を筆記として抽出する方法が記載されている。しかし、紙文書の印刷時のプリンタにおける局所的な紙送りムラ、ドラムの回転ムラ、さらには読み取り時のスキャナの走行ムラなどの影響により、筆記情報を正確に位置精度良く抽出することが難しい。さらに、複写機などで印刷したゴルフコースのマップ上にゴルファーの打球の軌跡を鉛筆で記入し、この打球軌跡を抽出するようなアプリケーションの場合に、マップ上のフェアウェイやグリーン、ラフなどの色の濃い領域で鉛筆が滑って軌跡を記入しにくくなるといった問題もある。   In Patent Document 5, an image obtained by scanning a paper document written with an ordinary writing instrument with a scanner is input, and this image and the original image are aligned using timing marks at four corners, and a difference between the images is obtained. Is described as a writing. However, it is difficult to accurately extract writing information with high positional accuracy due to the influence of local paper feed unevenness, drum rotation unevenness, and scanner running unevenness at the time of printing a paper document. In addition, in the application where a golfer's hitting ball trajectory is entered with a pencil on a golf course map printed by a copying machine and the hitting ball trajectory is extracted, colors such as fairway, green, rough, etc. on the map are displayed. There is also a problem that a pencil slips in a dark area and it becomes difficult to fill in a locus.

本発明は、上に述べたような問題点に鑑みなされたものであり、その目的は、電子文書に付加するための情報を入力する用途に最適な筆記媒体と、この筆記媒体に加筆された情報を正確かつ高精度に検出する装置及び方法を提供するにある。   The present invention has been made in view of the above-described problems, and the object of the present invention is a writing medium that is most suitable for use for inputting information to be added to an electronic document, and the writing medium has been rewritten. An object of the present invention is to provide an apparatus and a method for detecting information accurately and with high accuracy.

請求項1記載の発明に係る筆記媒体は、特定の電子文書に関連付けられた筆記媒体であって、普通の筆記具を用いて筆記可能な材質の媒体に、所定サイズのドットパターンである2次元コードパターンがマトリクス状に並べて印刷されており、前記各2次元コードパターンには該2次元コードパターンの前記媒体上での位置を示す座標情報がエンコードされており、前記各2次元コードパターンを構成するドットは前記電子文書の領域情報を表すように色分けされていることを特徴とする。   The writing medium according to the first aspect of the present invention is a writing medium associated with a specific electronic document, and is a two-dimensional code that is a dot pattern of a predetermined size on a medium of a material that can be written using an ordinary writing instrument. The patterns are arranged and printed in a matrix, and each two-dimensional code pattern is encoded with coordinate information indicating the position of the two-dimensional code pattern on the medium, and constitutes each two-dimensional code pattern. The dots are color-coded to represent area information of the electronic document.

請求項2記載の発明に係る筆記媒体は、特定の電子文書に関連付けられた筆記媒体であって、普通の筆記具を用いて筆記可能な材質の媒体に所定サイズのドットパターンである2次元コードパターンがマトリクス状に並べて印刷されており、前記各2次元コードパターンには該2次元コードパターンの前記媒体上での位置を示す座標情報及び前記電子文書の識別情報がエンコードされており、前記各2次元コードパターンを構成するドットは前記電子文書の領域情報を表すように色分けされていることを特徴とする。   A writing medium according to a second aspect of the present invention is a writing medium associated with a specific electronic document, and is a two-dimensional code pattern that is a dot pattern of a predetermined size on a medium of a material that can be written using an ordinary writing instrument. Are arranged and printed in a matrix, and each two-dimensional code pattern is encoded with coordinate information indicating the position of the two-dimensional code pattern on the medium and identification information of the electronic document. The dots constituting the dimensional code pattern are color-coded to represent area information of the electronic document.

請求項3記載の発明は、請求項1又は2記載の発明に係る筆記媒体において、前記各2次元コードパターンには誤り訂正符号もエンコードされていることを特徴とする。   According to a third aspect of the present invention, in the writing medium according to the first or second aspect of the present invention, an error correction code is also encoded in each of the two-dimensional code patterns.

請求項4記載の発明は、請求項1,2又は3記載の発明に係る筆記媒体において、前記媒体全体に対する前記2次元コードパターンのドットの占める面積率が5パーセント未満であることを特徴とする。   According to a fourth aspect of the present invention, in the writing medium according to the first, second, or third aspect, the area ratio of the dots of the two-dimensional code pattern to the entire medium is less than 5 percent. .

請求項5記載の発明に係る加筆情報検出装置は、2次元コードパターンがマトリクス状に並べて印刷されており、前記各2次元コードパターンを構成するドットは特定の電子文書の領域情報を表すように色分けされている、前記電子文書に関連付けられた筆記媒体を読み取ったカラー画像を入力とし、前記筆記媒体に筆記具を用いて加筆された情報を検出する加筆情報検出装置であって、
前記カラー画像を2値化して背景画素を白画素、非背景画素を黒画素とした2値化画像を生成する第1の処理手段と、
前記カラー画像に基づいて、前記カラー画像の画素のうち、前記筆記媒体上にマトリクス状に並べて印刷されている2次元コードパターンのドットに対応した画素のみを黒画素で表し、それ以外の画素を白画素で表したドット画像を生成するとともに、前記2次元コードパターンのドットの前記ドット画像上での位置を表すドット座標及び前記2次元コードパターンのドットの色を表すドット色を検出して出力する第2の処理手段と、
前記第2の処理手段より出力されたドット座標を基に、前記2値化画像から前記2次元コードパターンのドットに対応した黒画素を除去することにより、前記筆記媒体の加筆された部分に対応した黒画素(以下、加筆画素と記す)を表す2値画像を生成する第3の処理手段と、
前記ドット画像より前記2次元コードパターンを検出し、検出した各2次元コードパターンをデコードすることにより、該2次元コードパターンの前記筆記媒体上での位置を表す座標(筆記媒体上座標と記す)を取得し、該筆記媒体上座標を該2次元コードパターンの前記ドット画像上の位置を表す座標(画像上座標)と対応付けて出力する第4の処理手段と、
前記各加筆画素の前記2値画像上での位置を表す座標と前記第4の処理手段より出力された前記2次元コードパターンの前記筆記媒体上座標及び前記画像上座標とに基づいて、前記各加筆画素の前記筆記媒体上での位置を示す座標を求め、それを加筆情報として出力する第5の処理手段と、
前記第2の処理手段より出力されたドット座標及びドット色に基づいて、同色のドット群で表される領域を表す領域情報を生成する第6の処理手段と、
を有することを特徴とする。
In the handwritten information detection apparatus according to the fifth aspect of the present invention, two-dimensional code patterns are arranged and printed in a matrix, and dots constituting each of the two-dimensional code patterns represent region information of a specific electronic document. Color-coded, a retouched information detection device for detecting information rewritten using a writing instrument on a writing medium with a color image obtained by reading a writing medium associated with the electronic document as an input,
First processing means for binarizing the color image to generate a binarized image in which a background pixel is a white pixel and a non-background pixel is a black pixel;
Based on the color image, among the pixels of the color image, only pixels corresponding to the dots of the two-dimensional code pattern printed in a matrix on the writing medium are represented by black pixels, and the other pixels are represented. Generates a dot image represented by white pixels, and detects and outputs dot coordinates representing the position of the dot of the two-dimensional code pattern on the dot image and a dot color representing the color of the dot of the two-dimensional code pattern Second processing means to:
Based on the dot coordinates output from the second processing means, by removing black pixels corresponding to the dots of the two-dimensional code pattern from the binarized image, it corresponds to the part of the writing medium that has been rewritten. Third processing means for generating a binary image representing the black pixel (hereinafter referred to as an added pixel),
The coordinates representing the position of the two-dimensional code pattern on the writing medium by detecting the two-dimensional code pattern from the dot image and decoding each detected two-dimensional code pattern (denoted as coordinates on the writing medium) And a fourth processing means for outputting the coordinates on the writing medium in association with the coordinates representing the position of the two-dimensional code pattern on the dot image (coordinates on the image);
Based on the coordinates representing the position of each of the retouched pixels on the binary image and the coordinates on the writing medium and the coordinates on the image of the two-dimensional code pattern output from the fourth processing unit. A fifth processing means for obtaining coordinates indicating the position of the writing pixel on the writing medium and outputting it as writing information;
Sixth processing means for generating area information representing an area represented by a group of dots of the same color based on the dot coordinates and the dot color output from the second processing means;
It is characterized by having.

請求項6記載の発明は、請求項5記載の発明に係る加筆情報検出装置において、前記第4の処理手段は、検出した2次元コードパターンをデコードすることにより、前記電子文書の識別情報をも取得して出力することを特徴とする。 Invention according to claim 6, in revision information detecting apparatus according to the invention of claim 5, wherein said fourth processing means, by decoding the detected two-dimensional code pattern, also the identification information of the electronic document It is characterized by acquiring and outputting.

請求項7記載の発明は、請求項5記載の発明に係る加筆情報検出装置において、前記第3の処理手段は前記2値画像に細線化処理を施し、前記第5の処理手段は前記細線化処理後の前記2値画像中の加筆画素を処理の対象とすることを特徴とする。   According to a seventh aspect of the present invention, in the handwritten information detection apparatus according to the fifth aspect of the invention, the third processing unit performs thinning processing on the binary image, and the fifth processing unit performs the thinning processing. The added pixel in the binary image after processing is a processing target.

請求項8記載の発明は、請求項5記載の発明に係る加筆情報検出装置において、前記第2の処理手段は、前記カラー画像の各色成分毎にドットを検出し、その検出結果に基づいて、前記ドット画像を生成するとともに前記2次元コードパターンのドットの座標及び色を検出することを特徴とする。   According to an eighth aspect of the present invention, in the handwritten information detection device according to the fifth aspect of the invention, the second processing means detects a dot for each color component of the color image, and based on the detection result, The dot image is generated and the coordinates and color of the dot of the two-dimensional code pattern are detected.

請求項9記載の発明は、請求項5記載の発明に係る加筆情報検出装置において、前記第4の処理手段は前記ドット画像に複数の小領域を設定し、設定した各小領域において前記2次元コードパターンの検出を行うことを特徴とする。   According to a ninth aspect of the present invention, in the retouched information detecting apparatus according to the fifth aspect of the invention, the fourth processing unit sets a plurality of small areas in the dot image, and the two-dimensional area is set in each of the set small areas. It is characterized by detecting a code pattern.

請求項10記載の発明に係る加筆情報検出方法は、2次元コードパターンがマトリクス状に並べて印刷されており、前記各2次元コードパターンを構成するドットは特定の電子文書の領域情報を表すように色分けされている、前記電子文書に関連付けられた筆記媒体を読み取ったカラー画像を入力とし、前記筆記媒体に筆記具を用いて加筆された情報を検出する加筆情報検出方法であって、
前記カラー画像を2値化して背景画素を白画素、非背景画素を黒画素とした2値化画像を生成する第1の処理工程と、
前記カラー画像に基づいて、前記カラー画像の画素のうち、前記筆記媒体上にマトリクス状に並べて印刷されている2次元コードパターンのドットに対応した画素のみを黒画素で表し、それ以外の画素を白画素で表したドット画像を生成するとともに、前記2次元コードパターンのドットの前記ドット画像上での位置を表すドット座標及び前記2次元コードパターンのドットの色を表すドット色を検出して出力する第2の処理工程と、
前記第2の処理工程より出力されたドット座標を基に、前記2値化画像から前記2次元コードパターンのドットに対応した黒画素を除去することにより、前記筆記媒体の加筆された部分に対応した黒画素(以下、加筆画素と記す)を表す2値画像を生成する第3の処理工程と、
前記ドット画像より前記2次元コードパターンを検出し、検出した各2次元コードパターンをデコードすることにより、該2次元コードパターンの前記筆記媒体上での位置を表す座標(筆記媒体上座標と記す)を取得し、該筆記媒体上座標を該2次元コードパターンの前記ドット画像上の位置を表す座標(画像上座標)と対応付けて出力する第4の処理工程と、
前記各加筆画素の前記2値画像上での位置を表す座標と前記第4の処理手段より出力された前記2次元コードパターンの前記筆記媒体上座標及び前記画像上座標とに基づいて、前記各加筆画素の前記筆記媒体上での位置を示す座標を求め、それを加筆情報として出力する第5の処理工程と、
前記第2の処理工程より出力されたドット座標及びドット色に基づいて、同色のドット群で表される領域を表す領域情報を生成する第6の処理工程と、
を有することを特徴とする。
According to a tenth aspect of the present invention, there is provided an additional information detection method in which two-dimensional code patterns are arranged and printed in a matrix, and the dots constituting each two-dimensional code pattern represent region information of a specific electronic document. Color-coded, a rewritten information detection method for detecting information added using a writing instrument on a writing medium, with a color image obtained by reading a writing medium associated with the electronic document as an input,
A first processing step of binarizing the color image to generate a binarized image in which a background pixel is a white pixel and a non-background pixel is a black pixel;
Based on the color image, among the pixels of the color image, only pixels corresponding to the dots of the two-dimensional code pattern printed in a matrix on the writing medium are represented by black pixels, and the other pixels are represented. Generates a dot image represented by white pixels, and detects and outputs dot coordinates representing the position of the dot of the two-dimensional code pattern on the dot image and a dot color representing the color of the dot of the two-dimensional code pattern A second processing step,
Based on the dot coordinates output from the second processing step, by removing black pixels corresponding to the dots of the two-dimensional code pattern from the binarized image, it corresponds to the part of the writing medium that has been rewritten A third processing step of generating a binary image representing the black pixel (hereinafter referred to as an added pixel);
The coordinates representing the position of the two-dimensional code pattern on the writing medium by detecting the two-dimensional code pattern from the dot image and decoding each detected two-dimensional code pattern (denoted as coordinates on the writing medium) A fourth processing step of outputting the coordinates on the writing medium in association with coordinates (coordinates on the image) representing the positions on the dot image of the two-dimensional code pattern;
Based on the coordinates representing the position of each of the retouched pixels on the binary image and the coordinates on the writing medium and the coordinates on the image of the two-dimensional code pattern output from the fourth processing unit. A fifth processing step of obtaining coordinates indicating the position of the writing pixel on the writing medium and outputting it as writing information;
A sixth processing step for generating region information representing a region represented by a group of dots of the same color based on the dot coordinates and the dot color output from the second processing step;
It is characterized by having.

請求項11記載の発明は、請求項10記載の発明に係る加筆情報検出方法において、前記第4の処理工程は、検出した2次元コードパターンをデコードすることにより、前記電子文書の識別情報をも取得して出力することを特徴とする。 Invention of claim 11, wherein, in the revision information detecting method according to the invention of claim 10, wherein the fourth process step, by decoding the detected two-dimensional code pattern, also the identification information of the electronic document It is characterized by acquiring and outputting.

請求項12記載の発明は、請求項10記載の発明に係る加筆情報検出方法において、前記第3の処理工程は前記2値画像に細線化処理を施し、前記第5の処理工程は前記細線化処理後の前記2値画像中の加筆画素を処理の対象とすることを特徴とする。   According to a twelfth aspect of the present invention, in the handwritten information detection method according to the tenth aspect, the third processing step performs thinning processing on the binary image, and the fifth processing step includes the thinning processing. The added pixel in the binary image after processing is a processing target.

請求項13記載の発明は、請求項10記載の発明に係る加筆情報検出方法において、前記第2の処理工程は、前記カラー画像の各色成分毎にドットを検出し、その検出結果に基づいて、前記ドット画像を生成するとともに前記2次元コードパターンのドットの座標及び色を検出することを特徴とする。   According to a thirteenth aspect of the present invention, in the retouching information detection method according to the tenth aspect of the present invention, the second processing step detects dots for each color component of the color image, and based on the detection result, The dot image is generated and the coordinates and color of the dot of the two-dimensional code pattern are detected.

請求項14記載の発明は、請求項10記載の発明に係る加筆情報検出方法において、前記第4の処理工程は前記ドット画像に複数の小領域を設定し、設定した各小領域において前記2次元コードパターンの検出を行うことを特徴とする。   According to a fourteenth aspect of the present invention, in the handwritten information detection method according to the tenth aspect of the invention, the fourth processing step sets a plurality of small areas in the dot image, and the two-dimensional area is set in each of the set small areas. It is characterized by detecting a code pattern.

請求項15記載の発明に係るプログラムは、請求項記載の発明に係る加筆情報検出装置の各手段としてコンピュータを機能させるプログラムである。 A program according to a fifteenth aspect of the present invention is a program that causes a computer to function as each means of the additional information detecting device according to the fifth aspect of the present invention.

請求項16記載の発明に係る記録媒体は、請求項記載の発明に係る加筆情報検出装置の各手段としてコンピュータを機能させるプログラムが記録されたコンピュータ読み取り可能な記録媒体である。
A recording medium according to a sixteenth aspect of the present invention is a computer-readable recording medium on which a program that causes a computer to function as each means of the additional information detecting device according to the fifth aspect of the invention is recorded.

(1)請求項1乃至4に記載の発明に係る筆記媒体は、鉛筆やポールペン等の普通の筆記具を用いて線や文字等の情報を容易に加筆することができる。そして、加筆した筆記媒体をスキャナ等で読み取ってカラー画像として入力することにより、請求項5乃至14記載の発明に係る加筆情報検出装置又は方法によって、加筆情報を正確かつ高精度に検出することができる。請求項2記載の発明に係る筆記媒体では、それに関連付けられた電子文書の識別情報も取得できため、その識別情報を基に関連付けられた電子文書を開いて、それに加筆情報を付加するような処理が容易になる。請求項3記載の発明に係る筆記媒体には誤り訂正符号もエンコードされているため、より正確な加筆情報の検出が可能となる。請求項1乃至4記載の発明に係る筆記媒体では、2次元コードパターンのドットの色分けによって関連した電子文書の領域情報が表現されているため、その電子文書自体を見なくとも、筆記媒体を見るだけで、電子文書の内容、例えばゴルフコース・マップにおけるフェアウェイ、バンカー、ラフといった領域の概略を認識することができるので、ゴルファーの打球軌跡等の加筆が容易になる。また、ドットの色分けによる領域情報を検出し、これを加筆情報とともにプリントアウトするような処理も可能となる。請求項4記載の発明に係る筆記媒体は、ドットの面積率が5パーセント未満に抑えられているため、筆記媒体は人の目には明るい色に見えるため、筆記した線や文字が2次元コードパターンによって見えにくくなることがなく、さらに、ドットの印刷に用いられた色材によって筆記具が滑りやすくなることもなく、したがって筆記をスムーズに行うことができる等の効果を得られる。
(2)請求項5乃至14記載の発明に係る加筆情報検出装置又は方法によれば、請求項1乃至4記載の発明に係る筆記媒体に加筆された情報を正確にかつ高精度に検出し、さらに筆記媒体に関連付けられた電子文書の識別情報や領域情報を検出することができる等の効果を得られる。
(3)請求項15記載の発明に係るプログラム、又は請求項15記載の発明に係る記録媒体に記録されているプログラムをコンピュータにロードすることにより、コンピュータを請求項5乃至9記載の発明に係る加筆情報検出装置として動作させることができる。
(1) The writing medium according to the first to fourth aspects of the present invention can easily add information such as lines and characters using an ordinary writing instrument such as a pencil or a pole pen. Then, by reading the rewritten writing medium with a scanner or the like and inputting it as a color image, it is possible to detect the rewriting information accurately and with high accuracy by the retouching information detecting apparatus or method according to the inventions of claims 5 to 14. it can. In the writing medium according to the second aspect of the invention, the identification information of the electronic document associated therewith can also be acquired, so that the electronic document associated with the identification information is opened and the additional information is added to the electronic document. Becomes easier. Since the error correction code is also encoded in the writing medium according to the third aspect of the invention, more accurate writing information can be detected. In the writing medium according to the first to fourth aspects of the present invention, since the area information of the related electronic document is expressed by the color coding of the dots of the two-dimensional code pattern, the writing medium is viewed without looking at the electronic document itself. By simply recognizing the contents of the electronic document, for example, the outline of areas such as fairways, bunker and rough in the golf course map, it becomes easy to add a golfer's hitting ball trajectory. Further, it is possible to perform processing such as detecting area information based on dot color coding and printing it out together with the additional information. Since the writing medium according to the fourth aspect of the present invention has a dot area ratio of less than 5%, the writing medium appears to be a bright color to the human eye, so the written lines and characters are two-dimensional codes. The pattern does not become difficult to see, and the color material used for dot printing does not make the writing tool slip easily, so that the effect of smooth writing can be obtained.
(2) According to the handwritten information detection apparatus or method according to the inventions of claims 5 to 14, information added to the writing medium according to the invention of claims 1 to 4 is accurately and accurately detected, Furthermore, it is possible to obtain an effect that the identification information and area information of the electronic document associated with the writing medium can be detected.
(3) The computer according to any one of claims 5 to 9 is loaded by loading the program according to the invention according to claim 15 or the program recorded on the recording medium according to the invention according to claim 15 into the computer. It can be operated as a handwritten information detection device.

まず、本発明の筆記媒体とはどのようなものであるか、概略を説明する。   First, an outline of what the writing medium of the present invention is will be described.

本発明の筆記媒体は、単なる白紙や通常の印刷文書等ではない。本発明の筆記媒体は、電子文書の内容に情報を加筆するために利用されることを目的とするものであり、したがって、特定の電子文書に関連付けられたものである。   The writing medium of the present invention is not simply a blank sheet or a normal print document. The writing medium of the present invention is intended to be used for adding information to the contents of an electronic document, and is therefore associated with a specific electronic document.

具体的には、本発明の筆記媒体は、鉛筆やボールペン等の普通の筆記具を用いて筆記可能な材質の媒体、例えば紙に、予め所定サイズのドットパターンである2次元コードパターンがマトリクス状に並べて印刷されている。各2次元コードパターンは、その媒体上の位置を示す座標情報がエンコードされ、好ましい態様としては、この座標情報に加えて当該筆記媒体に関連付けられた電子文書の識別情報もエンコードされている。2次元コードパターンを構成するドットは、関連付けられた電子文書の領域情報を表すように色分けされている。つまり、ある同じ色のドット群からなる領域は、関連した電子文書上のある領域を表している。   Specifically, the writing medium of the present invention is a medium of a material that can be written using a normal writing instrument such as a pencil or a ballpoint pen, such as paper, and a two-dimensional code pattern that is a dot pattern of a predetermined size in a matrix. Printed side by side. Each two-dimensional code pattern is encoded with coordinate information indicating a position on the medium. In a preferred embodiment, identification information of an electronic document associated with the writing medium is encoded in addition to the coordinate information. The dots constituting the two-dimensional code pattern are color-coded so as to represent the area information of the associated electronic document. That is, an area composed of a group of dots of the same color represents a certain area on the related electronic document.

例えば、ゴルフコースの地図を内容とした電子文書に関連付けられた筆記媒体を考える。ゴルフコースにはフェアウェイ、バンカー、ラフ、グリーン、ウォーターハザード等があるが、フェアウェイの領域に対応したドットの色をイエロー、バンカーの領域に対応したドット色をマゼンタ、ウォーターハザードの領域に対応したドットの色をシアン、というように領域別にドット色を異ならせる。また、帳票を内容とした電子文書に関連付けられた筆記媒体の場合には、例えばブルーのドットで文字領域を表し、マゼンタのドットで文字や数字等の記入枠領域を表す、といったように領域別にドットが色分けされる。   For example, consider a writing medium associated with an electronic document whose content is a map of a golf course. There are fairways, bunker, rough, green, water hazard, etc. on the golf course, but the dot color corresponding to the fairway area is yellow, the dot color corresponding to the bunker area is magenta, and the dot corresponding to the water hazard area The color of the dots is different for each region, such as cyan. In the case of a writing medium associated with an electronic document containing a form, for example, a blue dot represents a character area, and a magenta dot represents an entry frame area such as letters and numbers. The dots are color coded.

このようにドット色によって電子文書の領域情報が表現されていると、加筆が容易になる。例えばゴルフコースの地図を内容とした電子文書に関連付けられた筆記媒体の場合、その電子文書のプリント等を参照することなくゴルフコースのフェアウェイ等の領域を把握することができるため、加筆媒体のみを見ながら、各プレイヤーの打球の軌跡等を容易に加筆することができる利点がある。さらに、関連付けられた電子文書を開かなくとも、筆記媒体から領域情報を検出することにより、関連付けられた電子文書の内容の概略を再現し、それに加筆情報を描画するようなことも可能となる。   Thus, when the area information of the electronic document is expressed by the dot color, writing becomes easy. For example, in the case of a writing medium associated with an electronic document whose content is a map of a golf course, it is possible to grasp the area such as the fairway of the golf course without referring to the print of the electronic document. There is an advantage that the trajectory of the hit ball of each player can be easily added while watching. Further, by detecting the area information from the writing medium without opening the associated electronic document, it is possible to reproduce the outline of the contents of the associated electronic document and draw the additional information on it.

以下、本発明の筆記媒体の実施形態について図面を用い詳細に説明する。   Hereinafter, embodiments of the writing medium of the present invention will be described in detail with reference to the drawings.

前述のように、筆記媒体には所定サイズの2次元コードパターンがマトリクス状に印刷されている。そのような2次元コードパターンの例を図1に示す。図1の2a,2b,2c,2dがそれぞれ2次元コードパターンである。ここでは4個の2次元コードパターンが示されているが、筆記媒体の略全面に、同様の2次元コードパターンが縦横に規則的にマトリクス配列で印刷されている。縦方向ドット列(垂直線)H1,H2,H3と、横方向ドット列(水平線)V1,V2,V3は、2次元コードパターンの枠(境界)を構成している。そして、2次元コードパターンを構成するドット(枠もくしは境界のドットも含まれる)は、前述したように、関連付けられた電子文書上の領域情報を表すように色分けされて、光学的に読み取り可能な黒又はカラーの色材を用い印刷される。なお、ドットの色分けは、2次元コードパターンの境界とは無関係に行うことができる。   As described above, a two-dimensional code pattern of a predetermined size is printed in a matrix on the writing medium. An example of such a two-dimensional code pattern is shown in FIG. 2a, 2b, 2c, and 2d in FIG. 1 are two-dimensional code patterns. Here, four two-dimensional code patterns are shown, but the same two-dimensional code patterns are regularly printed in a matrix arrangement vertically and horizontally on almost the entire surface of the writing medium. The vertical dot rows (vertical lines) H1, H2, and H3 and the horizontal dot rows (horizontal lines) V1, V2, and V3 form a frame (boundary) of the two-dimensional code pattern. Then, as described above, the dots constituting the two-dimensional code pattern (including the frame or the boundary dot) are color-coded to represent the area information on the associated electronic document and optically read. Printed using possible black or color colorants. It should be noted that the color coding of the dots can be performed regardless of the boundary of the two-dimensional code pattern.

前述のように、筆記媒体上の各2次元コードパターンには、該筆記媒体に関連付けられた電子文書の識別情報(文書ID情報)と、2次元コードパターンの媒体上の位置を表す水平、垂直座標がエンコードされている。文書ID情報は、電子文書に固有の識別情報、例えば電子文書が格納されているデータベースにおけるID情報である。   As described above, each two-dimensional code pattern on the writing medium includes the identification information (document ID information) of the electronic document associated with the writing medium and the horizontal and vertical indicating the position of the two-dimensional code pattern on the medium. Coordinates are encoded. The document ID information is identification information unique to the electronic document, for example, ID information in a database in which the electronic document is stored.

図1に示した2次元コードパターン2aには「水平座標=95,垂直座標=10,文書ID=10」がエンコードされ、2次元コードパターン2bには「水平座標=96,垂直座標=10,文書ID=10」がエンコードされ、2次元コードパターン2cには「水平座標=95,垂直座標=11,文書ID=10」がエンコードされ、また、2次元コードパターン2dには「水平座標=96,垂直座標=11,文書ID=10」がエンコードされている。   In the two-dimensional code pattern 2a shown in FIG. 1, "horizontal coordinates = 95, vertical coordinates = 10, document ID = 10" is encoded, and in the two-dimensional code pattern 2b, "horizontal coordinates = 96, vertical coordinates = 10, “Document ID = 10” is encoded, “Horizontal coordinate = 95, Vertical coordinate = 11, Document ID = 10” is encoded in the two-dimensional code pattern 2c, and “Horizontal coordinate = 96” is encoded in the two-dimensional code pattern 2d. , Vertical coordinate = 11, document ID = 10 ”are encoded.

ここで、2次元コードパターンのドットの大きさ、ドット間隔、2次元コードパターンの大きさについて図2を用い説明する。2次元コードパターン(枠含む)のドット2702は、筆記媒体の印刷に用いられるプリンタの最小ドット2701の2x2単位で印刷される。例えば1200dpiのプリンタの場合、最小ドット径は21μmであるので、2次元コードパターンのドットの直径は理想的には42μmとなる(実際にはドットゲインがあるためドットの直径はもう少し大きくなる)。このようなドットを、その直径の6倍の間隔を置いて水平・垂直方向に配置するものとする。この場合、ドット配置位置すべてにドットを印刷した場合でも、筆記媒体全体に対するドットの占める面積率は、ドットゲインが無いとすると2.8%であり、50%程度のドットゲインを見込んでも面積率は5%に満たない。このような面積率であれば、2次元コードパターンは人の目には明るい色に見えるため、2次元コードパターンによって加筆した文字や線等が見えにくくなることはない。また、印刷に用いられた色材が筆記の妨げになることもない。   Here, the dot size of the two-dimensional code pattern, the dot interval, and the size of the two-dimensional code pattern will be described with reference to FIG. The dots 2702 of the two-dimensional code pattern (including the frame) are printed in 2 × 2 units of the minimum dots 2701 of the printer used for printing the writing medium. For example, in the case of a 1200 dpi printer, since the minimum dot diameter is 21 μm, the dot diameter of the two-dimensional code pattern is ideally 42 μm (in reality, the dot diameter is a little larger due to the dot gain). It is assumed that such dots are arranged in the horizontal and vertical directions with an interval of 6 times the diameter. In this case, even when dots are printed at all the dot arrangement positions, the area ratio occupied by dots with respect to the entire writing medium is 2.8% if there is no dot gain, and even if a dot gain of about 50% is expected, the area ratio Is less than 5%. With such an area ratio, since the two-dimensional code pattern looks bright to the human eye, characters, lines, etc. added by the two-dimensional code pattern do not become difficult to see. In addition, the color material used for printing does not interfere with writing.

上に述べたように2次元コードパターンのドットの配置位置を決めたならば、2次元コードパターンは2mm(水平)×3mm(垂直)のサイズとなる。したがって、2次元コードパターンにエンコードされた水平座標=95,垂直座標=10という情報は、該2次元コードパターンの左上の角が媒体の左上を原点として水平方向に190mm(=95×2)、垂直方向に30mm(=10×3)の位置にあることを意味する。詳しくは後述するが、2次元コードパターンの2mm(水平)×3mm(垂直)のサイズは、A4版用紙と相似のサイズであり、水平・垂直座標情報を格納するデータ長を有効に使うことが可能になる。   As described above, if the arrangement positions of the dots of the two-dimensional code pattern are determined, the two-dimensional code pattern has a size of 2 mm (horizontal) × 3 mm (vertical). Therefore, the information of horizontal coordinate = 95 and vertical coordinate = 10 encoded in the two-dimensional code pattern is that the upper left corner of the two-dimensional code pattern is 190 mm (= 95 × 2) in the horizontal direction with the upper left corner of the medium as the origin. It means that the position is 30 mm (= 10 × 3) in the vertical direction. As will be described in detail later, the 2 mm (horizontal) × 3 mm (vertical) size of the two-dimensional code pattern is similar to that of A4 size paper, and the data length for storing horizontal / vertical coordinate information can be used effectively. It becomes possible.

かくして、図1に示した2次元コードパターン2aは、その左上の角(垂直線H1と水平線V1の交点)が媒体左上から水平190mm、垂直30mmの位置にあり、文書ID=10を持つ電子文書に関連付けられている、という情報を有する。   Thus, the two-dimensional code pattern 2a shown in FIG. 1 has an upper left corner (intersection of the vertical line H1 and the horizontal line V1) at a position of 190 mm horizontally and 30 mm vertically from the upper left of the medium, and an electronic document having a document ID = 10. Information associated with the.

図1中の2次元コードパターン2aを例に、2次元コードパターン内のデータ配置について説明する。図3は、図1中の2次元コードパターン2aの拡大図である。2次元コードパターン2aは全体として、枠を構成するドット配列H1,H2,V1,V2に囲まれた7×11のセルを有する。セルとは情報を表すドットを打つことのできる単位をいう。401は水平座標を表すデータを配置する領域であり4×2のセルを有する。ドットの有無で情報を表現し、1セルが1ビットに相当するので、領域401は1バイトの情報をエンコード可能な容量を有する。402は垂直座標を表すデータを配置する領域であり、4×2のセル、1バイトの容量を有する。A4版の用紙は210mm(水平)×297mm(垂直)のサイズであり、2次元コードパターンは2mm(水平)×3mm(垂直)のサイズであるので、A4版用紙に2次元コードパターンを最大で水平方向に105個、垂直方向に99個並べることができるが、そのような2次元コードパターンの水平及び垂直座標は1バイトで表現可能である。A3版の用紙のサイズは297mm(水平)×420mm(垂直)であるので、A3版用紙に2次元コードパターンを最大で水平方向に148個、垂直方向に120個並べることができるが、そのような2次元コードパターンの水平及び垂直座標は1バイトで表現可能である。420mm(水平)×594mm(垂直)のサイズのA2版用紙の場合には、2次元コードパターンを最大で水平方向に210個、垂直方向に198個並べることができるが、そのような2次元コードパターンの水平及び垂直座標も1バイトで表現可能である。このように用紙の縦横比と2次元コードパターンの縦横比を等しくすると、2次元コードパターンの水平、垂直座標を表す領域401,402のデータ長を同一サイズに固定しても、幅広いサイズの用紙に対応可能である。   The data arrangement in the two-dimensional code pattern will be described by taking the two-dimensional code pattern 2a in FIG. 1 as an example. FIG. 3 is an enlarged view of the two-dimensional code pattern 2a in FIG. The two-dimensional code pattern 2a as a whole has 7 × 11 cells surrounded by dot arrays H1, H2, V1, and V2 that form a frame. A cell is a unit in which dots representing information can be placed. Reference numeral 401 denotes an area in which data representing horizontal coordinates is arranged, and has 4 × 2 cells. Since information is expressed by the presence or absence of dots, and one cell corresponds to one bit, the region 401 has a capacity capable of encoding 1-byte information. Reference numeral 402 denotes an area in which data representing vertical coordinates is arranged, and has a capacity of 4 × 2 cells and 1 byte. The A4 size paper is 210 mm (horizontal) x 297 mm (vertical) size, and the 2D code pattern is 2 mm (horizontal) x 3 mm (vertical) size. Although 105 in the horizontal direction and 99 in the vertical direction can be arranged, the horizontal and vertical coordinates of such a two-dimensional code pattern can be expressed by 1 byte. Since the size of the A3 size paper is 297 mm (horizontal) × 420 mm (vertical), a maximum of 148 horizontal dimension patterns and 120 vertical dimensions can be arranged on the A3 size paper. The horizontal and vertical coordinates of such a two-dimensional code pattern can be expressed by 1 byte. In the case of A2 size paper having a size of 420 mm (horizontal) × 594 mm (vertical), a maximum of 210 two-dimensional code patterns can be arranged in the horizontal direction and 198 in the vertical direction. The horizontal and vertical coordinates of the pattern can also be expressed by 1 byte. In this way, when the aspect ratio of the paper and the aspect ratio of the two-dimensional code pattern are equal, even if the data lengths of the regions 401 and 402 representing the horizontal and vertical coordinates of the two-dimensional code pattern are fixed to the same size, a wide variety of paper sizes Can be supported.

図3において、403は文書IDを表すデータを配置する領域であり、4×6のセル、24ビット(3バイト)の容量を有する。404〜407の4領域は誤り訂正符号を配置する領域であり、各領域は1バイトの容量を有し、4領域合計で4バイトの容量を有する。408と409は2次元コードパターンの上下方向を表すための領域である。領域408は3×1のセルを有し、全てのセルに黒ドットが打たれる。領域409は2×1のセルを有し、いずれのセルにもドットは打たれない。   In FIG. 3, reference numeral 403 denotes an area for arranging data representing a document ID, which has 4 × 6 cells and a capacity of 24 bits (3 bytes). Four areas 404 to 407 are areas where error correction codes are arranged. Each area has a capacity of 1 byte and has a capacity of 4 bytes in total of the 4 areas. Reference numerals 408 and 409 denote areas for representing the vertical direction of the two-dimensional code pattern. The area 408 has 3 × 1 cells, and black dots are applied to all the cells. The area 409 has 2 × 1 cells, and no dot is placed in any of the cells.

図4は、2次元コードパターンの領域401〜407にデータのビットがどのような順番で配列されるかを示す図である。図4において、「1」はデータの最上位ビット(MSB)を意味し、「2」は1つ下位のビットを意味し、「3」はさらに1つ下位のビットを意味し、以下同様に大きな数字ほど下位のビットを意味する。したがって、領域401等の「8」は最下位ビット(LSB)を意味し、領域403の「24」は最下位ビットを意味する。   FIG. 4 is a diagram showing in what order the data bits are arranged in the regions 401 to 407 of the two-dimensional code pattern. In FIG. 4, “1” means the most significant bit (MSB) of data, “2” means a bit lower by one, “3” means a bit lower by one, and so on. Larger numbers mean lower bits. Therefore, “8” in the area 401 or the like means the least significant bit (LSB), and “24” in the area 403 means the least significant bit.

図5は、本発明の実施形態に係る文書管理システムの構成を示す図である。この文書管理システムはプリンタ601、複写機602、スキャナ603、パーソナルコンピュータやワークステーション等の情報処理装置604,609、ハードディスク装置等の記憶装置605がネットワークを介して接続された構成である。ただし、このようなシステム構成はあくまで一例である。記憶装置605には電子文書1や文書管理データベース606等が格納される。   FIG. 5 is a diagram showing the configuration of the document management system according to the embodiment of the present invention. This document management system has a configuration in which a printer 601, a copier 602, a scanner 603, information processing devices 604 and 609 such as a personal computer and a workstation, and a storage device 605 such as a hard disk device are connected via a network. However, such a system configuration is merely an example. The storage device 605 stores the electronic document 1, the document management database 606, and the like.

次に、図5に示した文書管理システムにおいて、前述したような筆記媒体の印刷イメージを作成し、それを印刷する手順について説明する。   Next, a procedure for creating a print image of a writing medium as described above and printing it in the document management system shown in FIG. 5 will be described.

図6は、筆記媒体の印刷イメージを作成する手順を説明するためのフローチャートである。筆記媒体の印刷イメージの作成処理は、例えば、情報処理装置609(又は604)で、関連付けられた電子文書1の印刷命令を実行した時に該情報処理装置内のプリンタドライバによって行われる(ただし、他のアプリケーションソフトウェアによって実行する態様も当然に可能である)。   FIG. 6 is a flowchart for explaining a procedure for creating a print image of a writing medium. The print image creation process of the writing medium is performed by the printer driver in the information processing apparatus when the information processing apparatus 609 (or 604) executes the print instruction of the associated electronic document 1 (however, other Naturally, it is possible to execute the program by the application software of the above).

プリンタドライバはまず、記憶装置605内の文書管理データベース606に問い合わせて電子文書1のページ毎の文書IDを発行してもらう(step1)。   First, the printer driver inquires of the document management database 606 in the storage device 605 and issues a document ID for each page of the electronic document 1 (step 1).

以下、step2〜7の処理ループで、2次元コードパターン単位で当該文書ページに対応した筆記媒体の印刷イメージを順次作成する処理を行う。   Hereinafter, in the processing loop of steps 2 to 7, processing for sequentially creating a print image of a writing medium corresponding to the document page in units of two-dimensional code patterns is performed.

すなわち、プリンタドライバでは、1つの2次元コードパターンにエンコードすべき当該2次元コードパターンの筆記媒体上の位置を示す座標情報を取得する(step2)。例えば図7に示すように、文書ID「123456」、mm単位の座標情報(24,123)が得られる。   That is, the printer driver acquires coordinate information indicating the position on the writing medium of the two-dimensional code pattern to be encoded into one two-dimensional code pattern (step 2). For example, as shown in FIG. 7, a document ID “123456” and coordinate information (24, 123) in mm units are obtained.

次にプリンタドライバは、取得した文書IDとmm単位座標情報のエンコード処理を実行する(step3)。すなわち、図7に示すように、6桁の文書IDを3バイトのバイナリ値に変換する。また、mm単位の水平、垂直座標情報(24,123)を2次元コードパターンの水平サイズ2、垂直サイズ3でそれぞれ除して1バイトに収まる値(12,41)に変換したうえで、それぞれを各1バイトのバイナリ値に変換する。かくして、1つの2次元コードパターンに関し、座標情報の2バイト、文書IDの3バイトの計5バイトのデータが得られる。   Next, the printer driver executes an encoding process of the acquired document ID and mm-unit coordinate information (step 3). That is, as shown in FIG. 7, the 6-digit document ID is converted into a 3-byte binary value. In addition, the horizontal and vertical coordinate information (24, 123) in units of mm is divided by the horizontal size 2 and vertical size 3 of the two-dimensional code pattern, respectively, and converted into values (12, 41) that fit in 1 byte, respectively. Are converted into binary values of 1 byte each. Thus, with respect to one two-dimensional code pattern, 2 bytes of coordinate information and 3 bytes of document ID, a total of 5 bytes of data are obtained.

次にプリンタドライバは、この5バイトのデータに誤り訂正符号を付加する(step4)。図7の例では、5バイトのデータに対して4バイトの誤り訂正符号を付加している。この誤り訂正符号としてリードソロモン符号を採用する。リードソロモン符号はバイト単位の誤りを訂正できる強力な誤り訂正符号であり、その符号長の半分以下の誤りを訂正することができる。この例では誤り訂正符号長が4バイトなので、2バイトの誤り訂正が可能である。なお、リードソロモン誤り訂正符号は「宮川,岩垂,今井共著、”符号理論(コンピュータ基礎講座18)”,昭晃堂」など多数の書籍に解説されているので、これ以上の説明は省略する。   Next, the printer driver adds an error correction code to the 5-byte data (step 4). In the example of FIG. 7, a 4-byte error correction code is added to 5-byte data. A Reed-Solomon code is adopted as this error correction code. The Reed-Solomon code is a powerful error correction code that can correct errors in byte units, and can correct errors that are less than half the code length. In this example, since the error correction code length is 4 bytes, 2-byte error correction is possible. Reed-Solomon error correction codes are described in a number of books such as “Miyakawa, Iwatari, Imai,“ Code Theory (Computer Fundamental Course 18) ”, Shosodo”, and so on, so further explanation is omitted.

電子文書1の当該ページには、例えば、座標(x0,y0)から(x1,y1)の矩形領域はティーグラウンドの領域である、座標点列(xi,yi)で囲まれた領域はバンカーの領域である、というような領域情報があるとする。プリンタドライバは、現在処理対象となっている2次元コードパターンの位置に対応した、そのような領域情報を取得する(step5)。   The page of the electronic document 1 includes, for example, a rectangular area from coordinates (x0, y0) to (x1, y1) that is a tee ground area, and an area surrounded by a coordinate point sequence (xi, yi) is a bunker area. Assume that there is area information such as an area. The printer driver acquires such area information corresponding to the position of the two-dimensional code pattern that is currently processed (step 5).

そしてプリンタドライバは、作成されたエンコードデータ及び誤り訂正符号データを2次元コードパターンの該当したセルに割り当てるとともに、それぞれのドットに取得した領域情報に基づいた色を割り付けた2次元コードパターンを作成し、メモリ上に確保された媒体印刷イメージ用ページ上に、該2次元コードパターンを、そのmm単位座標情報で示される位置に配置する(step6)。なお、2次元コードパターンのドットの色分けで文字(文字領域)を表現することもできる。印刷に使用されるプリンタでシアン、マゼンタ、イエロー、ブラックの4色の色材が用いられる場合、ドットの色はシアン、マゼンタ、イエロー、レッド、グリーン、ブルー、ブラックの7色から選ぶのが適当である。   The printer driver assigns the generated encoded data and error correction code data to the corresponding cells of the two-dimensional code pattern, and creates a two-dimensional code pattern in which colors are assigned to the respective dots based on the area information acquired. The two-dimensional code pattern is arranged at the position indicated by the mm-unit coordinate information on the medium print image page secured in the memory (step 6). A character (character area) can also be expressed by color coding of dots of a two-dimensional code pattern. When four color materials of cyan, magenta, yellow, and black are used in the printer used for printing, it is appropriate to select the dot color from seven colors of cyan, magenta, yellow, red, green, blue, and black. It is.

同様の処理が繰り返されることにより、ページ全体に2次元コードパターンがマトリクス配置された筆記媒体印刷イメージが作成される。   By repeating the same processing, a writing medium print image in which a two-dimensional code pattern is arranged in a matrix on the entire page is created.

電子文書1が複数ページからなる場合、各ページについて同様の処理により筆記媒体印刷イメージが作成される。   When the electronic document 1 is composed of a plurality of pages, a writing medium print image is created by the same processing for each page.

このようにして、電子文書1の全ページについて2次元コードパターンをマトリクス配置した筆記媒体印刷ページが作成されると、図6には示されていないが、プリンタドライバは、作成された筆記媒体印刷イメージをプリンタ601又は複写機602のプリンタ部を使用して印刷する。この印刷が正常に終了したならば、文書管理データベース606に当該筆記媒体の印刷イメージの各ページとその文書IDの情報の登録を行う。   In this way, when a writing medium print page in which a two-dimensional code pattern is arranged in a matrix for all pages of the electronic document 1 is created, the printer driver prints the created writing medium print, which is not shown in FIG. The image is printed using the printer unit of the printer 601 or the copier 602. If this printing is normally completed, each page of the print image of the writing medium and the document ID information are registered in the document management database 606.

上記の一連の作業のフローを図8に示す。まず、作業者は、記憶装置605に保存されている電子文書1の各ページを必要に応じてアプリケーションソフトウェアにより編集して印刷命令を出す(step11)。プリンタドライバによって図6に示したような手順により電子文書1の各ページに対応した筆記媒体印刷イメージが作成され、プリンタ601又は複写機602で印刷される(step12)。プリンタドライバは、その印刷が正常に終了したならば(step13,Yes)、上記のような文書管理データベース606への登録処理を行う(step14)。   FIG. 8 shows a flow of the above series of operations. First, the operator edits each page of the electronic document 1 stored in the storage device 605 with application software as necessary, and issues a print command (step 11). A writing medium print image corresponding to each page of the electronic document 1 is created by the printer driver according to the procedure shown in FIG. 6 and printed by the printer 601 or the copier 602 (step 12). If the printing is normally completed (step 13, Yes), the printer driver performs the registration process in the document management database 606 as described above (step 14).

さて、以上のようにして印刷された筆記媒体に、鉛筆やボールペンなどの普通の筆記具を用いて加筆することができる。そして、筆記媒体の画像を読み取り、その画像より加筆情報を抽出し、それを関連付けられた電子文書に付加する処理等を行うことができる。   Now, the writing medium printed as described above can be added using an ordinary writing instrument such as a pencil or a ballpoint pen. Then, it is possible to perform processing or the like of reading an image of a writing medium, extracting additional information from the image, and adding the extracted information to the associated electronic document.

次に、筆記媒体に加筆された情報の抽出について説明する。   Next, extraction of information added to the writing medium will be described.

筆記媒体に加筆された情報を抽出する場合、文書管理システム(図5)のスキャナ603又は複写機602のスキャナ部を用いて、筆記媒体をカラー画像として読み取り、このカラー画像に対する処理によって加筆情報を抽出する。この処理は、スキャナ603又は複写機602の内部に設けられた本発明の加筆情報検出装置(図5には不図示)によって実行されるか、あるいは、情報処理装置604又は609においてソフトウェアにより実行される。後者のソフトウェア処理の場合には、筆記媒体を読み取ったカラー画像は記憶装置605に一旦保存される。   When extracting the information added to the writing medium, the writing medium is read as a color image by using the scanner unit 603 of the document management system (FIG. 5) or the scanner unit of the copier 602, and the writing information is obtained by processing the color image. Extract. This processing is executed by the retouching information detection device (not shown in FIG. 5) of the present invention provided in the scanner 603 or the copier 602, or by software in the information processing device 604 or 609. The In the case of the latter software processing, the color image read from the writing medium is temporarily stored in the storage device 605.

まず、スキャナ603又は複写機602の内部に設けられる加筆情報検出装置について説明する。   First, a writing information detection apparatus provided inside the scanner 603 or the copier 602 will be described.

図9−1は、加筆情報検出装置のブロック図である。ここに示す加筆情報検出装置は、2値化部200、ドット検出部202R,202G,202B、画像合成/ドット色検出部204、加筆抽出部206、2次元コード・デコード部208、領域情報抽出部210、及び、加筆座標特定部212から構成される。各部について順次説明する。   FIG. 9A is a block diagram of the writing information detection apparatus. The retouching information detection apparatus shown here includes a binarization unit 200, dot detection units 202R, 202G, and 202B, an image composition / dot color detection unit 204, a retouching extraction unit 206, a two-dimensional code decoding unit 208, and a region information extraction unit. 210 and an added coordinate specifying unit 212. Each part will be described sequentially.

まず、2値化部200は、加筆された筆記媒体を読み取ったカラー画像データ(RGBデータ)をグレースケール画像データに変換し、このグレースケール画像データを2値化閾値を用いて2値化することにより、筆記媒体上の加筆部分と濃度の高いドットに対応した画素が黒、それ以外の画素が白の2値化画像データを生成する手段である。2値化閾値として予め設定した固定値を用いることもできるが、グレースケール画像データに応じて適応的に2値化閾値を決定するようにしてもよい。2値化閾値を適応的に決定する方法としては、例えば特開2001−8032号公報に記載されている方法を用いることができる。これについて簡略に説明すると、グレースケール画像データをブロックに分割し、ブロック毎に、所定のサンプリング周期で飛び飛びに画素をサンプリングし、サンプリングされた画素の中で輝度値が低輝度閾値を超える画素の平均輝度値を算出し、この平均輝度値を用い所定の計算式により当該ブロックのための2値化閾値を算出する。低輝度閾値は固定することも可能であるが、隣接ブロックについて算出された平均輝度値に基づいて計算により低輝度閾値を決定するようにしてもよい。   First, the binarization unit 200 converts color image data (RGB data) obtained by reading an added writing medium into grayscale image data, and binarizes the grayscale image data using a binarization threshold value. Thus, this is means for generating binarized image data in which the pixel corresponding to the rewritten portion on the writing medium and the high-density dot is black, and the other pixels are white. Although a preset fixed value can be used as the binarization threshold, the binarization threshold may be adaptively determined according to grayscale image data. As a method for adaptively determining the binarization threshold value, for example, a method described in JP 2001-8032 A can be used. Briefly describing this, grayscale image data is divided into blocks, and pixels are sampled with a predetermined sampling period for each block, and pixels whose luminance value exceeds the low luminance threshold among the sampled pixels are sampled. An average luminance value is calculated, and a binarization threshold for the block is calculated using a predetermined calculation formula using the average luminance value. Although the low luminance threshold value can be fixed, the low luminance threshold value may be determined by calculation based on the average luminance value calculated for adjacent blocks.

ドット検出部202R,202G,202Bは、筆記媒体を読み取ったカラー画像データ(RGBデータ)がRGB各平面に分けられて入力され、R,G,B平面上で2次元コードパターン(その枠を含む)を構成するドットの検出を行うものである。各ドット検出部は同一の構成である。   The dot detection units 202R, 202G, and 202B receive color image data (RGB data) obtained by reading a writing medium, divided into RGB planes, and input a two-dimensional code pattern (including its frame) on the R, G, and B planes. ) Is detected. Each dot detection unit has the same configuration.

図10−1は、各ドット検出部202の第1の実施例を示すブロック図である。ドット検出は左上からラスタースキャン順に注目画素を移動しながら行われる。ドット検出の際に参照される領域は、図11に示すような注目画素Zを中心とした7×7画素の領域である。   FIG. 10A is a block diagram illustrating a first example of each dot detection unit 202. Dot detection is performed while moving the target pixel from the upper left in the order of raster scanning. The region referred to when detecting dots is a 7 × 7 pixel region centered on the target pixel Z as shown in FIG.

本実施例に係るドット検出部202は、注目画素Zを中心とした7×7画素の領域を参照して、注目画素Zがドット候補であるか否かを判定するドット候補判定器3101と、ドット候補判定器3101でドット候補とされた注目画素Zの輝度が周囲の画素の輝度より低いか否かを判定する最小輝度画素判定器3102と、最小輝度画素判定器3102により最小輝度画素であると判定されたドット候補の周囲にすでにドットとして検出された画素があるか否かを調べ、周辺に検出済みのドットがなければドット候補を最終的にドットとして検出する周辺ドット探索器3103とから構成される。各部をより詳しく説明する。   The dot detection unit 202 according to the present embodiment refers to a 7 × 7 pixel area centered on the target pixel Z, a dot candidate determination unit 3101 that determines whether the target pixel Z is a dot candidate, A minimum luminance pixel determining unit 3102 that determines whether or not the luminance of the target pixel Z that is a dot candidate by the dot candidate determining unit 3101 is lower than the luminance of surrounding pixels, and the minimum luminance pixel determining unit 3102 is the minimum luminance pixel. It is checked whether there is a pixel already detected as a dot around the dot candidate determined to be, and if there is no dot already detected in the periphery, the dot candidate is finally detected as a dot. Composed. Each part will be described in more detail.

ドット候補判定器3101は、下記式(1)〜式(8)の条件を全て満足するときに、注目画素Zをドット候補と判定する。ただし、Thは所定の閾値であり、A,B,C,...等のアルファベットは、図11中の対応位置の画素の値を示す。R,G,B各面の1画素は8ビットで表現され、0から255までの値をとるものとする。   The dot candidate determination unit 3101 determines the target pixel Z as a dot candidate when all the conditions of the following formulas (1) to (8) are satisfied. However, Th is a predetermined threshold value, and A, B, C,. . . The alphabets such as indicate the value of the pixel at the corresponding position in FIG. One pixel on each surface of R, G, B is expressed by 8 bits and takes a value from 0 to 255.

Z<A−Th (1)
Z<E−Th (2)
Z<L−Th (3)
Z<P−Th (4)
Z<Q−Th (5)
Z<R−Th (6)
Z<S−Th (7)
Z<T−Th (8)。
Z <A-Th (1)
Z <E-Th (2)
Z <L-Th (3)
Z <P-Th (4)
Z <Q-Th (5)
Z <R-Th (6)
Z <S-Th (7)
Z <T-Th (8).

最小輝度画素判定器3102は、ドット候補とされた注目画素Zが下記の式(9)〜式(20)の条件を全て満足するときに最小輝度を有すると判定する。   The minimum luminance pixel determination unit 3102 determines that the pixel of interest Z, which is a dot candidate, has the minimum luminance when all the conditions of the following formulas (9) to (20) are satisfied.

Z<B (9)
Z<C (10)
Z<D (11)
Z<F (12)
Z<G (13)
Z<H (14)
Z<I (15)
Z<J (16)
Z<K (17)
Z<M (18)
Z<N (19)
Z<O (20)。
Z <B (9)
Z <C (10)
Z <D (11)
Z <F (12)
Z <G (13)
Z <H (14)
Z <I (15)
Z <J (16)
Z <K (17)
Z <M (18)
Z <N (19)
Z <O (20).

周辺ドット探索器3103は、ドット候補判定器3101でドット候補と判定され、かつ、最小輝度画素判定器3102で最小輝度画素と判定された注目画素Zについて、その周囲のU,V,W,X位置にドットとして検出済みの画素が存在しなければ、注目画素Zを最終的にドットと判定する(注目画素Zはドットとして検出される)。ドット検出の処理は左上からラスタースキャン順に行われるため、周辺ドット探索器3103は、Y位置の画素については調べる必要はない。   The surrounding dot searcher 3103 is the U, V, W, X around the pixel of interest Z determined as a dot candidate by the dot candidate determination unit 3101 and determined as the minimum luminance pixel by the minimum luminance pixel determination unit 3102. If there is no pixel detected as a dot at the position, the target pixel Z is finally determined as a dot (the target pixel Z is detected as a dot). Since the dot detection process is performed in the raster scan order from the upper left, the peripheral dot searcher 3103 does not need to examine the pixel at the Y position.

なお、上記式(1)〜(8)中の閾値Thは適切な値に設定する必要がある。閾値Thの値が小さいほどドットを検出しやすくなるが、同時にノイズをもドットとして検出してしまい、検出データに誤りが起きる可能性が高くなる。一方、閾値Thの値が大きければノイズの誤検出を減らすことができるが、本来のドットの検出率が下がり2次元コードの読み取り確率が下がる。   In addition, it is necessary to set the threshold value Th in the above formulas (1) to (8) to an appropriate value. The smaller the threshold value Th, the easier it is to detect dots, but at the same time, noise is also detected as dots, and the possibility of errors in detection data increases. On the other hand, if the threshold value Th is large, the false detection of noise can be reduced, but the original dot detection rate is lowered and the reading probability of the two-dimensional code is lowered.

図12−1は、ドット検出器202の第2の実施例を示すブロック図である。本実施例に係るドット検出器202は、ドット検出処理をより高速化するため、最前段にドット探索領域判定器3100が追加された点が前記第1の実施例と異なる。   FIG. 12A is a block diagram illustrating a second embodiment of the dot detector 202. The dot detector 202 according to this embodiment is different from the first embodiment in that a dot search area determination device 3100 is added in the forefront stage in order to speed up the dot detection process.

ドット探索領域判定器3100は、筆記媒体を読み取ったカラー画像データのR,G又はB平面上で、水平、垂直各方向に1画素おきに画素を選び、該画素を図11中の注目画素Zとして前記式(1)〜(8)の全ての条件が満たされたときに、該画素を中心とした3×3画素の領域をドットを探索すべき領域(ドット探索領域)と判定する。   The dot search area determination unit 3100 selects a pixel every other pixel in the horizontal and vertical directions on the R, G, or B plane of the color image data read from the writing medium, and selects the pixel as the target pixel Z in FIG. When all the conditions of the above formulas (1) to (8) are satisfied, an area of 3 × 3 pixels centered on the pixel is determined as an area for searching for a dot (dot search area).

そして、このドット探索領域内の各画素のみがドット候補判定器3101による処理の注目画素となる。この点を除けば、ドット候補判定器3101の処理内容は前記第1の実施例の場合と同じである。このようにドット探索領域を予め絞り込むため、全画素についてドット探索を行う前記第1の実施例にくらべ処理が高速化される。なお、各注目画素に対するドット候補判定器3101の処理内容は前記第1の実施例の場合と同様である。また、最小輝度画素判定器3102の処理内容も前記第1の実施例の場合と同様である。   Only each pixel in the dot search area becomes a target pixel for processing by the dot candidate determination unit 3101. Except for this point, the processing content of the dot candidate determination unit 3101 is the same as in the case of the first embodiment. Thus, since the dot search area is narrowed down in advance, the processing speed is increased compared to the first embodiment in which dot search is performed for all pixels. The processing contents of the dot candidate determination unit 3101 for each target pixel are the same as those in the first embodiment. The processing content of the minimum luminance pixel determination unit 3102 is the same as that in the first embodiment.

周辺ドット探索器3402の処理内容も前記第1の実施例の場合と同様であるが、本実施例の場合は、注目画素Zの最小輝度画素と判定された注目画素Zの周囲のU,V,W,X位置に加えY位置についてもドットとして検出済みの画素の有無を調べ、いずれの位置にもドットとして検出済みの画素が存在しないときに注目画素Zを最終的にドットと判定する。このようにY位置についても調べるのは、本実施例においてはドット探索領域毎に処理されるので、注目画素Zが含まれるドット探索領域より前に処理されたドット探索領域にY位置の画素が含まれている場合には、Y位置の画素が既にドットとして検出されている可能性があるからである。   The processing contents of the peripheral dot searcher 3402 are the same as in the case of the first embodiment. However, in this embodiment, U and V around the target pixel Z determined to be the minimum luminance pixel of the target pixel Z. , W, and X positions, the Y position is checked for the presence or absence of pixels that have been detected as dots, and when no pixel that has been detected as a dot exists at any position, the target pixel Z is finally determined to be a dot. The reason for checking the Y position in this way is processed for each dot search area in this embodiment, so that the pixel at the Y position is located in the dot search area processed before the dot search area including the target pixel Z. This is because if it is included, the pixel at the Y position may have already been detected as a dot.

さて、図9−1に戻る。画像合成/ドット色検出部204は、RGB各画像平面についてのドット検出部202R,202G,202Bの検出結果に基づいて、ドット画像を合成するとともに、ドット画像上のドットの座標及び色を検出してドット座標リストに登録する。より具体的には、RGB各画像平面において検出されたドットの位置は、筆記媒体の印刷時のドット位置ずれ、ドット検出時の位置ずれ等によって、RGB平面間で1画素ずれている可能性がある。そこで、RGB各平面で検出された各ドットを中心とした3×3画素領域に複数のドットが存在するときには、それらドットをまとめて1つのドットとしてドット画像上に表す。ドット画像において、ドットは黒画素として表され、ドット以外の画素は白画素として表される。ドット色の検出であるが、例えば、ある画素位置を中心とした3×3画素の小領域において、RGB全平面においてドットが検出されたならばドット色を黒、R平面でのみドットが検出されたならばドット色をシアン、G平面でのみドットが検出されたならばドット色をマゼンタ、B平面でのみドットが検出されたならばドット色をイエロー、GB平面それぞれでドットが検出されたならばドット色をレッド、RB平面それぞれでドットが検出されたならばドット色をグリーン、RG平面それぞれでドットが検出されたならばドット色をブルーと判定する。画像合成/ドット色検出部204からは、ドット画像と、ドット座標リスト(ドット座標及びドット色のリスト)が出力される。   Returning now to FIG. The image composition / dot color detection unit 204 synthesizes a dot image based on the detection results of the dot detection units 202R, 202G, and 202B for each RGB image plane, and detects the coordinates and color of the dot on the dot image. To register in the dot coordinate list. More specifically, the position of the detected dot on each RGB image plane may be shifted by one pixel between the RGB planes due to a dot position shift when printing on a writing medium, a position shift when detecting a dot, or the like. is there. Therefore, when a plurality of dots exist in a 3 × 3 pixel area centered on each dot detected on each RGB plane, these dots are collectively displayed as one dot on the dot image. In a dot image, dots are represented as black pixels, and pixels other than dots are represented as white pixels. For example, if a dot is detected in the entire RGB plane in a small area of 3 × 3 pixels centered on a certain pixel position, the dot color is black and the dot is detected only on the R plane. If the dot color is cyan and the dot is detected only on the G plane, the dot color is magenta. If the dot is detected only on the B plane, the dot color is detected on the yellow and GB planes. For example, if the dot color is red and a dot is detected on each RB plane, the dot color is determined to be green, and if a dot is detected on each RG plane, the dot color is determined to be blue. The image composition / dot color detection unit 204 outputs a dot image and a dot coordinate list (a list of dot coordinates and dot colors).

領域情報抽出部210は、画像合成/ドット色検出部204より出力されたドット座標リストに含まれているドット座標及びドット色を基に、同じ色を持ち一つの領域を形成するドット座標の分類を行う。すなわち、注目したドット及びその隣接ドットの色が同じならば、それらドットは1つの領域を形成すると判定する。この処理を領域がすべて確定するまで繰り返すことにより、同色のドット群で表された領域を抽出する。   The area information extraction unit 210 classifies dot coordinates having the same color and forming one area based on the dot coordinates and dot colors included in the dot coordinate list output from the image composition / dot color detection unit 204. I do. That is, if the noticed dot and the adjacent dot have the same color, it is determined that the dots form one area. By repeating this process until all the areas are determined, an area represented by a group of dots of the same color is extracted.

加筆抽出部206は、2値化部200より出力された2値化画像データと、画像合成/ドット色検出部204より出力されたドット座標リスト中のドット座標を基に、筆記媒体上の加筆部分を抽出する。すなわち、2値化画像データにおいて、ドット座標リスト中の各ドット座標(2次元コードパターンを構成するドットの座標)を中心とした3×3画素(あるいは5×5画素)の小領域にある黒画素を白画素に変更する。この処理後の2値化画像データ(以下、2値画像データと記す)には、加筆部分に対応した黒画素のみが残る。加筆抽出部206は次に、該2値画像データに細線化処理を施す。細線化処理とは線の太さを1画素幅にする処理である。ただし、加筆には線以外の塗りつぶしなどもあるので、ある程度以上の幅(例えば600dpiの入力画像の場合に48画素(=2mm)以上の幅)を持った線については細線化を行わない。このような細線化処理には、公知の種々のアルゴリズムを利用すればよい。なお、細線化処理を省くことも可能であり、かかる態様も本発明に包含される。   Based on the binarized image data output from the binarization unit 200 and the dot coordinates in the dot coordinate list output from the image composition / dot color detection unit 204, the retouching extraction unit 206 performs writing on the writing medium. Extract the part. That is, in the binarized image data, black in a small area of 3 × 3 pixels (or 5 × 5 pixels) centered on each dot coordinate (the coordinates of the dots constituting the two-dimensional code pattern) in the dot coordinate list. Change the pixel to a white pixel. In the binarized image data after this processing (hereinafter referred to as binary image data), only black pixels corresponding to the added part remain. Next, the retouching extraction unit 206 performs thinning processing on the binary image data. The thinning process is a process for setting the line thickness to one pixel width. However, since there is a paint other than a line in addition, thinning is not performed for a line having a certain width (for example, a width of 48 pixels (= 2 mm) or more in the case of an input image of 600 dpi). For such thinning processing, various known algorithms may be used. Note that the thinning process can be omitted, and such an embodiment is also included in the present invention.

このようにして細線化後の加筆位置は、あくまで2値化画像データ上の位置つまり筆記媒体を読み取った入力画像データ上の位置であって、筆記媒体上の位置ではない。そこで、加筆位置の筆記媒体上での座標を加筆座標特定部212で検出するのであるが、そのためには2次元コード・デコード部208でドット画像中の複数の2次元コードパターンをデコードし、2次元コードパターンにエンコードされている筆記媒体上の位置を表す座標情報を取得し、これと入力画像データ上の2次元コードパターンの位置とを関連づける必要がある。   Thus, the writing position after thinning is only the position on the binarized image data, that is, the position on the input image data obtained by reading the writing medium, and not the position on the writing medium. Therefore, the coordinate on the writing medium at the writing position is detected by the writing coordinate specifying unit 212. To that end, the two-dimensional code decoding unit 208 decodes a plurality of two-dimensional code patterns in the dot image, It is necessary to acquire coordinate information representing the position on the writing medium encoded in the three-dimensional code pattern, and associate this with the position of the two-dimensional code pattern on the input image data.

2次元コード・デコード部208について説明する。図13−1は2次元コード・デコード部208の一実施例を示すブロック図である。図示のように、本実施例に係る2次元コード・デコード部208は、小領域設定器300、コード枠検出器302、データ取得器304、誤り訂正器306及びデータ復号器308から構成される。   The two-dimensional code / decoding unit 208 will be described. FIG. 13A is a block diagram illustrating an example of the two-dimensional code decoding unit 208. As shown in the figure, the two-dimensional code / decoding unit 208 according to this embodiment includes a small region setting unit 300, a code frame detector 302, a data acquisition unit 304, an error correction unit 306, and a data decoder 308.

入力画像データ上の全ての2次元コードパターンを検出しようとすると、処理時間が増加するのみならず無駄な情報をも得てしまうことになる。そこで、小領域設定器300で入力画像内に小領域を設定する。そして、各小領域毎に、その中の1つの2次元コードパターンについてデコードする。その2次元コードパターンを正常にデコードできないこともあり、この場合は該小領域における2次元コードパターンにエンコードされている筆記媒体上の座標情報と、入力画像上の2次元コードパターンの位置との関連づけができないということになるが、該小領域の近傍の他の小領域によって得られる座標情報で代替できるので問題はない。具体例を挙げると、A4サイズの筆記媒体を600dpiで読み取って画像を入力した場合、入力画像に256×256画素毎に小領域を設定する。入力画像のサイズは4960x7016画素であるので、小領域は短辺方向に20個、長辺方向に28個並ぶことになる.
次に、コード枠検出器302で、各小領域毎に、1つの2次元コードパターンの枠とその位置を検出し、検出した枠内の画像と位置情報を出力する。次にデータ取得器304において、コード枠検出器302より入力された枠内画像から2次元コードパターンの各セルのドットの有無を表す”1”または”0”のデータを取得し、このデータを2次元コードパターンにおけるデータ配置規則(図4)に従って並べ替えて出力する。
If all the two-dimensional code patterns on the input image data are to be detected, not only the processing time increases but also useless information is obtained. Therefore, a small area is set in the input image by the small area setting device 300. Then, for each small area, one two-dimensional code pattern is decoded. The two-dimensional code pattern may not be normally decoded. In this case, the coordinate information on the writing medium encoded in the two-dimensional code pattern in the small area and the position of the two-dimensional code pattern on the input image Although the association cannot be made, there is no problem because the coordinate information obtained by other small areas in the vicinity of the small area can be substituted. As a specific example, when an A4 size writing medium is read at 600 dpi and an image is input, a small region is set for each 256 × 256 pixels in the input image. Since the size of the input image is 4960 × 7016 pixels, 20 small regions are arranged in the short side direction and 28 small regions are arranged in the long side direction.
Next, the code frame detector 302 detects one two-dimensional code pattern frame and its position for each small region, and outputs an image and position information within the detected frame. Next, the data acquisition unit 304 acquires “1” or “0” data indicating the presence / absence of a dot in each cell of the two-dimensional code pattern from the in-frame image input from the code frame detector 302. The data is rearranged according to the data arrangement rule (FIG. 4) in the two-dimensional code pattern and output.

次に誤り訂正器306において、データ取得器304から出力されたデータに対し誤り訂正を行う。誤り訂正器306からは、誤り訂正が成功したか否かの判定情報と誤り訂正後のデータが出力される。この誤り訂正後のデータが、2次元コードパターンにエンコードされている文書ID及び2次元コードパターンの筆記媒体上座標情報である。   Next, error correction unit 306 performs error correction on the data output from data acquisition unit 304. The error corrector 306 outputs determination information as to whether or not error correction has been successful and data after error correction. The data after error correction is the document ID encoded in the two-dimensional code pattern and the coordinate information on the writing medium of the two-dimensional code pattern.

データ復号器308は、誤り訂正の判定情報が「誤り訂正成功」であれば、誤り訂正後のデータから文書IDと筆記媒体上座標情報を復号する。ただし、誤り訂正の判定情報が「誤り訂正失敗」の場合、データ復号器308は、文書IDとしてありえない数値例えば(−1)を出力し、また筆記媒体上座標情報としてありえない数値例えば(−1,−1)を出力する。   If the error correction determination information is “error correction successful”, the data decoder 308 decodes the document ID and the coordinate information on the writing medium from the error-corrected data. However, when the error correction determination information is “error correction failure”, the data decoder 308 outputs a numerical value that cannot be used as a document ID, for example (−1), and a numerical value that cannot be used as coordinate information on the writing medium, for example (−1, -1) is output.

図14を用いてデータ復号について説明する。2次元コードパターンにエンコードされたデータは、座標情報の2バイト(X方向1バイト,Y方向1バイト)と文書IDの3バイト、誤り訂正符号の4バイトであるので、2バイトまでの誤りを訂正することができる。データ取得器304で、図14に示す「正しいデータ」を得られた場合には、水平座標=24mm(=12×2)、垂直座標=123mm(=41×3)、文書ID=23が復号される。また、図14に示す「観測データ1」のように網掛けした2バイトに誤りがあるようなデータがデータ取得器304で取得された場合も、その誤りを訂正することができため、水平座標、垂直座標及び文書IDを正しく復号できる。しかし、図14に示す「観測データ2」のように網掛けした3バイト又はそれ以上の誤りのあるデータの場合には、誤りを正しく訂正できないため、正常な復号は不可能である。   Data decoding will be described with reference to FIG. The data encoded in the two-dimensional code pattern consists of 2 bytes of coordinate information (1 byte in the X direction, 1 byte in the Y direction), 3 bytes of the document ID, and 4 bytes of the error correction code. It can be corrected. When the data acquisition unit 304 obtains “correct data” shown in FIG. 14, the horizontal coordinate = 24 mm (= 12 × 2), the vertical coordinate = 123 mm (= 41 × 3), and the document ID = 23 is decoded. Is done. Further, when data that has an error in 2 bytes shaded as in “observation data 1” shown in FIG. 14 is acquired by the data acquisition unit 304, the error can be corrected. The vertical coordinates and the document ID can be correctly decoded. However, in the case of data with an error of 3 bytes or more shaded as “observation data 2” shown in FIG. 14, the error cannot be corrected correctly, and normal decoding is impossible.

そして、データ復号器308によりデコードされた2次元コードパターンの筆記媒体上座標(2次元コードパターンの左上角の座標)と、コード枠検出器302により検出された2次元コードパターンの左上角の画像上座標とを関連付けた位置情報リスト、及び、データ復号器302によりデコードされた文書ID情報が、2次元コードデコード部208の出力データとして出力される。   Then, the coordinates on the writing medium of the two-dimensional code pattern decoded by the data decoder 308 (the coordinates of the upper left corner of the two-dimensional code pattern) and the image of the upper left corner of the two-dimensional code pattern detected by the code frame detector 302 The position information list associated with the upper coordinates and the document ID information decoded by the data decoder 302 are output as output data of the two-dimensional code decoding unit 208.

次に、2次元コード・デコード部208の各部について詳細に説明する。   Next, each part of the two-dimensional code decoding unit 208 will be described in detail.

図15はコード枠検出器302のブロック図である。コード枠検出はドット画像の小領域でのドットの追跡によって行われる。図16にドット追跡の経路を示す。   FIG. 15 is a block diagram of the code frame detector 302. Code frame detection is performed by tracking dots in a small area of a dot image. FIG. 16 shows a dot tracking path.

コード枠検出器302は、2次元コードパターンの第1コーナー(X)を検出する第1コーナー検出器4000、その第1コーナー(X)から上下左右方向に8画素分追跡して第2コーナー候補画素を検出する第1ドット追跡器4001、第1ドット追跡器4001で検出された第2コーナー候補画素が第2コーナー(B,D)であるか否かを判定する第2コーナー検出器4002、第2コーナー検出器4002で検出された第2コーナー(B,D)より、第1コーナーから第2コーナーへのドット追跡方向を時計回りに延長するように、ドットで構成されるコード枠の12画素分を追跡して第3コーナー候補画素を検出する第2ドット追跡器4003、第2ドット追跡器4003により検出された第3コーナー候補画素が第3コーナー(G,E)であるか否かを判定する第3コーナー検出器4004、第3コーナーから時計回り方向にコード枠の8画素分を追跡して第4コーナー候補画素を検出する第3ドット追跡器4005、この第4コーナー候補画素が第4コーナー(C,A)であるか否かを判定する第4コーナー検出器4006、第4コーナー(C,A)から第1コーナー(X)の間のコード枠を構成するドットを検出する第4ドット追跡器4007とからなる。   The code frame detector 302 is a first corner detector 4000 for detecting the first corner (X) of the two-dimensional code pattern, and the second corner candidate is tracked for eight pixels in the vertical and horizontal directions from the first corner (X). A first dot tracker 4001 for detecting pixels, a second corner detector 4002 for determining whether the second corner candidate pixel detected by the first dot tracker 4001 is the second corner (B, D), From the second corner (B, D) detected by the second corner detector 4002, the code frame 12 constituted by dots is extended so that the dot tracking direction from the first corner to the second corner extends in the clockwise direction. A second dot tracker 4003 that tracks pixels and detects a third corner candidate pixel, and a third corner candidate pixel detected by the second dot tracker 4003 is a third corner (G E) a third corner detector 4004 for determining whether or not the third corner detector 4004, a third dot tracker 4005 for detecting a fourth corner candidate pixel by tracking eight pixels of the code frame in the clockwise direction from the third corner, A fourth corner detector 4006 for determining whether or not the fourth corner candidate pixel is the fourth corner (C, A), a code frame between the fourth corner (C, A) and the first corner (X) And a fourth dot tracker 4007 for detecting dots constituting the.

このようなコード枠検出器302によれば、各小領域内において、最大2つの2次元コードパターンのコード枠(XBGCとEAXD)を検出するとともに、そのコード位置(2次元コードパターンの左上角つまりX又はE)のドット画像上の座標を検出することができる。   According to such a code frame detector 302, in each small region, a code frame (XBGC and EAXD) of a maximum of two two-dimensional code patterns is detected and the code position (the upper left corner of the two-dimensional code pattern, that is, The coordinates on the dot image of X or E) can be detected.

第1コーナー検出器4000についてさらに説明する。図17−1は第1コーナー検出器4000のブロック図、図17−2はその動作説明のための図である。   The first corner detector 4000 will be further described. FIG. 17A is a block diagram of the first corner detector 4000, and FIG. 17B is a diagram for explaining the operation thereof.

図17−1に示すように、第1コーナー検出器4000は、周囲ドット検出器4011と点対称ペア検出器4012とから構成される。   As illustrated in FIG. 17A, the first corner detector 4000 includes a surrounding dot detector 4011 and a point symmetrical pair detector 4012.

周囲ドット検出器4011は、図17−2に示すように、ドットの存在する注目画素Nを中心とした17×17画素の領域内において、注目画素(ドット)Nの周囲に4つ以上のドットが存在するか調べる。図17−2の例では、6個の周囲ドットA〜Fが検出される。点対称ペア検出器4012は、周囲ドット検出器4011によって検出された周囲ドットから、注目画素Nに対し点対称をなすドットのペア(注目画素Nとの距離が近く、中間点が注目画素Nに近いドットのペア)の検出を行う。図17−2の例では、ドットB,DのペアとドットC,Fのペアが検出される。AとEはノイズと判断され除去される。このような2組のドットのペアが検出された場合に、注目画素(ドット)Nは第1コーナーとして検出される。2組のドットのペアが検出されない場合、注目画素(ドット)Nは第1コーナーとしては検出されず、注目画素を移動させて改めて第1コーナーの検出処理を行うことになる。   As shown in FIG. 17-2, the surrounding dot detector 4011 includes four or more dots around the pixel of interest (dot) N in a 17 × 17 pixel region centered on the pixel of interest N where the dot exists. Find out if exists. In the example of FIG. 17-2, six surrounding dots A to F are detected. The point-symmetric pair detector 4012 is a pair of dots that are point-symmetric with respect to the target pixel N from the peripheral dots detected by the peripheral dot detector 4011 (the distance from the target pixel N is short, and the intermediate point is the target pixel N). Near dot pair) is detected. In the example of FIG. 17-2, a pair of dots B and D and a pair of dots C and F are detected. A and E are judged as noise and are removed. When such two pairs of dots are detected, the target pixel (dot) N is detected as the first corner. When two pairs of dots are not detected, the target pixel (dot) N is not detected as the first corner, but the first corner is detected again by moving the target pixel.

このような第1コーナー検出では、通常のラスター走査でドットを追跡するのではなく、図18に示すように内側から外側へと渦巻き状にドットを追跡する。その理由は、画像領域の中央付近では欠けのない完全な形の2次元コードパターンがすぐに見つかるため効率的な処理が可能であるからである。これに対し、画像端に近い部分では2次元コードの一部が欠落しているため、無駄な処理が増え処理時間の増加を招く。   In such first corner detection, dots are not traced by normal raster scanning, but dots are traced spirally from the inside to the outside as shown in FIG. The reason is that a complete two-dimensional code pattern without a defect is immediately found near the center of the image area, and thus efficient processing is possible. On the other hand, since a part of the two-dimensional code is missing in the portion near the image end, useless processing increases and processing time increases.

次に、第1ドット追跡器4001について図19を参照しさらに説明する。図19は2次元コードパターンの第1コーナー付近のコード枠を構成するドットを示しており、Xは第1コーナーにあるコーナードット、A〜Iはコード枠を構成する他のドットである。   Next, the first dot tracker 4001 will be further described with reference to FIG. FIG. 19 shows dots constituting the code frame near the first corner of the two-dimensional code pattern, where X is a corner dot at the first corner, and A to I are other dots constituting the code frame.

今、XからDEFの方向へドットを追跡することにする。簡単のため、A〜I,Xをそれぞれ座標ベクトルとみなす。まず
Y=2D−X
を計算する。このYはドットEの推定ベクトルである。A〜Dは第1コーナー検出器4000で検出されているので既知である。Yの周囲5x5画素においてドットEを跡する。Eが存在するならば、
Y=2E−D
を計算する。このYはドットFの推定ベクトルである。この追跡を7回繰り返して第2コーナー候補画素を検出する。追跡方向は4方向(図16において、X→A、X→B、X→C、X→D)存在する。検出された全ての第2コーナー候補画素の情報が、第2コーナー検出器4002へ転送される。
Now, the dots are traced from X to DEF. For simplicity, A to I and X are regarded as coordinate vectors. First Y = 2D-X
Calculate Y is an estimated vector of dot E. A to D are known because they are detected by the first corner detector 4000. A dot E is traced in 5 × 5 pixels around Y. If E exists,
Y = 2E-D
Calculate Y is an estimated vector of dot F. This tracking is repeated seven times to detect second corner candidate pixels. There are four tracking directions (in FIG. 16, X → A, X → B, X → C, and X → D). Information on all the detected second corner candidate pixels is transferred to the second corner detector 4002.

第2コーナー検出器4002の基本的な動作は第1コーナー検出器4000と同様である。ただし、第2コーナー検出器4002の場合には、注目画素となるドットが複数(最大4)存在する可能性があり、その中で検出される第2コーナーは最大2個(図16のBとD)である点が第1コーナー検出器4000と異なる。   The basic operation of the second corner detector 4002 is the same as that of the first corner detector 4000. However, in the case of the second corner detector 4002, there is a possibility that a plurality of dots (maximum 4) to be the target pixel exist, and the maximum number of second corners detected in the second corner detector 4002 (B in FIG. 16). D) is different from the first corner detector 4000.

第2ドット追跡器4003の基本的な動作は第1ドット追跡器4001と同様である。ただし、第2ドット追跡器4003の場合、追跡を開始するドットが2個あり、その各ドットあたり1つの方向の追跡を行うこと(図16において、B→G、D→E)と、各追跡あたりドット追跡操作を11回繰り返すことにより第3コーナー候補画素(図16のG,E)を検出することが第1ドット追跡器4001と異なる点である。   The basic operation of the second dot tracker 4003 is the same as that of the first dot tracker 4001. However, in the case of the second dot tracker 4003, there are two dots for starting tracking, and tracking in one direction is performed for each dot (B → G, D → E in FIG. 16), and each tracking is performed. The difference from the first dot tracker 4001 is that the third corner candidate pixel (G, E in FIG. 16) is detected by repeating the hit dot tracking operation 11 times.

第3コーナー検出器4004は第2ドット追跡器4003で追跡できた第3コーナー候補画素(図16において、G,E)が第3コーナーであるか否かを判定して第3コーナーを検出する。その基本的な動作は第1,第2コーナー検出器4000,4002と同様である。   The third corner detector 4004 determines whether the third corner candidate pixel (G, E in FIG. 16) tracked by the second dot tracker 4003 is the third corner and detects the third corner. . The basic operation is the same as that of the first and second corner detectors 4000 and 4002.

第3コーナー検出器4004が図16のG,Eを第3コーナーとして検出したとすると、第3ドット追跡器4005は2つの方向(図16において、G→C,E→A)にドット追跡を行う。その追跡回数は第1ドット追跡器4001と同じ7回であり、第4コーナー候補画素として図16のC,Aを検出する。   If the third corner detector 4004 detects G and E in FIG. 16 as the third corner, the third dot tracker 4005 performs dot tracking in two directions (G → C and E → A in FIG. 16). Do. The number of times of tracking is the same as that of the first dot tracker 4001, and C and A in FIG. 16 are detected as fourth corner candidate pixels.

第4ドット追跡器4007は第2ドット追跡器4003と同一構成であり、図16のC→X、A→Xの各方向に11回追跡してXに至る。Xはすでに第1コーナーのドットであることが分かっているので、図16に示した追跡経路(1)と追跡経路(2)により2つの2次元コードパターンのコード枠が検出されたことになる。この2つの2次元コードパターンのいずれをデコードするかであるが、画像上での中心の水平座標が大きい方の2次元コードパターンを優先する。もし、この2次元コードパターンのデコードができなかったときには、もう一方の2次元コードパターンをデコードするものとする。   The fourth dot tracker 4007 has the same configuration as that of the second dot tracker 4003. The fourth dot tracker 4007 traces 11 times in each of the C → X and A → X directions in FIG. Since X is already known to be a dot in the first corner, code frames of two two-dimensional code patterns are detected by the tracking path (1) and tracking path (2) shown in FIG. . Which of the two two-dimensional code patterns is to be decoded, the two-dimensional code pattern having the larger horizontal coordinate at the center on the image is given priority. If this two-dimensional code pattern cannot be decoded, the other two-dimensional code pattern is decoded.

以上、コード枠検出器302(図13)について説明した。   The code frame detector 302 (FIG. 13) has been described above.

次に、データ取得器304(図13−1)について図20−1及び図20−2を参照して説明する。図20−1は1つの2次元コードパターンとその近傍のドット画像の一例を示している。また、図20−2はデータ取得器304の動作を説明するためのフローチャートである。   Next, the data acquisition unit 304 (FIG. 13-1) will be described with reference to FIGS. 20-1 and 20-2. FIG. 20A shows an example of one two-dimensional code pattern and a dot image in the vicinity thereof. FIG. 20B is a flowchart for explaining the operation of the data acquisition unit 304.

図20−1に示すように、2次元コードパターンの枠(コード枠)のコーナードット以外のドットa1〜a7,b1〜b11,c1〜c7,d1〜d11に着目する。データ取得器304は、水平方向に並ぶドットa1〜a7とドットc1〜c7の対応するもの同士を結ぶ直線と、垂直方向に並ぶドットb1〜b11とドットd1〜d11の対応するもの同士を結ぶ直線との各交点(セル)の座標を検出する(step21)。そして、各交点について、その座標を中心とした3x3画素の領域内のドットの有無を検出する(step22)。交点の座標を中心とした3×3画素の領域内にドットが検出されたときには、該交点についてデータ”1”が取得されたということであり、3×3画素の領域内にドットが検出されないときには、該交点についてデータ”0”が取得されたということになる。データ取得器304は、このようにして取得したデータを、2次元コードパターンのデータ配置規則(図4)に従いコードデータに再構成して出力する。   As shown in FIG. 20A, attention is focused on dots a1 to a7, b1 to b11, c1 to c7, and d1 to d11 other than the corner dots of the frame (code frame) of the two-dimensional code pattern. The data acquisition unit 304 connects a straight line connecting the corresponding dots a1 to a7 and the dots c1 to c7 arranged in the horizontal direction, and a straight line connecting the corresponding dots b1 to b11 and the dots d1 to d11 arranged in the vertical direction. The coordinates of the intersections (cells) are detected (step 21). Then, for each intersection, the presence or absence of a dot in the 3 × 3 pixel area centered on the coordinates is detected (step 22). When a dot is detected in a 3 × 3 pixel area centered on the coordinates of the intersection, data “1” is acquired for the intersection, and no dot is detected in the 3 × 3 pixel area. Sometimes, data “0” is acquired for the intersection. The data acquisition unit 304 reconstructs the data acquired in this way into code data according to the data arrangement rule of the two-dimensional code pattern (FIG. 4) and outputs the code data.

次に、加筆座標特定部212(図9−1)の動作について詳細に説明する。加筆座標特定部212には、加筆抽出部206より出力される加筆部分のみが表されている2値画像データと、2次元コード・デコード部208より出力される位置情報リストとが入力される。前述の通り、この位置情報リストは、各2次元コードパターンよりデコードされた、該2次元コードパターンの左上角の座標(筆記媒体上座標)と、2次元コードパターンの左上角の画像上での位置を表す座標(画像上座標)とが関連付けられたリストである。筆記媒体の画像はスキャナ入力されるので、画像のあおり歪みは無視できる。加筆座標特定部212は、位置情報リスト中の複数の2次元コードパターンについての筆記媒体上座標と画像上座標とを用い、線形補間によって加筆部分の筆記媒体上での位置を決定することができる。   Next, the operation of the handwritten coordinate specifying unit 212 (FIG. 9-1) will be described in detail. The input coordinate specifying unit 212 receives binary image data representing only a part to be added output from the writing extraction unit 206 and a position information list output from the two-dimensional code decoding unit 208. As described above, this position information list is obtained by decoding the coordinates of the upper left corner of the two-dimensional code pattern (coordinates on the writing medium) and the image of the upper left corner of the two-dimensional code pattern, which are decoded from each two-dimensional code pattern. It is a list in which coordinates representing coordinates (coordinates on the image) are associated. Since the image on the writing medium is input by the scanner, the distortion of the image can be ignored. The additional coordinate specifying unit 212 can determine the position of the additional portion on the writing medium by linear interpolation using the coordinates on the writing medium and the coordinates on the image for a plurality of two-dimensional code patterns in the position information list. .

具体的処理を説明すると、まず、加筆部分のみが表されている2値画像データを走査し、加筆部分の画素(加筆画素)の座標(画像上座標)を検出する。検出した各加筆画素毎に、その座標に近い画像上座標情報と関連付けられた3つの2次元コードパターンの筆記媒体上座標を位置情報リストから取り出す。   A specific process will be described. First, binary image data representing only the retouched portion is scanned to detect the coordinates (coordinates on the image) of pixels (retouched pixels) of the retouched portion. For each detected additional pixel, the coordinates on the writing medium of three two-dimensional code patterns associated with the on-image coordinate information close to the coordinates are extracted from the position information list.

図21により説明する。図21において、Xは位置を特定しようとする加筆画素であり、A〜Iは2次元コード・デコード部208によって各小領域内でデコードすることができた2次元コードパターンの左上角の画像上座標である。いま求めたいのは、加筆画素Xの筆記媒体上座標である。図21の例では、A〜Iのうちで加筆画素Xに最も近い3点はE,F,Hであるので、このE,F,Hに対応した2次元コードパターンの筆記媒体上座標を位置情報リストから取り出し、これを用いて次のようにして加筆画素Xの筆記媒体上座標を計算する。   This will be described with reference to FIG. In FIG. 21, X is a retouched pixel whose position is to be specified, and A to I are images on the upper left corner of the two-dimensional code pattern that can be decoded within each small region by the two-dimensional code decoding unit 208. Coordinates. What we want now is the coordinates on the writing medium of the additional pixel X. In the example of FIG. 21, since the three points closest to the retouched pixel X among A to I are E, F, and H, the coordinates on the writing medium of the two-dimensional code pattern corresponding to E, F, and H are positioned. It is taken out from the information list, and using this, the coordinates on the writing medium of the additional pixel X are calculated as follows.

E,F,Hの画像上座標(xi.yi)と、その筆記媒体上座標(xp,yp)との関係は
xp=a1*xi+a2*yi+a3
yp=a4*xi+a5*yi+a6
と表すことができる。a1〜a6は未知数である。E,F,Hの画像上座標と筆記媒体上座標は既知であるので、これを上式に代入することによって未知数a1〜a6を求めることにより、加筆画素Xの筆記媒体上座標(xp,yp)を特定することができる。
The relationship between the coordinates on the image (xi.yi) of E, F, and H and the coordinates on the writing medium (xp, yp) is: xp = a1 * xi + a2 * yi + a3
yp = a4 * xi + a5 * yi + a6
It can be expressed as. a1 to a6 are unknown numbers. Since the coordinates on the image of E, F, and H and the coordinates on the writing medium are known, the unknowns a1 to a6 are obtained by substituting them into the above equation, whereby the coordinates on the writing medium of the writing pixel X (xp, yp) ) Can be specified.

以上に説明した加筆情報検出装置と同じ処理を情報処理装置604又は609上でソフトウェアより実行してもよいことは前述した通りである。この場合、加筆情報検出処理を実現するためのプログラムは例えば情報処理装置609の記憶装置605に格納されている。そして、このプログラムが情報処理装置609又は604にロードされ、その命令が実行されることによって、加筆情報検出処理が行われる。スキャナ603又は複写機602のスキャナ部によって筆記媒体をスキャンすることにより読み取られたカラー画像データは、予め記憶装置605に格納されているものとする。   As described above, the same processing as that of the additional information detection apparatus described above may be executed by software on the information processing apparatus 604 or 609. In this case, a program for realizing the additional information detection process is stored in the storage device 605 of the information processing device 609, for example. Then, this program is loaded into the information processing device 609 or 604, and the command is executed, whereby the additional information detection process is performed. It is assumed that color image data read by scanning a writing medium by the scanner unit of the scanner 603 or the copying machine 602 is stored in the storage device 605 in advance.

ソフトウェアによる加筆情報検出の処理手順を図9−2に示すフローチャートに従って説明する。   A process procedure for detecting writing information by software will be described with reference to a flowchart shown in FIG.

まず、記憶装置605より筆記媒体のカラー画像データがメモリに読み込まれる(step101)。この筆記媒体のカラー画像データに対し2値化部200(図9−1)と同様の2値化処理が行われ、加筆部分と濃度の高いドットのみが黒画素、それ以外の画素が白画素の2値化画像データが生成される(step102)。また、筆記媒体のカラー画像データのRGB各平面毎に、ドット検出部202R,202G,202B(図9−1)と同様のドット検出処理を行って、2次元コードパターンを構成するドットを検出する(step103)。そして、このドット検出結果に基づいて、画像合成/ドット色検出部204(図9−1)と同様のドット画像の合成とドット色検出の処理を行い、ドットの座標と色をドット座標リストに登録する(step104)。   First, the color image data of the writing medium is read into the memory from the storage device 605 (step 101). The binarization processing similar to the binarization unit 200 (FIG. 9-1) is performed on the color image data of the writing medium. Only the added portion and the high-density dot are black pixels, and the other pixels are white pixels. The binarized image data is generated (step 102). In addition, dot detection processing similar to that of the dot detection units 202R, 202G, and 202B (FIG. 9-1) is performed for each of the RGB planes of the color image data of the writing medium to detect dots constituting the two-dimensional code pattern. (Step 103). Then, based on the dot detection result, the same dot image composition and dot color detection processing as the image composition / dot color detection unit 204 (FIG. 9-1) is performed, and the dot coordinates and color are stored in the dot coordinate list. Register (step 104).

次に、step102で生成された2値化画像データとstep104で得られたドット座標リスト中のドット座標に基づいて、加筆抽出部206(図9−1)と同様の処理が実行され、2次元コードパターンのドットが除去された2値画像データが生成される(step105)。また、step104で生成されたドット位置リストに基づき、領域情報抽出部210(図9−1)と同様の処理が実行されて同じ色の集まりである領域が抽出され、領域情報が取得される(step107)。また、step104で生成されたドット画像データに基づいて、2次元コード・デコード部208(図9−1)と同様の処理を行い、2次元コードパターンの左上角の筆記媒体上座標と画像上座標とを対応付けた位置情報リストを生成する(step106)。最後に、step105で生成された加筆部分のみ残された2値画像データとstep106で生成された位置情報リストに基づいて、加筆座標特定部212(図9−1)と同様の処理が行われ、加筆画素の筆記媒体上座標が求められる(step108)。   Next, on the basis of the binarized image data generated in step 102 and the dot coordinates in the dot coordinate list obtained in step 104, processing similar to that of the retouching extraction unit 206 (FIG. 9-1) is executed, and two-dimensional Binary image data from which the dots of the code pattern are removed is generated (step 105). Further, based on the dot position list generated in step 104, processing similar to that of the region information extraction unit 210 (FIG. 9-1) is executed to extract a region that is a collection of the same color, and region information is acquired ( step 107). Further, the same processing as that of the two-dimensional code decoding unit 208 (FIG. 9-1) is performed based on the dot image data generated in step 104, and the coordinates on the writing medium and the coordinates on the image at the upper left corner of the two-dimensional code pattern are processed. Is generated (step 106). Finally, based on the binary image data remaining in the retouched part generated in step 105 and the position information list generated in step 106, the same process as that of the retouched coordinate specifying unit 212 (FIG. 9-1) is performed. The coordinates on the writing medium of the added pixel are obtained (step 108).

図10−2に、step103における処理フローの一例を示す。図中、step201,step202,step203は、図10−1に示したドット候補判定器3101,最小輝度画素判定器3102、周辺ドット探索器3103に対応した処理を行うステップである。   FIG. 10-2 shows an example of the processing flow in step 103. In the figure, step 201, step 202, and step 203 are steps for performing processing corresponding to the dot candidate determination unit 3101, the minimum luminance pixel determination unit 3102, and the peripheral dot search unit 3103 shown in FIG.

図12−2に、step103における処理フローの他の一例を示す。図中、step200,step201,step202,step203は、図12−1に示したドット探索領域判定器3100,ドット候補判定器3101、最小輝度画素判定器3102、周辺ドット探索器3103に対応した処理を行うステップである。   FIG. 12-2 shows another example of the processing flow in step 103. In the figure, step 200, step 201, step 202, and step 203 perform processing corresponding to the dot search area determination unit 3100, dot candidate determination unit 3101, minimum luminance pixel determination unit 3102, and peripheral dot search unit 3103 shown in FIG. It is a step.

図13−2に、step106における処理フローを示す。図中、step301,step302,step303,step304は図13−1に示した小領域設定器300,コード枠検出器302,データ取得器304,誤り訂正器306に対応した処理を行うステップである。step305,step306は図13−1のデータ復号器308に対応した処理ステップである。   FIG. 13-2 shows a processing flow in step 106. In the figure, step 301, step 302, step 303, and step 304 are steps corresponding to the small area setting unit 300, code frame detector 302, data acquisition unit 304, and error correction unit 306 shown in FIG. Step 305 and step 306 are processing steps corresponding to the data decoder 308 in FIG.

以上、本発明の加筆情報検出装置又はソフトウェアによる加筆情報検出手順を説明したが、以上の説明は本発明の加筆情報検出方法の説明を兼ねることは明らかである。また、ソフトウェアによる加筆情報検出手順の説明は、加筆情報検出装置又は加筆情報検出方法をコンピュータ上でソフトウェアにより実現するためのプログラムの説明でもある。このようなプログラム、すなわち、加筆情報検出装置の各構成手段としてコンピュータを機能させるプログラム、あるいは、加筆情報検出方法の処理工程をコンピュータに実行させるプログラムも本発明に包含される。また、そのようなプログラムが記録された磁気ディスク、光ディスク、光磁気ディスク、半導体記憶素子等のコンピュータが読み取り可能な各種記録(記憶)媒体も本発明に包含される。   As described above, the writing information detection procedure by the writing information detection apparatus or software of the present invention has been described. However, it is obvious that the above description also serves as the description of the writing information detection method of the present invention. The description of the writing information detection procedure by software is also a description of a program for realizing the writing information detection device or the writing information detection method by software on the computer. Such a program, that is, a program that causes a computer to function as each component of the additional information detection apparatus, or a program that causes a computer to execute the processing steps of the additional information detection method is also encompassed by the present invention. Further, various recording (storage) media that can be read by a computer, such as a magnetic disk, an optical disk, a magneto-optical disk, and a semiconductor storage element, on which such a program is recorded are also included in the present invention.

ここで、特許請求の範囲の記載と前記実施形態との対応について説明する。図9−1を参照すると、二値化部200が「第1の処理手段」に対応し、ドット検出部202R,202G,202Bと画像合成/ドット色検出部204の組み合わせが「第2の処理手段」に対応し、加筆抽出部206が「第3の処理手段」に対応し、2次元コード・デコード部208が「第4の処理手段」に対応し、加筆座標特定部212が「第5の処理手段」に対応し、領域情報抽出部210が「第6の処理手段」に対応する。図9−2を参照すると、step102が「第1の処理工程」に対応し、step103とstep104の組み合わせが「第2の処理工程」に対応し、step105が「第3の処理工程」に対応し、step106が「第4の処理工程」に対応し、step108が「第5の処理工程」に対応し、step107が「第6の処理工程」に対応する。   Here, correspondence between the description of the claims and the embodiment will be described. Referring to FIG. 9A, the binarization unit 200 corresponds to “first processing means”, and the combination of the dot detection units 202R, 202G, and 202B and the image composition / dot color detection unit 204 is “second processing”. Corresponding to “means”, the retouching extraction unit 206 corresponds to “third processing means”, the two-dimensional code decoding unit 208 corresponds to “fourth processing means”, and the retouched coordinate specifying unit 212 corresponds to “fifth processing means”. The area information extraction unit 210 corresponds to “sixth processing means”. Referring to FIG. 9B, step 102 corresponds to “first processing step”, the combination of step 103 and step 104 corresponds to “second processing step”, and step 105 corresponds to “third processing step”. , Step 106 corresponds to the “fourth processing step”, step 108 corresponds to the “fifth processing step”, and step 107 corresponds to the “sixth processing step”.

以上、筆記媒体上の加筆情報等の抽出について説明した。次に、筆記媒体より抽出した加筆情報等の利用について説明する。図22は説明のためのフローチャートである。   This completes the description of the extraction of additional information on the writing medium. Next, utilization of the retouching information extracted from the writing medium will be described. FIG. 22 is a flowchart for explanation.

前述した筆記媒体に鉛筆やボールペン等の筆記具を用いて加筆される。加筆された筆記媒体がスキャナ603又は複写機602のスキャナ部によりカラー画像データとして読み取られる。そして、スキャナ603又は複写機602の内部に設けられた図9−1に示した加筆情報検出装置によって、あるいは、情報処理装置609又は604上で動作する加筆情報検出装置と同様の処理を実行するプログラムによって、筆記媒体のカラー画像データを基に、筆記媒体の加筆情報(座標情報)、領域情報、文書ID情報が取得される(step401)。   The writing medium is added using a writing instrument such as a pencil or a ballpoint pen. The written writing medium is read as color image data by the scanner unit of the scanner 603 or the copying machine 602. Then, the same processing as that of the retouching information detection apparatus operating on the information processing apparatus 609 or 604 is executed by the retouching information detection apparatus shown in FIG. 9A provided inside the scanner 603 or the copier 602. The program acquires additional information (coordinate information), region information, and document ID information of the writing medium based on the color image data of the writing medium (step 401).

情報処理装置609は、その文書ID情報を基に、当該筆記媒体に関連付けられた文書(のページ)を文書管理データベース606により特定し、当該文書(のページ)を取得する(step402)。例えば図23に示すような項目が文書管理データベース606に登録されており、筆記媒体より抽出された文書IDが「123456」であるとすると、当該文書は文書名「golf.doc」のページ1であると特定される。   Based on the document ID information, the information processing apparatus 609 specifies the document (or page) associated with the writing medium using the document management database 606, and acquires the document (or page) (step 402). For example, if an item as shown in FIG. 23 is registered in the document management database 606 and the document ID extracted from the writing medium is “123456”, the document is the page 1 of the document name “golf.doc”. Identified as being.

情報処理装置609は、特定した文書「golf.doc」を、それが関連付けられているアプリケーションで開き、不図示のディスプレイに表示して編集状態とする(step403)。そして、編集状態とされた文書「golf.doc」に、筆記媒体より抽出された加筆情報を描画する。具体的には、例えば、文書のウィンドウに新たな描画オブジェクトを開き(step404)、筆記媒体より抽出された加筆情報すなわち加筆部分の座標を線でつないで描画し(step405)、これを終わると文書「golf.doc」の更新・保存処理を行う(step406)。このようにして、文書「golf.doc」に加筆情報である一つのオブジェクトを加える。   The information processing apparatus 609 opens the identified document “golf.doc” with an application associated with the document “golf.doc”, displays the document on an unillustrated display, and sets the editing state (step 403). Then, the rewriting information extracted from the writing medium is drawn on the document “golf.doc” in the editing state. Specifically, for example, a new drawing object is opened in a document window (step 404), and the retouching information extracted from the writing medium, that is, the coordinates of the retouched portion is connected by a line (step 405). Update / save processing of “golf.doc” is performed (step 406). In this way, one object as additional information is added to the document “golf.doc”.

なお、加筆情報である座標情報を別ファイル(座標列ファイル)として保存する(図23はそのような座標列ファイルが保存された場合を示している)。このように加筆情報を別ファイルとして保存すると、ユーザが後にアプリケーションを開いて加筆された情報を確認したいときに、文書が素早く開くことができないような巨大なサイズを有するような場合でも、別ファイルとして保存されている加筆情報のみを素早く表示して確認することができる利点がある。   Note that the coordinate information, which is the additional information, is saved as a separate file (coordinate string file) (FIG. 23 shows a case where such a coordinate string file is saved). If you save the retouching information as a separate file in this way, even if the user opens the application later and wants to check the retouched information, even if the document has a huge size that cannot be opened quickly, the separate file There is an advantage that only the added information stored as can be quickly displayed and confirmed.

また、筆記媒体より加筆情報のほかに領域情報が抽出される。したがって、例えばゴルフコースのマップを内容とした電子文書に関連付けられた筆記媒体の場合、抽出した領域情報によってゴルフコースのマップをほぼ復元し、それに加筆情報を描画することができる。つまり、筆記情報に関連付けられた電子文書を開くことなく、その電子文書の内容がほぼ再現されかつ加筆情報が付加されたイメージを作成し、それをプリントするような処理を行うことも可能である。   In addition to the additional information, area information is extracted from the writing medium. Therefore, for example, in the case of a writing medium associated with an electronic document whose content is a golf course map, the golf course map can be substantially restored by the extracted area information, and the additional information can be drawn on it. That is, without opening the electronic document associated with the writing information, it is possible to create an image in which the contents of the electronic document are almost reproduced and to which the additional information is added, and to print the image. .

本発明の筆記媒体に印刷される2次元コードパターンの例を示す図である。It is a figure which shows the example of the two-dimensional code pattern printed on the writing medium of this invention. 2次元コードパターンのドットの大きさとドット間隔の説明図である。It is explanatory drawing of the magnitude | size of a dot of a two-dimensional code pattern, and a dot space | interval. 2次元コードパターンの領域の説明図である。It is explanatory drawing of the area | region of a two-dimensional code pattern. 2次元コードパターンの各領域におけるビット配置の説明図である。It is explanatory drawing of the bit arrangement in each area | region of a two-dimensional code pattern. 本発明の実施形態に係る文書管理システムの構成図である。1 is a configuration diagram of a document management system according to an embodiment of the present invention. FIG. 筆記媒体の印刷イメージの作成手順を説明するためのフローチャートである。It is a flowchart for demonstrating the preparation procedure of the printing image of a writing medium. 2次元コードパターンにエンコードされるデータの説明図である。It is explanatory drawing of the data encoded by a two-dimensional code pattern. 電子文書を開き、それに関連付けられた筆記媒体を印刷する手順を説明するためのフローチャートである。It is a flowchart for demonstrating the procedure which opens an electronic document and prints the writing medium linked | related with it. 本発明の実施形態に係る加筆情報検出装置のブロック図である。It is a block diagram of the retouching information detection apparatus concerning the embodiment of the present invention. 加筆情報検出処理フローを示すフローチャートである。It is a flowchart which shows a writing information detection process flow. ドット検出部の第1の実施例を示すブロック図である。It is a block diagram which shows the 1st Example of a dot detection part. ドット検出処理フローを示すフローチャートであるIt is a flowchart which shows a dot detection process flow. ドット検出で参照される注目画素の周辺画素を示す図である。It is a figure which shows the surrounding pixel of the attention pixel referred by dot detection. ドット検出部の第2の実施例を示すブロック図である。It is a block diagram which shows the 2nd Example of a dot detection part. ドット検出処理フローを示すフローチャートである。It is a flowchart which shows a dot detection process flow. 2次元コード・デコード部の一実施例を示すブロック図である。It is a block diagram which shows one Example of a two-dimensional code decoding part. 2次元コード・デコード処理フローを示すフローチャートである。It is a flowchart which shows a two-dimensional code decoding process flow. 2次元コードパターンにエンコードされたデータの復号と誤り訂正の説明のための図である。It is a figure for explanation of decoding and error correction of data encoded in a two-dimensional code pattern. コード枠検出器のブロック図である。It is a block diagram of a code frame detector. コード枠検出の説明図である。It is explanatory drawing of code frame detection. 第1コーナー検出器のブロック図である。It is a block diagram of a 1st corner detector. 点対称ペア検出の説明図である。It is explanatory drawing of point symmetrical pair detection. 渦巻き状のドット検出の説明図である。It is explanatory drawing of spiral-shaped dot detection. ドット追跡の説明図である。It is explanatory drawing of dot tracking. 2次元コードパターンのデータドット検出の説明図である。It is explanatory drawing of the data dot detection of a two-dimensional code pattern. データ取得器の処理フローを示すフローチャートである。It is a flowchart which shows the processing flow of a data acquisition device. 加筆画素の媒体上座標を補間により求める方法の説明図である。It is explanatory drawing of the method of calculating | requiring the coordinate on the medium of a writing pixel by interpolation. 筆記媒体より加筆情報等を検出し、それを利用する処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process which detects additional information etc. from a writing medium, and utilizes it. 文書管理データベースの登録項目の例を示す図である。It is a figure which shows the example of the registration item of a document management database.

符号の説明Explanation of symbols

2,2a〜2d 2次元コードパターン
200 2値化部
202R,202G,202B ドット検出部
204 画像合成・ドット色検出部
206 加筆抽出部
208 2次元コード・デコード部
210 領域情報抽出部
212 加筆座標特定部
300 小領域設定器
302 コード枠検出器
304 データ取得器
306 誤り訂正器
308 データ復号器
400 第1コーナー検出器
401 第1ドット追跡器
402 第2コーナー検出器
403 第2ドット追跡器
404 第3コーナー検出器
405 第3ドット追跡器
406 第4コーナー検出器
407 第4ドット追跡器
411 周囲ドット検出器
412 点対称ペア検出器
601 プリンタ
602 複写機
603 スキャナ
604,609 情報処理装置
605 記憶装置
606 データベース
3100 ドット探索領域判定器
3101 ドット候補判定器
3102 最小輝度画素判定器
3103 周辺ドット探索器
2, 2a to 2d Two-dimensional code pattern 200 Binary unit 202R, 202G, 202B Dot detection unit 204 Image composition / dot color detection unit 206 Retouching extraction unit 208 Two-dimensional code / decoding unit 210 Region information extraction unit 212 Retouched coordinate specification Unit 300 small area setting unit 302 code frame detector 304 data acquisition unit 306 error correction unit 308 data decoder 400 first corner detector 401 first dot tracker 402 second corner detector 403 second dot tracker 404 third Corner detector 405 Third dot tracker 406 Fourth corner detector 407 Fourth dot tracker 411 Surrounding dot detector 412 Point symmetrical pair detector 601 Printer 602 Copying machine 603 Scanner 604, 609 Information processing device 605 Storage device 606 Database 3100 Dot search area determination unit 3101 Dot candidate determination unit 3102 Minimum luminance pixel determination unit 3103 Peripheral dot search unit

Claims (16)

特定の電子文書に関連付けられた筆記媒体であって、
普通の筆記具を用いて筆記可能な材質の媒体に、所定サイズのドットパターンである2次元コードパターンがマトリクス状に並べて印刷されており、前記各2次元コードパターンには該2次元コードパターンの前記媒体上での位置を示す座標情報がエンコードされており、前記各2次元コードパターンを構成するドットは前記電子文書の領域情報を表すように色分けされていることを特徴とする筆記媒体。
A writing medium associated with a specific electronic document,
A two-dimensional code pattern, which is a dot pattern of a predetermined size, is printed in a matrix on a medium of a material that can be written using an ordinary writing instrument, and each of the two-dimensional code patterns includes the two-dimensional code pattern. Coordinate information indicating a position on the medium is encoded, and dots constituting each of the two-dimensional code patterns are color-coded so as to represent area information of the electronic document.
特定の電子文書に関連付けられた筆記媒体であって、
普通の筆記具を用いて筆記可能な材質の媒体に所定サイズのドットパターンである2次元コードパターンがマトリクス状に並べて印刷されており、前記各2次元コードパターンには該2次元コードパターンの前記媒体上での位置を示す座標情報及び前記電子文書の識別情報がエンコードされており、前記各2次元コードパターンを構成するドットは前記電子文書の領域情報を表すように色分けされていることを特徴とする筆記媒体。
A writing medium associated with a specific electronic document,
A two-dimensional code pattern that is a dot pattern of a predetermined size is printed in a matrix on a medium of a material that can be written using an ordinary writing instrument, and each medium of the two-dimensional code pattern is printed on each two-dimensional code pattern. The coordinate information indicating the position above and the identification information of the electronic document are encoded, and the dots constituting each two-dimensional code pattern are color-coded so as to represent the area information of the electronic document. To write.
前記各2次元コードパターンには誤り訂正符号もエンコードされていることを特徴とする請求項1又は2に記載の筆記媒体。   The writing medium according to claim 1, wherein an error correction code is also encoded in each two-dimensional code pattern. 前記媒体全体に対する前記2次元コードパターンのドットの占める面積率が5パーセント未満であることを特徴とする請求項1,2又は3に記載の筆記媒体。   4. The writing medium according to claim 1, wherein an area ratio of dots of the two-dimensional code pattern to the whole medium is less than 5%. 2次元コードパターンがマトリクス状に並べて印刷されており、前記各2次元コードパターンを構成するドットは特定の電子文書の領域情報を表すように色分けされている、前記電子文書に関連付けられた筆記媒体を読み取ったカラー画像を入力とし、前記筆記媒体に筆記具を用いて加筆された情報を検出する加筆情報検出装置であって、
前記カラー画像を2値化して背景画素を白画素、非背景画素を黒画素とした2値化画像を生成する第1の処理手段と、
前記カラー画像に基づいて、前記カラー画像の画素のうち、前記筆記媒体上にマトリクス状に並べて印刷されている2次元コードパターンのドットに対応した画素のみを黒画素で表し、それ以外の画素を白画素で表したドット画像を生成するとともに、前記2次元コードパターンのドットの前記ドット画像上での位置を表すドット座標及び前記2次元コードパターンのドットの色を表すドット色を検出して出力する第2の処理手段と、
前記第2の処理手段より出力されたドット座標を基に、前記2値化画像から前記2次元コードパターンのドットに対応した黒画素を除去することにより、前記筆記媒体の加筆された部分に対応した黒画素(以下、加筆画素と記す)を表す2値画像を生成する第3の処理手段と、
前記ドット画像より前記2次元コードパターンを検出し、検出した各2次元コードパターンをデコードすることにより、該2次元コードパターンの前記筆記媒体上での位置を表す座標(筆記媒体上座標と記す)を取得し、該筆記媒体上座標を該2次元コードパターンの前記ドット画像上の位置を表す座標(画像上座標)と対応付けて出力する第4の処理手段と、
前記各加筆画素の前記2値画像上での位置を表す座標と前記第4の処理手段より出力された前記2次元コードパターンの前記筆記媒体上座標及び前記画像上座標とに基づいて、前記各加筆画素の前記筆記媒体上での位置を示す座標を求め、それを加筆情報として出力する第5の処理手段と、
前記第2の処理手段より出力されたドット座標及びドット色に基づいて、同色のドット群で表される領域を表す領域情報を生成する第6の処理手段と、
を有することを特徴とする加筆情報検出装置。
A writing medium associated with the electronic document, in which two-dimensional code patterns are printed side by side in a matrix, and dots constituting each of the two-dimensional code patterns are color-coded to represent area information of a specific electronic document Is a retouched information detecting device for detecting information rewritten using a writing instrument on the writing medium,
First processing means for binarizing the color image to generate a binarized image in which a background pixel is a white pixel and a non-background pixel is a black pixel;
Based on the color image, among the pixels of the color image, only pixels corresponding to the dots of the two-dimensional code pattern printed in a matrix on the writing medium are represented by black pixels, and the other pixels are represented. Generates a dot image represented by white pixels, and detects and outputs dot coordinates representing the position of the dot of the two-dimensional code pattern on the dot image and a dot color representing the color of the dot of the two-dimensional code pattern Second processing means to:
Based on the dot coordinates output from the second processing means, by removing black pixels corresponding to the dots of the two-dimensional code pattern from the binarized image, it corresponds to the part of the writing medium that has been rewritten. Third processing means for generating a binary image representing the black pixel (hereinafter referred to as an added pixel),
The coordinates representing the position of the two-dimensional code pattern on the writing medium by detecting the two-dimensional code pattern from the dot image and decoding each detected two-dimensional code pattern (denoted as coordinates on the writing medium) And a fourth processing means for outputting the coordinates on the writing medium in association with the coordinates representing the position of the two-dimensional code pattern on the dot image (coordinates on the image);
Based on the coordinates representing the position of each of the retouched pixels on the binary image and the coordinates on the writing medium and the coordinates on the image of the two-dimensional code pattern output from the fourth processing unit. A fifth processing means for obtaining coordinates indicating the position of the writing pixel on the writing medium and outputting it as writing information;
Sixth processing means for generating area information representing an area represented by a group of dots of the same color based on the dot coordinates and the dot color output from the second processing means;
A retouching information detecting apparatus characterized by comprising:
前記第4の処理手段は、検出した2次元コードパターンをデコードすることにより、前記電子文書の識別情報をも取得して出力することを特徴とする請求項5に記載の加筆情報検出装置。 The fourth processing means, by decoding the detected two-dimensional code pattern, revision information detecting apparatus according to claim 5, characterized in that also outputs the acquired identification information of the electronic document. 前記第3の処理手段は前記2値画像に細線化処理を施し、
前記第5の処理手段は前記細線化処理後の前記2値画像中の加筆画素を処理の対象とすることを特徴とする請求項5に記載の加筆情報検出装置。
The third processing means performs a thinning process on the binary image,
6. The writing information detection apparatus according to claim 5, wherein the fifth processing unit sets a processing pixel to a writing pixel in the binary image after the thinning process.
前記第2の処理手段は、前記カラー画像の各色成分毎にドットを検出し、その検出結果に基づいて、前記ドット画像を生成するとともに前記2次元コードパターンのドットの座標及び色を検出することを特徴とする請求項5に記載の加筆情報検出装置。   The second processing means detects dots for each color component of the color image, generates the dot image based on the detection result, and detects the coordinates and colors of the dots of the two-dimensional code pattern. The handwritten information detection apparatus according to claim 5. 前記第4の処理手段は前記ドット画像に複数の小領域を設定し、設定した各小領域において前記2次元コードパターンの検出を行うことを特徴とする請求項5に記載の加筆情報検出装置。   6. The retouched information detection apparatus according to claim 5, wherein the fourth processing unit sets a plurality of small areas in the dot image and detects the two-dimensional code pattern in each set small area. 2次元コードパターンがマトリクス状に並べて印刷されており、前記各2次元コードパターンを構成するドットは特定の電子文書の領域情報を表すように色分けされている、前記電子文書に関連付けられた筆記媒体を読み取ったカラー画像を入力とし、前記筆記媒体に筆記具を用いて加筆された情報を検出する加筆情報検出方法であって、
前記カラー画像を2値化して背景画素を白画素、非背景画素を黒画素とした2値化画像を生成する第1の処理工程と、
前記カラー画像に基づいて、前記カラー画像の画素のうち、前記筆記媒体上にマトリクス状に並べて印刷されている2次元コードパターンのドットに対応した画素のみを黒画素で表し、それ以外の画素を白画素で表したドット画像を生成するとともに、前記2次元コードパターンのドットの前記ドット画像上での位置を表すドット座標及び前記2次元コードパターンのドットの色を表すドット色を検出して出力する第2の処理工程と、
前記第2の処理工程より出力されたドット座標を基に、前記2値化画像から前記2次元コードパターンのドットに対応した黒画素を除去することにより、前記筆記媒体の加筆された部分に対応した黒画素(以下、加筆画素と記す)を表す2値画像を生成する第3の処理工程と、
前記ドット画像より前記2次元コードパターンを検出し、検出した各2次元コードパターンをデコードすることにより、該2次元コードパターンの前記筆記媒体上での位置を表す座標(筆記媒体上座標と記す)を取得し、該筆記媒体上座標を該2次元コードパターンの前記ドット画像上の位置を表す座標(画像上座標)と対応付けて出力する第4の処理工程と、
前記各加筆画素の前記2値画像上での位置を表す座標と前記第4の処理手段より出力された前記2次元コードパターンの前記筆記媒体上座標及び前記画像上座標とに基づいて、前記各加筆画素の前記筆記媒体上での位置を示す座標を求め、それを加筆情報として出力する第5の処理工程と、
前記第2の処理工程より出力されたドット座標及びドット色に基づいて、同色のドット群で表される領域を表す領域情報を生成する第6の処理工程と、
を有することを特徴とする加筆情報検出方法。
A writing medium associated with the electronic document, in which two-dimensional code patterns are printed side by side in a matrix, and dots constituting each of the two-dimensional code patterns are color-coded to represent area information of a specific electronic document Is a retouched information detection method for detecting information rewritten using a writing tool on the writing medium,
A first processing step of binarizing the color image to generate a binarized image in which a background pixel is a white pixel and a non-background pixel is a black pixel;
Based on the color image, among the pixels of the color image, only pixels corresponding to the dots of the two-dimensional code pattern printed in a matrix on the writing medium are represented by black pixels, and the other pixels are represented. Generates a dot image represented by white pixels, and detects and outputs dot coordinates representing the position of the dot of the two-dimensional code pattern on the dot image and a dot color representing the color of the dot of the two-dimensional code pattern A second processing step,
Based on the dot coordinates output from the second processing step, by removing black pixels corresponding to the dots of the two-dimensional code pattern from the binarized image, it corresponds to the part of the writing medium that has been rewritten A third processing step of generating a binary image representing the black pixel (hereinafter referred to as an added pixel);
The coordinates representing the position of the two-dimensional code pattern on the writing medium by detecting the two-dimensional code pattern from the dot image and decoding each detected two-dimensional code pattern (denoted as coordinates on the writing medium) A fourth processing step of outputting the coordinates on the writing medium in association with coordinates (coordinates on the image) representing the positions on the dot image of the two-dimensional code pattern;
Based on the coordinates representing the position of each of the retouched pixels on the binary image and the coordinates on the writing medium and the coordinates on the image of the two-dimensional code pattern output from the fourth processing unit. A fifth processing step of obtaining coordinates indicating the position of the writing pixel on the writing medium and outputting it as writing information;
A sixth processing step for generating region information representing a region represented by a group of dots of the same color based on the dot coordinates and the dot color output from the second processing step;
A retouching information detection method characterized by comprising:
前記第4の処理工程は、検出した2次元コードパターンをデコードすることにより、前記電子文書の識別情報をも取得して出力することを特徴とする請求項10に記載の加筆情報検出方法。 The fourth treatment step, by decoding the detected two-dimensional code pattern, revision information detecting method according to claim 10, characterized in that also outputs the acquired identification information of the electronic document. 前記第3の処理工程は前記2値画像に細線化処理を施し、
前記第5の処理工程は前記細線化処理後の前記2値画像中の加筆画素を処理の対象とすることを特徴とする請求項10に記載の加筆情報検出方法。
The third processing step performs thinning processing on the binary image,
The retouching information detection method according to claim 10, wherein the fifth processing step targets a retouched pixel in the binary image after the thinning process.
前記第2の処理工程は、前記カラー画像の各色成分毎にドットを検出し、その検出結果に基づいて、前記ドット画像を生成するとともに前記2次元コードパターンのドットの座標及び色を検出することを特徴とする請求項10に記載の加筆情報検出方法。   The second processing step detects dots for each color component of the color image, generates the dot image based on the detection result, and detects the coordinates and colors of the dots of the two-dimensional code pattern. The rewritten information detection method according to claim 10. 前記第4の処理工程は前記ドット画像に複数の小領域を設定し、設定した各小領域において前記2次元コードパターンの検出を行うことを特徴とする請求項10に記載の加筆情報検出方法。   11. The additional information detection method according to claim 10, wherein the fourth processing step sets a plurality of small areas in the dot image, and detects the two-dimensional code pattern in each of the set small areas. 請求項に記載の加筆情報検出装置の各手段としてコンピュータを機能させるプログラム。 The program which makes a computer function as each means of the retouching information detection apparatus of Claim 5 . 請求項に記載の加筆情報検出装置の各手段としてコンピュータを機能させるプログラムが記録されたコンピュータ読み取り可能な記録媒体。 A computer-readable recording medium on which a program for causing a computer to function as each means of the additional information detecting apparatus according to claim 5 is recorded.
JP2006253149A 2006-09-19 2006-09-19 Writing medium, writing information detection device, writing information detection method, program, and recording medium Expired - Fee Related JP4793868B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006253149A JP4793868B2 (en) 2006-09-19 2006-09-19 Writing medium, writing information detection device, writing information detection method, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006253149A JP4793868B2 (en) 2006-09-19 2006-09-19 Writing medium, writing information detection device, writing information detection method, program, and recording medium

Publications (2)

Publication Number Publication Date
JP2008077201A JP2008077201A (en) 2008-04-03
JP4793868B2 true JP4793868B2 (en) 2011-10-12

Family

ID=39349217

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006253149A Expired - Fee Related JP4793868B2 (en) 2006-09-19 2006-09-19 Writing medium, writing information detection device, writing information detection method, program, and recording medium

Country Status (1)

Country Link
JP (1) JP4793868B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043940B (en) * 2009-10-14 2014-06-18 北大方正集团有限公司 Method and device for reading two-dimensional code symbol data

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012061975A1 (en) 2010-11-09 2012-05-18 Tpk Touch Solutions Inc. Touch panel device
JP2015008002A (en) * 2014-08-22 2015-01-15 ティーピーケイ タッチ ソリューションズ インコーポレーテッド Touch panel device
CN113627577B (en) * 2021-08-02 2023-05-23 三维码(厦门)网络科技有限公司 Three-dimensional code generation method and anti-counterfeiting tracing system based on three-dimensional code

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4385744B2 (en) * 2003-11-28 2009-12-16 株式会社日立製作所 Electronic pen usage document entry system with falsification prevention function
JP2006085679A (en) * 2004-08-16 2006-03-30 Ricoh Co Ltd Two-dimensional code pattern, two-dimensional code generating method, two-dimensional code generator and printing medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043940B (en) * 2009-10-14 2014-06-18 北大方正集团有限公司 Method and device for reading two-dimensional code symbol data

Also Published As

Publication number Publication date
JP2008077201A (en) 2008-04-03

Similar Documents

Publication Publication Date Title
US6929183B2 (en) Reconstruction of virtual raster
JP5015540B2 (en) Digital watermark embedding device and detection device
JP4198456B2 (en) Two-dimensional code pattern, two-dimensional code pattern carrying medium, two-dimensional code pattern generation method, two-dimensional code reading apparatus and reading method
CN101160950B (en) Image processing device, image processing method
US8391607B2 (en) Image processor and computer readable medium
CN106156820B (en) Two-dimensional code generation method and device
JP2017516204A (en) Generation and decoding of machine-readable optical codes with aesthetic elements
JP2009169948A (en) Device and method for determining orientation of document, and program and recording medium thereof
JP6856956B2 (en) How to detect and recognize long-range high-density visual markers
JP4793868B2 (en) Writing medium, writing information detection device, writing information detection method, program, and recording medium
JP4865844B2 (en) Two-dimensional code reading method, two-dimensional code for reading by the two-dimensional code reading method, and recording medium on which the two-dimensional code reading method is recorded
JP5720182B2 (en) Image processing apparatus and image processing program
JP4397866B2 (en) Two-dimensional pattern reading device, two-dimensional pattern reading method
JP2005227929A (en) Processing method for photography image of object, image display system, program and recording medium
JP4159948B2 (en) Two-dimensional code reading device, two-dimensional code reading method, two-dimensional code reading program, and storage medium
JP2010258627A (en) Image processor, image processing method, program, and storage medium
JP5434273B2 (en) Image processing apparatus and image processing program
JP2008135857A (en) Image processor and image processing program
CN117975482A (en) Method, device, equipment and medium for amplifying magnetic code data in bill
JP5240452B2 (en) Handwritten point and line recognition processing method and apparatus
CN103577816A (en) Image processing device and image processing method
JP5434272B2 (en) Information processing apparatus and information processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090723

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110428

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110511

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110701

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: 20110720

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110721

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140805

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees