JP2011180711A - Image display device, image display method, and screen display program - Google Patents

Image display device, image display method, and screen display program Download PDF

Info

Publication number
JP2011180711A
JP2011180711A JP2010042586A JP2010042586A JP2011180711A JP 2011180711 A JP2011180711 A JP 2011180711A JP 2010042586 A JP2010042586 A JP 2010042586A JP 2010042586 A JP2010042586 A JP 2010042586A JP 2011180711 A JP2011180711 A JP 2011180711A
Authority
JP
Japan
Prior art keywords
information
image
area
coordinate system
map
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.)
Granted
Application number
JP2010042586A
Other languages
Japanese (ja)
Other versions
JP5434671B2 (en
Inventor
Genta Suzuki
源太 鈴木
Nobuyasu Yamaguchi
伸康 山口
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2010042586A priority Critical patent/JP5434671B2/en
Publication of JP2011180711A publication Critical patent/JP2011180711A/en
Application granted granted Critical
Publication of JP5434671B2 publication Critical patent/JP5434671B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To attain an increase in information amount of display data displayed, together with an existing map image. <P>SOLUTION: An image display device includes a correspondence relation acquiring unit for acquiring from information encoded in a first area of a map image, a correspondence relation between a first coordinate system on the map image and a second coordinate system for defining a display position of display data to be placed on the map image; a coordinate transformation unit for acquiring area information indicative of a presence range, on the second coordinate system of a second area including the first area, according to the correspondence relation; and a display data acquiring unit for acquiring the display data corresponding to the area information. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、印刷画像の読み取り技術に関する。   The present invention relates to a print image reading technique.

地図情報を用いた様々なサービスが、例えば、ネットワークを通じてユーザに提供されている。例えば、ユーザは、携帯電話、携帯情報端末、パーソナルコンピュータ等、様々な情報機器を用いて、ネットワーク上のサーバにアクセスする。そして、ユーザは、ネットワーク上のサーバから、地図情報をダウンロードし、情報機器上に表示できる。また、ユーザは、表示した地図情報とともに、地図で示される地域に関連する様々な情報を取得できる。例えば、ユーザが表示対象の施設の種類を指定し、指定された種類に該当する施設を地図に重ね合わせて表示できる。   Various services using map information are provided to users through a network, for example. For example, a user accesses a server on a network using various information devices such as a mobile phone, a portable information terminal, and a personal computer. Then, the user can download the map information from the server on the network and display it on the information device. Moreover, the user can acquire various information related to the area indicated by the map together with the displayed map information. For example, the user can designate the type of facility to be displayed, and the facility corresponding to the designated type can be displayed superimposed on the map.

特開2008−234684号公報JP 2008-234684 A 特開2006−163992号公報JP 2006-163992 A 特開2002−23734号公報JP 2002-23734 A

上述のような情報機器を用いて地図上の情報を取得する場合に、ハードウェア上の制限、例えば、画面サイズ、通信速度、プロセッサの処理能力、メモリ容量等に依存して、ユーザが所望する情報を的確に取得できない場合が生じる。   When obtaining information on a map using the information device as described above, the user desires depending on hardware limitations such as screen size, communication speed, processor processing capacity, memory capacity, etc. There are cases where information cannot be obtained accurately.

一方、従来の紙媒体、印刷媒体等を使用すると、情報機器を用いる場合のような情報機器のハードウェア上の制限は生じにくい。しかしながら、ユーザは、紙に印刷済みの情報しか取得できないという問題がある。例えば、ユーザは、地図情報が紙に印刷された後に設置された店舗あるいは施設の情報、地図情報が紙に印刷された後に建設された建物に関する情報などを印刷済みの紙から取得できない。また、ユーザは、地図を含む看板が製作された後に設けられた施設に関する情報を制作済みの看板から取得できない。   On the other hand, when a conventional paper medium, print medium, or the like is used, the hardware limitation of the information device is unlikely to occur as when the information device is used. However, there is a problem that the user can acquire only information printed on paper. For example, the user cannot acquire information on a store or facility installed after map information is printed on paper, information on a building constructed after map information is printed on paper, and the like from printed paper. In addition, the user cannot acquire information about facilities provided after the signboard including the map is produced from the produced signboard.

発明の一観点によれば、地図の画像の第1の領域に符号化された情報から、地図の画像上の第1座標系と地図の画像に配置する表示データの表示位置を定義する第2座標系との対応関係を取得する対応関係取得部と、対応関係にしたがって、第1の領域を含む第2の領域の第2座標系での存在範囲を示す領域情報を取得する座標変換部と、領域情報に応じて表示データを取得する表示データ取得部と、を備える情報表示装置が提供される。   According to one aspect of the invention, the second coordinate system defines a display position of display data to be arranged in the first coordinate system on the map image and the map image from the information encoded in the first area of the map image. A correspondence acquisition unit that acquires a correspondence relationship with the coordinate system, and a coordinate conversion unit that acquires region information indicating the existence range in the second coordinate system of the second region including the first region according to the correspondence relationship; There is provided an information display device comprising a display data acquisition unit that acquires display data according to region information.

発明の別の一観点によれば、地図の画像の第1の領域に符号化された情報から、地図の画像上の第1座標系と地図の画像に配置する表示データの表示位置を定義する第2座標系との対応関係を取得する対応関係取得ステップと、対応関係にしたがって、第1の領域を含む第2の領域の前記第2座標系での存在範囲を示す領域情報を取得する座標変換ステップと、領域情報に応じて表示データを取得する表示データ取得ステップと、を有する情報表示方法が提供される。   According to another aspect of the invention, from the information encoded in the first region of the map image, the first coordinate system on the map image and the display position of the display data arranged in the map image are defined. Correspondence acquisition step for acquiring a correspondence relationship with the second coordinate system, and coordinates for acquiring region information indicating the existence range of the second region including the first region in the second coordinate system according to the correspondence relationship An information display method including a conversion step and a display data acquisition step of acquiring display data according to region information is provided.

本発明によれば、既存の地図の画像とともに表示する表示データの情報量の増大を図る
ができる。
ADVANTAGE OF THE INVENTION According to this invention, the increase in the information content of the display data displayed with the image of the existing map can be aimed at.

コードが埋め込まれた紙地図を例示する図である。It is a figure which illustrates the paper map in which the code was embedded. コードが埋め込まれた四角形領域の例を示す図である。It is a figure which shows the example of the square area | region where the code was embedded. コード埋め込み技術の概要を例示する図である。It is a figure which illustrates the outline | summary of a code embedding technique. 情報機器のハードウェア構成を例示する図である。It is a figure which illustrates the hardware constitutions of information equipment. データテーブルの例を示す図である。It is a figure which shows the example of a data table. 表示用データのデータベースのデータ例を示す図である。It is a figure which shows the data example of the database of display data. コードが埋め込まれた地図を撮影し、撮影した地図の画像に表示用データを重畳して表示する処理のフローチャートを例示する図である。It is a figure which illustrates the flowchart of the process which image | photographs the map with which the code was embedded, and superimposes and displays the display data on the image of the photographed map. デコード処理の詳細なフローチャートを例示する図である。It is a figure which illustrates the detailed flowchart of a decoding process. 矩形の四隅座標と、ネットワークを通じて取得される緯度経度情報の対応例を示す図である。It is a figure which shows the example of a response | compatibility of the rectangular corner coordinates and the latitude longitude information acquired through a network. 矩形の四隅座標と、ネットワークを通じて取得される四隅緯度、経度の対応例を示す図である。It is a figure which shows the example of a response | compatibility of the four corner coordinates of a rectangle, and the four corner latitude and longitude acquired through a network. 撮影画像の座標系に変換した表示用データを撮影画像に重ね合わせて表示した例を示す図である。It is a figure which shows the example which displayed and superimposed the display data converted into the coordinate system of the picked-up image on the picked-up image. 表示用アイコンのうち変換された座標が撮影画像の範囲内であるものを変換した座標上に表示する図である。It is a figure which displays on the coordinate which converted the coordinate whose converted coordinate is in the range of a picked-up image among the icons for a display. 上辺を決定する変形例の処理概要を例示する図である。It is a figure which illustrates the process outline | summary of the modification which determines an upper side. 緯度経度情報が埋め込まれた地図画像と対応する位置情報を例示する図である。It is a figure which illustrates the positional information corresponding to the map image in which the latitude longitude information was embedded. 位置情報を地図画像に埋め込む手順の概要を例示する図である。It is a figure which illustrates the outline | summary of the procedure which embeds position information in a map image. 検出した2進数のコードを四角形領域四隅の緯度経度情報に変換する手順を例示する図である。It is a figure which illustrates the procedure which converts the detected binary code into the latitude / longitude information of the four corners of the rectangular area. データが埋め込まれた紙地図を情報機器の撮影装置で撮影し、撮影画像に追加の情報を重畳して表示する処理のフローチャートを例示する図である。It is a figure which illustrates the flowchart of the process which image | photographs the paper map with which data was embedded with the imaging device of information equipment, and superimposes additional information on a picked-up image, and displays it. デコード処理の詳細なフローチャートを例示する図である。It is a figure which illustrates the detailed flowchart of a decoding process.

以下、図面を参照して、一実施形態に係る情報機器について説明する。以下の実施形態の構成は例示であり、本装置は実施形態の構成には限定されない。   Hereinafter, an information device according to an embodiment will be described with reference to the drawings. The configuration of the following embodiment is an exemplification, and the present apparatus is not limited to the configuration of the embodiment.

実施例1の情報機器として、カメラ付き携帯電話のように、撮影装置を含む情報機器を用いた情報処理技術を説明する。実施例1では、情報機器は、撮影装置によって紙媒体、印刷媒体などに印刷された地図、広告媒体、その他の媒体に掲載された地図を撮影し、地図画像を取得する。ここで、紙媒体とは、情報が紙面に読み取り可能に描画されている媒体をいう。紙媒体は、例えば、紙面にインク、塗料などで印刷された新聞、雑誌、書籍、広告のちらし、ポスターなどを含む。紙媒体を印刷媒体ともいう。また、広告媒体は、広告のちらしの他、屋外広告の看板、屋外の大型ディスプレイの表示、テレビの画像広告、インターネットのウェブ上の画像広告等を含む。なお、屋外広告の看板に作画された媒体の場合、平面上の媒体に塗料を噴出して地図を描画する描画装置によって、地図を描画することが望ましい。また、その他の媒体は、放送媒体、インターネット上のサービスによる情報媒体等を含む。   An information processing technique using an information device including a photographing device, such as a camera-equipped mobile phone, will be described as the information device of the first embodiment. In the first embodiment, the information device captures a map printed on a paper medium, a print medium, or the like printed on a paper medium, a printing medium, or the like by a photographing device, and acquires a map image. Here, the paper medium refers to a medium on which information is drawn so as to be readable on a paper surface. The paper medium includes, for example, a newspaper, a magazine, a book, an advertisement flyer, a poster, and the like printed on paper with ink, paint, or the like. A paper medium is also called a print medium. In addition to the advertisement flyer, the advertising medium includes an outdoor advertising billboard, an outdoor large display display, a television image advertisement, an image advertisement on the Internet web, and the like. In the case of a medium drawn on a billboard for outdoor advertising, it is desirable to draw the map with a drawing device that draws a paint on a flat medium and draws the map. Other media include broadcast media, information media provided by services on the Internet, and the like.

さらに、実施例1の地図には、コードが地図画像に埋め込まれている。地図画像に埋め込まれたコードは、地図の示す地域をユニークに識別する情報である。情報機器は、撮影した地図画像の画像処理によって、地図画像からコードを抽出する。そして、情報機器は
、例えば、ネットワークを通じて接続されるサーバに、コードを提示する。そして、情報機器は、提示したコードを基にしてサーバに対し、地図に追加する情報を要求する。地図に追加する情報とは、コードで識別される地域に関連する情報等をいう。例えば、情報機器は、コードを基に、地図に追加する情報として「Aという名前のレストラン」を示すアイコンをディスプレイ上で撮影画像に重畳して表示する。
Furthermore, a code is embedded in the map image in the map of the first embodiment. The code embedded in the map image is information that uniquely identifies the area indicated by the map. The information device extracts a code from the map image by image processing of the captured map image. Then, the information device presents the code to a server connected through a network, for example. Then, the information device requests information to be added to the map from the server based on the presented code. The information added to the map is information related to the area identified by the code. For example, based on the code, the information device displays an icon indicating “a restaurant named A” as information to be added to the map superimposed on the captured image on the display.

図1は、コードが埋め込まれた紙地図を例示する図である。実施例1で紙地図は、矩形であると想定する。矩形の紙地図は、縦横方向に複数の罫線Lで区切られている。罫線Lが罫線パターンに相当する。縦横の罫線Lで囲まれた四角形領域には固有のコードが埋め込まれる。固有のコードとは、コードが付された四角形領域と、地図上の他のコードが付された四角形領域とを識別可能なコードをいう。   FIG. 1 is a diagram illustrating a paper map in which codes are embedded. In Example 1, it is assumed that the paper map is rectangular. The rectangular paper map is divided by a plurality of ruled lines L in the vertical and horizontal directions. The ruled line L corresponds to a ruled line pattern. A unique code is embedded in a rectangular area surrounded by vertical and horizontal ruled lines L. The unique code refers to a code that can distinguish between a rectangular area to which a code is attached and a rectangular area to which another code on the map is attached.

図2にコードが埋め込まれた四角形領域SQの例を示す。データの埋め込み方法は、例えば特許第3784781号に記載の技術を利用できる。図3に、特許第3784781号に記載のコード埋め込み技術の概要を例示する。図3のコード埋め込み技術では、画像を縦横それぞれ偶数個のブロックと呼ぶ四角形領域に分割する。そして、画像に対して、1つの方向を選択する。例えば、図3で左から右に向かう横方向を考える。そして、画像を横方向の行に分割し、1つの行のブロックの並びにおいて、隣接する2つのブロックの組を形成する。例えば、図3では、右上隅の2つのブロックA、Bが例示されている。このような隣接する2つのブロックをペアブロックと呼ぶことにする。   FIG. 2 shows an example of a rectangular area SQ in which a code is embedded. As a data embedding method, for example, the technology described in Japanese Patent No. 3784781 can be used. FIG. 3 exemplifies an outline of the code embedding technique described in Japanese Patent No. 3784781. In the code embedding technique shown in FIG. 3, an image is divided into quadrangular areas called even blocks in the vertical and horizontal directions. Then, one direction is selected for the image. For example, consider the horizontal direction from left to right in FIG. Then, the image is divided into horizontal rows, and a set of two adjacent blocks is formed in the row of blocks in one row. For example, in FIG. 3, two blocks A and B in the upper right corner are illustrated. Such two adjacent blocks will be referred to as a pair block.

そして、隣接するペアブロックの特徴量に差をつけることにより、ペアブロックに0または1のビットを割り当てる。特徴量とは、例えば、ブロックに含まれる画素の平均濃度、階調のレベル、あるいは、ブロックに含まれる画素の特定色、例えば、黄色の平均濃度等である。例えば、ブロックAの方がブロックBよりも特徴量が小さい場合にペアブロックのビットを0と定義する。また、ブロックAの方がブロックBよりも特徴量が大きい場合にペアブロックのビットを1と定義すればよい。   Then, a bit of 0 or 1 is assigned to the pair block by making a difference between the feature amounts of adjacent pair blocks. The feature amount is, for example, an average density or gradation level of pixels included in the block, or a specific color of the pixels included in the block, for example, an average density of yellow. For example, when the feature amount of the block A is smaller than that of the block B, the bit of the pair block is defined as 0. Further, when the feature amount of the block A is larger than that of the block B, the bit of the pair block may be defined as 1.

図3の例では、1行あたりに8つのペアブロック(16ブロック)が含まれるため、1行は8ビット分のコードを表すことができる。したがって、全行(16行)では、128ビット分のコードを表すことができる。ただし、実施例1では、128ビットのコードに限定されることはない。例えば、16ビットの同一コードを8回繰り返して図3の画像に埋め込んでもよい。同一コードを複数回埋め込むことで、多数決によっていわゆる誤り訂正を行うことができる。なお、当然であるがブロック数が16×16に限定される訳ではない。また、コードを示す情報に誤り検出符号を埋め込むこともできる。   In the example of FIG. 3, since eight pair blocks (16 blocks) are included in one row, one row can represent a code for 8 bits. Therefore, 128 bits of code can be expressed in all lines (16 lines). However, the first embodiment is not limited to the 128-bit code. For example, the same 16-bit code may be repeated 8 times and embedded in the image of FIG. By embedding the same code a plurality of times, so-called error correction can be performed by majority vote. Of course, the number of blocks is not limited to 16 × 16. Also, an error detection code can be embedded in the information indicating the code.

コードを埋め込む方向として、例えば、左上から右下に向かう方向とすることができる。すなわち、図3の左から右に向かう行方向について、最上位の行を第1行と定義し、最下位の行を第16行と定義すればよい。そして、各行ごとに左から右に並ぶペアブロックごとにビットを定義すればよい。さらに、第1行を開始行とし、第16行を終了行とすればよい。   The direction in which the code is embedded can be, for example, the direction from the upper left to the lower right. That is, in the row direction from the left to the right in FIG. 3, the uppermost row may be defined as the first row and the lowermost row may be defined as the 16th row. Then, a bit may be defined for each pair block arranged from left to right for each row. Furthermore, the first line may be the start line and the 16th line may be the end line.

また、埋め込み方向を右上から左下に向かう縦方向としてもよい。右端の列を第1列、左端の列を第16列としてもよい。すなわち、右上から左下に向かってコードを埋め込んでもよい。   The embedding direction may be a vertical direction from the upper right to the lower left. The rightmost column may be the first column and the leftmost column may be the sixteenth column. That is, the code may be embedded from the upper right to the lower left.

また、埋め込み方向を右下から左上に向かう横方向としてもよい。最下段の行を第1行、最上段の列を第16行としてもよい。すなわち、右下から左上に向かってコードを埋め込んでもよい。   The embedding direction may be a horizontal direction from the lower right to the upper left. The lowermost row may be the first row and the uppermost column may be the 16th row. That is, the code may be embedded from the lower right to the upper left.

また、埋め込み方向を左下から右上に向かう縦方向としてもよい。左端の列を第1列、右端の列を第16列としてもよい。すなわち、左下から右上に向かってコードを埋め込んでもよい。   The embedding direction may be a vertical direction from the lower left to the upper right. The leftmost column may be the first column and the rightmost column may be the sixteenth column. That is, the code may be embedded from the lower left to the upper right.

埋め込み方向は、例えば、パラメータdirに対して、dir={0,1,2,3}という4つの値によって定義できる。dir=0とは、撮影画像中の罫線で区切られた四角形領域SQの左上から
開始し、左から右への行方向のペアブロック群によって、右下で終了するようにコードが埋めこまれた場合である。
The embedding direction can be defined by, for example, four values of dir = {0,1,2,3} for the parameter dir. dir = 0 means that the code is embedded so that it starts from the upper left of the rectangular area SQ delimited by the ruled lines in the captured image, and ends at the lower right by a group of pair blocks in the row direction from left to right Is the case.

dir=1は、dir=0のコード埋め込み方向を90度時計回りに回転したコードの埋め込み方向を指定する。すなわち、dir=1とは、撮影画像中の罫線で区切られた四角形領域SQの
右上から開始し、上から下への列方向のペアブロック群によって、左下で終了するようにコードが埋めこまれた場合である。
dir = 1 specifies the code embedding direction obtained by rotating the code embedding direction of dir = 0 clockwise by 90 degrees. That is, dir = 1 starts from the upper right of the rectangular area SQ delimited by the ruled lines in the photographed image, and the code is embedded so as to end at the lower left by a pair of block blocks in the column direction from top to bottom. This is the case.

dir=2は、dir=0のコード埋め込み方向を180度時計回りに回転したコードの埋め込
み方向を指定する。すなわち、dir=2とは、撮影画像中の罫線で区切られた四角形領域S
Qの右下から開始し、右から左への行方向のペアブロック列に群によって、左上で終了するようにコードが埋めこまれた場合である。
dir = 2 specifies the code embedding direction obtained by rotating the code embedding direction of dir = 0 clockwise by 180 degrees. That is, dir = 2 is a rectangular area S delimited by ruled lines in the captured image.
This is a case where a code is embedded so as to start from the lower right side of Q and end in the upper left side by a group in a pair block column in the row direction from right to left.

dir=3は、dir=0のコード埋め込み方向を270度時計回りに回転したコードの埋め込み方向を指定する。すなわち、dir=3とは、撮影画像中の罫線で区切られた四角形領域SQ
の左下から開始し、下から上への列方向のペアブロック群によって、右上で終了するようにコードが埋めこまれた場合である。ただし、情報の埋め込み方向は、上記の場合に限定される訳ではない。例えば、上記定義とは逆に半時計周りに回転する方向で、dir={0,1,2,3}を定義してもよい。dir=0が、左上から開始するものでなくてもよい。
dir = 3 designates the code embedding direction obtained by rotating the code embedding direction of dir = 0 clockwise by 270 degrees. That is, dir = 3 is a quadrangular area SQ delimited by ruled lines in the captured image.
This is a case where the code is embedded so as to start at the upper right by the pair block group in the column direction from the lower left to the upper end. However, the information embedding direction is not limited to the above case. For example, dir = {0,1,2,3} may be defined in a direction that rotates counterclockwise as opposed to the above definition. dir = 0 does not have to start from the upper left.

以上の方法により情報機器はコードが埋め込まれた紙地図を情報機器の撮影装置で撮影し、コードを復号する。さらに、情報機器は、コードを基に四角形領域SQの四隅の緯度、経度をネットワーク経由で取得する。以下、ネットワーク経由で取得する四角形領域SQの四隅の緯度、経度を緯度経度情報と呼ぶ。さらに、埋め込み方向を確定しておくことで、情報機器は、取得した緯度経度情報と、四角形領域の四隅座標とを対応付ける。ここで、四角形領域の四隅座標は、情報機器が撮影した画像上の座標軸での座標である。   By the above method, the information device captures the paper map in which the code is embedded with the image capturing device of the information device and decodes the code. Furthermore, the information device acquires the latitude and longitude of the four corners of the quadrangular area SQ via the network based on the code. Hereinafter, the latitude and longitude of the four corners of the rectangular area SQ acquired via the network are referred to as latitude / longitude information. Furthermore, by determining the embedding direction, the information device associates the acquired latitude / longitude information with the four corner coordinates of the rectangular area. Here, the four corner coordinates of the quadrangular area are coordinates on the coordinate axes on the image captured by the information device.

例えば、地図上の埋め込みコードは、地図上の東西南北を基準に、地図の上方向を北とする画像で、dir=0の埋め込み方向で埋め込むものとする。さらに、ネットワーク経由で
取得される緯度経度情報は、地図上の東西南北を基準に、上を北とする画像でdir=0埋め
込み方向のときの左上点、右上点、右下点、左下点の緯度、経度が取得できるとする。
For example, the embedding code on the map is an image in which the upper direction of the map is north with respect to east, west, north, and south on the map, and is embedded in the embedding direction of dir = 0. Furthermore, the latitude and longitude information acquired via the network is the image of the top left, the top right, the bottom right, and the bottom left when dir = 0 in the direction of embedding in the image with north as the reference on the map. Assume that latitude and longitude can be acquired.

このような定義を前提して、情報機器が例えば埋め込み方向dir=0を検出した場合には
、情報機器は、ネットワークを通じて取得した緯度、経度を左上点、右上点、右下点、左下点の緯度、経度として用いればよい。埋め込み方向dir=0を検出できたか、否かは、撮
影された画像に対して、情報機器が埋め込み方向dir=0での復号を試行し、復号が成功し
たことによって判定できる。復号が成功したか、否かは、例えば、コードを示す情報の誤り検出において、誤りが検出されず、正常に復号できたか、否かで判定できる。また、埋め込まれる情報に、コードそのものの他、特定の記号、例えば、"code="というようなコ
マンドあるいはキーワードを埋め込んでおいてもよい。そして、情報機器は、コードとともに、コマンド、あるいはキーワードが検出されたことによって、正常に復号できたか、否かを判定してもよい。
Assuming such a definition, if the information device detects, for example, the embedding direction dir = 0, the information device uses the latitude and longitude acquired through the network as the upper left point, upper right point, lower right point, and lower left point. What is necessary is just to use as a latitude and a longitude. Whether or not the embedding direction dir = 0 has been detected can be determined by the information device attempting to decode the captured image in the embedding direction dir = 0 and succeeding in decoding. Whether or not the decoding has succeeded can be determined, for example, by whether or not an error has been detected and the decoding has been normally performed in the error detection of the information indicating the code. In addition to the code itself, a specific symbol, for example, a command or keyword such as “code =” may be embedded in the embedded information. Then, the information device may determine whether or not the information device has been successfully decoded by detecting a command or a keyword together with the code.

また、情報機器が例えば埋め込み方向dir=1を検出した場合には、情報機器は、ネット
ワークを通じて取得した緯度、経度を反時計回りに90回転させて左上点、右上点、右下点、左下点の緯度、経度として用いればよい。dir=2、dir=3の場合も同様である。この意味で、埋め込み方向dirは、回転角度の指定と呼ぶこともできる。
In addition, when the information device detects, for example, the embedding direction dir = 1, the information device rotates the latitude and longitude acquired through the network 90 counterclockwise to obtain an upper left point, an upper right point, a lower right point, and a lower left point. May be used as the latitude and longitude. The same applies to dir = 2 and dir = 3. In this sense, the embedding direction dir can also be called designation of a rotation angle.

図9および図10に、埋め込み方向dirの検出結果に基づく、四角形領域の四隅座標と
、ネットワークを通じて取得される緯度経度情報の対応例を示す。図9の右側の地図は、サーバに登録された緯度経度情報の位置を(1)-(4)の数字で示している。(1)-(4)の数字で示された四角形領域は、いわば、変換前の座標系ということができる。ネットワーク上のサーバは、変換前の座標系でのそれぞれの位置(1)-(4)に対応する緯度経度情報を有して
いる。
FIG. 9 and FIG. 10 show examples of correspondence between the four corner coordinates of the quadrangular area and the latitude / longitude information acquired through the network based on the detection result of the embedding direction dir. The map on the right side of FIG. 9 indicates the position of latitude / longitude information registered in the server with numbers (1) to (4). The square area indicated by the numbers (1) to (4) can be said to be a coordinate system before conversion. The server on the network has latitude and longitude information corresponding to each position (1)-(4) in the coordinate system before conversion.

一方、図9の右側の地図は、撮影された地図画像を例示している。情報機器は、地図画像上で、罫線を検出し、4本の罫線で囲まれた四角形領域の頂点(1)-(4)を検出する。た
だし、地図画像上で検出された四角形領域は、サーバに登録された緯度経度情報の位置と比較して、歪み、あるいは回転を含む。そこで、情報機器は、ネットワーク上のサーバから取得する緯度経度情報と、地図画像上で検出された四角形領域の頂点の座標との間で、座標変換を実行する。したがって、地図画像上の座標系は、変換された座標系ということもできる。
On the other hand, the map on the right side of FIG. 9 illustrates a captured map image. The information device detects a ruled line on the map image, and detects the vertices (1) to (4) of the quadrangular area surrounded by the four ruled lines. However, the square area detected on the map image includes distortion or rotation as compared with the position of the latitude / longitude information registered in the server. Therefore, the information device performs coordinate conversion between the latitude and longitude information acquired from the server on the network and the coordinates of the vertices of the rectangular area detected on the map image. Therefore, the coordinate system on the map image can also be referred to as a transformed coordinate system.

例えば、前述のデコード処理で埋め込み方向dir=0と判定された場合には、図9の(1
)〜(4)に示す対応となる。また、埋め込み方向dir = 1の場合には、図10の(1)
〜(4)に示す対応となる。
For example, if it is determined in the decoding process that the embedding direction dir = 0, (1 in FIG.
) To (4). In the case of the embedding direction dir = 1, (1) in FIG.
It becomes correspondence shown in (4).

図4に画像表示装置としての情報機器10のハードウェア構成を例示する。情報機器10は、CPU11、第1記憶装置12、第2記憶装置13、ディスプレイ14、操作部15、通信部16、メディアアクセス装置17、撮影装置18を有する。   FIG. 4 illustrates a hardware configuration of the information device 10 as an image display device. The information device 10 includes a CPU 11, a first storage device 12, a second storage device 13, a display 14, an operation unit 15, a communication unit 16, a media access device 17, and a photographing device 18.

CPU11は、第1記憶装置12に実行可能に展開されたコンピュータプログラムを実行し、情報機器10の機能を提供する。CPU11は、1個に限定されず、複数のコアを含むものでもよい。   The CPU 11 executes a computer program that is executed on the first storage device 12 and provides the functions of the information device 10. The CPU 11 is not limited to one and may include a plurality of cores.

第1記憶装置12は、CPU11が実行するコンピュータプログラム、CPU11が処理するデータ等を記憶する。第1記憶装置12として、例えば不揮発性のROM(Read Only Memory)や、RAM(Random Access Memory)等の揮発性メモリを用いることができる。RAMは、例えばDRAM(Dynamic RAM)、SRAM(Static RAM)、FeRAM(Ferroelectric RAM) 、MRAM (Magnetoresistive RAM)等である。また、例えばDRAMとSRAMとを併用するとともに、SRAMをキャッシュメモリとして用いることもできる。   The first storage device 12 stores a computer program executed by the CPU 11, data processed by the CPU 11, and the like. As the first storage device 12, for example, a volatile memory such as a nonvolatile ROM (Read Only Memory) or a RAM (Random Access Memory) can be used. The RAM is, for example, DRAM (Dynamic RAM), SRAM (Static RAM), FeRAM (Ferroelectric RAM), MRAM (Magnetoresistive RAM) or the like. In addition, for example, DRAM and SRAM can be used together, and SRAM can be used as a cache memory.

第2記憶装置13は、例えばフラッシュメモリなどによるソリッド・ステート・ドライブ(SSD)等である。ただし、第2記憶装置13は、例えば、ハードディスクドライブに駆動されるハードディスクであってもよい。第2記憶装置13は、不揮発性で、例えば、外部記憶装置と呼んでもよい。ただし、第2記憶装置13が第1記憶装置12と一体であってもよい。また、第2記憶装置13と第1記憶装置12とが同一の物理アドレス空間に配置されてもよい。   The second storage device 13 is, for example, a solid state drive (SSD) using a flash memory or the like. However, the second storage device 13 may be, for example, a hard disk driven by a hard disk drive. The second storage device 13 is nonvolatile and may be called an external storage device, for example. However, the second storage device 13 may be integrated with the first storage device 12. Further, the second storage device 13 and the first storage device 12 may be arranged in the same physical address space.

ディスプレイ14は、例えば、液晶ディスプレイ、エレクトロルミネッセンスパネル等である。ディスプレイ14は、インターフェース14Aを通じて、CPU11に接続される。インターフェース14Aは、例えば、VGA(Video Graphics Array)等のグラフィックスモジュール、DVI(Digital Visual Interface)等のインターフェースである。   The display 14 is, for example, a liquid crystal display or an electroluminescence panel. The display 14 is connected to the CPU 11 through the interface 14A. The interface 14A is, for example, a graphics module such as VGA (Video Graphics Array) or an interface such as DVI (Digital Visual Interface).

操作部15は、キー配列、マウス、タッチパネル、静電パッド等の入力装置である。キー配列は、押しボタンの並びである。ただし、キー配列としてキーボードを接続できるようにしてもよい。静電パッドは、平面パッドを指等でなぞるユーザ操作を検知し、ユーザ操作に応じてディスプレイ上のカーソルの位置と移動状態とを制御するために使用される装置である。例えば、平面パッド下の電極の静電容量の変化によって、ユーザの指の動きが検知される。   The operation unit 15 is an input device such as a key layout, a mouse, a touch panel, and an electrostatic pad. The key layout is a sequence of push buttons. However, a keyboard may be connected as a key layout. The electrostatic pad is a device used to detect a user operation of tracing a flat pad with a finger or the like, and to control the position and movement state of the cursor on the display in accordance with the user operation. For example, the movement of the user's finger is detected by a change in the capacitance of the electrode under the flat pad.

通信インターフェース16は、例えば、無線LAN(Local Area Network)のインターフェースである。ただし、通信インターフェース16は、携帯電話基地局との通信部、あるいはPHS(Personal Handy Phone System)基地局との通信部であってもよい。また
、通信インターフェース16は、LANへの接続インターフェース、すなわちNIC(Network Interface Card)とも呼ばれるものであってもよい。情報機器10は、通信インターフェース16を通じて、ネットワーク上のサーバ20と通信し、種々の情報を取得する。
The communication interface 16 is, for example, a wireless LAN (Local Area Network) interface. However, the communication interface 16 may be a communication unit with a mobile phone base station or a communication unit with a PHS (Personal Handy Phone System) base station. The communication interface 16 may be a connection interface to the LAN, that is, a network interface card (NIC). The information device 10 communicates with the server 20 on the network through the communication interface 16 to acquire various information.

メディアアクセス装置17は、例えば、フラッシュメモリカード等の入出力装置である。ただし、メディアアクセス装置17は、CD(Compact Disc)、DVD(Digital Versatile Disk)、ブルーレイディスクの入出力装置へのインターフェースであってもよい。   The media access device 17 is an input / output device such as a flash memory card, for example. However, the media access device 17 may be an interface to a CD (Compact Disc), DVD (Digital Versatile Disk), or Blu-ray Disc input / output device.

撮影装置18は、例えば、CCD(Charge Coupled Device)、MOS(Metal Oxide Semiconductor)デバイス等である。撮影装置18は、カメラインターフェース18Aを介して情報機器10に接続される。カメラインターフェース18Aは、USB(Universal Serial Bus)のような外部インターフェースであってもよい。また、カメラインターフェース18Aは、撮影装置18のメーカ独自のインターフェースであってもよい。また、撮影装置18が情報機器10に内蔵される場合には、カメラインターフェース18Aは、CPU10と通信可能などのようなインターフェースであってもよい。   The imaging device 18 is, for example, a CCD (Charge Coupled Device), a MOS (Metal Oxide Semiconductor) device, or the like. The imaging device 18 is connected to the information device 10 via the camera interface 18A. The camera interface 18A may be an external interface such as a USB (Universal Serial Bus). The camera interface 18A may be an interface unique to the manufacturer of the photographing apparatus 18. Further, when the photographing apparatus 18 is built in the information device 10, the camera interface 18 </ b> A may be any interface that can communicate with the CPU 10.

以下、ネットワーク上のサーバ20が管理するデータ例を説明する。図5にサーバ20上のデータテーブルの例を示す。データテーブルには、地図に埋め込まれたコードに対応する四隅の緯度経度情報が格納されている。ここで、四隅とは、図2に示す罫線で区切られた四角形領域SQ、すなわち、図3に示すコードが埋め込まれた四角形領域SQの四隅をいう。   Hereinafter, an example of data managed by the server 20 on the network will be described. FIG. 5 shows an example of a data table on the server 20. The data table stores latitude and longitude information at the four corners corresponding to the codes embedded in the map. Here, the four corners refer to the four corners of the quadrangular area SQ divided by the ruled lines shown in FIG. 2, that is, the quadrangular area SQ in which the code shown in FIG. 3 is embedded.

実施例1では、情報機器10は、撮影した画像から埋め込まれたコードを検出し、コードをサーバ20に送信する。例えば、検出したコードが10001の場合、緯度経度情報(37.25, 137.25), (37.25, 138.5), (36.5, 137.25), (36.5, 138.5) が取得される。サーバ20は、受信したコードを基に取得した緯度経度情報を情報機器10に返信する。   In the first embodiment, the information device 10 detects the embedded code from the photographed image and transmits the code to the server 20. For example, when the detected code is 10001, latitude and longitude information (37.25, 137.25), (37.25, 138.5), (36.5, 137.25), (36.5, 138.5) are acquired. The server 20 returns the latitude / longitude information acquired based on the received code to the information device 10.

情報機器10は、サーバ20から緯度経度情報を受信すると、緯度経度情報を基に、撮影した地図画像の表示領域の所定の4頂点の緯度、経度を算出する。表示領域とは、ディスプレイに表示される画像の領域をいう。すなわち、情報機器10は、四角形領域SQの四隅座標とサーバ20から受信した緯度経度情報との関係から、撮影した地図画像の座標系を緯度、経度に変換する変換式を算出する。そして、情報機器10は、撮影した地図画像の表示領域、例えば、撮影画像の有効な画素領域全体の4頂点座標に対応する緯度、経度を算出する。ただし、地図画像の表示領域が四角形領域に限定されるわけではない。例えば、地図画像の表示領域四角形の角が丸い曲線状になった領域でもよい。また、円、楕円、その他、曲線を含む領域でもよい。要するに、情報機器10は、撮影した地図画像の座標系を緯度、経度に変換する変換式を取得することによって、変換前の地図画像の表示領域が四角形以外の形状であっても、撮影した地図画像の座標系を緯度、経度に変換することができる。そこで、ただし、地図画像の表示領域が四角形以外の場合でも、その地図
画像の表示領域に含まれる4頂点を想定することはできる。そこで、以下では、「地図画像の表示領域の所定の4頂点」という用語を用いる。「地図画像の表示領域の所定の4頂点」とは、例えば、地図画像の表示領域に含まれる、情報機器10で事前に設定した4頂点と考えればよい。
When the information device 10 receives the latitude / longitude information from the server 20, the information device 10 calculates the latitude and longitude of predetermined four vertices in the display area of the captured map image based on the latitude / longitude information. The display area refers to an area of an image displayed on the display. That is, the information device 10 calculates a conversion formula for converting the coordinate system of the captured map image into latitude and longitude from the relationship between the four corner coordinates of the quadrangular area SQ and the latitude and longitude information received from the server 20. Then, the information device 10 calculates the latitude and longitude corresponding to the four vertex coordinates of the display area of the captured map image, for example, the entire effective pixel area of the captured image. However, the display area of the map image is not limited to the rectangular area. For example, the display area of the map image may be a curved area with rounded corners. Further, it may be a circle, an ellipse, or a region including a curve. In short, the information device 10 acquires a conversion formula for converting the coordinate system of the captured map image into latitude and longitude, so that even if the display area of the map image before conversion has a shape other than a square, the captured map is displayed. The image coordinate system can be converted into latitude and longitude. Therefore, however, even when the display area of the map image is other than a quadrangle, four vertices included in the display area of the map image can be assumed. Therefore, hereinafter, the term “predetermined four vertices of the display area of the map image” is used. The “predetermined four vertices of the map image display area” may be considered, for example, as the four vertices set in advance by the information device 10 included in the map image display area.

そして、情報機器10は、表示領域に表示するデータ(以下、表示用データ)をサーバ20から取得する。そのため、情報機器10は、表示領域の4頂点座標に対応する緯度、経度をサーバ20に送信する。サーバ20は、受信した緯度、経度の範囲に含まれる表示データを情報機器10に返信する。   The information device 10 acquires data to be displayed in the display area (hereinafter, display data) from the server 20. Therefore, the information device 10 transmits the latitude and longitude corresponding to the four vertex coordinates of the display area to the server 20. The server 20 returns the display data included in the received latitude and longitude ranges to the information device 10.

実施例1では、表示用データを取得するサーバは、四角形領域の緯度経度情報を取得したサーバ20と同じと仮定する。ただし、表示用データを取得するサーバは、四角形領域の緯度経度情報を取得したサーバ20以外の他のサーバでもよい。実施例1では、表示用データとしては、地図上の施設を示すデータを想定する。   In the first embodiment, it is assumed that the server that acquires the display data is the same as the server 20 that acquired the latitude / longitude information of the rectangular area. However, the server that acquires the display data may be a server other than the server 20 that acquired the latitude / longitude information of the rectangular area. In the first embodiment, data indicating facilities on a map is assumed as display data.

図6に、表示用データのデータベースのデータ例を示す。表示用データのデータベースは、例えば、表形式である。表の各行が1つの表示用データとなる。図6では、データ101〜データ114の符号が付されている。データ101〜データ114のそれぞれは、業種、店舗名、緯度、経度、表示用アイコンのフィールドを含む。   FIG. 6 shows a data example of the display data database. The display data database is, for example, in a table format. Each row of the table is one display data. In FIG. 6, reference numerals of data 101 to data 114 are given. Each of the data 101 to data 114 includes fields of business type, store name, latitude, longitude, and display icon.

業種とは、それぞれの表示用データが表す施設の業種である。店舗名は、施設の固有名称、例えば、商店の名称である。緯度と経度は、その表示用データで示す施設の地図上の位置である。表示用アイコンは、地図上に施設を表示するときの絵柄、あるいは文字パターンなどのデータを含むファイル名である。   The industry type is the industry type of the facility represented by each display data. The store name is a unique name of the facility, for example, the name of the store. The latitude and longitude are positions on the map of the facility indicated by the display data. The display icon is a file name including data such as a picture or a character pattern when the facility is displayed on the map.

図7に、コードが埋め込まれた地図を撮影し、撮影した地図の画像に表示用データを重畳して表示する処理のフローチャートを例示する。情報機器10のCPU11は、メモリ上に実行可能に展開されたコンピュータプログラムにより図7の処理を実行する。図7の処理では、ユーザが、操作部15を通じて、地図読み取り処理の開始を指示する。地図読み取り処理の開始の指示を受け取ると、情報機器10は、カメラインターフェース18Aを経由して、撮影装置18にて撮影された撮影画像を取得する(S1)。情報機器10は、取得した撮影画像に対して、デコード処理を実行する(S2)。デコード処理の詳細は、図8により後述する。   FIG. 7 illustrates a flowchart of a process of photographing a map in which a code is embedded and displaying display data superimposed on the photographed map image. The CPU 11 of the information device 10 executes the process of FIG. 7 using a computer program that is developed on the memory so as to be executable. In the process of FIG. 7, the user instructs the start of the map reading process through the operation unit 15. When receiving the instruction to start the map reading process, the information device 10 acquires a photographed image photographed by the photographing device 18 via the camera interface 18A (S1). The information device 10 performs a decoding process on the acquired captured image (S2). Details of the decoding process will be described later with reference to FIG.

次に、情報機器10は、デコードに成功したか否かを判定する(S3)。デコードに成功した場合には、情報機器10は、撮影画像内の四角形領域の四隅座標、四角形領域に埋め込まれたコード、埋め込み方向という3種類の情報を検出できる。なお、S3の判定は、S2でのデコード処理が成功したか否かの判定である。   Next, the information device 10 determines whether the decoding has succeeded (S3). If the decoding is successful, the information device 10 can detect three types of information: the four corner coordinates of the rectangular area in the captured image, the code embedded in the rectangular area, and the embedding direction. Note that the determination in S3 is a determination as to whether or not the decoding process in S2 has succeeded.

デコードに成功した場合には、情報機器10は、検出したコードから四角形領域の四隅の緯度経度情報をサーバ20に問い合わせる(S4)。情報機器10のCPU11は、第2取得部として、S4の処理を実行する。四角形領域の四隅の緯度経度情報が、第2座標系での参照位置を示す第2座標情報に相当する。参照位置とは、座標変換する際の基準となる座標と考えることができる。実施例1では、緯度経度情報による4点の参照位置と、撮影画像の座標系の4点の参照位置との関係から、座標変換のための対応関係が決定される。   If the decoding is successful, the information device 10 inquires of the server 20 about latitude and longitude information of the four corners of the quadrangular area from the detected code (S4). The CPU 11 of the information device 10 executes the process of S4 as a second acquisition unit. The latitude and longitude information at the four corners of the rectangular area corresponds to the second coordinate information indicating the reference position in the second coordinate system. The reference position can be considered as a coordinate serving as a reference for coordinate conversion. In the first embodiment, the correspondence for coordinate conversion is determined from the relationship between the four reference positions based on the latitude and longitude information and the four reference positions in the coordinate system of the captured image.

次に撮影画像中の四角形領域の四隅座標および、該四隅の経度緯度情報、さらに埋め込み方向を基に、撮影画像の所定の四隅の緯度、経度を計算する(S5)。情報機器10のCPU11は、緯度経度情報取得部して、S4およびS5の処理を実行する。S5の計算
は、射影変換による座標変換により求める。実施例1の射影変換は、前述の緯度経度情報を変換後の4点の座標とし、デコード処理で検出した四角形領域の四隅座標を変換前の4点の座標として、緯度経度情報と四角形領域の四隅座標とを対応付ける。この際に、4点の対応は、デコード処理で求めた埋め込み方向より決定する。情報機器10のCPU11は、対応関係取得部として、S1−S4の処理を実行する。
Next, the latitude and longitude of predetermined four corners of the photographed image are calculated based on the four corner coordinates of the rectangular area in the photographed image, the longitude and latitude information of the four corners, and the embedding direction (S5). The CPU 11 of the information device 10 performs the processes of S4 and S5 as a latitude / longitude information acquisition unit. The calculation of S5 is obtained by coordinate transformation by projective transformation. In the projective transformation of the first embodiment, the latitude / longitude information and the rectangular area are converted into the coordinates of the four points after the conversion, the four corner coordinates of the rectangular area detected by the decoding process are the coordinates of the four points before the conversion. Match the four corner coordinates. At this time, the correspondence of the four points is determined from the embedding direction obtained by the decoding process. The CPU 11 of the information device 10 performs the processing of S1-S4 as a correspondence acquisition unit.

今、変換前の4点の座標を(X1,Y1)(X2,Y2)(X3,Y3)(X4,Y4)、変換後の座標を(x1,y1)(x2,y2)(x3,y3)(x4,y4)とすると、射影変換の連立方程式は次のように表され、変換係数A〜Hを求めることができる。   Now, the coordinates of the four points before conversion are (X1, Y1) (X2, Y2) (X3, Y3) (X4, Y4), and the coordinates after conversion are (x1, y1) (x2, y2) (x3, y3 ) (x4, y4), the simultaneous equations of the projective transformation are expressed as follows, and the transformation coefficients A to H can be obtained.

X1*A + Y1*B + C - x1*X1*G - x1*Y1*H = x1
X1*D + Y1*E + F - y1*X1*G - y1*Y1*H = y1
X2*A + Y2*B + C - x2*X2*G - x2*Y2*H = x2
X2*D + Y2*E + F - y2*X2*G - y2*Y2*H = y2
X3*A + Y3*B + C - x3*X3*G - x3*Y3*H = x3
X3*D + Y3*E + F - y3*X3*G - y3*Y3*H = y3
X4*A + Y4*B + C - x4*X4*G - x4*Y4*H = x4
X4*D + Y4*E + F - y4*X4*G - y4*Y4*H = y4
情報機器10は、以上から求めたA〜Hの値を使った下式の座標変換式を作成する。そして、情報機器10は、下記座標変換式を用いて、撮影画像中の表示領域四隅の座標を緯度、経度に変換する。ここで、X、Yは撮影画像の座標系、x、yは緯度、経度である。撮影画像の座標系が第1座標系に相当し、緯度、経度が第2座標系に相当する。
X1 * A + Y1 * B + C-x1 * X1 * G-x1 * Y1 * H = x1
X1 * D + Y1 * E + F-y1 * X1 * G-y1 * Y1 * H = y1
X2 * A + Y2 * B + C-x2 * X2 * G-x2 * Y2 * H = x2
X2 * D + Y2 * E + F-y2 * X2 * G-y2 * Y2 * H = y2
X3 * A + Y3 * B + C-x3 * X3 * G-x3 * Y3 * H = x3
X3 * D + Y3 * E + F-y3 * X3 * G-y3 * Y3 * H = y3
X4 * A + Y4 * B + C-x4 * X4 * G-x4 * Y4 * H = x4
X4 * D + Y4 * E + F-y4 * X4 * G-y4 * Y4 * H = y4
The information device 10 creates the following coordinate conversion formula using the values A to H obtained from the above. Then, the information device 10 converts the coordinates of the four corners of the display area in the captured image into latitude and longitude using the following coordinate conversion formula. Here, X and Y are the coordinate system of the captured image, and x and y are the latitude and longitude. The coordinate system of the captured image corresponds to the first coordinate system, and the latitude and longitude correspond to the second coordinate system.

x = (A*X+B*Y+C)/(G*X+H*Y+1)
y = (D*X+E*Y+F)/(G*X+H*Y+1)
例えば、以下のデータを仮定する。撮影画像における四角形領域の四隅座標:
(X1, Y1) = (36, 61), (X2, Y2) = (220, 86), (X3, Y3) = (13, 191), (X4, Y4)=(201, 215);
該四隅座標の緯度・経度:
(x1, y1) =(37.25,137.25), (x2, y2) =(37.25,138.5), (x3, y3) =(36.5,137.25), (x4,
y4) =(36.5,138.5);
この場合、撮影画像の座標系を緯度、経度に変換するための変換係数A〜Hは上記連立方程式により以下のように求められる。
x = (A * X + B * Y + C) / (G * X + H * Y + 1)
y = (D * X + E * Y + F) / (G * X + H * Y + 1)
For example, assume the following data: Four corner coordinates of the rectangular area in the captured image:
(X1, Y1) = (36, 61), (X2, Y2) = (220, 86), (X3, Y3) = (13, 191), (X4, Y4) = (201, 215);
Latitude and longitude of the four corner coordinates:
(x1, y1) = (37.25,137.25), (x2, y2) = (37.25,138.5), (x3, y3) = (36.5,137.25), (x4,
y4) = (36.5,138.5);
In this case, conversion coefficients A to H for converting the coordinate system of the photographed image into latitude and longitude are obtained as follows using the above simultaneous equations.

A=-0.0022589372,B=-0.00040533077,C=37.5744860305,D=-0.0046212872,E=0.0209821614,F=136.9413073490,G=-0.0000817367,H=0.0001443715
また,緯度・経度(x, y)から撮影画像の座標系(X,Y)への変換式、変換係数A’〜H’は以下となる。
A = -0.0022589372, B = -0.00040533077, C = 37.5744860305, D = -0.0046212872, E = 0.0209821614, F = 136.9413073490, G = -0.0000817367, H = 0.0001443715
Further, the conversion formulas from the latitude / longitude (x, y) to the coordinate system (X, Y) of the captured image, and the conversion coefficients A ′ to H ′ are as follows.

X = (A’*x+B’*y+C’)/(G’*x+H’*y+1)
Y = (D’*x+E’*y+F’)/(G’*x+H’*y+1)
A’=-24.5936503114,B’=-118.3265988151,C’=17127.8929059696,D’=133.3829560990,E’=-16.4861005621,F’=-2754.1678566003,G’=-0.0212668996,H’=-0.0072915084
変換係数A〜Hを使って、撮影画像の所定の四隅座標 (0, 0), (240, 0), (0, 320), (240, 320) の緯度,経度を計算すると、それぞれ(37.57,136.94), (37.77,138.55), (35.79,137.31), (35.95, 138.86)となる。
X = (A '* x + B' * y + C ') / (G' * x + H '* y + 1)
Y = (D '* x + E' * y + F ') / (G' * x + H '* y + 1)
A '=-24.5936503114, B' =-118.3265988151, C '= 17127.8929059696, D' = 133.3829560990, E '=-16.4861005621, F' =-2754.1678566003, G '=-0.0212668996, H' =-0.0072915084
Using the conversion coefficients A to H, the latitude and longitude of predetermined four corner coordinates (0, 0), (240, 0), (0, 320), (240, 320) of the captured image are calculated as (37.57 , 136.94), (37.77, 138.55), (35.79, 137.31), (35.95, 138.86).

情報処理装置10は、撮影画像の所定の四隅の緯度、経度を求めた後、四隅の範囲内にある緯度・経度を持つ所定の条件の表示用データをサーバから取得する(S6)。情報機
器10のCPU11は、表示データ取得部として、S6の処理を実行する。上述のように、表示用データを取得するサーバは、四角形領域の緯度経度情報を取得したサーバ20と同じでもよいし、他のサーバでもよい。
After obtaining the latitude and longitude of the predetermined four corners of the captured image, the information processing apparatus 10 acquires display data of a predetermined condition having latitude and longitude within the range of the four corners from the server (S6). The CPU 11 of the information device 10 performs the process of S6 as a display data acquisition unit. As described above, the server that acquires the display data may be the same as the server 20 that acquired the latitude / longitude information of the rectangular area, or may be another server.

表示用データの検索条件が「Aという名前のレストラン」である場合、図6のデータベースに対する検索条件は以下のようになる。   When the search condition for the display data is “A restaurant named A”, the search condition for the database in FIG. 6 is as follows.

「業種=レストラン」 かつ
「店舗名=A」 かつ
「四隅の緯度最小値35.79 <= 店舗の緯度 <= 四隅の緯度最大値37.77」
かつ
「四隅の経度最小値136.94 <= 店舗の緯度 <= 四隅の経度最大値138.86」;
この条件に合致するデータは図6のデータ102、データ109、データ110、データ112の4件である。そこで、情報機器10は、これらの緯度、経度および表示用アイコンデータをサーバから取得する。
“Industry = Restaurant” and “Store Name = A” and “Minimum Latitude at Four Corners 35.79 <= Latitude of Stores <= Maximum Latitude at Four Corners 37.77”
And “Minimum longitude of the four corners 136.94 <= Latitude of the store <= Maximum longitude of the four corners 138.86”;
There are four data 102, data 109, data 110, and data 112 in FIG. Therefore, the information device 10 acquires the latitude, longitude, and display icon data from the server.

次に、情報機器10は、表示用データが取得できたか否かを判定する(S7)。   Next, the information device 10 determines whether display data has been acquired (S7).

そして、表示用データを取得できた場合、情報機器10は、上記変換式と上記変換係数A’〜H’を用いて、緯度、緯度を撮影画像の座標に変換する(S8)。   When the display data can be acquired, the information device 10 converts the latitude and the latitude into the coordinates of the captured image using the conversion formula and the conversion coefficients A ′ to H ′ (S8).

上記4件のデータについて求めた撮影画像の座標(X,Y)を以下に示す。なお、実施例1では、例えば、撮影画像の表示領域の左上点を原点とする。   The coordinates (X, Y) of the captured image obtained for the above four data are shown below. In the first embodiment, for example, the upper left point of the display area of the captured image is set as the origin.

データ102 (X, Y)= (28, 188),
データ109 (X, Y)= (-11, 130),
データ110 (X, Y)= (197, 115),
データ112 (X, Y)= (152, 284);
これらの撮影画像の所定の四隅座標の緯度、経度は全て異なっているため、検索したデータには撮影画像の範囲外のものが含まれる場合がある。撮影画像の範囲外のデータが含まれる場合には、撮影画像の座標に変換した際に、撮影画像の座標がX、YのいずれかがマイナスになるかX>240、Y>320となるので、該当するデータについては表示データから除外する。本例では、データ109のXの値が-11となり、撮影画像の範囲外に相当するので、データ109を除外し、データ102、110、112の3個のデータが表示データとなる。図11に
、撮影画像の座標系に変換したデータ102、110、112を撮影画像に重ね合わせて表示した
例を示す。
Data 102 (X, Y) = (28, 188),
Data 109 (X, Y) = (-11, 130),
Data 110 (X, Y) = (197, 115),
Data 112 (X, Y) = (152, 284);
Since the latitude and longitude of the predetermined four corner coordinates of these captured images are all different, the retrieved data may include data outside the range of the captured image. When data outside the range of the photographed image is included, when the coordinates of the photographed image are converted to the coordinates of the photographed image, either X or Y becomes negative or X> 240, Y> 320. Applicable data is excluded from the display data. In this example, the X value of the data 109 is −11, which is outside the range of the photographed image, so the data 109 is excluded, and three pieces of data 102, 110, and 112 become display data. FIG. 11 shows an example in which the data 102, 110, and 112 converted into the coordinate system of the captured image are displayed superimposed on the captured image.

最後に、情報機器10は、図12で示すようにディスプレイ14上に撮影画像と重畳して、表示用アイコンのうち変換された座標が撮影画像の範囲内であるものを変換した座標上に表示する(S9)。なお、図12では、情報機器10として、カメラ付き携帯電話を想定している。すなわち、紙に印刷された地図を撮影し、得られた地図画像からコードを取得し、取得されたコードに基づき、レストランを示すアイコンが撮影された地図画像に重畳して表示されている。   Finally, as shown in FIG. 12, the information device 10 superimposes the captured image on the display 14 and displays the display icons on the converted coordinates that are within the range of the captured image. (S9). In FIG. 12, a camera-equipped mobile phone is assumed as the information device 10. That is, a map printed on paper is photographed, a code is obtained from the obtained map image, and an icon indicating a restaurant is superimposed on the photographed map image based on the obtained code.

一方、表示用データを取得できなかった場合、すなわち、撮影した画像中の表示領域に、表示用データが存在しなかった場合、情報機器10は、表示用データなしで撮影画像を表示する。   On the other hand, when the display data cannot be acquired, that is, when the display data does not exist in the display area in the captured image, the information device 10 displays the captured image without the display data.

図8に、デコード処理の詳細なフローを例示する。情報機器10のCPU11は、メモ
リ上に実行可能に展開されたコンピュータプログラムにより図8の処理を実行する。CPU11は、デコード部として、図8の処理を実行する。
FIG. 8 illustrates a detailed flow of the decoding process. The CPU 11 of the information device 10 executes the process shown in FIG. 8 using a computer program that is executed on the memory. The CPU 11 performs the process of FIG. 8 as a decoding unit.

まず撮影画像中の罫線で囲まれた四角形領域の四隅座標を検出する(S20)。四隅座標の検出方法として、罫線の一般的な検出方法であるハフ変換を用い、4辺を検出してそれらの交点を求める。情報機器10のCPU11は、罫線認識部および第1取得部として、S20の処理を実行する。すなわち、情報機器10のCPU11は、罫線認識部として4辺を検出する。さらに、情報機器10のCPU11は、第1取得部として、4辺の交点である四隅の座標を算出する。4辺の交点である四隅の座標が、第1座標系での参照位置を示す第1座標情報に相当する。   First, the four corner coordinates of the rectangular area surrounded by the ruled line in the photographed image are detected (S20). As a method for detecting the four corner coordinates, the Hough transform, which is a general ruled line detection method, is used to detect the four sides and obtain their intersections. The CPU 11 of the information device 10 executes the process of S20 as a ruled line recognition unit and a first acquisition unit. That is, the CPU 11 of the information device 10 detects four sides as a ruled line recognition unit. Furthermore, the CPU 11 of the information device 10 calculates the coordinates of the four corners that are the intersections of the four sides as the first acquisition unit. The coordinates of the four corners that are the intersections of the four sides correspond to the first coordinate information indicating the reference position in the first coordinate system.

ハフ変換は、XY座表系のN個の点のうちの最も多くの点を通過する直線LMを求める手法として知られている。例えば、直線LMの式をy=a*x+bと仮定する。ここで、*は乗算記号である。このとき、XY座表系のN個の点(xi,yi)i=1,Nを通る複数の関係式yi=ai*xi+biが作成できる。関係式yi=ai*xi+biは、座標系(a,b)では、複数の直線の軌跡を構成する。そして、もし、XY座表系のN個の点(xi,yi)i=1,Nが一直線上(傾きa0、Y切片b0)にある場合には、関係式yi=ai*xi+biは、一点(a0,b0)を通る直線群となる。そこで、(a,b)座標系で最も多くの直線が通過する点(a0,b0)を求めることで、XY座表系のN個の点(xi,yi)i=1,Nの最も多数を通る直線を求めることができる。   The Hough transform is known as a method for obtaining a straight line LM that passes through the most points among the N points of the XY coordinate system. For example, assume that the equation of the straight line LM is y = a * x + b. Here, * is a multiplication symbol. At this time, a plurality of relational expressions yi = ai * xi + bi passing through N points (xi, yi) i = 1, N of the XY coordinate system can be created. The relational expression yi = ai * xi + bi constitutes a plurality of straight line trajectories in the coordinate system (a, b). If N points (xi, yi) i = 1, N in the XY coordinate system are on a straight line (slope a0, Y intercept b0), the relational expression yi = ai * xi + bi is one point. A group of straight lines passing through (a0, b0). Therefore, by obtaining the point (a0, b0) through which the most straight lines pass in the (a, b) coordinate system, the largest number of N points (xi, yi) i = 1, N in the XY coordinate system. A straight line passing through can be obtained.

次に、情報機器10は、ハフ変換によって、四角形領域の4辺が特定でき、四隅座標が全て検出できたか否かを判定する(S21)。四隅座標が全て検出できた場合には、情報機器10は、四角形領域の4辺を上辺、右辺、下辺、左辺の順に、埋め込み領域の上辺とした場合についてデコード処理を行う(S22−S26)。情報機器10のCPU11は、ビット取得部としてS22−26の処理を実行する。   Next, the information device 10 determines whether or not the four sides of the quadrangular region can be specified by the Hough transform and all the four corner coordinates are detected (S21). When all the four corner coordinates are detected, the information device 10 performs a decoding process when the four sides of the quadrangular region are set as the upper side of the embedded region in the order of the upper side, the right side, the lower side, and the left side (S22-S26). The CPU 11 of the information device 10 executes the processing of S22-26 as a bit acquisition unit.

デコード処理は、上辺方向に並ぶペアブロックに対して、画像の特徴量からビット0かビット1かを判定する処理である。すなわち、上辺に隣接するペアブロックの並びをビットの埋め込みと同一方向に辿り、ペアブロック内のブロック間で、特徴量を比較すればよい。上辺に隣接するペアブロックの並びが第1ブロック群に相当する。そして、ビット埋め込み時と同一の定義にしたがって、ビット=0またはビット=1を判定すればよい。例えば、図3に示した画像のブロックの場合には、1行について8ビットの情報が得られることになる。また、同一のコードを複数回繰り返して埋め込んでいる場合には、多数決処理で誤り訂正を行ってもよい。   The decoding process is a process of determining whether the bit block is a bit 0 or a bit 1 based on the image feature amount for the paired blocks arranged in the upper side direction. In other words, the sequence of pair blocks adjacent to the upper side is traced in the same direction as the bit embedding, and the feature values may be compared between the blocks in the pair block. An array of pair blocks adjacent to the upper side corresponds to the first block group. Then, bit = 0 or bit = 1 may be determined according to the same definition as when the bit is embedded. For example, in the case of the image block shown in FIG. 3, 8-bit information is obtained for one row. Further, when the same code is repeatedly embedded several times, error correction may be performed by majority processing.

すなわち、情報機器10は、まず、初期値dir=0を設定する(S22)。そして、情報
機器10は、dirが4に達するまで以下の処理を実行する(S23−26)。すなわち、dir=0の場合には、画像の座標系を基準した左上から右下に向かって、左から右に向かう行方向にデコード処理を実行する。すなわち、この場合には、撮影画像中の上辺を、コードが埋め込まれた画像の上辺とする。
That is, the information device 10 first sets the initial value dir = 0 (S22). The information device 10 executes the following process until dir reaches 4 (S23-26). That is, when dir = 0, the decoding process is executed in the row direction from the upper left to the lower right and from the left to the right with reference to the image coordinate system. That is, in this case, the upper side in the captured image is set as the upper side of the image in which the code is embedded.

dir=1の場合には、90度時計回りに回転した方向にデコード処理を実行する。すなわ
ち、情報機器10は、画像の座標系を基準した右上から左下に向かって、上から下に向かう列方向にデコード処理を実行する。すなわち、この場合には、撮影画像中の右辺を、コードが埋め込まれた画像の上辺とする。
When dir = 1, the decoding process is executed in the direction rotated clockwise by 90 degrees. That is, the information device 10 executes the decoding process in the column direction from the top to the bottom, from the upper right to the lower left with reference to the image coordinate system. That is, in this case, the right side in the captured image is the upper side of the image in which the code is embedded.

dir=2の場合には、180度時計回りに回転した方向にデコード処理を実行する。すな
わち、情報機器10は、画像の座標系を基準した右下から左上に向かって、右から左に向かう列方向にデコード処理を実行する。すなわち、この場合には、撮影画像中の下辺を、
コードが埋め込まれた画像の上辺とする。
When dir = 2, the decoding process is executed in the direction rotated clockwise by 180 degrees. In other words, the information device 10 executes the decoding process in the column direction from the lower right to the upper left with respect to the image coordinate system and from the right to the left. That is, in this case, the lower side in the captured image is
The top side of the image with the code embedded.

dir=3の場合には、270度時計回りに回転した方向にデコード処理を実行する。すな
わち、情報機器10は、画像の座標系を基準した左下から右上に向かって、下から上に向かう列方向にデコード処理を実行する。すなわち、この場合には、撮影画像中の左辺を、コードが埋め込まれた画像の上辺とする。
When dir = 3, the decoding process is executed in the direction rotated clockwise by 270 degrees. That is, the information device 10 executes the decoding process in the column direction from the lower left to the upper right with reference to the image coordinate system, from the lower to the upper. That is, in this case, the left side in the captured image is the upper side of the image in which the code is embedded.

そして、情報機器10は、デコードに成功したか否かを判定する(S25)。デコードに成功したか、否かは、例えば、デコードされた情報の誤り検出符号によって誤りが検出されなかったこと、デコードされた情報に所定のコマンドまたはキーワードが含まれていたこと、あるいは、デコードされた緯度と経度が特定の範囲、例えば、日本の緯度、経度の範囲、あるいは、0〜360度の範囲であったことなどで判定できる。デコードに成功しなかった場合、情報機器10は、制御をS23に戻す。デコードに成功した場合、情報機器10は、検出したコード、四隅座標、埋め込み方向を記録する(S27)。四隅座標が検出できなかった場合(S21でNO場合)、あるいは、どの方向からもデコードに成功しなかった場合(S23でNOの場合)にはデコード失敗とする(S28)。そして、情報機器10は、図7のS3の判定に制御を進める。すなわち、S23−S26の処理の繰り返しによって、dir={0,1,2,3}のいずれかの埋め込み方向への試行で、デコードに成
功した場合には、図7のS3でデコード成功となる。一方、S23−S26の処理の繰り返しによって、dir={0,1,2,3}のどの埋め込み方向においても、デコードに成功しなかっ
た場合に、図7のS3でデコード失敗となる。
Then, the information device 10 determines whether or not the decoding is successful (S25). Whether decoding has succeeded or not is, for example, that no error was detected by the error detection code of the decoded information, that the decoded information contained a predetermined command or keyword, or that The latitude and longitude can be determined based on a specific range, for example, the latitude and longitude range of Japan, or a range of 0 to 360 degrees. If the decoding is not successful, the information device 10 returns the control to S23. If the decoding is successful, the information device 10 records the detected code, four corner coordinates, and the embedding direction (S27). If the four corner coordinates cannot be detected (NO in S21), or if the decoding is not successful from any direction (NO in S23), the decoding is failed (S28). And the information equipment 10 advances control to determination of S3 of FIG. That is, if the decoding is successful in the trial in the embedding direction of dir = {0,1,2,3} by repeating the processing of S23 to S26, the decoding is successful in S3 of FIG. . On the other hand, if the decoding is not successful in any embedding direction of dir = {0, 1, 2, 3} by repeating the processing of S23 to S26, the decoding fails in S3 of FIG.

以上述べたように、実施例1の情報機器10は、撮影装置18で撮影した地図の画像に埋め込まれたコードを取得し、ネットワーク上のサーバ20からコードに対応する緯度経度情報を取得する。そして、情報機器10は、コードが埋め込まれた四角形領域の四隅座標と、緯度経度情報との関係から、地図画像の座標系と緯度、経度との変換式を作成する。そして、情報機器10は、地図画像の表示領域に含まれる施設の表示用データをネットワーク上のサーバ20等から取得し、撮影した地図画像に重ね合わせて表示する。   As described above, the information device 10 according to the first embodiment acquires the code embedded in the map image captured by the imaging device 18 and acquires the latitude / longitude information corresponding to the code from the server 20 on the network. Then, the information device 10 creates a conversion formula between the coordinate system of the map image, the latitude, and the longitude from the relationship between the four corner coordinates of the rectangular area in which the code is embedded and the latitude / longitude information. Then, the information device 10 acquires facility display data included in the display area of the map image from the server 20 on the network, and displays it superimposed on the captured map image.

したがって、情報機器10では、ネットワーク上のサーバ20等から地図データをダウンロードしなくてもよいので、通信データ量を削減できる。また、情報機器10は、紙データとして与えられる地図の画像を撮影するので、ディスプレイ14の表示サイズが小さい場合でも、紙のサイズがディスプレイ14の表示サイズよりも大きな地図と組み合わせることで、ユーザの使い勝手を向上できる。例えば、雑誌、パンフレット、看板等に大きな範囲の地図を表示しておき、撮影装置18で地図の一部を撮影した場合、撮影された地図の一部が全体の地図のどの範囲であるかをユーザが認識しやすくなる。   Therefore, the information device 10 does not have to download map data from the server 20 on the network, and the amount of communication data can be reduced. In addition, since the information device 10 captures an image of a map given as paper data, even when the display size of the display 14 is small, the information device 10 can be combined with a map whose paper size is larger than the display size of the display 14 to Usability can be improved. For example, when a large range map is displayed in a magazine, a pamphlet, a signboard, etc., and a part of the map is photographed by the photographing device 18, it indicates which range of the whole map the part of the photographed map is. It becomes easier for the user to recognize.

また、既存の地図を撮影した地図の画像に、ネットワーク上のサーバ20等から取得した表示用データを重畳して表示するので、表示用データとして、最新のものを取得できる可能性が高まる。ユーザは、例えば、地図が印刷された後に設置された施設、建設されたビル等に関する情報を地図に重畳して表示できる。   Further, since the display data acquired from the server 20 on the network is superimposed on the map image obtained by photographing the existing map, the possibility that the latest data can be acquired as the display data is increased. For example, the user can superimpose and display information on facilities installed after the map is printed, buildings constructed, and the like.

さらに、座標を撮影画像用に射影変換してデータを表示することで、カメラで地図を撮影する際に、カメラが傾き、画像の縦横の方向と地図上の罫線方向とが傾いて撮影された場合でも、表示位置を補正できる。   Furthermore, by projecting the coordinates for the captured image and displaying the data, the camera was tilted when shooting the map with the camera, and the vertical and horizontal directions of the image and the ruled line direction on the map were tilted. Even in this case, the display position can be corrected.

さらに、実施例1では、情報機器10は、地図画像の罫線を認識し、罫線4つの罫線で囲まれた四角形領域を抽出する。したがって、ユーザが特定の領域を意識せず、大まかに地図を撮影した場合でも、情報機器10は、撮影された地図に重畳する追加の情報を取得でき、ユーザの使い勝手がよい。さらに、上記図8の処理では、dir={0,1,2,3}のそれぞ
れに対して順次、デコードが成功するまでデコード処理を繰り返す。したがって、撮影装置18による画像が90度単位で回転した場合でも、情報機器10は、緯度経度情報を取得できる可能性を高めることができる。
Further, in the first embodiment, the information device 10 recognizes the ruled line of the map image, and extracts a quadrangular region surrounded by four ruled lines. Therefore, even when the user is not aware of a specific area and takes a map roughly, the information device 10 can acquire additional information to be superimposed on the taken map, which is convenient for the user. Further, in the process of FIG. 8 described above, the decoding process is repeated for each of dir = {0, 1, 2, 3} sequentially until the decoding is successful. Therefore, even when the image by the imaging device 18 is rotated in units of 90 degrees, the information device 10 can increase the possibility of acquiring latitude / longitude information.

また、撮影された地図上に複数の四角形領域が含まれていた場合には、それぞれの四角形領域に対してデコード処理を実行すればよい。そして、最初にデコードに成功したときに残りの四角形領域でのデコード処理を中止すればよい。ただし、複数の四角形領域の頂点座標を基に、射影変換の係数を決定してもよい。複数の四角形領域の頂点座標を反映することで、射影変換の変換精度を高めることができる。   Further, when a plurality of quadrangular areas are included on the photographed map, the decoding process may be executed for each quadrangular area. Then, when decoding is successful for the first time, the decoding process in the remaining rectangular area may be stopped. However, the projective transformation coefficient may be determined based on the vertex coordinates of a plurality of rectangular regions. By reflecting the vertex coordinates of a plurality of quadrangular regions, it is possible to improve the conversion accuracy of the projective transformation.

さらに、実施例1では、地図にコードを埋め込んでおき、デコードしたコードを基に、情報機器10がサーバ20に、緯度経度情報を問い合わせる。したがって、地図自体に埋め込む情報を単純化できる。例えば、とりあえず、コードを埋め込む地図上の四角形領域と、ユニークに識別できるコードを確定しておき、コードを埋め込んだ地図を作成すればよい。そして、そのコードをどのように用いるかは、地図が作製された後の段階で、情報機器10およびサーバ20のアプリケーションプログラムによって決定すればよい。すなわち、実施例1の構成では、極めて簡単、早期にコードが埋め込まれた地図を作成し、徐々にサービスの向上、充実を図ることができる。   Furthermore, in the first embodiment, a code is embedded in a map, and the information device 10 inquires the server 20 about latitude / longitude information based on the decoded code. Therefore, information embedded in the map itself can be simplified. For example, a rectangular area on a map in which a code is embedded and a code that can be uniquely identified are determined, and a map in which the code is embedded may be created. And how to use the code | cord | chord should just be determined by the application program of the information equipment 10 and the server 20 in the step after a map is produced. That is, with the configuration of the first embodiment, it is possible to create a map in which a code is embedded very easily and at an early stage, and gradually improve and enhance the service.

<変形例>
上記実施例1では、dir={0,1,2,3}として、処理を説明した。例えば、画像の座標系で
検出された罫線が傾いていた場合には、罫線で区切られた四角形領域の4頂点を包含する座標軸方向に辺を持つ、矩形の4頂点の距離から、上辺を決定すればよい。
<Modification>
In the first embodiment, the processing has been described assuming that dir = {0,1,2,3}. For example, when the ruled line detected in the image coordinate system is tilted, the upper side is determined from the distance between the four vertices of the rectangle having sides in the coordinate axis direction including the four vertices of the quadrangular area divided by the ruled line. do it.

図13に、上辺を決定する処理概要を例示する。例えば、ハフ変換によって得られた罫線が撮影画像の座標系において、L1、L2、L3、L4のように傾いていた場合を想定する。この場合には、情報機器10は、罫線L1−L4で囲まれた四角形領域を包含する矩形PUL、PUR、PDR、PDL(点線の矩形)を作成する。そして、除法機器10は、罫線L1−L4で囲まれた四角形領域を包含する矩形の左上点PULに最も距離が近い頂点P1を罫線L1−L4で囲まれた四角形領域の左上点とする。そして、dir=0のと
き、情報機器10は、頂点P1と頂点P1に対して時計回り方向の次の頂点P2とを決定する。そして、情報機器10は、頂点P1、P2を両端とする辺L2をコードが埋め込まれた画像の上辺としてデコード処理を実行すればよい。
FIG. 13 illustrates an outline of processing for determining the upper side. For example, it is assumed that the ruled line obtained by the Hough transform is inclined like L1, L2, L3, and L4 in the coordinate system of the captured image. In this case, the information device 10 creates rectangles PUL, PUR, PDR, and PDL (dotted rectangles) that include a rectangular region surrounded by the ruled lines L1-L4. Then, the division device 10 sets the vertex P1 closest to the upper left point PUL of the rectangle that includes the quadrangular area surrounded by the ruled lines L1-L4 as the upper left point of the quadrangular area surrounded by the ruled lines L1-L4. When dir = 0, the information device 10 determines the vertex P1 and the next vertex P2 in the clockwise direction with respect to the vertex P1. And the information apparatus 10 should just perform a decoding process by making the edge | side L2 which has the vertices P1 and P2 into both ends into the upper side of the image where the code was embedded.

また、dir=1のとき、情報機器10は、上記頂点P2と次の頂点P3とを決定する。そ
して、情報機器10は、頂点P2、P3を両端とする辺L3をコードが埋め込まれた画像の上辺としてデコード処理を実行すればよい。また、dir=2のとき、情報機器10は、上
記頂点P3と次の頂点P4とを決定する。そして、情報機器10は、頂点P3、P4を両端とする辺L3をコードが埋め込まれた画像の上辺としてデコード処理を実行すればよい。また、dir=3のとき、情報機器10は、上記頂点P4と次の頂点P1とを決定する。そ
して、情報機器10は、頂点P4、P1を両端とする辺L1をコードが埋め込まれた画像の上辺としてデコード処理を実行すればよい。
When dir = 1, the information device 10 determines the vertex P2 and the next vertex P3. And the information apparatus 10 should just perform a decoding process by making the edge | side L3 which uses the vertices P2 and P3 as both ends into the upper side of the image in which the code was embedded. When dir = 2, the information device 10 determines the vertex P3 and the next vertex P4. And the information apparatus 10 should just perform a decoding process by making the edge | side L3 which makes the vertex P3 and P4 both ends into the upper side of the image in which the code was embedded. When dir = 3, the information device 10 determines the vertex P4 and the next vertex P1. The information device 10 may perform the decoding process with the side L1 having the vertices P4 and P1 at both ends as the upper side of the image in which the code is embedded.

なお、デコード処理の前に、一旦、L1−L4が撮影画像の座標軸(あるいは、図13の点線の矩形の辺)に平行となるように、座標変換するようにしてもよい。例えば、辺L2が点線の矩形の上辺LUに平行になるように、座標変換した後に、デコード処理を行ってもよい。そして、埋め込まれたコードが確定した後は、傾いた四角形領域L1−L4の頂点P1−P4の座標と、緯度経度情報との座標の変換式を作成すればよい。   Note that before the decoding process, the coordinate transformation may be performed once so that L1 to L4 are parallel to the coordinate axis of the captured image (or the rectangular side of the dotted line in FIG. 13). For example, the decoding process may be performed after coordinate conversion so that the side L2 is parallel to the upper side LU of the dotted rectangle. Then, after the embedded code is determined, a conversion formula between the coordinates of the apexes P1-P4 of the inclined quadrangular area L1-L4 and the latitude / longitude information may be created.

図14から図19を参照して実施例2を説明する。上記実施例1では、情報機器10は、地図画像に埋め込まれたコードを得た後、サーバ20から緯度経度情報を取得した。実施例2では、緯度経度情報が埋め込まれた地図を用いる処理を説明する。すなわち、情報機器10は、撮影装置18で地図を撮影し、地図画像を生成する。そして、情報機器10は、生成した地図画像から緯度経度情報を読み取る。そして、情報機器10は、読み取った緯度経度情報を基に表示用データをネットワーク上のサーバ20等から取得する。そして、情報機器10は、例えば、追加の情報として「Aという名前のレストラン」を示すアイコンを取得する。そして、情報機器10は、ディスプレイ14上に撮影画像と重畳して、追加の情報を表示する。   A second embodiment will be described with reference to FIGS. In the first embodiment, the information device 10 acquires the latitude / longitude information from the server 20 after obtaining the code embedded in the map image. In the second embodiment, processing using a map in which latitude and longitude information is embedded will be described. That is, the information device 10 captures a map with the imaging device 18 and generates a map image. Then, the information device 10 reads latitude / longitude information from the generated map image. The information device 10 acquires display data from the server 20 on the network based on the read latitude / longitude information. Then, for example, the information device 10 acquires an icon indicating “a restaurant named A” as additional information. The information device 10 then superimposes the captured image on the display 14 and displays additional information.

図14は、緯度・経度の情報を埋め込まれた地図画像と対応する位置情報を例示する図である。地図画像は、緯度x、 経度yとすると、
四隅左上(x1, y1) =(37.25,137.25),
四隅右上(x2, y2) =(37.25,138.5),
四隅左下(x3, y3) =(36.5,137.25),
四隅右下(x4, y4) =(36.5,138.5);
である。そこで、情報機器10は、四隅左上を基準として、緯度-0.75、経度+1.25の範囲の地図である。
FIG. 14 is a diagram illustrating position information corresponding to a map image in which latitude / longitude information is embedded. If the map image is latitude x and longitude y,
Upper left corner (x1, y1) = (37.25,137.25),
Upper right corner (x2, y2) = (37.25,138.5),
Lower left corner (x3, y3) = (36.5,137.25),
Lower right corner (x4, y4) = (36.5,138.5);
It is. Therefore, the information device 10 is a map in a range of latitude -0.75 and longitude +1.25 with the upper left corner of the four corners as a reference.

図15に、位置情報を地図画像に埋め込む手順の概要を例示する。図15のように、情報機器10は、四隅座標に対応する緯度、経度を2進数の埋め込みコードに変換する。   FIG. 15 illustrates an outline of a procedure for embedding position information in a map image. As shown in FIG. 15, the information device 10 converts the latitude and longitude corresponding to the four corner coordinates into a binary embedded code.

情報機器10は、まず、四隅左上の緯度、経度を5桁10進数に変換し、さらに変換で得られた5桁10進数を17桁の2進数に変換する。そして、情報機器10は、四隅左上から四隅左下方向への緯度範囲を符号付き3桁の10進数データに変換する。さらに、情報機器10は、変換された10進数データを符号部1桁、データ部11桁の2進数データに変換する。   The information device 10 first converts the latitude and longitude at the upper left corner of the four corners into a 5-digit decimal number, and further converts the 5-digit decimal number obtained by the conversion into a 17-digit binary number. The information device 10 converts the latitude range from the upper left corner of the four corners to the lower left corner of the four corners into signed three-digit decimal data. Further, the information device 10 converts the converted decimal data into binary data having a code part of 1 digit and a data part of 11 digits.

さらに、情報機器10は、四隅左上から四隅右上方向への経度範囲を符号付き3桁の10進数データに変換する。そして、情報機器10は、変換された10進数を符号部1桁、データ部11桁の2進数データに変換する。以上の手順により、四隅左上緯度部。四隅左上経度部、緯度範囲部、経度範囲部を持つ2進数56桁の埋め込みコードが作成される。なお、2進数56桁に対して、多数決処理による誤り訂正を行うためには、画像内の埋め込みビット数は168ビットとなる。そこで、例えば、20×20ブロック、200ビット分のデータを埋め込めるブロック構成としてもよい。また、さらに、ブロック数を増加し、より多くの情報によって多数決による誤り訂正が実行できるようにしてもよい。   Furthermore, the information device 10 converts the longitude range from the upper left corner of the four corners to the upper right corner of the four corners into signed 3-digit decimal data. Then, the information device 10 converts the converted decimal number into binary data having a code part of 1 digit and a data part of 11 digits. By the above procedure, the upper left latitude part of the four corners. An embedding code of binary 56 digits having a four corner upper left longitude part, a latitude range part, and a longitude range part is created. In order to perform error correction by majority processing for 56 binary digits, the number of embedded bits in an image is 168 bits. Therefore, for example, a block configuration in which data of 20 × 20 blocks and 200 bits can be embedded may be employed. Further, the number of blocks may be increased so that error correction by majority vote can be executed with more information.

作成された埋め込みコードは、例えば、図3に示した特許第3784781に記載の方法で画像に埋め込まれる。すなわち、情報機器10は、図3に示すように画像をブロックに分割し隣接するペアブロックの特徴量に差をつけることにより、ペアブロックに0または1のビットを割り当てる方法により画像に埋め込む。例えば、特許第3784781に記載のように、黄色の濃度が、本来の画像における黄色の濃度から変更されたとしても、人の目には感じにくいという特徴がある。そこで、例えば、ビットパターンに対応して、ペアブロックの黄色の濃淡を変更することで、コードが地図画像に埋め込まれる。   The created embedding code is embedded in an image, for example, by the method described in Japanese Patent No. 3784781 shown in FIG. That is, the information device 10 embeds the image in the image by assigning 0 or 1 bits to the pair blocks by dividing the image into blocks and making a difference in the feature values of the adjacent pair blocks as shown in FIG. For example, as described in Japanese Patent No. 3784781, there is a feature that even if the yellow density is changed from the yellow density in the original image, it is difficult for human eyes to feel. Therefore, for example, the code is embedded in the map image by changing the yellow shade of the pair block corresponding to the bit pattern.

図16に、検出した2進数のコードを四角形領域四隅の緯度経度情報に変換する手順を例示する。情報機器10は、まず、2進数のコードの上位17桁を5桁の10進数に変換する。そして、情報機器10は、得られた10進数の小数点を二桁桁下げして四角形領域の四隅左上の緯度として取得する。   FIG. 16 illustrates a procedure for converting the detected binary code into latitude and longitude information at the four corners of the quadrangular area. The information device 10 first converts the upper 17 digits of the binary code into a 5-digit decimal number. Then, the information device 10 obtains the latitude of the upper left corner of the quadrangular area by lowering the decimal point of the obtained decimal number by two digits.

同様に、情報機器10は、2進数のコードの次の17桁を5桁の10進数に変換する。そして、情報機器10は、小数点を二桁桁下げして四角形領域の四隅左上の経度として取得する。   Similarly, the information device 10 converts the next 17 digits of the binary code into a 5-digit decimal number. Then, the information device 10 obtains the longitude at the upper left corner of the four corners of the quadrangular area by lowering the decimal point by two digits.

さらに、情報機器10は、2進数のコードの次の12桁を符号部1桁+11桁に分割し、符号部が0ならば−、1ならば+に変換する。そして、情報機器10は、11桁部分は3桁の10進数に変換する。さらに、情報機器10は、得られた10進数の小数点を二桁桁下げして四角形領域の四隅左上から四角形領域四隅左下までの緯度範囲として取得する。   Further, the information device 10 divides the next 12 digits of the binary code into 1 digit code portion +11 digits, and converts the code portion to 0 if the code portion is 0 and to + if it is 1. The information device 10 converts the 11-digit portion into a 3-digit decimal number. Further, the information device 10 obtains a latitude range from the upper left corner of the quadrangular area to the lower left corner of the quadrangular area by lowering the decimal point of the obtained decimal number by two digits.

同様に、情報機器10は、2進数のコードの次の12桁を、符号1桁+11桁に分割し、符号部が0ならば−、1ならば+に変換し、11桁部分は3桁の10進数に変換する。そして、情報機器10は、得られた10進数の小数点を二桁桁下げして四角形領域の四隅左上から四角形領域四隅右下までの経度範囲として取得する。以上の処理によって、四隅左上緯度経度をx1、 y1とすると(x1, y1) =(37.25,137.25)、緯度範囲-0.75、経度範囲+1.25が取得される。これをもとに、四角形領域の四隅の残りの緯度経度を下式により求める。
四隅右上緯度経度(x2, y2) =(x1,y1+経度範囲)=(37.25,138.5);
四隅左下緯度経度(x3, y3) =(x1+緯度範囲,y1)= (36.5,137.25);
四隅右下緯度経度(x4, y4) =(x1+緯度範囲,y1+経度範囲)= (36.5,138.5);
なお、dir=0の場合には、撮影画像において検出した領域の四隅左上が四角形領域四隅
左上に割り当てられる。また、dir=1の場合には、撮影画像において検出した領域の四隅
右上が四角形領域四隅左上に割り当てられる。また、dir=2の場合には、撮影画像におい
て検出した領域の四隅右下が四角形領域四隅左上に割り当てられる。また、dir=3の場合
には、撮影画像において検出した領域の四隅左下が四角形領域四隅左上に割り当てられる。
Similarly, the information device 10 divides the next 12 digits of the binary code into a code of 1 digit +11 digits, converts the code part to 0 if the code part is 0, and converts it to + if the code part is 1, and 3 digits for the 11 digit part. Is converted to a decimal number. The information device 10 obtains a longitude range from the upper left corner of the quadrangular area to the lower right corner of the quadrangular area by lowering the decimal point of the obtained decimal number by two digits. With the above processing, if the upper left latitude and longitude of the four corners are x1 and y1, (x1, y1) = (37.25, 137.25), the latitude range -0.75 and the longitude range +1.25 are acquired. Based on this, the remaining latitude and longitude of the four corners of the quadrangular area are obtained by the following equation.
Four corners upper right latitude and longitude (x2, y2) = (x1, y1 + longitude range) = (37.25,138.5);
Four corners lower left latitude longitude (x3, y3) = (x1 + latitude range, y1) = (36.5,137.25);
Four corners lower right latitude and longitude (x4, y4) = (x1 + latitude range, y1 + longitude range) = (36.5,138.5);
When dir = 0, the upper left corner of the detected area in the captured image is assigned to the upper left corner of the rectangular area. When dir = 1, the upper right corners of the detected areas in the captured image are assigned to the upper left corners of the quadrangular areas. When dir = 2, the lower right corner of the detected area in the captured image is assigned to the upper left corner of the quadrangular area. In the case of dir = 3, the lower left corner of the detected area in the captured image is assigned to the upper left corner of the rectangular area.

図17に、データが埋め込まれた紙地図を情報機器10の撮影装置18で撮影し、撮影画像に追加の情報を重畳して表示するフローチャートを例示する。図17の処理において、図7と同一の処理には、同一の符号が付されている。   FIG. 17 illustrates a flowchart in which a paper map in which data is embedded is photographed by the photographing device 18 of the information device 10 and additional information is superimposed on the photographed image and displayed. In the process of FIG. 17, the same processes as those in FIG.

まず、情報機器10は、実施例1と同様、ユーザの指示に応答して、地図の読み取りを開始する。地図読み取り処理により、カメラインターフェース18Aを経由して紙地図を撮影したカメラ撮影画像が取得される(S1)。取得された撮影画像に対して、デコード処理が実行される(S2A)。情報機器10のCPU11は、対応関係取得部として、S1−S2Aの処理を実行する。   First, the information device 10 starts reading a map in response to a user instruction, as in the first embodiment. By the map reading process, a camera photographed image obtained by photographing a paper map is acquired via the camera interface 18A (S1). A decoding process is executed on the acquired captured image (S2A). The CPU 11 of the information device 10 performs the processing of S1-S2A as a correspondence acquisition unit.

そして、デコードに成功した場合には(S3の判定でYESの場合)、情報機器10のCPU11は、実施例1と同様に、情報機器10は、撮影画像四隅の緯度、経度情報を算出する(S5A)。すなわち、実施例では、地図画像に埋め込まれた情報から、緯度、経度を求め、射影変換を実行する。したがって、実施例2では、情報機器10は、四角形領域四隅の緯度経度情報をサーバ20から取得しなくてもよい。情報機器10のCPU11は、座標変換部として、S5Aの処理を実行する。S6以下の処理は、図8と同様であるので、その説明を省略する。   If the decoding is successful (YES in S3), the CPU 11 of the information device 10 calculates the latitude and longitude information of the four corners of the captured image as in the first embodiment ( S5A). That is, in the embodiment, the latitude and longitude are obtained from the information embedded in the map image, and projective transformation is executed. Therefore, in the second embodiment, the information device 10 does not have to acquire the latitude / longitude information of the four corners of the quadrangular area from the server 20. The CPU 11 of the information device 10 performs the process of S5A as a coordinate conversion unit. Since the processes after S6 are the same as those in FIG. 8, the description thereof is omitted.

図18に、デコード処理(図17のS2A)の詳細なフローチャートを例示する。なお、S20−S26の処理は、画像からの埋め込み情報のデコード処理であり、基本的な手順は図8の場合と同様である。ただし、図8の場合には、画像への埋め込み情報が地域を識別するコードであったのに対して、図18の場合には、画像への埋め込み情報が緯度・経度の情報(図15、図16参照)である点が相異する。情報機器10のCPU11は、
メモリ上に実行可能に展開されたコンピュータプログラムにより図18の処理を実行する。CPU11は、デコード部として、図18の処理を実行する。
FIG. 18 illustrates a detailed flowchart of the decoding process (S2A in FIG. 17). Note that the processing of S20 to S26 is a process of decoding embedded information from an image, and the basic procedure is the same as in the case of FIG. However, in the case of FIG. 8, the embedded information in the image is a code for identifying the region, whereas in FIG. 18, the embedded information in the image is latitude / longitude information (FIG. 15, The difference is that (see FIG. 16). The CPU 11 of the information device 10
The processing shown in FIG. 18 is executed by a computer program that is executably expanded on the memory. The CPU 11 performs the process of FIG. 18 as a decoding unit.

情報機器10は、まず撮影画像中の罫線で囲まれた四角形領域の四隅座標を検出する(S20)。四角形領域の四隅座標が、第1座標系での参照位置を示す第1座標情報に相当する。四隅座標が全て検出できた場合には(S21でYES)、四角形領域の4辺を上辺、右辺、下辺、左辺の順に、埋め込み領域の上辺とした場合について、特許第3784781の
方法でデコード処理を行う(S23−S26)。
First, the information device 10 detects the four corner coordinates of the quadrangular region surrounded by the ruled line in the captured image (S20). The four corner coordinates of the rectangular area correspond to first coordinate information indicating a reference position in the first coordinate system. When all the four corner coordinates are detected (YES in S21), the decoding process is performed by the method of Japanese Patent No. 3784781 for the case where the four sides of the quadrangular region are the upper side, the right side, the lower side, and the left side in this order. It performs (S23-S26).

デコードに成功した場合には(S26でYES)、検出した2進数のコードを四角形領域四隅の緯度経度情報に変換する(S27A)。デコードに成功したか、否かは、実施例1の図8の場合と同様に判定する。四隅座標が検出できなかった場合、あるいは、どの方向からもデコードに成功できなかった場合には、情報機器10は、デコード失敗とする。なお、四角形領域の四隅の緯度経度情報が第2座標系での参照位置を示す第2座標情報に相当する。   If the decoding is successful (YES in S26), the detected binary code is converted into latitude / longitude information of the four corners of the rectangular area (S27A). Whether or not the decoding is successful is determined in the same manner as in the case of FIG. If the four corner coordinates cannot be detected, or if the decoding cannot be successful from any direction, the information device 10 determines that the decoding has failed. Note that the latitude and longitude information at the four corners of the quadrangular region corresponds to the second coordinate information indicating the reference position in the second coordinate system.

デコード成功の場合(図17のS3でYES)、情報機器10は、制御を図17のS5Aに進め、撮影画像中の四角形領域の四隅座標および、該四隅の緯度経度情報、さらに回転角度をもとに、撮影画像四隅の緯度、経度を計算する。   If the decoding is successful (YES in S3 of FIG. 17), the information device 10 advances the control to S5A of FIG. 17, and obtains the four corner coordinates of the rectangular area in the captured image, the latitude and longitude information of the four corners, and the rotation angle. In addition, the latitude and longitude of the four corners of the captured image are calculated.

以上述べたように、実施例2の処理によれば、四角形領域の四隅の緯度と経度が撮影画像に埋め込まれているので、情報機器10は、サーバ20に、緯度と経度を問い合わせなくても、撮影された地図画像の表示領域の緯度と経度を算出できる。   As described above, according to the processing of the second embodiment, since the latitude and longitude of the four corners of the quadrangular area are embedded in the captured image, the information device 10 does not need to query the server 20 for the latitude and longitude. The latitude and longitude of the display area of the captured map image can be calculated.

以上のように、開示の技術の一側面は、地図に関連する画像表示技術に関する。すなわち、情報機器10は、地図の第1の領域の座標情報に相当する罫線で囲まれた四角形領域の座標と緯度経度情報との対応関係に基づいて、画像の座標系と緯度、経度との座標変換の式を作成する。そして、情報機器10は、第1の領域を含む第2の領域に相当する、地図画像の表示領域の緯度経度情報を取得する。さらに、情報機器10は、取得した地図画像の表示領域の緯度経度情報から、地図画像に重畳して表示する表示用データを取得し、撮影された地図に表示される情報について、情報量の増大を図る。   As described above, one aspect of the disclosed technology relates to an image display technology related to a map. That is, the information device 10 determines whether the coordinate system of the image and the latitude and longitude are based on the correspondence between the coordinates of the rectangular area surrounded by the ruled line corresponding to the coordinate information of the first area of the map and the latitude and longitude information. Create a coordinate transformation formula. Then, the information device 10 acquires latitude and longitude information of the display area of the map image corresponding to the second area including the first area. Further, the information device 10 acquires display data to be displayed superimposed on the map image from the latitude / longitude information of the acquired display area of the map image, and increases the amount of information about the information displayed on the captured map. Plan.

《その他の変形例》
上記実施例1、実施例2では、第2座標系として、緯度経度が用いられた。しかし、第2座標系は、緯度と経度以外の座標系によって定義してもよい。すなわち、表示用データのデータベース(図6参照)において、それぞれの表示用データに該当する施設の位置は、緯度経度ではなく、他の座標系で表してもよい。要するに、情報機器10が、表示用データのデータベースにアクセスする際に、表示用データで示される施設の位置が、どのような座標系で定義されているかを認識できればよい。したがって、情報機器10で、図7あるいは図17の処理を実行するコンピュータプログラムと、表示用データのデータベースとで、第2座標系として共通の座標系を用いればよい。そのためには、表示用データのデータベースの座標系を事前に決定しておけばよい。そして、実施例1の手順または実施例2の手順で表示用データの座標系での四角形の4頂点の座標を取得すればよい。その場合に、表示用データの座標系での最大値や最小値などをサーバ20から、情報機器10に引き渡すことで、デコード結果が正しいか否かの判定に用いてもよい。ただし、緯度経度を用いることで、情報機器10が複数のサーバから表示用データを取得するようなシステムにおいては、表示用データを汎用的に作成できるという利点はある。
<< Other modifications >>
In Example 1 and Example 2, latitude and longitude were used as the second coordinate system. However, the second coordinate system may be defined by a coordinate system other than latitude and longitude. That is, in the display data database (see FIG. 6), the location of the facility corresponding to each display data may be represented by another coordinate system instead of the latitude and longitude. In short, when the information device 10 accesses the display data database, it is only necessary to be able to recognize in which coordinate system the position of the facility indicated by the display data is defined. Therefore, a common coordinate system may be used as the second coordinate system between the computer program for executing the processing of FIG. 7 or FIG. 17 and the display data database in the information device 10. For this purpose, the coordinate system of the display data database may be determined in advance. Then, the coordinates of the four vertices of the quadrangle in the coordinate system of the display data may be acquired by the procedure of the first embodiment or the procedure of the second embodiment. In that case, the maximum value or the minimum value in the coordinate system of the display data may be transferred from the server 20 to the information device 10 and used for determining whether or not the decoding result is correct. However, in the system in which the information device 10 acquires display data from a plurality of servers by using the latitude and longitude, there is an advantage that display data can be created for general use.

以上述べた処理は、紙媒体、印刷媒体、屋外において塗料で形成された看板上の地図、大型ディスプレイ上に表示された地図、インターネット上のウェブサイトに表示された地
図等、様々な地図に対して適用できる。
The processing described above applies to various types of maps such as paper media, print media, maps on signboards made of paint outdoors, maps displayed on large displays, and maps displayed on websites on the Internet. Can be applied.

《コンピュータが読み取り可能な記録媒体》
コンピュータその他の機械、装置(以下、コンピュータ等)に上記いずれかの機能を実現させるプログラムをコンピュータ等が読み取り可能な記録媒体に記録することができる。そして、コンピュータ等に、この記録媒体のプログラムを読み込ませて実行させることにより、その機能を提供させることができる。
<Computer-readable recording medium>
A program for causing a computer or other machine or device (hereinafter, a computer or the like) to realize any of the above functions can be recorded on a recording medium that can be read by the computer or the like. The function can be provided by causing a computer or the like to read and execute the program of the recording medium.

ここで、コンピュータ等が読み取り可能な記録媒体とは、データやプログラム等の情報を電気的、磁気的、光学的、機械的、または化学的作用によって蓄積し、コンピュータ等から読み取ることができる記録媒体をいう。このような記録媒体のうちコンピュータ等から取り外し可能なものとしては、例えばフレキシブルディスク、光磁気ディスク、CD−ROM、CD−R/W、DVD、ブルーレイディスク、DAT、8mmテープ、フラッシュメモリなどのメモリカード等がある。また、コンピュータ等に固定された記録媒体としてハードディスクやROM(リードオンリーメモリ)等がある。   Here, a computer-readable recording medium is a recording medium that stores information such as data and programs by electrical, magnetic, optical, mechanical, or chemical action and can be read from a computer or the like. Say. Examples of such a recording medium that can be removed from a computer or the like include a flexible disk, a magneto-optical disk, a CD-ROM, a CD-R / W, a DVD, a Blu-ray disk, a DAT, an 8 mm tape, a flash memory, and the like. There are cards. In addition, as a recording medium fixed to a computer or the like, there are a hard disk, a ROM (read only memory), and the like.

10 情報機器
11 CPU
12 第1記憶装置
13 第2記憶装置
14 ディスプレイ
15 操作部
16 通信インターフェース
17 メディアアクセス装置
18 撮影装置
20 サーバ
10 Information equipment
11 CPU
12 First Storage Device 13 Second Storage Device 14 Display 15 Operation Unit 16 Communication Interface 17 Media Access Device 18 Imaging Device 20 Server

Claims (8)

地図の画像の第1の領域に符号化された情報から、前記地図の画像上の第1座標系と前記地図の画像に配置する表示データの表示位置を定義する第2座標系との対応関係を取得する対応関係取得部と、
前記対応関係にしたがって、前記第1の領域を含む第2の領域の前記第2座標系での存在範囲を示す領域情報を取得する座標変換部と、
前記領域情報に応じて表示データを取得する表示データ取得部と、を備える画像表示装置。
Correspondence between a first coordinate system on the map image and a second coordinate system that defines a display position of display data to be arranged on the map image from information encoded in the first area of the map image A correspondence acquisition unit for acquiring
In accordance with the correspondence relationship, a coordinate conversion unit that acquires area information indicating the existence range of the second area including the first area in the second coordinate system;
An image display device comprising: a display data acquisition unit that acquires display data according to the region information.
前記対応関係取得部は、前記符号化された情報から前記第1の領域に埋め込まれたコードを取得するデコード部と、
前記第1の領域の前記第1座標系での参照位置を示す第1座標情報を取得する第1取得部と、
前記コードに応じて、前記第1の領域の前記第2座標系での参照位置を示す第2座標情報を取得する第2取得部と、を有する請求項1に記載の画像表示装置。
The correspondence acquisition unit acquires a code embedded in the first area from the encoded information;
A first acquisition unit that acquires first coordinate information indicating a reference position of the first region in the first coordinate system;
The image display apparatus according to claim 1, further comprising: a second acquisition unit that acquires second coordinate information indicating a reference position of the first region in the second coordinate system according to the code.
前記対応関係取得部は、前記第1座標系における前記第1の領域の参照位置を示す第1座標情報を取得する第1取得部と、
前記符号化された情報から前記第2座標系における前記第1の領域の参照位置を示す第2座標情報を取得するデコード部と、を有する請求項1に記載の画像表示装置。
The correspondence acquisition unit includes a first acquisition unit configured to acquire first coordinate information indicating a reference position of the first region in the first coordinate system;
The image display apparatus according to claim 1, further comprising: a decoding unit that acquires second coordinate information indicating a reference position of the first region in the second coordinate system from the encoded information.
前記デコード部は、
前記地図の画像情報中の罫線パターンを認識する罫線認識部と、
前記罫線認識部で認識された4つの罫線で囲まれた四角形領域を複数に分割したブロック間の画像の特徴量の関係に応じて埋め込まれたビットパターンを取得するビット取得部と、を有する請求項2または3に記載の画像表示装置。
The decoding unit
A ruled line recognition unit that recognizes a ruled line pattern in the image information of the map;
A bit acquisition unit that acquires a bit pattern embedded in accordance with a relationship of image feature amounts between blocks obtained by dividing a quadrangular region surrounded by four ruled lines recognized by the ruled line recognition unit. Item 4. The image display device according to Item 2 or 3.
前記ビット取得部は、前記四角形領域内に含まれるブロックの並びのうち、前記四角形領域のいずれかの辺を選択した場合の、前記選択された辺に隣接するブロックの並びである第1ブロック群を第1の処理対象として、前記第1ブロック群の処理後に前記第1ブロック群に隣接する第2ブロック群を処理対象とする処理を繰り返すことによって、前記第1ブロック群に並行なブロック群から埋め込まれたビットパターンを取得する処理を試行し、前記試行が成功した場合に処理を終了し、前記試行が成功しなかった場合に前記四角形領域の辺のうちの未選択の辺を選択して前記試行を繰り返し、前記四角形領域のいずれの辺を基準としても、試行が成功しなかったときに、処理不可能と判定する請求項4に記載の画像表示装置。   The bit acquisition unit is a first block group that is an array of blocks adjacent to the selected side when any side of the quadrangular area is selected from among the blocks included in the quadrangular area. From the block group parallel to the first block group by repeating the process of processing the second block group adjacent to the first block group after the processing of the first block group. Trying to obtain the embedded bit pattern, ending the process if the trial is successful, and selecting an unselected side of the sides of the rectangular area if the trial is not successful The image display device according to claim 4, wherein the trial is repeated, and when the trial is not successful with any side of the quadrangular region as a reference, it is determined that the processing is impossible. 前記第2取得部は、前記コードを基に、ネットワーク上のサーバにアクセスし、前記コードに対応する前記第1の領域の第2座標情報を取得する請求項2に記載の画像表示装置。   The image display device according to claim 2, wherein the second acquisition unit accesses a server on a network based on the code and acquires second coordinate information of the first region corresponding to the code. コンピュータが、地図の画像の第1の領域に符号化された情報から、前記地図の画像上の第1座標系と前記地図の画像に配置する表示データの表示位置を定義する第2座標系との対応関係を取得する対応関係取得ステップと、
前記対応関係にしたがって、前記第1の領域を含む第2の領域の前記第2座標系での存在範囲を示す領域情報を取得する座標変換ステップと、
前記領域情報に応じて表示データを取得する表示データ取得ステップと、を実行する画像表示方法。
A first coordinate system on the map image and a second coordinate system for defining a display position of display data to be arranged on the map image from information encoded in the first region of the map image; A correspondence acquisition step for acquiring the correspondence of
In accordance with the correspondence relationship, a coordinate conversion step of acquiring area information indicating an existence range of the second area including the first area in the second coordinate system;
A display data acquisition step of acquiring display data according to the region information.
コンピュータに、地図の画像の第1の領域に符号化された情報から、前記地図の画像上の第1座標系と前記地図の画像に配置する表示データの表示位置を定義する第2座標系との対応関係を取得する対応関係取得ステップと、
前記対応関係にしたがって、前記第1の領域を含む第2の領域の前記第2座標系での存在範囲を示す領域情報を取得する座標変換ステップと、
前記領域情報に応じて表示データを取得する表示データ取得ステップと、を実行させるための画像表示プログラム。
A first coordinate system on the map image and a second coordinate system defining a display position of display data to be arranged on the map image from information encoded in the first area of the map image; A correspondence acquisition step for acquiring the correspondence of
In accordance with the correspondence relationship, a coordinate conversion step of acquiring area information indicating an existence range of the second area including the first area in the second coordinate system;
An image display program for executing a display data acquisition step of acquiring display data according to the region information.
JP2010042586A 2010-02-26 2010-02-26 Image display device, image display method, and image display program Active JP5434671B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010042586A JP5434671B2 (en) 2010-02-26 2010-02-26 Image display device, image display method, and image display program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010042586A JP5434671B2 (en) 2010-02-26 2010-02-26 Image display device, image display method, and image display program

Publications (2)

Publication Number Publication Date
JP2011180711A true JP2011180711A (en) 2011-09-15
JP5434671B2 JP5434671B2 (en) 2014-03-05

Family

ID=44692174

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010042586A Active JP5434671B2 (en) 2010-02-26 2010-02-26 Image display device, image display method, and image display program

Country Status (1)

Country Link
JP (1) JP5434671B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012185741A (en) * 2011-03-07 2012-09-27 Ricoh Co Ltd Image formation device, information processor, image processing system, and program
JP2014026675A (en) * 2012-06-15 2014-02-06 Sharp Corp Information distribution system
JP2014157595A (en) * 2013-02-15 2014-08-28 Fuji Xerox Co Ltd Method and program for identifying medium or function, article including marker, and marker arrangement method
US9584854B2 (en) 2012-06-15 2017-02-28 Sharp Kabushiki Kaisha Information distribution method, computer program, information distribution apparatus and mobile communication device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004349879A (en) * 2003-05-20 2004-12-09 Fujitsu Ltd Device, method, and program for image data processing
JP2008234684A (en) * 2008-05-14 2008-10-02 Kenji Yoshida Print output control means
JP2009300501A (en) * 2008-06-10 2009-12-24 Olympus Imaging Corp Imaging device and map medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004349879A (en) * 2003-05-20 2004-12-09 Fujitsu Ltd Device, method, and program for image data processing
JP2008234684A (en) * 2008-05-14 2008-10-02 Kenji Yoshida Print output control means
JP2009300501A (en) * 2008-06-10 2009-12-24 Olympus Imaging Corp Imaging device and map medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012185741A (en) * 2011-03-07 2012-09-27 Ricoh Co Ltd Image formation device, information processor, image processing system, and program
JP2014026675A (en) * 2012-06-15 2014-02-06 Sharp Corp Information distribution system
US9584854B2 (en) 2012-06-15 2017-02-28 Sharp Kabushiki Kaisha Information distribution method, computer program, information distribution apparatus and mobile communication device
JP2014157595A (en) * 2013-02-15 2014-08-28 Fuji Xerox Co Ltd Method and program for identifying medium or function, article including marker, and marker arrangement method

Also Published As

Publication number Publication date
JP5434671B2 (en) 2014-03-05

Similar Documents

Publication Publication Date Title
JP5908113B2 (en) 2D code
US7580576B2 (en) Stroke localization and binding to electronic document
KR102173123B1 (en) Method and apparatus for recognizing object of image in electronic device
US6678425B1 (en) Method and apparatus for decoding angular orientation of lattice codes
JP5848464B2 (en) Two-dimensional code, two-dimensional code creation system and analysis program
US7950589B2 (en) Program, information storage medium, two-dimensional code generation system, image generation system and printed material
US6880755B2 (en) Method and apparatus for display of spatially registered information using embedded data
CA2491843C (en) Global localization by fast image matching
KR101582218B1 (en) Printed Material on which Two-dimensional Code is Displayed
CN111937046A (en) Mixed reality system, program, method, and portable terminal device
WO2021143212A1 (en) Quick response code, quick response code encoding method and apparatus, quick response code decoding method and apparatus, and electronic system
JP5434671B2 (en) Image display device, image display method, and image display program
US9467660B1 (en) Map generation using map features from user captured images
JPWO2015174192A1 (en) Two-dimensional code, two-dimensional code analysis system, and two-dimensional code creation system
WO2007108100A1 (en) Video image information processing device, judging method, and computer program
JP6828421B2 (en) Desktop camera-calculation execution method, program and calculation processing system for visualizing related documents and people when viewing documents on a projector system.
JP2006184415A (en) Image processor, image processing program, and image processing method
CN111429549B (en) Route image generation method, device and storage medium
JP2014219822A (en) Content display device, content display method, program, and content display system
JP4550460B2 (en) Content expression control device and content expression control program
JP5648410B2 (en) Image processing apparatus, image processing method, and image processing program
JP2006331322A (en) Retrieval tag and information retrieval system using it
JP7478628B2 (en) Image processing device, control method, and control program
KR101625751B1 (en) AR marker having boundary code, and system, and method for providing augmented reality using the same
EP1557793B1 (en) Method and apparatus for registering, displaying and decoding of information for spatial registration

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130108

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130814

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130827

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131023

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131125

R150 Certificate of patent or registration of utility model

Ref document number: 5434671

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150