JP4247190B2 - Two-dimensional code recognition device and program - Google Patents

Two-dimensional code recognition device and program Download PDF

Info

Publication number
JP4247190B2
JP4247190B2 JP2005051784A JP2005051784A JP4247190B2 JP 4247190 B2 JP4247190 B2 JP 4247190B2 JP 2005051784 A JP2005051784 A JP 2005051784A JP 2005051784 A JP2005051784 A JP 2005051784A JP 4247190 B2 JP4247190 B2 JP 4247190B2
Authority
JP
Japan
Prior art keywords
code data
code
dimensional code
data description
position detection
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
JP2005051784A
Other languages
Japanese (ja)
Other versions
JP2006236135A (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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2005051784A priority Critical patent/JP4247190B2/en
Publication of JP2006236135A publication Critical patent/JP2006236135A/en
Application granted granted Critical
Publication of JP4247190B2 publication Critical patent/JP4247190B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

この発明は、例えば意見集約法を採用した会議やワークショップを支援するシステムにおいて、意見が記載されたカードに表示される二次元コードを認識するための二次元コード識別装置とそのプログラムに関する。   The present invention relates to a two-dimensional code identification device for recognizing a two-dimensional code displayed on a card on which an opinion is described and a program therefor, for example, in a system that supports meetings and workshops employing the opinion aggregation method.

会議やワークショップの場において利用される意見集約法の1つとして、KJ法が知られている。KJ法は、ブレーンストーミング等で出されたアイディアや意見、又は各種調査の現場から収集された雑多な情報を1つずつ小さなカード(紙切れ)に書き込み、それらのカードの中から内容の近いもの同士を集めてグループ化してゆく作業の中で、テーマの解決に役立つヒントやひらめきを生み出していこうとするものである。   The KJ method is known as one of the opinion gathering methods used in meetings and workshops. The KJ method writes ideas and opinions from brainstorming, etc., and miscellaneous information collected from various survey sites one by one on a small card (out of paper), and those with similar contents from each other In the work of collecting and grouping, we try to generate hints and inspirations that help solve the theme.

KJ法の基本的な手順を以下に示す。はじめに、参加者は発想したアイディアや収集した情報などのデータを1つずつ1枚の小さなカードに書き込んでいく。次に、作成したカード群を机などに並べて、カードに書かれたデータが同類の内容であるカード同士を集めグループを作成する。また、作成した各グループには、その内容を要約した表札をつける。カードのグループ編成は、まず、小グループを作り、次に小グループを同士で中グループを、さらに中グループ同士で大グループを作成していく。このようにKJ法を使用すると、カードのグループ編成を繰り返しながら様々な意見を集約して、テーマ解決に役立つヒントを導き出すことが可能である。   The basic procedure of the KJ method is shown below. First, participants write data such as ideas and collected information on a small card one by one. Next, the created cards are arranged on a desk or the like, and a group is created by collecting cards whose contents written on the cards are similar. In addition, a nameplate summarizing the contents is attached to each created group. In the card group organization, first, a small group is created, then a small group is created as a middle group, and then a middle group is created as a large group. When the KJ method is used in this way, it is possible to collect various opinions while repeating the grouping of cards and derive hints useful for the theme solution.

ところで、最近上記KJ法を使用した会議やワークショップにおいて、意見集約のプロセスを記録し、この記録された情報を後にバーチャル会議等に再利用する試みがなされている。プロセスの記録手法としては、例えばビデオカメラを使用してカードのグループ化作業の過程を撮像し、この撮像された画像データから各カードの移動履歴を検出し記録するものが使用される。その際、各カードにはカードを識別するためのコードを印刷しておき、撮像された画像データに対し画像処理を行って上記コードを認識することにより各カードの移動履歴を検出するようにしている。なお、コードとしては、汎用の1次元バーコードや、水平及び垂直方向に情報を持つQRコード等の2次元コードが使用される(例えば、非特許文献1を参照。)。   By the way, recently, in meetings and workshops using the KJ method, an attempt has been made to record the process of collecting opinions and to reuse the recorded information for a virtual meeting or the like later. As a process recording method, for example, a video camera is used to capture an image of a card grouping process, and a movement history of each card is detected and recorded from the captured image data. At that time, a code for identifying the card is printed on each card, and the movement history of each card is detected by performing image processing on the captured image data and recognizing the code. Yes. As the code, a general-purpose one-dimensional bar code or a two-dimensional code such as a QR code having information in the horizontal and vertical directions is used (for example, see Non-Patent Document 1).

http://www.keyence.co.jp/barcode/2jigenbasic/chishiki4.htmlhttp://www.keyence.co.jp/barcode/2jigenbasic/chishiki4.html

ところが、上記KJ法を使用した会議やワークショップにおいて、机又は壁に配置される各カードの向きは区々であり、しかもこの向きはカードが移動されるごとに変化する。このため、既存のバーコードを使用した従来のシステムでは、カードの向きによってはバーコードを正しく認識できなくなるおそれがある。また、正確に認識するために、例えばカードの向きに応じて画像データに対し傾き補正を行った上でバーコードの認識処理を行うことも考えられるが、このようにするとバーコードの認識処理に複雑なアルゴリズムと多くの処理時間を必要とするという別の問題を生じる。   However, in meetings and workshops using the KJ method, the orientation of each card placed on the desk or wall varies, and this orientation changes each time the card is moved. For this reason, in a conventional system using an existing barcode, the barcode may not be recognized correctly depending on the card orientation. For accurate recognition, for example, it may be possible to perform barcode recognition processing after correcting the inclination of image data according to the card orientation. Another problem is that it requires a complex algorithm and a lot of processing time.

この発明は、上記事情に着目してなされたもので、その目的とするところは、表示媒体の向きが変化しても複雑な画像処理アルゴリズムを用いることなく安定したコード認識処理を行えるようにし、特に意見集約プロセスの記録過程に使用する場合に好適な二次元コード認識装置とそのプログラムを提供することにある。   The present invention has been made paying attention to the above circumstances, and its purpose is to enable stable code recognition processing without using a complicated image processing algorithm even if the orientation of the display medium changes, In particular, it is an object of the present invention to provide a two-dimensional code recognition apparatus suitable for use in the recording process of an opinion aggregation process and a program thereof.

上記目的を達成するためにこの発明に係わる二次元コード認識装置とそのプログラムは、複数のセルを二次元配列したコードデータ記述部と当該コードデータ記述部の位置を示す位置検出用パターン部とを備える二次元コードと、当該二次元コードのスケール基準を定義するスケール情報がそれぞれ表示された媒体を撮像して得られる媒体画像データに対し、画像処理を行って上記二次元コードを認識する際に、
先ず上記媒体画像データ中から上記スケール情報を検出して、この検出されたスケール情報をもとに上記二次元コードのスケール基準値を算出する。そして、この算出されたスケール基準値をもとにサイズが調整されたテンプレート情報を生成し、この生成されたテンプレート情報をもとに、上記媒体画像データ中から上記位置検出用パターン部を検出する。次に、上記媒体画像データ中における上記位置検出用パターン部の検出位置をもとに上記コードデータ記述部の存在範囲を推定し、上記媒体画像データ中における上記推定された存在範囲から上記コードデータ記述部を検出して、この検出されたコードデータ記述部に記述されたコードデータを復号するようにしたものである。
In order to achieve the above object, a two-dimensional code recognition apparatus and a program therefor according to the present invention include a code data description part in which a plurality of cells are two-dimensionally arranged, and a position detection pattern part indicating the position of the code data description part. When recognizing the two-dimensional code by performing image processing on the medium image data obtained by imaging the two-dimensional code provided and the scale information defining the scale reference of the two-dimensional code. ,
First, the scale information is detected from the medium image data, and the scale reference value of the two-dimensional code is calculated based on the detected scale information. Then, template information whose size is adjusted based on the calculated scale reference value is generated, and the position detection pattern portion is detected from the medium image data based on the generated template information. . Next, an existence range of the code data description portion is estimated based on a detection position of the position detection pattern portion in the medium image data, and the code data is calculated from the estimated existence range in the medium image data. The description part is detected, and the code data described in the detected code data description part is decoded.

したがってこの発明によれば、コードデータ記述部の位置を示す位置検出用パターン部が先ず検出され、この検出された位置検出用パターン部を利用してコードデータ記述部が認識される。このため、二次元コードを含む画像データから画像処理により二次元コードを認識する際に、二次元コードの向きが任意の方向に回転していても、画像データに対し傾き補正等を行うことなくコードデータ記述部を高い確率で検出し、そのコードデータを復号することが可能となる。このため、複雑な画像処理アルゴリズムを用いることなく、簡単かつ短時間に効率良く二次元コードを認識できる。   Therefore, according to the present invention, the position detection pattern portion indicating the position of the code data description portion is first detected, and the code data description portion is recognized using the detected position detection pattern portion. For this reason, when recognizing a two-dimensional code by image processing from image data including a two-dimensional code, even if the direction of the two-dimensional code is rotated in an arbitrary direction, the image data is not subjected to inclination correction or the like. The code data description part can be detected with high probability, and the code data can be decoded. Therefore, a two-dimensional code can be recognized easily and efficiently in a short time without using a complicated image processing algorithm.

しかも、上記位置検出用パターン部の検出に先立ち、媒体画像データ中からスケール情報が検出され、これをもとに二次元コードのスケール基準値が算出される。そして、この算出されたスケール基準値をもとにサイズが調整されたテンプレート情報が生成され、この生成されたテンプレート情報をもとに上記位置検出用パターン部の検出が行われる。このため、位置検出用パターン部を迅速かつ確実に検出することが可能となる。   In addition, prior to the detection of the position detection pattern portion, scale information is detected from the medium image data, and a scale reference value of the two-dimensional code is calculated based on this. Then, template information whose size is adjusted based on the calculated scale reference value is generated, and the position detection pattern portion is detected based on the generated template information. For this reason, it becomes possible to detect the position detection pattern portion quickly and reliably.

またこの発明は、上記位置検出用パターン部がコードデータ記述部の存在方向を形状により表す方向指示パターンを有する場合に、コードデータ記述部の存在範囲を推定する際に、上記位置検出用パターン部の検出位置及び上記方向指示パターンの形状をもとにコードデータ記述部の存在範囲を推定することを特徴とする。
したがって、位置検出用パターン部が検出されると、その方向指示パターンの形状をもとにコードデータ記述部の存在範囲が推定される。このため、例えばQRコードのように位置検出用のパターンを備えていても方向指示機能を持たないものに比べ、コードデータ記述部の存在位置を簡単かつ迅速に推定することが可能となる。
Further, the present invention provides the position detection pattern portion when estimating the existence range of the code data description portion when the position detection pattern portion has a direction indicating pattern that represents the existence direction of the code data description portion by a shape. The existence range of the code data description part is estimated based on the detected position of the code and the shape of the direction indicating pattern.
Therefore, when the position detection pattern portion is detected, the existence range of the code data description portion is estimated based on the shape of the direction indicating pattern. For this reason, for example, even if a pattern for position detection such as a QR code is provided, the position where the code data description portion is present can be estimated easily and quickly compared to a pattern having no direction indicating function.

さらにこの発明は、位置検出パターンが固有の色に設定されている場合に、位置検出用パターン部を検出する際に、媒体画像データ中から上記固有の色に基づいて位置検出用パターン部を検出することを特徴とする。
このようにすると、媒体画像データ中に位置検出パターンと類似する形状の画像パターンが含まれている場合でも、色を考慮することで位置検出パターンをより一層正確に検出することが可能となる。
Further, according to the present invention, when the position detection pattern is set to a unique color, the position detection pattern portion is detected from the medium image data based on the unique color when detecting the position detection pattern portion. It is characterized by doing.
In this way, even when the medium image data includes an image pattern having a shape similar to the position detection pattern, the position detection pattern can be detected more accurately by considering the color.

さらにこの発明は、コードデータ記述部が二次元コードの正当性を表すチェックパターンを含む場合に、コードデータを復号する際に、先ず上記チェックパターンをもとに二次元コードの正当性を判定する。そして、この正当性の判定の結果、二次元コードの正当性が確認された場合に、コードデータ記述部に記述されたコードデータを復号するようにすることを特徴とする。
このようにすると、例えば画像雑音等の影響により媒体画像データ中にコードデータ記述部と類似する画像パターンが存在した場合に、これを即時コードデータ記述部として誤認識しないようにすることができる。
Furthermore, according to the present invention, when the code data description part includes a check pattern indicating the validity of the two-dimensional code, when decoding the code data, first, the validity of the two-dimensional code is determined based on the check pattern. . If the validity of the two-dimensional code is confirmed as a result of the determination of the validity, the code data described in the code data description section is decoded.
In this way, for example, when an image pattern similar to the code data description portion exists in the medium image data due to the influence of image noise or the like, it can be prevented from being erroneously recognized as an immediate code data description portion.

さらにこの発明は、コードデータ記述部が二次元配列された複数のセルを第1及び第2の色のいずれかに設定することによりコードデータを表現している場合に、コードデータを復号する際に、コードデータ記述部の各セルの色を判定することによりコードデータを復号することも特徴とする。
このようにすると、一次元バーコードのようにコード幅を高精度に識別する必要がなく、比較的簡単な画像認識処理によりコードを正確に認識することができる。
Furthermore, the present invention provides a method for decoding code data when the code data is expressed by setting a plurality of cells in which the code data description section is two-dimensionally arranged to one of the first and second colors. In addition, the code data is decoded by determining the color of each cell in the code data description section.
In this way, it is not necessary to identify the code width with high accuracy unlike a one-dimensional barcode, and the code can be accurately recognized by a relatively simple image recognition process.

以上述べたようにこの発明によれば、二次元コードを見つけ出して復号する際に、先ず位置検出用パターン部を検出し、この検出された位置検出用パターン部をもとにコードデータ記述部の存在範囲を推定して、この推定された範囲からコードデータ記述部を検出して復号処理するようにしたことによって、表示媒体の向きが変化しても複雑な画像処理アルゴリズムを用いることなく安定したコード認識処理を行うことができ、特に意見集約プロセスの記録過程に使用する場合に好適な二次元コード認識装置とそのプログラムを提供することができる。   As described above, according to the present invention, when the two-dimensional code is found and decoded, the position detection pattern portion is first detected, and the code data description portion of the code data description portion is detected based on the detected position detection pattern portion. By estimating the existence range and detecting the code data description part from this estimated range and decoding it, even if the orientation of the display medium changes, it is stable without using complex image processing algorithms A code recognition process can be performed, and a two-dimensional code recognition apparatus suitable for use in the recording process of an opinion aggregation process and a program thereof can be provided.

以下、図面を参照してこの発明の実施形態を説明する。
図1は、この発明に係わる二次元コードの用途の一つである会議支援システムの概略構成図である。このシステムは、サーバ装置SVにボード撮像装置VI及びカード撮像装置CAを信号ケーブルを介して接続すると共に、上記サーバ装置SVに対しユーザ端末PC1〜PCkを通信ネットワークNWを介して接続可能としたものである。通信ネットワークNWは、例えばインターネットやLAN(Local Area Network)により構成される。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a schematic configuration diagram of a conference support system which is one of uses of a two-dimensional code according to the present invention. In this system, a board imaging device VI and a card imaging device CA are connected to a server device SV via a signal cable, and user terminals PC1 to PCk can be connected to the server device SV via a communication network NW. It is. The communication network NW is configured by, for example, the Internet or a LAN (Local Area Network).

サーバ装置SVは、会議情報管理装置としての機能を備えたもので、上記ボード撮像装置VIにより撮像された映像データをケーブルを介して取り込む機能と、上記カード撮像装置CAにより撮像された画像データをケーブルを介して取り込む機能とを備える。   The server device SV has a function as a conference information management device. The server device SV has a function of taking in video data captured by the board imaging device VI via a cable and image data captured by the card imaging device CA. And a function of capturing via a cable.

ユーザ端末PC1〜PCkはパーソナル・コンピュータにより構成され、表示装置とキーボードやマウスなどの入力装置を備えている。これらのユーザ端末PC1〜PCkは、通信ネットワークNWを介して上記サーバ装置SVと通信を行い、会議の閲覧者たるユーザが配信された会議情報をバーチャルな環境で閲覧するために使用する。   The user terminals PC1 to PCk are configured by a personal computer and include a display device and input devices such as a keyboard and a mouse. These user terminals PC1 to PCk communicate with the server device SV via the communication network NW, and are used to view the conference information distributed by the user who is the conference viewer in a virtual environment.

図2は、図1に示すシステムにおける会議情報の記録の様子を示す図である。同図において、ボード1は机上または壁等に備えられ、このボード1上においてKJ法等による意見集約のプロセスが実行される。このプロセスは、例えば意見を記入したカード21〜2iをボード1上に配置し、これらのカード21〜2iを参加者がボード1上で手操作により移動させることで、記入された意見の近いもの同士のグループを構成することにより行われる。ボード1は、市販のホワイトボードや模造紙等でも良いし、会場の壁や机をそのまま利用しても構わない。   FIG. 2 is a diagram showing how conference information is recorded in the system shown in FIG. In the figure, a board 1 is provided on a desk or a wall, and an opinion collecting process by the KJ method or the like is executed on the board 1. In this process, for example, cards 21 to 2i on which opinions are entered are placed on the board 1, and these cards 21 to 2i are manually moved on the board 1 by the participants so that the entered opinions are close to each other. This is done by forming a group between each other. The board 1 may be a commercially available white board, imitation paper, or the like, or may use the wall or desk of the venue as it is.

カード21〜2iには、意見記入エリアとカード識別エリアとが設けられる。意見記入エリアは、会議参加者がペン等を用いて意見を記載する領域である。カード識別エリアには二次元コードが表示される。二次元コードは、カードごとに固有の個別識別情報(以下、カードIDと呼称する)を含み、カードに予め印刷される。なお、カード21〜2iは、ペンなどの筆記具を用いて意見が記入できるものであれば形状及び材質には制限はなく、例えば市販されている粘着剤付きの付箋紙などが利用できる。   The cards 21 to 2i are provided with an opinion entry area and a card identification area. The opinion entry area is an area where conference participants write their opinions using a pen or the like. A two-dimensional code is displayed in the card identification area. The two-dimensional code includes individual identification information unique to each card (hereinafter referred to as a card ID), and is printed on the card in advance. The cards 21 to 2i are not limited in shape and material as long as opinions can be entered using a writing instrument such as a pen. For example, commercially available sticky notes with an adhesive can be used.

ボード撮像装置VIは例えば動画の撮像が可能なビデオカメラからなり、意見集約が行われるボード1全体を時間経過にしたがって撮像する。そして、この撮像により得られるボード映像データとディジタル音声データを、例えばDVケーブル等を介してサーバ装置SVへ送る。   The board imaging device VI is composed of, for example, a video camera capable of capturing moving images, and images the entire board 1 on which opinions are aggregated over time. Then, the board video data and digital audio data obtained by this imaging are sent to the server device SV via a DV cable, for example.

図3は、ボード映像データの一例を示すもので、このボード画像データにはボード1上に配置された複数のカード21〜2iの画像データと、後述するスケール用スクウェア画像SSが含まれる。各カード21〜2iの画像データには当該カード画像を識別するための二次元コードが含まれており、上記スケール用スクウェア画像SSはこの二次元コードを認識するために使用される。上記ボード画像データにおいて使用されるスケール用スクウェア画像は、二次元コードの長辺方向の長さを一辺とする正方形画像により構成される。   FIG. 3 shows an example of board video data. The board image data includes image data of a plurality of cards 21 to 2i arranged on the board 1 and a scale square image SS described later. The image data of each of the cards 21 to 2i includes a two-dimensional code for identifying the card image, and the scale square image SS is used for recognizing the two-dimensional code. The scale square image used in the board image data is composed of a square image having one side in the long side direction of the two-dimensional code.

カード撮像装置CAは例えばディジタルスチルカメラにより構成され、カード21〜2iを一枚ずつ撮像する。そして、この撮像により得られたカード画像データを、例えばUSBケーブルなどを介してサーバ装置SVへ送る。カード画像データには、1枚のカードに記載された意見などを表す画像と、カードを識別するための二次元コードと、この二次元コードの認識に使用するスケール用スクウェア画像が含まれる。このカード映像データにおいて使用されるスケール用スクウェア画像は、上記二次元コードの短辺方向の長さを一辺とする正方形画像により構成される。   The card imaging device CA is constituted by a digital still camera, for example, and images the cards 21 to 2i one by one. Then, the card image data obtained by this imaging is sent to the server device SV via, for example, a USB cable. The card image data includes an image representing an opinion or the like written on one card, a two-dimensional code for identifying the card, and a scale square image used for recognition of the two-dimensional code. The scale square image used in the card video data is composed of a square image having one side of the length in the short side direction of the two-dimensional code.

サーバ装置SVは、二次元コード認識装置としての機能も備える。すなわち、サーバ装置SVは、上記ボード撮像装置VIから送られたボード映像データ、およびカード撮像装置CAから送られたカード画像データをそれぞれ記憶する。そして、この記憶されたカード画像データを読み出し、カード識別エリアに表示された二次元コードを画像認識処理により認識してカードIDを解読する。   The server device SV also has a function as a two-dimensional code recognition device. That is, the server device SV stores the board image data sent from the board imaging device VI and the card image data sent from the card imaging device CA. Then, the stored card image data is read, and the two-dimensional code displayed in the card identification area is recognized by the image recognition process, and the card ID is decoded.

次にサーバ装置SVは、ボード映像データとカード画像データに含まれるカードIDを比較し、一致する場合にボード映像データ上のカードの位置を検出する。そして、検出されたカードの位置情報を移動履歴情報としてサーバ装置SVが備えるメモリに記憶する。このように記憶されたカードの移動履歴情報とカード画像データから会議情報データを再構成し、ユーザ端末PC1〜PCkに対して配信する。   Next, the server apparatus SV compares the board video data and the card ID included in the card image data, and detects the position of the card on the board video data if they match. Then, the detected position information of the card is stored in the memory included in the server device SV as movement history information. The conference information data is reconstructed from the card movement history information and the card image data stored in this manner, and distributed to the user terminals PC1 to PCk.

ところで、上記カード21〜2iのカード識別エリアに表示される二次元コードは、次のように構成される。図4はその構成を示すものである。
すなわち、二次元コードは、複数のセルを二次元配列したデータ記述部DTと、その両端部に配置される切り出し用シンボル部SS,SEとから構成される。データ記述部DTは正方形をなす複数のセルを二次元配列したもので、チェックパターン領域と、データ領域とに分けられる。チェックパターン領域には、図5に示すように予め定められたチェックパターンCPが挿入される。チェックパターンCPは、二次元コードを認識する際にその正当性を判定するために使用される。データ領域にはカードIDが挿入される。例えば、各セルはそれぞれカードIDを構成するコードデータの各ビットに割り当てられ、ビット値に応じて白又は黒に設定される。
By the way, the two-dimensional code displayed in the card identification areas of the cards 21 to 2i is configured as follows. FIG. 4 shows the configuration.
That is, the two-dimensional code includes a data description part DT in which a plurality of cells are two-dimensionally arranged, and cutout symbol parts SS and SE arranged at both ends thereof. The data description part DT is a two-dimensional array of a plurality of square cells, and is divided into a check pattern area and a data area. As shown in FIG. 5, a predetermined check pattern CP is inserted into the check pattern area. The check pattern CP is used to determine the correctness when recognizing a two-dimensional code. A card ID is inserted into the data area. For example, each cell is assigned to each bit of the code data constituting the card ID, and is set to white or black according to the bit value.

切り出し用シンボル部SS,SEは、二次元コードを認識する際にカード21〜2i上における上記データ記述部DTの位置を見つけるためのもので、データ記述部DTの存在方向を指し示す方向指示パターンを形成する。この方向指示パターンは、例えば図4に示すようにパターン形状が「逆コ型」と「コ型」を組み合わせたものからなる。なお、切り出し用シンボル部SS,SEの方向指示パターンのパターン形状は「逆コ型」及び「コ型」に限定されるものではなく、「<型」と「>型」とを組み合わせたものや、「→」と「←」とを組み合わせたもの等、データ記述部DTの存在方向を指し示すものであれば任意の形状の組み合わせを使用できる。なお、上記方向指示パターンを固有の色で着色するようにしてもよい。この固有の色には、会議支援システムにおいてカードで使用されない色が選ばれる。   The cut-out symbol portions SS and SE are used to find the position of the data description portion DT on the cards 21 to 2i when recognizing the two-dimensional code, and a direction indication pattern indicating the existence direction of the data description portion DT is used. Form. For example, as shown in FIG. 4, the direction indicating pattern is formed by combining a pattern shape of “reverse U type” and “U type”. Note that the pattern shape of the direction indicating pattern of the cutout symbol portions SS and SE is not limited to “reverse U type” and “U type”, but a combination of “<type” and “> type” Any combination of shapes can be used as long as it indicates the direction in which the data description part DT exists, such as a combination of “→” and “←”. The direction indicating pattern may be colored with a unique color. As this unique color, a color that is not used in the card in the conference support system is selected.

さて、上記二次元コードを認識するための装置は次のように構成される。図5は、二次元コード認識機能を備えるサーバ装置SVの機能構成を示すブロック図である。
すなわち、サーバ装置SVは、マイクロプロセッサなどの中央処理ユニット(CPU:Central Processing Unit)11を備える。このCPU11には、バス12を介してデータメモリ13およびプログラムメモリ14及びデータメモリ14が接続され、さらにカメラ入力インタフェース(カメラ入力I/F)15、ビデオ入力I/F16、作成装置入力I/F17及び出力インタフェース(出力I/F)18が接続されている。
Now, an apparatus for recognizing the two-dimensional code is configured as follows. FIG. 5 is a block diagram showing a functional configuration of the server apparatus SV having a two-dimensional code recognition function.
That is, the server apparatus SV includes a central processing unit (CPU) 11 such as a microprocessor. The CPU 11 is connected to a data memory 13, a program memory 14, and a data memory 14 via a bus 12, and further has a camera input interface (camera input I / F) 15, a video input I / F 16, and a creation device input I / F 17. And an output interface (output I / F) 18 is connected.

カメラ入力I/F15は、CPU11の制御の下で、カード撮像装置CAからケーブルを介して送られるカード画像データを取り込む。ビデオ入力I/F16は、CPU11の制御の下で、ボード撮像装置VIからケーブルを介して送られるボード画像データを取り込む。なお、上記カード画像データ及びボード画像データは、磁気ディスクや光ディスク、メモリカード等の外部記憶媒体から読み込むことも可能である。   The camera input I / F 15 captures card image data sent from the card imaging apparatus CA via a cable under the control of the CPU 11. The video input I / F 16 takes in board image data sent from the board imaging device VI via a cable under the control of the CPU 11. The card image data and board image data can also be read from an external storage medium such as a magnetic disk, an optical disk, or a memory card.

作成装置入力I/F17にはケーブルを介してコード作成装置ASが接続される。コード作成装置ASは、各カードカード21〜2iに表示するための二次元コードを作成するもので、作成された二次元コードに対応するシンボルテンプレート情報及びコード属性データを出力する。作成装置入力I/F17は、上記コード作成装置ASから出力されるシンボルテンプレート情報及びコード属性データを取り込む。出力I/F18にはディスプレイ19が接続される。出力I/F18は、CPU11の制御の下、二次元コードの復号結果等をディスプレイ19に表示させる。   A code creation device AS is connected to the creation device input I / F 17 via a cable. The code creation device AS creates a two-dimensional code to be displayed on each of the card cards 21 to 2i, and outputs symbol template information and code attribute data corresponding to the created two-dimensional code. The creation device input I / F 17 takes in the symbol template information and code attribute data output from the code creation device AS. A display 19 is connected to the output I / F 18. The output I / F 18 displays a two-dimensional code decoding result on the display 19 under the control of the CPU 11.

データメモリ14は、ハードディスクやフラッシュメモリからなり、探索画像記憶エリア14aと、シンボルテンプレート情報記憶エリア14bと、コード属性データ記憶エリア14cとを備えている。探索画像記憶エリア14aには、上記カメラ入力I/F15を介して取り込まれたカード画像データと、ビデオ入力I/F16を介して取り込まれたボード画像データが記憶される。   The data memory 14 includes a hard disk and a flash memory, and includes a search image storage area 14a, a symbol template information storage area 14b, and a code attribute data storage area 14c. In the search image storage area 14a, card image data captured via the camera input I / F 15 and board image data captured via the video input I / F 16 are stored.

シンボルテンプレート情報記憶エリア14bには、上記作成装置入力I/F17を介して取り込まれたシンボルテンプレート情報が記憶される。コード属性データ記憶エリア14cには、同じく上記作成装置入力I/F17を介して取り込まれたコード属性データが記憶される。   The symbol template information storage area 14b stores the symbol template information captured via the creation device input I / F 17. Similarly, the code attribute data storage area 14c stores the code attribute data fetched via the creation device input I / F 17.

プログラムメモリ13には、この発明を実現するためのアプリケーション・プログラムとして、探索画像入力制御プログラム13aと、スケール用スクウェア認識プログラム13bと、テンプレートサイズ制御プログラム13cと、切り出しシンボル探索プログラム13dと、データ記述範囲特定プログラム13eと、チェックビット解析プログラム13fと、コードデータ復号プログラム13gが格納される。   In the program memory 13, as application programs for realizing the present invention, a search image input control program 13a, a scale square recognition program 13b, a template size control program 13c, a cut-out symbol search program 13d, and a data description A range specifying program 13e, a check bit analysis program 13f, and a code data decoding program 13g are stored.

探索画像入力制御プログラム13aは、カード撮像装置CAから送られるカード画像データ及びボード撮像装置VIから送られるボード画像データをそれぞれカメラ入力I/F15及びビデオ入力I/F16を介して取り込み、この取り込まれた各画像データを上記探索画像記憶エリア14aに記憶させる。   The search image input control program 13a fetches the card image data sent from the card imaging device CA and the board image data sent from the board imaging device VI via the camera input I / F 15 and the video input I / F 16, respectively. Each image data is stored in the search image storage area 14a.

スケール用スクウェア認識プログラム13bは、探索対象画像である上記ボード画像データ及びカード画像データ中からスケール用スクウェアの画像データSSを認識する。このときスケール用スクウェアとしては、二次元コードの長辺方向の長さを一辺とする第1の正方形画像と、二次元コードの短辺方向の長さを一辺とする第2の正方形画像とが用意されており、上記ボード画像データ中からは上記第1の正方形画像を、一方上記カード画像データ中からは上記第2の正方形画像をそれぞれ認識する。スケール用スクウェアの認識手法としては、画像処理技術の一つである特徴抽出(ブロブ解析)が用いられ、正方形の特徴が抽出される。またスケール用スクウェア認識プログラム13bは、上記抽出された第1及び第2の正方形の一辺の長さをそれぞれ計算する。この正方形の一辺の長さは、正方形の頂点の座標から三平方の定理を用いて算出される。   The scale square recognition program 13b recognizes the scale square image data SS from the board image data and card image data that are search target images. At this time, as the square for scale, there are a first square image whose one side is the length in the long side direction of the two-dimensional code and a second square image whose one side is the length in the short side direction of the two-dimensional code. The first square image is recognized from the board image data, and the second square image is recognized from the card image data. As a scaling square recognition method, feature extraction (blob analysis), which is one of image processing techniques, is used, and square features are extracted. Further, the scale square recognition program 13b calculates the length of one side of the extracted first and second squares. The length of one side of the square is calculated from the coordinates of the apex of the square using the three-square theorem.

テンプレートサイズ制御プログラム13cは、上記シンボルテンプレート情報記憶エリア14bからシンボルテンプレート情報を読み出し、上記スケール用スクウェア認識プログラム13bにより算出された正方形の一辺の長さをスケール基準として、上記シンボルテンプレート情報のサイズを調整する。   The template size control program 13c reads the symbol template information from the symbol template information storage area 14b, and sets the size of the symbol template information based on the length of one side of the square calculated by the scale square recognition program 13b. adjust.

切り出しシンボル探索プログラム13dは、上記探索画像記憶エリア14aに記憶されたボード画像データ又はカード画像データから二次元コードの切り出しシンボル部SS,SEを探索するもので、上記サイズ調整されたシンボルテンプレートを利用したパターンマッチングにより上記切り出しシンボル部SS,SEを検出する。   The cutout symbol search program 13d searches the cutout symbol portions SS and SE of the two-dimensional code from the board image data or card image data stored in the search image storage area 14a, and uses the size-adjusted symbol template. The cutout symbol portions SS and SE are detected by the pattern matching.

データ記述範囲特定プログラム13eは、上記切り出しシンボル探索プログラム13dにより検出された切り出しシンボル部SS,SEの位置座標と、方向指示パターンのパターン形状とをもとに、二次元コードのデータ記述部DTが存在する範囲を推定する。そして、この推定された範囲からデータ記述部DTの候補を抽出する。   The data description range specifying program 13e uses a two-dimensional code data description part DT based on the position coordinates of the cutout symbol parts SS and SE detected by the cutout symbol search program 13d and the pattern shape of the direction indicating pattern. Estimate the existing range. And the candidate of the data description part DT is extracted from this estimated range.

チェックビット解析プログラム13fは、上記データ記述範囲特定プログラム13eにより抽出されたデータ記述部DTの候補についてそれぞれチェックパターンCPをもとに正当性を判定する。この二次元コードの正当性の判定は、画像雑音等の影響による二次元コードの誤認識を未然に回避するために行われる。   The check bit analysis program 13f determines the validity of the candidates for the data description part DT extracted by the data description range specifying program 13e based on the check pattern CP. The validity of the two-dimensional code is determined in order to avoid erroneous recognition of the two-dimensional code due to the influence of image noise or the like.

コードデータ復号プログラム13gは、上記チェックビット解析プログラム13fにより正当性が確認された二次元コードのデータ記述部DTに対し、各セルに記載された白と黒のパターンを2進数のコードデータに復号し、さらにこの2進数のコードデータを10進数のカードIDに変換する。   The code data decoding program 13g decodes the white and black patterns described in each cell into binary code data for the data description part DT of the two-dimensional code whose validity has been confirmed by the check bit analysis program 13f. Further, this binary code data is converted into a decimal card ID.

次に、以上のように構成されたサーバ装置SVにおける二次元コードの認識処理動作を説明する。図7はその制御手順と制御内容を示すフローチャートである。
カード画像データ及びボード画像データの取り込みが終了すると、サーバ装置SVはCPU11により二次元コードの探索対象となる画像データを探索画像記憶エリア14aから読み出す。そして、この状態で先ずステップ7aによりスケール用スクウェア認識プログラム13bを実行し、例えばブロブ解析を用いることにより、上記読み出された画像データ中から正方形からなるスケール用スクウェア画像SSの認識を行う。
Next, a two-dimensional code recognition processing operation in the server apparatus SV configured as described above will be described. FIG. 7 is a flowchart showing the control procedure and control contents.
When the capture of the card image data and the board image data is completed, the server apparatus SV reads out the image data to be searched for the two-dimensional code from the search image storage area 14a. Then, in this state, first, the scale square recognition program 13b is executed in step 7a, and the scale square image SS composed of squares is recognized from the read image data by using, for example, blob analysis.

例えば、上記ボード画像データからは二次元コードの長辺方向の長さを一辺とする第1の正方形画像を認識し、一方上記カード画像データからは二次元コードの短辺方向の長さを一辺とする第2の正方形画像を認識する。そして、この認識したスケール用スクウェア画像SSの一辺の長さを、正方形の頂点の座標から三平方の定理を用いて算出する。   For example, the board image data recognizes a first square image whose one side is the length in the long side direction of the two-dimensional code, while the card image data has one side of the length in the short side direction of the two-dimensional code. The second square image is recognized. Then, the length of one side of the recognized scale square image SS is calculated using the square theorem from the coordinates of the vertexes of the square.

次に、サーバ装置SVのCPU11は、ステップ7bによりテンプレートサイズ制御プログラム13cを実行し、予めコード作成装置ASから取り込んでおいたシンボルテンプレート情報をシンボルテンプレート情報記憶エリア14bから読み出す。そして、ステップ7cにおいて、上記読み出されたシンボルテンプレート情報に含まれるシンボル間距離(図9に示すa)と、上記ステップ7aで算出されたスケール用スクウェア画像SSの一辺の長さとをもとに、シンボルテンプレートのサイズを調整する。このサイズ調整は、上記シンボルテンプレート情報に含まれるシンボル形状及びシンボル間距離に対し、b/aを乗ずることにより行われる。図9及び図10にその処理の様子を示す。このサイズ調整により、シンボルテンプレートは、探索画像データ中に存在する二次元コードの切り出しシンボル部SS,SEと同一サイズに設定される。   Next, the CPU 11 of the server device SV executes the template size control program 13c in step 7b, and reads the symbol template information previously fetched from the code creation device AS from the symbol template information storage area 14b. In step 7c, based on the distance between symbols (a shown in FIG. 9) included in the read symbol template information and the length of one side of the scale square image SS calculated in step 7a. Adjust the size of the symbol template. This size adjustment is performed by multiplying the symbol shape and intersymbol distance included in the symbol template information by b / a. 9 and 10 show the state of the processing. With this size adjustment, the symbol template is set to the same size as the cut-out symbol portions SS and SE of the two-dimensional code existing in the search image data.

次にCPU11は、ステップ7dにより切り出しシンボル探索プログラム13dを実行し、上記サイズ調整されたシンボルテンプレートを用いて、探索対象の画像データ中から切り出しシンボル部SS,SEの探索を行う。この探索処理は、上記シンボルテンプレートと探索対象の画像データとの間でパターンマッチングを行うことによりなされる。   Next, the CPU 11 executes the cut-out symbol search program 13d in step 7d, and searches the cut-out symbol portions SS and SE from the search target image data using the size-adjusted symbol template. This search process is performed by performing pattern matching between the symbol template and the search target image data.

さて、そうして切り出しシンボル部SS,SEが見つかると、続いてCPU11はステップ7eによりデータ記述範囲特定プログラム13eを実行し、切り出しシンボル部SS,SEの位置座標と方向指示パターンの形状をもとに、データ記述部DTの存在範囲を推定する。例えば、図11(a)に示すように、切り出しシンボル部SS,SE間に挟まれる領域で、かつ切り出しシンボル部SS,SEにそれぞれ接する1セル分のマージンを除いた範囲をデータ記述部DTの存在範囲として推定する。この存在範囲はデータ記述部DTとして認識される。そして、コード属性データ記憶エリア14cに記憶されている1セルのサイズにb/aを乗じたサイズをもとに、上記推定された範囲を図11(b)に示すように分割する。この分割された小範囲が二次元コードのセルとして認識される。   When the cutout symbol parts SS and SE are found in this way, the CPU 11 subsequently executes the data description range specifying program 13e in step 7e, based on the position coordinates of the cutout symbol parts SS and SE and the shape of the direction indication pattern. Then, the existence range of the data description part DT is estimated. For example, as shown in FIG. 11A, an area between the cutout symbol portions SS and SE and a range excluding the margin for one cell that touches each of the cutout symbol portions SS and SE is defined in the data description portion DT. Estimated as the existence range. This existence range is recognized as the data description part DT. Then, based on the size obtained by multiplying the size of one cell stored in the code attribute data storage area 14c by b / a, the estimated range is divided as shown in FIG. This divided small range is recognized as a two-dimensional code cell.

次にCPU11は、ステップ7fによりチェックビット解析プログラム13fを実行し、チェックパターンCPを検出してデータ記述部DTの候補の正当性を判定する。例えば、図11(c)に示すようにデータ記述部DTの左端にある2×2の4セルをチェックパターンCPとして抽出し、この4セルの白黒のパターンを判定する。そして、図11(c)に示すように4セルのうち左上のセルのみが黒でその他の3セルが白であれば、当該チェックパターンCPは正しいと判定され、これにより探索されたデータ記述部DTの候補の正当性は保証される。したがって、画像雑音等の影響による二次元コードの認識誤りを未然に回避できる。   Next, the CPU 11 executes the check bit analysis program 13f in step 7f, detects the check pattern CP, and determines the validity of the candidate data description part DT. For example, as shown in FIG. 11C, 2 × 2 4 cells at the left end of the data description part DT are extracted as the check pattern CP, and the monochrome pattern of the 4 cells is determined. Then, as shown in FIG. 11C, if only the upper left cell is black and the other three cells are white among the four cells, it is determined that the check pattern CP is correct, and the data description part searched by this is determined. The validity of DT candidates is guaranteed. Therefore, the recognition error of the two-dimensional code due to the influence of image noise or the like can be avoided in advance.

上記チェックパターンCPの判定において二次元コードの正当性が確認されると、CPU11はステップ7gからステップ7hに移行する。そして、このステップ7hにおいてコードデータ復号プログラム13gを実行する。図8はその処理手順及び処理内容を示すフローチャートである。   When the validity of the two-dimensional code is confirmed in the determination of the check pattern CP, the CPU 11 proceeds from step 7g to step 7h. In step 7h, the code data decoding program 13g is executed. FIG. 8 is a flowchart showing the processing procedure and processing contents.

すなわち、CPU11は先ずステップ8aにより、上記抽出されたデータ記述部DTから上記チェックパターンCPを除外してデータ記述範囲を特定する。次に、ステップ8bにより、上記特定されたデータ記述範囲内における分割された複数のセルのうち、最右下のセルをコードデータの最下位桁に対応するセルとして選択し、この選択した初期位置のセルについてステップ8cによりその輝度値から白か黒かを判定する。   That is, first, in step 8a, the CPU 11 specifies the data description range by excluding the check pattern CP from the extracted data description portion DT. Next, in step 8b, the lower right cell is selected as the cell corresponding to the lowest digit of the code data among the plurality of divided cells in the specified data description range, and this selected initial position is selected. Whether the cell is white or black is determined from the luminance value in step 8c.

続いてステップ8dにより、上記選択されたセルの左隣のセルを選択し、この選択したセルについて上記ステップ8cにより白か黒かを判定する。以後同様に、ステップ8dによりセルの選択位置を右から左方向へ、さらには下側の行から上側の行へ順次移動させながら、ステップ8cにおいてセルごとに白か黒かを判定する。   Subsequently, in step 8d, a cell adjacent to the left side of the selected cell is selected, and whether the selected cell is white or black is determined in step 8c. Thereafter, in the same manner, in step 8d, it is determined whether each cell is white or black in step 8c while sequentially moving the cell selection position from right to left, and further sequentially moving from the lower row to the upper row.

そうしてすべてのセルについての白/黒の判定が終了すると、CPU11はステップ8eからステップ8fに移行し、ここで上記各セルの判定結果をもとに2進数コードを生成する。例えば、白を“0”に、黒を“1”にそれぞれ変換する。そして、この生成された2進数コードをステップ8gにより10進数コードに変換し、この変換された10進数コードをステップ8hによりカードIDとしてデータメモリ14に保存する。最後にCPU11は、ステップ7iにおいて、上記保存されたカードIDを出力I/F18を介してディスプレイ19へ出力し表示させる。   When the white / black determination is completed for all the cells, the CPU 11 proceeds from step 8e to step 8f, where a binary code is generated based on the determination result of each cell. For example, white is converted to “0” and black is converted to “1”. The generated binary code is converted into a decimal code in step 8g, and the converted decimal code is stored in the data memory 14 as a card ID in step 8h. Finally, in step 7i, the CPU 11 outputs the stored card ID to the display 19 via the output I / F 18 for display.

以上述べたようにこの実施形態では、探索対象の画像データ中から二次元コードを認識する復号する際に、先ず探索対象の画像データ中からスケール用スクウェア画像SSを認識してその一辺の長さを計算する。次に、この計算された一辺の長さをスケール基準値としてシンボルテンプレートのサイズを調整し、このサイズ調整されたシンボルテンプレートをもとに上記探索対象の画像データ中から切り出し用シンボル部SS,SEを認識する。そして、上記認識された切り出し用シンボル部SS,SEをもとにデータ記述部DTの存在範囲を推定し、この推定された存在範囲に含まれるデータ記述部の候補画像に対しチェックパターンCPによる正当性の判定を行ったのち、当該データ記述部DT記述されたコードデータを復号するようにしている。   As described above, in this embodiment, when recognizing a two-dimensional code from search target image data, first, the scale square image SS is recognized from the search target image data and the length of one side thereof is recognized. Calculate Next, the size of the symbol template is adjusted using the calculated length of one side as a scale reference value, and the cut-out symbol portions SS and SE are extracted from the search target image data based on the size-adjusted symbol template. Recognize Then, the existence range of the data description part DT is estimated based on the recognized cutout symbol parts SS and SE, and the candidate image of the data description part included in the estimated existence range is validated by the check pattern CP. After determining the sex, the code data described in the data description part DT is decoded.

したがって、データ記述部DTの位置を示す切り出し用シンボル部SS,SEが先ず検出され、この検出された切り出し用シンボル部SS,SEを利用してデータ記述部DTが認識される。このため、二次元コードを含む画像データから画像処理により二次元コードを認識する際に、二次元コードの向きが任意の方向に回転していても、画像データに対し傾き補正等を行うことなくコードデータ記述部を高い確率で検出し、そのコードデータを復号することが可能となる。このため、複雑な画像処理アルゴリズムを用いることなく、簡単かつ短時間に効率良く二次元コードを認識できる。   Therefore, the cutout symbol portions SS and SE indicating the position of the data description portion DT are first detected, and the data description portion DT is recognized using the detected cutout symbol portions SS and SE. For this reason, when recognizing a two-dimensional code by image processing from image data including a two-dimensional code, even if the direction of the two-dimensional code is rotated in an arbitrary direction, the image data is not subjected to inclination correction or the like. The code data description part can be detected with high probability, and the code data can be decoded. Therefore, a two-dimensional code can be recognized easily and efficiently in a short time without using a complicated image processing algorithm.

しかも、上記切り出し用シンボル部SS,SEの検出に先立ち、探索対象の画像データ中からスケール用スクウェア画像SSが検出され、この画像SSをもとに二次元コードのスケール基準値が算出される。そして、この算出されたスケール基準値をもとにサイズ調整されたシンボルテンプレートが生成され、この生成されたシンボルテンプレートをもとに上記切り出し用シンボル部SS,SEの検出が行われる。このため、切り出し用シンボル部SS,SEを迅速かつ確実に検出することが可能となる。   In addition, prior to the detection of the cutout symbol portions SS and SE, the scale square image SS is detected from the image data to be searched, and the scale reference value of the two-dimensional code is calculated based on the image SS. Then, a symbol template whose size is adjusted based on the calculated scale reference value is generated, and the cutout symbol portions SS and SE are detected based on the generated symbol template. For this reason, it becomes possible to detect the cutout symbol portions SS and SE quickly and reliably.

また、上記スケール用スクウェア画像SSとして、二次元コードの長辺方向の長さを一辺とする第1の正方形画像と、二次元コードの短辺方向の長さを一辺とする第2の正方形画像とを用意し、ボード画像データ中から二次元コードを認識する場合には上記第1の正方形画像を使用し、一方カード画像データ中から二次元コードを認識する場合には上記第2の正方形画像を使用するようにしている。このため、多数の二次元コードが小さいサイズで含まれているボード画像データ中からでも、また比較的大きいサイズの二次元コードが1個だけ含まれているカード画像データ中からでも、二次元コードを効率良くかつ正確に認識することが可能となる。   Further, as the scale square image SS, a first square image having a length in the long side direction of the two-dimensional code as one side and a second square image having a length in the short side direction of the two-dimensional code as one side. When the two-dimensional code is recognized from the board image data, the first square image is used. On the other hand, when the two-dimensional code is recognized from the card image data, the second square image is used. Like to use. For this reason, even if the board image data contains a large number of two-dimensional codes in a small size, or the card image data contains only one relatively large size two-dimensional code. Can be recognized efficiently and accurately.

さらにこの実施形態では、切り出し用シンボル部SS,SEにデータ記述部DTの存在方向を形状により表す方向指示パターンを備え、この方向指示パターンの形状をもとにコードデータ記述部の存在範囲を推定するようにしている。したがって、例えばQRコードのように位置検出用のパターンを備えていても方向指示機能を持たないものに比べ、コードデータ記述部の存在位置を簡単かつ迅速に推定することが可能となる。   Further, in this embodiment, the cutout symbol portions SS and SE are provided with direction indication patterns that indicate the existence direction of the data description portion DT by the shape, and the existence range of the code data description portion is estimated based on the shape of the direction indication pattern. Like to do. Therefore, for example, the position where the code data description portion is present can be estimated easily and quickly compared to a case where a pattern for position detection such as a QR code does not have a direction indicating function.

さらに、切り出し用シンボル部SS,SEを固有の色に設定しておくと、切り出し用シンボル部SS,SEを検出する際に、上記固有の色に基づいて切り出し用シンボル部SS,SEを認識することも可能となる。このため、探索対象の画像データ中に切り出し用シンボル部SS,SEと類似する形状の画像パターンが含まれている場合でも、上記色を判定条件の一つとして使用することで切り出し用シンボル部SS,SEをより一層正確にかつ迅速に検出することが可能となる。   Furthermore, if the cutout symbol portions SS and SE are set to unique colors, the cutout symbol portions SS and SE are recognized based on the unique colors when the cutout symbol portions SS and SE are detected. It is also possible. Therefore, even when an image pattern having a shape similar to the cutout symbol portions SS and SE is included in the search target image data, the cutout symbol portion SS is used by using the color as one of the determination conditions. , SE can be detected more accurately and quickly.

さらにこの実施形態では、データ記述部DTに二次元コードの正当性を表すチェックパターンCPを含め、コードデータを復号する際に先ず上記チェックパターンCPをもとに二次元コードの正当性を判定し、二次元コードの正当性が確認された場合にデータ記述部DTに記述されたコードデータを復号するようにしている。このため、例えば画像雑音等の影響により媒体画像データ中にデータ記述部DTと類似する画像パターンが存在した場合に、これをデータ記述部として誤認識しないようにすることができ、認識率を向上させることができる。   Further, in this embodiment, the data description part DT includes a check pattern CP indicating the validity of the two-dimensional code, and when decoding the code data, first, the validity of the two-dimensional code is determined based on the check pattern CP. When the validity of the two-dimensional code is confirmed, the code data described in the data description part DT is decoded. Therefore, for example, when an image pattern similar to the data description part DT exists in the medium image data due to the influence of image noise or the like, it can be prevented from being erroneously recognized as the data description part, and the recognition rate is improved. Can be made.

なお、この発明は上記実施形態に限定されるものではない。例えば、前記実施形態ではデータ記述部DTの左右に切り出し用シンボル部SS,SEを配置する場合を例にとって説明したが、データ記述部DTの上下に切り出し用シンボル部SS,SEを配置するようにしてもよい。また、切り出し用シンボル部における方向指示パターンの形状と固有色についても、任意に設定できる。さらに、データ記述部の各セルの色についても白と黒に限定されるものではなく、白と青や白と赤など、その他の色の組み合わせを使用できる。   The present invention is not limited to the above embodiment. For example, in the above-described embodiment, the case where the clipping symbol portions SS and SE are arranged on the left and right of the data description portion DT has been described as an example. However, the clipping symbol portions SS and SE are arranged above and below the data description portion DT. May be. In addition, the shape and specific color of the direction indicating pattern in the cutout symbol portion can be arbitrarily set. Further, the color of each cell in the data description section is not limited to white and black, and other color combinations such as white and blue, white and red, and the like can be used.

その他、データ記述部を構成するセルの数やサイズ、二次元配列の構成、第1及び第2の位置検出用パターンのサイズや形状、データ記述部に対する配置位置、二次元コードの認識手順とその内容、スケール用スクウェア及びシンボルテンプレートの構成とその認識方法などについても、この発明の要旨を逸脱しない範囲で種々変形して実施できる。   In addition, the number and size of the cells constituting the data description part, the configuration of the two-dimensional array, the size and shape of the first and second position detection patterns, the arrangement position with respect to the data description part, the recognition procedure of the two-dimensional code and its The contents, the configuration of the square and symbol templates, and the recognition method thereof can be variously modified and implemented without departing from the gist of the present invention.

要するにこの発明は、上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合せにより種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、異なる実施形態に亘る構成要素を適宜組み合せてもよい。   In short, the present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. Further, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, you may combine suitably the component covering different embodiment.

この発明に係わる二次元コードの用途の一つである会議支援システムの一実施形態を示す概略構成図。The schematic block diagram which shows one Embodiment of the meeting assistance system which is one of the uses of the two-dimensional code concerning this invention. 図1に示すシステムにおける会議情報の記録の様子を示す図。The figure which shows the mode of the recording of the meeting information in the system shown in FIG. 図1に示すシステムで使用されるカードの構成を示す図。The figure which shows the structure of the card | curd used with the system shown in FIG. この発明の一実施形態に係わる二次元コードの構成を示す図。The figure which shows the structure of the two-dimensional code concerning one Embodiment of this invention. 図4に示した二次元コードに設定されるチェックパターンの一例を示す図。The figure which shows an example of the check pattern set to the two-dimensional code shown in FIG. この発明に係わる二次元コード認識装置の一実施形態であるサーバ装置の構成を示す機能ブロック図。The functional block diagram which shows the structure of the server apparatus which is one Embodiment of the two-dimensional code recognition apparatus concerning this invention. 図6に示したサーバ装置による二次元コード認識手順と内容を示すフローチャート。The flowchart which shows the two-dimensional code recognition procedure and content by the server apparatus shown in FIG. 図7に示したフローチャート中におけるデータ復号処理の手順と内容を示すフローチャート。The flowchart which shows the procedure and content of the data decoding process in the flowchart shown in FIG. コード作成装置において作成されるスケール用スクウェアの一例を示す図。The figure which shows an example of the square for a scale produced in a code production apparatus. カードの撮像画像データから検出されるスケール用スクウェアの一例を示す図。The figure which shows an example of the square for a scale detected from the captured image data of a card | curd. コードデータの復号手順を説明するための図。The figure for demonstrating the decoding procedure of code data.

符号の説明Explanation of symbols

SV…サーバ装置、VI…ボード撮像装置、CA…カード撮像装置、通信ネットワーク…NW、PC1〜PCk…ユーザ端末、1…ボード、21〜2i…カード、21A…意見記入エリア、21B…2次元コード記入エリア、AS…二次元コード作成装置、DT…データ記述部、SS,SE…切り出し用シンボル部、SS…スケール用スクウェア、11…CPU、12…バス、13…プログラムメモリ、13a…探索画像入力制御プログラム、13b…スケール用スクウェア認識プログラム、13c…テンプレートサイズ制御プログラム、13d…切り出しシンボル探索プログラム、13e…データ記述範囲特定プログラム、13f…チェックビット解析プログラム、13g…コードデータ復号プログラム、14…データメモリ、14a…探索画像記憶エリア、14b…シンボルテンプレート情報記憶エリア、14c…コード属性データ記憶エリア、15…カメラ入力I/F、16…ビデオ入力I/F、17…作成装置入力I/F、18…出力I/F、19…ディスプレイ。   SV ... Server device, VI ... Board imaging device, CA ... Card imaging device, communication network ... NW, PC1-PCk ... User terminal, 1 ... Board, 21-2i ... Card, 21A ... Opinion entry area, 21B ... Two-dimensional code Entry area, AS ... two-dimensional code creation device, DT ... data description part, SS, SE ... slicing symbol part, SS ... scaling square, 11 ... CPU, 12 ... bus, 13 ... program memory, 13a ... search image input Control program, 13b ... Square recognition program for scale, 13c ... Template size control program, 13d ... Cutout symbol search program, 13e ... Data description range identification program, 13f ... Check bit analysis program, 13g ... Code data decoding program, 14 ... Data Memory, 14a ... Image storage area, 14b ... Symbol template information storage area, 14c ... Code attribute data storage area, 15 ... Camera input I / F, 16 ... Video input I / F, 17 ... Creation device input I / F, 18 ... Output I / F, 19 ... Display.

Claims (10)

複数のセルを二次元配列したコードデータ記述部と当該コードデータ記述部の位置を示す位置検出用パターン部とを備える二次元コードと、当該二次元コードのスケール基準を定義するスケール情報がそれぞれ表示された媒体を撮像して得られる媒体画像データに対し、画像処理を行って前記二次元コードを認識する二次元コード認識装置であって、
前記媒体画像データ中から前記スケール情報を検出する手段と、
前記検出されたスケール情報をもとに、前記二次元コードのスケール基準値を算出する手段と、
前記算出されたスケール基準値をもとにサイズが調整されたテンプレート情報を生成する手段と、
前記生成されたテンプレート情報をもとに、前記媒体画像データ中から前記位置検出用パターン部を検出する手段と、
前記媒体画像データ中における前記位置検出用パターン部の検出位置をもとに、前記コードデータ記述部の存在範囲を推定する手段と、
前記媒体画像データ中における前記推定された存在範囲から前記コードデータ記述部を検出する手段と、
前記検出されたコードデータ記述部に記述されたコードデータを復号する手段と
を具備することを特徴とする二次元コード認識装置。
A two-dimensional code having a code data description part in which a plurality of cells are two-dimensionally arranged and a position detection pattern part indicating the position of the code data description part, and scale information defining a scale reference of the two-dimensional code are respectively displayed. A two-dimensional code recognition device for recognizing the two-dimensional code by performing image processing on medium image data obtained by imaging the medium,
Means for detecting the scale information from the medium image data;
Means for calculating a scale reference value of the two-dimensional code based on the detected scale information;
Means for generating template information whose size is adjusted based on the calculated scale reference value;
Means for detecting the position detection pattern portion from the medium image data based on the generated template information;
Means for estimating the existence range of the code data description part based on the detection position of the position detection pattern part in the medium image data;
Means for detecting the code data description part from the estimated existence range in the medium image data;
And a means for decoding the code data described in the detected code data description section.
前記位置検出用パターン部が、前記コードデータ記述部の存在方向を形状により表す方向指示パターンを有する場合に、
前記コードデータ記述部の存在範囲を推定する手段は、前記位置検出用パターン部の検出位置及び前記方向指示パターンの形状をもとに、前記コードデータ記述部の存在範囲を推定することを特徴とする請求項1記載の二次元コード認識装置。
When the position detection pattern portion has a direction indication pattern that represents the direction in which the code data description portion exists by a shape,
The means for estimating the existence range of the code data description portion estimates the existence range of the code data description portion based on the detection position of the position detection pattern portion and the shape of the direction indication pattern. The two-dimensional code recognition apparatus according to claim 1.
前記位置検出パターンが固有の色に設定されている場合に、
前記位置検出用パターン部を検出する手段は、前記サイズが調整されたテンプレート情報と、前記固有の色とに基づいて、前記媒体画像データ中から前記位置検出用パターン部を検出することを特徴とする請求項1記載の二次元コード認識装置。
When the position detection pattern is set to a unique color,
The means for detecting the position detection pattern portion detects the position detection pattern portion from the medium image data based on the template information having the adjusted size and the unique color. The two-dimensional code recognition apparatus according to claim 1.
前記コードデータ記述部が、二次元コードの正当性を表すチェックパターンを含む場合に、
前記コードデータを復号する手段は、
前記検出されたコードデータ記述部に含まれるチェックパターンをもとに二次元コードの正当性を判定する手段と、
前記正当性の判定の結果、二次元コードの正当性が確認された場合に、前記検出されたコードデータ記述部に記述されたコードデータを復号する手段と
を備えることを特徴とする請求項1記載の二次元コード認識装置。
When the code data description part includes a check pattern representing the validity of the two-dimensional code,
The means for decoding the code data includes:
Means for determining the validity of the two-dimensional code based on the check pattern included in the detected code data description unit;
And a means for decoding code data described in the detected code data description section when the validity of the two-dimensional code is confirmed as a result of the determination of the validity. The two-dimensional code recognition apparatus described.
前記コードデータ記述部が、二次元配列された複数のセルを第1及び第2の色のいずれかに設定することによりコードデータを表現している場合に、
前記コードデータを復号する手段は、前記検出されたコードデータ記述部の各セルの色を判定することによりコードデータを復号することを特徴とする請求項1記載の二次元コード認識装置。
When the code data description unit expresses code data by setting a plurality of two-dimensionally arranged cells to one of the first and second colors,
2. The two-dimensional code recognition apparatus according to claim 1, wherein the means for decoding the code data decodes the code data by determining the color of each cell of the detected code data description section.
複数のセルを二次元配列したコードデータ記述部と当該コードデータ記述部の位置を示す位置検出用パターン部とを備える二次元コードと、当該二次元コードのスケール基準を定義するスケール情報がそれぞれ表示された媒体を撮像して得られる媒体画像データに対し、プロセッサにより画像処理を行って前記二次元コードを認識する二次元コード認識装置で使用されるプログラムであって、
前記媒体画像データ中から前記スケール情報を検出する処理と、
前記検出されたスケール情報をもとに、前記二次元コードのスケール基準値を算出する処理と、
前記位置検出用パターン部のテンプレート情報を取り込む処理と、
前記算出されたスケール基準値をもとに、前記テンプレート情報のサイズを調整する処理と、
前記サイズが調整されたテンプレート情報をもとに、前記媒体画像データ中から前記位置検出用パターン部を検出する処理と、
前記媒体画像データ中における前記位置検出用パターン部の検出位置をもとに、前記コードデータ記述部の存在範囲を推定する処理と、
前記媒体画像データ中における前記推定された存在範囲から前記コードデータ記述部を検出する処理と、
前記検出されたコードデータ記述部に記述されたコードデータを復号する処理と
を、前記プロセッサに実行させることを特徴とするプログラム。
A two-dimensional code having a code data description part in which a plurality of cells are two-dimensionally arranged and a position detection pattern part indicating the position of the code data description part, and scale information defining a scale reference of the two-dimensional code are respectively displayed. A program used in a two-dimensional code recognition apparatus for recognizing the two-dimensional code by performing image processing on a medium image data obtained by imaging the medium thus obtained,
Processing for detecting the scale information from the medium image data;
Based on the detected scale information, a process of calculating a scale reference value of the two-dimensional code,
Processing to capture template information of the position detection pattern portion;
A process of adjusting the size of the template information based on the calculated scale reference value;
Processing for detecting the position detection pattern portion from the medium image data based on the template information having the adjusted size;
A process of estimating the existence range of the code data description part based on the detection position of the position detection pattern part in the medium image data;
Processing for detecting the code data description unit from the estimated existence range in the medium image data;
A program for causing the processor to execute a process of decoding the code data described in the detected code data description section.
前記位置検出用パターン部が、前記コードデータ記述部の存在方向を形状により表す方向指示パターンを有する場合に、
前記コードデータ記述部の存在範囲を推定する処理は、前記位置検出用パターン部の検出位置及び前記方向指示パターンの形状をもとに、前記コードデータ記述部の存在範囲を推定することを特徴とする請求項6記載のプログラム。
When the position detection pattern portion has a direction indication pattern that represents the direction in which the code data description portion exists by a shape,
The process of estimating the existence range of the code data description section estimates the existence range of the code data description section based on the detection position of the position detection pattern section and the shape of the direction indication pattern. The program according to claim 6.
前記位置検出パターンが固有の色に設定されている場合に、
前記位置検出用パターン部を検出する処理は、前記サイズが調整されたテンプレート情報と、前記固有の色とに基づいて、前記媒体画像データ中から前記位置検出用パターン部を検出することを特徴とする請求項6記載のプログラム。
When the position detection pattern is set to a unique color,
The process of detecting the position detection pattern portion detects the position detection pattern portion from the medium image data based on the template information having the adjusted size and the unique color. The program according to claim 6.
前記コードデータ記述部が、二次元コードの正当性を表すチェックパターンを含む場合に、
前記コードデータを復号する処理は、
前記検出されたコードデータ記述部に含まれるチェックパターンをもとに二次元コードの正当性を判定する処理と、
前記正当性の判定の結果、二次元コードの正当性が確認された場合に、前記検出されたコードデータ記述部に記述されたコードデータを復号する処理と
を、前記プロセッサに実行させることを特徴とする請求項6記載のプログラム。
When the code data description part includes a check pattern representing the validity of the two-dimensional code,
The process of decoding the code data includes:
A process of determining the validity of the two-dimensional code based on the check pattern included in the detected code data description part;
When the validity of the two-dimensional code is confirmed as a result of the validity determination, the processor is caused to execute a process of decoding the code data described in the detected code data description unit. The program according to claim 6 .
前記コードデータ記述部が、二次元配列された複数のセルを第1及び第2の色のいずれかに設定することによりコードデータを表現している場合に、
前記コードデータを復号する処理は、前記検出されたコードデータ記述部の各セルの色を判定することによりコードデータを復号することを特徴とする請求項6記載のプログラム。
When the code data description unit expresses code data by setting a plurality of two-dimensionally arranged cells to one of the first and second colors,
The program according to claim 6 , wherein the process of decoding the code data decodes the code data by determining a color of each cell of the detected code data description part.
JP2005051784A 2005-02-25 2005-02-25 Two-dimensional code recognition device and program Expired - Fee Related JP4247190B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005051784A JP4247190B2 (en) 2005-02-25 2005-02-25 Two-dimensional code recognition device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005051784A JP4247190B2 (en) 2005-02-25 2005-02-25 Two-dimensional code recognition device and program

Publications (2)

Publication Number Publication Date
JP2006236135A JP2006236135A (en) 2006-09-07
JP4247190B2 true JP4247190B2 (en) 2009-04-02

Family

ID=37043693

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005051784A Expired - Fee Related JP4247190B2 (en) 2005-02-25 2005-02-25 Two-dimensional code recognition device and program

Country Status (1)

Country Link
JP (1) JP4247190B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4724800B1 (en) * 2010-07-30 2011-07-13 株式会社シフト Article detection apparatus and program
JP4724802B1 (en) * 2010-07-30 2011-07-13 株式会社シフト 2D code reader and program
JP2013242713A (en) * 2012-05-21 2013-12-05 Elecom Co Ltd Image processing program for storing image data obtained by photographing imaging target tool, device storing the same and method for storing the same
CN117636233A (en) * 2022-08-30 2024-03-01 江苏时代新能源科技有限公司 Method, device, computer equipment and storage medium for detecting quality of code

Also Published As

Publication number Publication date
JP2006236135A (en) 2006-09-07

Similar Documents

Publication Publication Date Title
CN108073913B (en) Handwriting datamation data acquisition method
TWI321294B (en) Method and device for determining at least one recognition candidate for a handwritten pattern
RU2360303C2 (en) Positionally encoded document image analysis and labelling
US20120037695A1 (en) Embedded media barcode links and systems and methods for generating and using them
JP6323437B2 (en) 10-finger fingerprint card input device, 10-finger fingerprint card input method, and storage medium
CN106326802B (en) Quick Response Code bearing calibration, device and terminal device
CN106156820B (en) Two-dimensional code generation method and device
JP4753842B2 (en) Idea extraction support system and method
CN109886223B (en) Face recognition method, bottom library input method and device and electronic equipment
US10853611B1 (en) Method for scanning multiple barcodes and system thereof
TW201317904A (en) Tag detecting system, apparatus and method for detecting tag thereof
CN114005126A (en) Table reconstruction method and device, computer equipment and readable storage medium
CN106570549A (en) Coding pattern generation and identification methods and coding pattern generation and identification devices
US20050018905A1 (en) Method and system for identifying multiple questionnaire pages
JP4247190B2 (en) Two-dimensional code recognition device and program
CN109086336A (en) Paper date storage method, device and electronic equipment
KR102440198B1 (en) VIDEO SEARCH METHOD AND APPARATUS, COMPUTER DEVICE, AND STORAGE MEDIUM
JP2007058304A (en) Character recognition device and character recognition method
CN115620014B (en) Pipeline instrument flow chart information extraction method and equipment based on deep learning
CN109858363B (en) Dog nose print feature point detection method, device, system and storage medium
JP2011070477A (en) Two-dimensional code reading method, two-dimensional code to be read by two-dimensional code reading method, and recording medium with the two-dimensional code reading method recorded thereon
CN116563876A (en) Invoice identification method
JP7505635B2 (en) Segmentation of Continuous Dynamic Scans
CN108596127A (en) A kind of fingerprint identification method, auth method and device and identity veritify machine
JP2014078168A (en) Character recognition apparatus and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070226

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081002

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081014

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081121

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

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

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

Free format text: PAYMENT UNTIL: 20120116

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130116

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees