JP5435814B2 - Method for specifying an area including a code area, program for specifying an area including a code area, and apparatus for specifying an area including a code area - Google Patents

Method for specifying an area including a code area, program for specifying an area including a code area, and apparatus for specifying an area including a code area Download PDF

Info

Publication number
JP5435814B2
JP5435814B2 JP2011023593A JP2011023593A JP5435814B2 JP 5435814 B2 JP5435814 B2 JP 5435814B2 JP 2011023593 A JP2011023593 A JP 2011023593A JP 2011023593 A JP2011023593 A JP 2011023593A JP 5435814 B2 JP5435814 B2 JP 5435814B2
Authority
JP
Japan
Prior art keywords
code
region
area
search step
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2011023593A
Other languages
Japanese (ja)
Other versions
JP2012164102A (en
Inventor
久美子 菅野
Original Assignee
株式会社デザイン百貨店
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 株式会社デザイン百貨店 filed Critical 株式会社デザイン百貨店
Priority to JP2011023593A priority Critical patent/JP5435814B2/en
Publication of JP2012164102A publication Critical patent/JP2012164102A/en
Application granted granted Critical
Publication of JP5435814B2 publication Critical patent/JP5435814B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、二次元画像コードなどを追尾するためのコード領域を含む領域を特定する方法等に関する。   The present invention relates to a method for specifying a region including a code region for tracking a two-dimensional image code or the like.

特許文献1のように、二次元画像コードなどの対象物を特定し、特定した情報に基づいて、合成画像を表示する装置が提案されている。   As in Patent Document 1, an apparatus for specifying an object such as a two-dimensional image code and displaying a composite image based on the specified information has been proposed.

特開2000−82107号公報JP 2000-82107 A

しかし、対象物を特定する際に、対象物の内容(コード内容など)を識別するシステムを使用すると、処理速度が遅くなる。   However, if a system for identifying the content of the object (code content or the like) is used when specifying the object, the processing speed is slowed down.

したがって本発明の目的は、コード内容を識別せずに、コード領域を含む領域を特定する方法などを提供することである。   Accordingly, an object of the present invention is to provide a method for specifying an area including a code area without identifying code contents.

本発明に係るコード領域を含む領域を特定する方法は、明度が高い色と明度が高い色に比べて明度が低い色の2色でデータセルが表現されたコードを有するコード領域を含む撮影対象物を撮像する撮像工程と、撮像工程で得られた画像上で、コード領域の周囲に設けられ明度が低い色に比べて明度が高い色で構成された高明度領域の外形を特定する第1探索工程と、コード領域の外形を特定する第2探索工程と、第1探索工程で特定された高明度領域の外形に関する情報と、第2探索工程で特定されたコード領域の外形に関する情報のいずれかに基づいて、コード領域と高明度領域を含む領域またはコード領域を特定する特定工程とを備える。   A method for specifying an area including a code area according to the present invention includes a code area including a code area having a code in which a data cell is represented by two colors, a color having a high brightness and a color having a low brightness compared to a color having a high brightness. An imaging process for imaging an object, and a first shape for identifying an outline of a high brightness area that is formed around a code area and has a higher brightness than a color with a lower brightness on an image obtained in the imaging process Any of the search process, the second search process for specifying the outer shape of the code area, the information on the outer shape of the high brightness area specified in the first search process, and the information on the outer shape of the code area specified in the second search process And a specifying step for specifying a code region and a region including a high brightness region or a code region.

コード領域の外側の四角形の外形を探索する処理や、特定工程におけるコード領域と高明度領域を含む領域またはコード領域を特定する処理は、コード領域のコード内容まで識別する処理を必要としないため、かかる識別処理を必要とする場合に比べて、コード領域(またはコード領域と高明度領域を含む領域)を特定する処理を速く出来るメリットがある。   The process of searching for the outer shape of the rectangle outside the code area and the process of specifying the area or code area including the code area and the high brightness area in the specific process do not require the process of identifying the code contents of the code area. There is an advantage that the process of specifying the code area (or the area including the code area and the high brightness area) can be performed faster than the case where such an identification process is required.

また、第1探索工程と第2探索工程を行うため、高明度領域の周囲に低明度領域が設けられている場合も、設けられていない場合も、コード領域の外側の四角形の外形を特定し、コード領域(またはコード領域と高明度領域を含む領域)を特定することが可能になる。   Further, in order to perform the first search process and the second search process, the outer shape of the rectangle outside the code area is specified whether or not the low lightness area is provided around the high lightness area. The code area (or the area including the code area and the high brightness area) can be specified.

好ましくは、第1探索工程は、高明度領域の周りに設けられ、高明度領域を構成する色に比べて明度が低い色で構成される低明度領域と高明度領域の境界に形成される明度が高い色の四角形の外形を探索し、第2探索工程は、コード領域と高明度領域の境界に形成される明度が低い色の四角形の外形を探索する。   Preferably, the first search step is provided around the high lightness region, and the lightness formed at the boundary between the low lightness region and the high lightness region configured by a color having a lightness lower than that of the color forming the high lightness region. In the second search step, the outer shape of the low-lightness color rectangle formed at the boundary between the code area and the high-lightness area is searched.

コード領域の周囲は、通常、白色などの明度が高い色の領域(高明度領域)が設けられる。但し、高明度領域の周囲に、黒色などの明度が低い領域(低明度領域)が設けられる場合もあるし、設けられない場合も考えられる。   Around the code area, a color area (high brightness area) having a high brightness such as white is usually provided. However, a region with low brightness (low brightness region) such as black may or may not be provided around the high brightness region.

高明度領域の周囲に低明度領域が設けられている場合には、高明度領域と低明度領域との境界が明確になっているので、第1探索工程で、コード領域の外側の四角形領域(高明度領域と低明度領域の境界)を特定することが可能になる。ただし、総ての高明度領域の周囲に低明度領域が設けられているとは限らないし、高明度領域と低明度領域の境界が矩形であるとも限らない。   When the low brightness area is provided around the high brightness area, since the boundary between the high brightness area and the low brightness area is clear, in the first search step, a rectangular area ( The boundary between the high brightness area and the low brightness area) can be specified. However, the low brightness area is not necessarily provided around all the high brightness areas, and the boundary between the high brightness area and the low brightness area is not necessarily rectangular.

コード領域と高明度領域との境界における低明度色で形成された四角形の直線は、低明度色だけで形成されたものだけでなく、低明度色の直線上に高明度色の点が混じっているものも含まれるため、高明度領域と低明度領域との境界における高明度色で形成された四角形の直線に比べると、探索精度が低くなる可能性があるが、コード領域の周囲は大抵の場合高明度領域が設けられているし、高明度領域の外形形状の制限が無いため、汎用性は高い。   The rectangular straight line formed with the low lightness color at the boundary between the code area and the high lightness area is not only formed with the low lightness color, but also the high lightness color dots are mixed on the low lightness color line. However, the search accuracy may be lower than that of a square line formed with high-lightness colors at the boundary between the high-lightness region and the low-lightness region. In this case, since a high brightness area is provided and there is no limitation on the outer shape of the high brightness area, versatility is high.

また、好ましくは、第2探索工程は、第1探索工程で高明度領域の外形を特定出来なかった場合に行われる。   Preferably, the second search step is performed when the outer shape of the high brightness area cannot be specified in the first search step.

また、好ましくは、少なくとも、撮像工程、第1探索工程と第2探索工程の少なくとも一方は、一定時間ごとに繰り返し行われる。   Preferably, at least one of the imaging process, the first search process, and the second search process is repeated at regular intervals.

撮像工程、第1探索工程と第2探索工程の少なくとも一方を、一定時間ごとに行うことにより、画像上におけるコード領域(またはコード領域と高明度領域を含む領域)の位置、大きさ、変形度合い、向きを特定し、コード領域(またはコード領域と高明度領域を含む領域)を追尾することが可能になる。   By performing at least one of the imaging process, the first search process, and the second search process at regular intervals, the position, size, and degree of deformation of the code area (or the area including the code area and the high brightness area) on the image The direction can be specified, and the code area (or the area including the code area and the high brightness area) can be tracked.

さらに好ましくは、特定工程で得られた情報に基づいて、撮像工程で得られた画像上に、立体画像を重畳する重畳工程を更に備える。   More preferably, it further includes a superimposing step of superimposing a stereoscopic image on the image obtained in the imaging step based on the information obtained in the specific step.

追尾出来れば、コード領域(またはコード領域と高明度領域を含む領域)の位置、大きさ、変形度合い、向きなどに関連して、撮像により得られ表示部に表示された撮影対象物の画像上に、画像処理部が、立体画像などを重畳することも可能になる(重畳工程)。特に、コード領域(またはコード領域と高明度領域を含む領域)の位置などに対応して、立体画像の位置、大きさ、変形度合い、向きなどを変化させて重畳することが可能になる。   If the tracking can be performed, the code area (or the area including the code area and the high brightness area) is related to the position, size, degree of deformation, orientation, etc. In addition, the image processing unit can superimpose a stereoscopic image or the like (superimposition step). In particular, it is possible to superimpose by changing the position, size, degree of deformation, orientation, etc. of the stereoscopic image in accordance with the position of the code area (or the area including the code area and the high brightness area).

また、好ましくは、撮像工程の前に、コード領域のコードを読み取りするコード読み取り工程を更に備え、特定工程におけるコード領域と高明度領域を含む領域またはコード領域の特定は、コード読み取り工程よりも解析処理の負荷が小さい。   Preferably, the method further includes a code reading step of reading a code in the code region before the imaging step, and the identification of the region including the code region and the high brightness region in the specifying step or the code region is analyzed more than the code reading step. The processing load is small.

また、好ましくは、コード領域と高明度領域を含む領域の特定は、撮像工程で得られた画像上におけるコード領域と高明度領域を含む領域の位置、大きさ、変形度合い、向きの少なくとも一つであり、コード領域の特定は、撮像工程で得られた画像上におけるコード領域の位置、大きさ、変形度合い、向きの少なくとも一つである。   Preferably, the area including the code area and the high brightness area is specified by at least one of the position, size, degree of deformation, and orientation of the area including the code area and the high brightness area on the image obtained in the imaging process. The code area is specified by at least one of the position, size, deformation degree, and orientation of the code area on the image obtained in the imaging process.

本発明に係るコード領域を含む領域を特定するプログラムは、明度が高い色と明度が高い色に比べて明度が低い色の2色でデータセルが表現されたコードを有するコード領域を含む撮影対象物を撮像する撮像工程と、撮像工程で得られた画像上で、コード領域の周囲に設けられ明度が低い色に比べて明度が高い色で構成された高明度領域の外形を特定する第1探索工程と、コード領域の外形を特定する第2探索工程と、第1探索工程で特定された高明度領域の外形に関する情報と、第2探索工程で特定されたコード領域の外形に関する情報のいずれかに基づいて、コード領域と高明度領域を含む領域またはコード領域を特定する特定工程とを実行する。   A program for specifying an area including a code area according to the present invention includes a code area including a code area having a code in which a data cell is represented by two colors, a color having a high brightness and a color having a low brightness compared to a color having a high brightness. An imaging process for imaging an object, and a first shape for identifying an outline of a high brightness area that is formed around a code area and has a higher brightness than a color with a lower brightness on an image obtained in the imaging process Any of the search process, the second search process for specifying the outer shape of the code area, the information on the outer shape of the high brightness area specified in the first search process, and the information on the outer shape of the code area specified in the second search process Based on the above, a specifying step for specifying the code region and the region including the high brightness region or the code region is executed.

本発明に係るコード領域を含む領域を特定する装置は、明度が高い色と明度が高い色に比べて明度が低い色の2色でデータセルが表現されたコードを有するコード領域を含む撮影対象物を撮像する撮像部と、撮像部で得られた画像上で、コード領域の周囲に設けられ明度が低い色に比べて明度が高い色で構成された高明度領域の外形を特定する第1探索工程と、コード領域の外形を特定する第2探索工程と、第1探索工程で特定された高明度領域の外形に関する情報と、第2探索工程で特定されたコード領域の外形に関する情報のいずれかに基づいて、コード領域と高明度領域を含む領域またはコード領域を特定する特定工程とを実行する画像処理部とを備える。   An apparatus for specifying an area including a code area according to the present invention includes a code area including a code area having a code in which a data cell is expressed by two colors, a color having a high brightness and a color having a low brightness compared to a color having a high brightness. An image capturing unit that captures an object, and a first shape that specifies an outer shape of a high brightness area that is formed around a code area and has a higher brightness than a color with a lower brightness on an image obtained by the imaging section. Any of the search process, the second search process for specifying the outer shape of the code area, the information on the outer shape of the high brightness area specified in the first search process, and the information on the outer shape of the code area specified in the second search process And an image processing unit that executes a code area and an area including a high brightness area or a specifying step of specifying a code area.

本発明に係るコード領域を含む領域を特定する方法は、輝度が高い色と輝度が高い色に比べて輝度が低い色の2色でデータセルが表現されたコードを有するコード領域を含む撮影対象物を撮像する撮像工程と、撮像工程で得られた画像上で、コード領域の周囲に設けられ輝度が低い色に比べて輝度が高い色で構成された高輝度領域の外形を特定する第1探索工程と、コード領域の外形を特定する第2探索工程と、第1探索工程で特定された高輝度領域の外形に関する情報と、第2探索工程で特定されたコード領域の外形に関する情報のいずれかに基づいて、コード領域と高明度領域を含む領域またはコード領域を特定する特定工程とを備える。   A method for specifying an area including a code area according to the present invention includes a code area including a code area having a code in which a data cell is expressed by two colors, a color having a high luminance and a color having a low luminance compared to a color having a high luminance. An imaging process for imaging an object, and a first shape for identifying an outer shape of a high-luminance area that is formed around a code area and has a higher luminance than a low-luminance color on the image obtained in the imaging process Any of the search step, the second search step for specifying the outer shape of the code region, the information on the outer shape of the high-luminance region specified in the first search step, and the information on the outer shape of the code region specified in the second search step And a specifying step for specifying a code region and a region including a high brightness region or a code region.

本発明に係るコード領域を含む領域を特定するプログラムは、輝度が高い色と輝度が高い色に比べて輝度が低い色の2色でデータセルが表現されたコードを有するコード領域を含む撮影対象物を撮像する撮像工程と、撮像工程で得られた画像上で、コード領域の周囲に設けられ輝度が低い色に比べて輝度が高い色で構成された高輝度領域の外形を特定する第1探索工程と、コード領域の外形を特定する第2探索工程と、第1探索工程で特定された高輝度領域の外形に関する情報と、第2探索工程で特定されたコード領域の外形に関する情報のいずれかに基づいて、コード領域と高明度領域を含む領域またはコード領域を特定する特定工程とを実行する。   A program for specifying an area including a code area according to the present invention includes a code area including a code area having a code in which a data cell is expressed by two colors, a color having a higher luminance and a color having a lower luminance than a color having a higher luminance. An imaging process for imaging an object, and a first shape for identifying an outer shape of a high-luminance area that is formed around a code area and has a higher luminance than a low-luminance color on the image obtained in the imaging process Any of the search step, the second search step for specifying the outer shape of the code region, the information on the outer shape of the high-luminance region specified in the first search step, and the information on the outer shape of the code region specified in the second search step Based on the above, a specifying step for specifying the code region and the region including the high brightness region or the code region is executed.

本発明に係るコード領域を含む領域を特定する装置は、輝度が高い色と輝度が高い色に比べて輝度が低い色の2色でデータセルが表現されたコードを有するコード領域を含む撮影対象物を撮像する撮像部と、撮像部で得られた画像上で、コード領域の周囲に設けられ輝度が低い色に比べて輝度が高い色で構成された高輝度領域の外形を特定する第1探索工程と、コード領域の外形を特定する第2探索工程と、第1探索工程で特定された高輝度領域の外形に関する情報と、第2探索工程で特定されたコード領域の外形に関する情報のいずれかに基づいて、コード領域と高明度領域を含む領域またはコード領域を特定する特定工程とを実行する画像処理部とを備える。   An apparatus for identifying an area including a code area according to the present invention includes a code area including a code area having a code in which a data cell is expressed by two colors, a color having a higher luminance and a color having a lower luminance than a color having a higher luminance. An imaging unit that captures an object, and a first shape that specifies an outer shape of a high-luminance region that is formed around a code region and has a higher luminance than a low-luminance color on an image obtained by the imaging unit. Any of the search step, the second search step for specifying the outer shape of the code region, the information on the outer shape of the high-luminance region specified in the first search step, and the information on the outer shape of the code region specified in the second search step And an image processing unit that executes a code area and an area including a high brightness area or a specifying step of specifying a code area.

以上のように本発明によれば、コード内容を識別せずに、コード領域を特定するコード領域特定方法などを提供することができる。   As described above, according to the present invention, it is possible to provide a code area specifying method for specifying a code area without identifying code contents.

コード領域の周囲に高明度領域が設けられ、高明度領域の周囲に低明度領域が設けられた撮影対象物の構成図である。It is a block diagram of a photographic subject in which a high brightness area is provided around a code area and a low brightness area is provided around a high brightness area. コード領域の周囲に高明度領域が設けられ、高明度領域の周囲に低明度領域が設けられない撮影対象物の構成図である。FIG. 4 is a configuration diagram of a photographic subject in which a high brightness area is provided around a code area and a low brightness area is not provided around a high brightness area. 撮像装置の構成図である。It is a block diagram of an imaging device. コード領域等を追尾する動作手順を示すフローチャートである。It is a flowchart which shows the operation | movement procedure which tracks a code area | region etc.

以下、本実施形態におけるコード追尾システムの構成について、図を用いて説明する。本実施形態に係るコード追尾システムは、撮影対象物10、撮像装置20を備える(図1〜図3参照)。   Hereinafter, the configuration of the code tracking system according to the present embodiment will be described with reference to the drawings. The code tracking system according to the present embodiment includes an imaging object 10 and an imaging device 20 (see FIGS. 1 to 3).

撮影対象物10は、QRコード(登録商標)のように、明度が高い色(例えば白色)と明度が低い色(例えば黒色)の2色でデータセルが表現された二次元画像コードを示す領域(コード領域10a)を含む印刷物であるが、二次元画像コードを示す領域(コード領域10a)を含む画像がモニター上に表示された物であってもよい。なお、図1、図2に示される二次元画像コードは、二次元画像コードの具体的な図を表すために使用するが、コード内容は本実施形態と関係するものではない。   An imaging object 10 is an area indicating a two-dimensional image code in which data cells are represented by two colors of a color with high lightness (for example, white) and a color with low lightness (for example, black), like a QR code (registered trademark). Although it is a printed matter including (code region 10a), it may be a printed matter in which an image including a region (code region 10a) indicating a two-dimensional image code is displayed on a monitor. The two-dimensional image code shown in FIGS. 1 and 2 is used to represent a specific diagram of the two-dimensional image code, but the code content is not related to the present embodiment.

コード領域10aの周囲には、コード領域10aのデータセルを構成する2色のうち明度が低い方の色よりも明度が高い色(例えば白色)で構成され枠形状を有する高明度領域10bが設けられ、高明度領域10bの周囲には、高明度領域10bを構成する色よりも明度が低い色(例えば黒色)で構成された低明度領域10cが設けられる(図1参照)。   Around the code area 10a, there is provided a high brightness area 10b having a frame shape, which is composed of a color (for example, white) having a higher brightness than the color having the lower brightness of the two colors constituting the data cell of the code area 10a. In addition, around the high brightness area 10b, a low brightness area 10c composed of a color (for example, black) whose brightness is lower than the color constituting the high brightness area 10b is provided (see FIG. 1).

低明度領域10cの外形は特に限定される形状はなく、矩形形状や円形形状など他の形状であってもよい。   The outer shape of the low brightness region 10c is not particularly limited, and may be another shape such as a rectangular shape or a circular shape.

高明度領域10bの色と、コード領域10aのデータセルを構成する2色のうち明度が高い色とは、同じ色(例えば白色)であってもよいし、異なる色であってもよい。   The color of the high brightness area 10b and the color having high brightness among the two colors constituting the data cell of the code area 10a may be the same color (for example, white) or different colors.

低明度領域10cの色と、コード領域10aのデータセルを構成する2色のうち明度が低い色とは、同じ色(例えば黒色)であってもよいし、異なる色であってもよい。   The color of the low lightness area 10c and the color having low lightness among the two colors constituting the data cell of the code area 10a may be the same color (for example, black) or different colors.

コード領域10aを含む撮影対象物10は、高明度領域10bと低明度領域10cとの境界が明確になっている物(図1参照)もあれば、高明度領域10bが枠形状でない場合や、低明度領域10cが無い場合など、高明度領域10bと低明度領域10cとの境界が明確になっていない物(図2参照)も考えられる。   The imaging object 10 including the code area 10a may be an object (see FIG. 1) where the boundary between the high brightness area 10b and the low brightness area 10c is clear, or the high brightness area 10b may not have a frame shape. A case where the boundary between the high brightness area 10b and the low brightness area 10c is not clear (see FIG. 2) is also conceivable, such as when there is no low brightness area 10c.

撮像装置(コード領域特定装置)20は、例えば、カメラ付きの携帯電話などである(図3参照)。操作部21は、テンキーなどの入力手段であるが、タッチパネルのように、操作部21と表示部24が一体となった形態であってもよい。記録部22には、コード領域10aの位置などに対応して画面上に重畳する立体画像が記録されたり、コード領域10a等を追尾するコード領域を含む領域を特定するプログラムがインストールされたりする。   The imaging device (code area specifying device) 20 is, for example, a mobile phone with a camera (see FIG. 3). The operation unit 21 is an input unit such as a numeric keypad. However, the operation unit 21 and the display unit 24 may be integrated like a touch panel. In the recording unit 22, a stereoscopic image to be superimposed on the screen corresponding to the position of the code area 10a or the like is recorded, or a program for specifying an area including a code area that tracks the code area 10a or the like is installed.

画像処理部23は、DSPなど、演算処理を行う装置で、撮像部25で得られた画像信号の画像処理や、撮像部25で得られた画像信号に基づく画像上のコード領域10a(またはコード領域10aと高明度領域10bを含む領域)の位置などの特定(第1探索工程、第2探索工程、特定工程)を行う。   The image processing unit 23 is a device that performs arithmetic processing, such as a DSP, and performs image processing of an image signal obtained by the imaging unit 25 or a code area 10a (or code) on an image based on the image signal obtained by the imaging unit 25. The position (area including the area 10a and the high brightness area 10b) is specified (first search step, second search step, specification step).

表示部24は、撮像部25で得られた画像信号に基づく画像を表示し、画像処理部23が画像上のコード領域10a(またはコード領域10aと高明度領域10bを含む領域)を特定した場合には、かかる画像の上に立体画像を重畳して表示する。撮像部25は、撮影対象物10を撮像するカメラである。制御部29は、CPUなど、各部の制御を行う。   The display unit 24 displays an image based on the image signal obtained by the imaging unit 25, and the image processing unit 23 specifies the code area 10a (or the area including the code area 10a and the high brightness area 10b) on the image. In this case, a stereoscopic image is superimposed on the image and displayed. The imaging unit 25 is a camera that captures an image of the subject 10. The control unit 29 controls each unit such as a CPU.

撮像装置20は、撮影対象物10を撮像し、撮像により得られた画像上のコード領域10aまたはコード領域10aと高明度領域10bを含む領域を特定(コード領域10aまたはコード領域10aと高明度領域10bを含む領域の位置、大きさ、変形度合い、向きを特定)する動作を一定時間(例えば、1/30秒)ごとに行うことにより、コード領域10aまたはコード領域10aと高明度領域10bを含む領域を追尾する。   The imaging device 20 captures an image of the object 10 and specifies a code area 10a or an area including the code area 10a and the high brightness area 10b on the image obtained by the imaging (the code area 10a or the code area 10a and the high brightness area). The code area 10a or the code area 10a and the high brightness area 10b are included by performing an operation of specifying the position, size, deformation degree, and orientation of the area including 10b every predetermined time (for example, 1/30 second). Track an area.

コード領域10aまたはコード領域10aと高明度領域10bを含む領域を追尾する動作手順について、図4のフローチャートを用いて、説明する。使用者が、撮像装置20の操作部21を操作し、コード領域10a等を追尾する動作を開始させることにより、コード領域を含む領域を特定するプログラムが起動し、制御部29が撮像部25など各部を制御し、ステップS11〜S15の動作が、一定時間(例えば1/30秒)ごとに行われる(撮像工程などが実行される)。   The operation procedure for tracking the code area 10a or the area including the code area 10a and the high brightness area 10b will be described with reference to the flowchart of FIG. When the user operates the operation unit 21 of the imaging apparatus 20 and starts an operation of tracking the code area 10a and the like, a program for specifying an area including the code area is activated, and the control unit 29 performs the imaging unit 25 and the like. Each part is controlled, and the operations in steps S11 to S15 are performed at regular time intervals (for example, 1/30 seconds) (an imaging step or the like is performed).

ステップS11で、撮像部25は、撮影対象部10を撮像する(撮像工程)。撮像工程で得られた撮影対象物10の画像は、画像処理部23で画像処理が施され、表示部24に表示される(ライブビュー表示)。   In step S11, the imaging unit 25 images the imaging target unit 10 (imaging process). The image of the subject 10 obtained in the imaging step is subjected to image processing by the image processing unit 23 and displayed on the display unit 24 (live view display).

ステップ12で、画像処理部23は、前回のステップS15の第2探索工程でコード領域10aの外形を特定出来たか否かを判断する。前回のステップS15の第2探索工程でコード領域10aの外形を特定出来た場合には、コード領域10aを追尾するため、ステップS15に進められる。前回のステップS15の第2探索工程でコード領域10aの外形を特定出来なかった場合には、新しく高明度領域10bの外形を探索するため、ステップS13に進められる。前回のステップS13の第1探索工程で、高明度色で構成された略正方形形状の枠(高明度領域10bの外形)を特定出来た場合には、コード領域10aと高明度領域10bを含む領域を追尾するため、ステップS13に進められる。   In step 12, the image processing unit 23 determines whether or not the outer shape of the code area 10a has been specified in the second search step of the previous step S15. If the outer shape of the code area 10a can be specified in the second search step of the previous step S15, the process proceeds to step S15 to track the code area 10a. If the outer shape of the code area 10a cannot be specified in the second search step of the previous step S15, the process proceeds to step S13 in order to newly search the outer shape of the high brightness area 10b. When the first search step of the previous step S13 can identify a substantially square frame (outer shape of the high brightness area 10b) configured with high brightness colors, an area including the code area 10a and the high brightness area 10b The process proceeds to step S13.

ステップS13で、画像処理部23は、撮像工程で得られた撮影対象物10の画像上に、高明度色で構成された直線で略正方形(又は略矩形)が形成されている領域があるか否かを判断する。すなわち、高明度色で構成された略正方形形状の枠(高明度領域10bの外形)を探索する(第1探索工程)。   In step S <b> 13, the image processing unit 23 determines whether there is a region in which a substantially square (or a substantially rectangular) is formed by a straight line composed of high brightness colors on the image of the photographing object 10 obtained in the imaging process. Judge whether or not. That is, a substantially square frame (outer shape of the high brightness area 10b) configured with high brightness colors is searched (first search step).

具体的には、第1探索工程では、高明度領域10bと低明度領域10cとの境界に形成される高明度色で形成された直線を探索する。なお、図2のように、高明度領域10bが枠形状でない場合や、低明度領域10cが無い場合には、高明度色で形成された直線を見つけることが出来ないため、高明度色で構成された略正方形形状の枠(高明度領域10bの外形)を特定することは出来ない。   Specifically, in the first search step, a straight line formed with a high lightness color formed at the boundary between the high lightness region 10b and the low lightness region 10c is searched. As shown in FIG. 2, when the high lightness region 10b is not a frame shape or when there is no low lightness region 10c, a straight line formed with a high lightness color cannot be found. The substantially square-shaped frame (the outer shape of the high brightness region 10b) cannot be specified.

第1探索工程で、高明度色で構成された直線で略正方形(又は略矩形)が形成されている領域を特定出来た場合、ステップS14で、画像処理部23は、高明度色で構成された直線で略正方形(又は略矩形)が形成されている領域の内側領域(コード領域10aと高明度領域10bを含む領域)を特定する(特定工程)。   In the first search step, when it is possible to identify an area in which a substantially square (or substantially rectangular) is formed by a straight line composed of high lightness colors, the image processing unit 23 is composed of high lightness colors in step S14. An inner region (a region including the code region 10a and the high brightness region 10b) of the region in which a substantially square (or a substantially rectangular) is formed with a straight line is identified (identification step).

ステップS13の後に行われるステップS14の特定工程では、表示部24に表示された画像上におけるコード領域10aと高明度領域10bを含む領域の位置、大きさ、変形度合い、向きを特定し、撮像装置20と実際の撮影対象物10のコード領域10aと高明度領域10bを含む領域との位置関係を把握する。コード領域10aと高明度領域10bを含む領域の変形度合いは、撮像装置20と実際の撮影対象物10との位置関係に起因するもので、コード領域10aと高明度領域10bを含む領域の本来の形状(正方形若しくは矩形)に比べた変形度合いを示す。コード領域10aと高明度領域10bを含む領域の向きは、コード領域10aと高明度領域10bを含む領域の画像パターンにより、特定される。   In the specifying step of step S14 performed after step S13, the position, size, deformation degree, and orientation of the area including the code area 10a and the high brightness area 10b on the image displayed on the display unit 24 are specified, and the imaging apparatus 20 and the positional relationship between the code area 10a of the actual object 10 and the area including the high brightness area 10b. The degree of deformation of the area including the code area 10a and the high lightness area 10b is caused by the positional relationship between the imaging device 20 and the actual photographing object 10, and is the original degree of the area including the code area 10a and the high lightness area 10b. The degree of deformation compared to the shape (square or rectangular) is shown. The orientation of the area including the code area 10a and the high brightness area 10b is specified by the image pattern of the area including the code area 10a and the high brightness area 10b.

なお、撮像装置20と実際の撮影対象物10上のコード領域10aと高明度領域10bを含む領域との相対的な位置関係まで特定する必要はなく、表示部24上に表示された画像上におけるコード領域10aと高明度領域10bを含む領域の位置などを特定するだけで良い。   Note that it is not necessary to specify the relative positional relationship between the imaging device 20 and the area including the code area 10a and the high brightness area 10b on the actual object to be photographed 10, and on the image displayed on the display unit 24. It is only necessary to specify the position of the area including the code area 10a and the high brightness area 10b.

画像パターンは、コード領域10aに記載されたコード内容を読み取る必要はなく、コード領域10aと高明度領域10bを含む領域の向きを特定するために、明度が高い色と明度が低い色の配列パターンを大まかに特定する。例えば、コード領域10aと高明度領域10bを含む領域を16分割(他の分割数でもよい)し、16分割された領域ごとの明度を特定する。また、他の画像パターンのマッチング処理で、画像パターンを特定する形態であってもよい。このため、バーコードリーダーのように、コード領域10aに記載されたコード内容を読み取りする処理(後述するコード読み取り工程)に比べて早く処理を行うことが出来る。   The image pattern does not need to read the code contents described in the code area 10a, and in order to specify the direction of the area including the code area 10a and the high lightness area 10b, an arrangement pattern of colors having high lightness and colors having low lightness Roughly identify For example, the area including the code area 10a and the high brightness area 10b is divided into 16 (other division numbers may be used), and the brightness for each of the 16 divided areas is specified. Alternatively, the image pattern may be specified by other image pattern matching processing. For this reason, the process can be performed faster than the process of reading the code contents described in the code area 10a (code reading process described later) like a barcode reader.

第1探索工程で、高明度色で構成された直線で略正方形(又は略矩形)が形成されている領域を特定できなかった場合は、ステップS15に進められる。ステップS15で、画像処理部23は、撮像工程で得られた撮影対象物10の画像上に、低明度色で構成された直線で略正方形(又は略矩形)が形成されている領域があるか否かを判断する。すなわち、明度が高い色と明度が低い色の2色でデータセルが表現された二次元画像コード(コード領域10a)の外形を探索する(第2探索工程)。   In the first search step, when it is not possible to specify an area in which a substantially square (or substantially rectangular) is formed by a straight line composed of high brightness colors, the process proceeds to step S15. In step S <b> 15, the image processing unit 23 has a region in which a substantially square (or a substantially rectangular) is formed with a straight line composed of low-lightness colors on the image of the photographing object 10 obtained in the imaging process. Judge whether or not. That is, the outer shape of the two-dimensional image code (code region 10a) in which the data cell is expressed by two colors of a high lightness color and a low lightness color is searched (second search step).

具体的には、第2探索工程では、コード領域10aと高明度領域10bとの境界に形成される低明度色で形成された直線を探索する。   Specifically, in the second search step, a straight line formed with a low brightness color formed at the boundary between the code area 10a and the high brightness area 10b is searched.

コード領域10aは、明度が高い色と明度が低い色の配列で構成されるため、コード領域10aと高明度領域10bとの境界は、低明度色だけで構成されるとは限らず、低明度色と高明度色が入り交じっており、低明度色だけで形成された直線にならないことが考えられる。このため、かかる低明度色の直線の探索では、低明度色だけで形成された直線だけでなく、低明度色の直線上に高明度色の点が混じっているもの(低明度色の点が直線上に並んでいるもの)も含めて低明度色で形成された直線として探索する。   Since the code area 10a is composed of an array of colors having high brightness and colors having low brightness, the boundary between the code area 10a and the high brightness area 10b is not necessarily composed of only low brightness colors, and low brightness. It is conceivable that the color and the high brightness color are mixed, and the straight line formed only by the low brightness color is not formed. For this reason, in the search for the straight line of the low lightness color, not only the straight line formed only by the low lightness color but also the high lightness color point mixed on the straight line of the low lightness color (the point of the low lightness color is Searches are made as straight lines formed with low lightness colors, including those that are arranged on a straight line).

第2探索工程で、低明度色で構成された直線で略正方形(又は略矩形)が形成されている領域を特定出来た場合、ステップS14で、画像処理部23は、低明度色で構成された直線で略正方形(又は略矩形)が形成されている領域の内側領域(コード領域10a)を特定する(特定工程)。   In the second search step, when it is possible to identify an area in which a substantially square (or substantially rectangular) is formed by a straight line composed of low lightness colors, the image processing unit 23 is composed of low lightness colors in step S14. An inner region (code region 10a) of a region where a substantially square (or a substantially rectangular) is formed by a straight line is identified (identifying step).

ステップS15の後に行われるステップS14の特定工程では、表示部24に表示された画像上におけるコード領域10aの位置、大きさ、変形度合い、向きを特定し、撮像装置20と実際の撮影対象物10のコード領域10aとの位置関係を把握する。コード領域10aの変形度合いは、撮像装置20と実際の撮影対象物10との位置関係に起因するもので、画像上におけるコード領域10aの本来の形状(正方形若しくは矩形)に比べた変形度合いを示す。コード領域10aの向きは、コード領域10aの画像パターンにより、特定される。   In the specifying step of step S14 performed after step S15, the position, size, deformation degree, and orientation of the code area 10a on the image displayed on the display unit 24 are specified, and the imaging device 20 and the actual shooting target 10 are identified. The positional relationship with the code area 10a is grasped. The degree of deformation of the code area 10a is caused by the positional relationship between the imaging device 20 and the actual subject 10 and indicates the degree of deformation compared to the original shape (square or rectangular) of the code area 10a on the image. . The direction of the code area 10a is specified by the image pattern of the code area 10a.

なお、撮像装置20と実際の撮影対象物10上のコード領域10aとの相対的な位置関係まで特定する必要はなく、表示部24上に表示された画像上におけるコード領域10aの位置などを特定するだけで良い。   Note that it is not necessary to specify the relative positional relationship between the imaging device 20 and the code area 10a on the actual photographing object 10, and the position of the code area 10a on the image displayed on the display unit 24 is specified. Just do it.

画像パターンは、コード領域10aに記載されたコード内容を読み取る必要はなく、コード領域10aの向きを特定するために、明度が高い色と明度が低い色の配列パターンを大まかに特定する。例えば、コード領域10aを16分割(他の分割数でもよい)し、16分割された領域ごとの明度を特定する。また、他の画像パターンのマッチング処理で、画像パターンを特定する形態であってもよい。   The image pattern does not need to read the code contents described in the code area 10a, and roughly specifies an arrangement pattern of a color with high brightness and a color with low brightness in order to specify the direction of the code area 10a. For example, the code area 10a is divided into 16 (other division numbers may be used), and the brightness for each of the 16 divided areas is specified. Alternatively, the image pattern may be specified by other image pattern matching processing.

第2探索工程で、低明度色で構成された直線で略正方形(又は略矩形)が形成されている領域を特定出来なかった場合、画像処理部23は、手順を終了し、一定時間経過後に、ステップS11に戻り、撮像工程等を行う。すなわち、第1探索工程と第2探索工程のいずれかで、コード領域10aの外側の四角形領域を探索し、いずれかの探索工程でかかる四角形領域が見つかった場合には、その内側にコード領域10aがあると判断して、特定工程を行い、かかる内側領域の画像パターン等を特定する。   In the second search step, when it is not possible to identify an area in which a substantially square (or a substantially rectangular) is formed by a straight line composed of low brightness colors, the image processing unit 23 ends the procedure, and after a certain time has elapsed. Then, the process returns to step S11 to perform an imaging process and the like. That is, in one of the first search step and the second search step, a quadrangular area outside the code area 10a is searched, and when such a quadrangular area is found in any search process, the code area 10a is located inside the quadrangular area. If it is determined that there is an image, a specifying step is performed to specify an image pattern or the like of the inner region.

撮像工程、第1探索工程と第2探索工程の少なくとも一方を、一定時間ごとに行うことにより、画像上におけるコード領域10a(またはコード領域10aと高明度領域10bを含む領域)の位置、大きさ、変形度合い、向きを特定し、コード領域10a(またはコード領域10aと高明度領域10bを含む領域)を追尾することが可能になる。第1探索工程で、コード領域10aと高明度領域10bを含む領域が特定出来た場合には、引き続き高明度領域10bの外形を探索し、コード領域10aと高明度領域10bを含む領域を追尾する。第2探索工程で、コード領域10aを特定出来た場合には、引き続きコード領域10aの外形を探索し、コード領域10aを追尾する。   By performing at least one of the imaging process, the first search process, and the second search process at regular intervals, the position and size of the code area 10a (or the area including the code area 10a and the high brightness area 10b) on the image. It is possible to specify the degree of deformation and the direction and track the code area 10a (or the area including the code area 10a and the high brightness area 10b). In the first search step, when the area including the code area 10a and the high brightness area 10b can be specified, the outline of the high brightness area 10b is continuously searched, and the area including the code area 10a and the high brightness area 10b is tracked. . When the code area 10a can be specified in the second search step, the outer shape of the code area 10a is continuously searched and the code area 10a is tracked.

追尾出来れば、コード領域10a(またはコード領域10aと高明度領域10bを含む領域)の位置、大きさ、変形度合い、向きなどに関連して、撮像により得られ表示部24に表示された撮影対象物10の画像上に、画像処理部23が、立体画像などを重畳することも可能になる(重畳工程)。特に、コード領域10a(またはコード領域10aと高明度領域10bを含む領域)の位置などに対応して、立体画像の位置、大きさ、変形度合い、向きなどを変化させて重畳することが可能になる。   If tracking can be performed, the imaging target obtained by imaging and displayed on the display unit 24 in relation to the position, size, degree of deformation, orientation, and the like of the code area 10a (or the area including the code area 10a and the high brightness area 10b) It is also possible for the image processing unit 23 to superimpose a stereoscopic image or the like on the image of the object 10 (superimposition step). In particular, it is possible to superimpose by changing the position, size, degree of deformation, orientation, etc. of the stereoscopic image corresponding to the position of the code area 10a (or the area including the code area 10a and the high brightness area 10b). Become.

立体画像は、撮像装置20の記録部22に予め記録しておいたものを使用する形態であってもよいし、第1探索工程や第2探索工程の為の撮像工程を行う前に、撮像部25を使ってコード領域10aに含まれるURL情報を読み取り(コード読み取り工程)、かかるURL情報から立体画像に関連したコンテンツをダウンロードし記録部22に記録したものを使用する形態であってもよい。なお、特定工程では、コードの内容まで読み取る必要はなく、コード領域10a(またはコード領域10aと高明度領域10bを含む領域)の向きなどが特定出来るだけで良いため。このため、コード領域10a(またはコード領域10aと高明度領域10bを含む領域)の画像パターンの特定は、コード読み取り工程よりも画像解析処理の負荷が小さいメリットがある。   The three-dimensional image may be in a form that uses what is recorded in advance in the recording unit 22 of the imaging device 20, or is captured before performing the imaging process for the first search process or the second search process. The URL information included in the code area 10a may be read using the unit 25 (code reading process), and the content related to the stereoscopic image downloaded from the URL information and recorded in the recording unit 22 may be used. . In the specifying step, it is not necessary to read the contents of the code, and it is only necessary to specify the direction of the code area 10a (or the area including the code area 10a and the high brightness area 10b). For this reason, specifying the image pattern of the code area 10a (or the area including the code area 10a and the high brightness area 10b) has an advantage that the load of the image analysis processing is smaller than that of the code reading process.

コード領域10aの外側の四角形の外形(第1探索工程における高明度領域10bと低明度領域10cの境界にある高明度色で構成された四角形の外形、若しくは、第2探索工程におけるコード領域10aと高明度領域10bの境界にある低明度色で構成された四角形の外形)を探索する処理や、特定工程におけるコード領域10aと高明度領域10bを含む領域またはコード領域10aを特定する処理は、コード領域10aのコード内容まで識別する処理を必要としないため、かかる識別処理を必要とする場合に比べて、コード領域10a(またはコード領域10aと高明度領域10bを含む領域)を特定する処理を速く出来るメリットがある。   The outer shape of the rectangle outside the code region 10a (the outer shape of the rectangle formed by the high lightness color at the boundary between the high lightness region 10b and the low lightness region 10c in the first search step, or the code region 10a in the second search step) A process of searching for a rectangular outline formed by low-lightness colors at the boundary of the high-lightness area 10b) or a process of specifying the code area 10a and the high-lightness area 10b or the code area 10a in the specific process Since the process of identifying even the code contents of the area 10a is not required, the process of specifying the code area 10a (or the area including the code area 10a and the high brightness area 10b) is faster than the case where the identification process is required. There is a merit that can be done.

コード領域10aの周囲は、通常、白色などの明度が高い色の領域(高明度領域10b)が設けられる。但し、高明度領域10bの周囲に、図1のように黒色などの明度が低い領域(低明度領域10c)が設けられる場合もあるし、図2のように設けられない場合も考えられる。   Around the code area 10a, a color area (high brightness area 10b) having a high brightness such as white is usually provided. However, a region with low brightness such as black (low brightness region 10c) may be provided around the high brightness region 10b as shown in FIG. 1, or may not be provided as shown in FIG.

高明度領域10bの周囲に低明度領域10cが設けられている場合には、高明度領域10bと低明度領域10cとの境界が明確になっているので、第1探索工程で、コード領域10aの外側の四角形領域(高明度領域10bと低明度領域10cの境界)を特定することが可能になる。ただし、総ての高明度領域10bの周囲に低明度領域10cが設けられているとは限らないし、高明度領域10bと低明度領域10cの境界が矩形であるとも限らない。   When the low lightness region 10c is provided around the high lightness region 10b, the boundary between the high lightness region 10b and the low lightness region 10c is clear. Therefore, in the first search step, the code region 10a It becomes possible to specify the outer quadrangular area (the boundary between the high brightness area 10b and the low brightness area 10c). However, the low brightness area 10c is not necessarily provided around all the high brightness areas 10b, and the boundary between the high brightness area 10b and the low brightness area 10c is not necessarily rectangular.

高明度領域10bの周囲に低明度領域10cが設けられていない場合には、高明度領域10bと低明度領域10cとの境界が明確になっていないので、第1探索工程では、コード領域10aの外側の四角形領域(高明度領域10bと低明度領域10cの境界)を特定することは出来ない。   When the low lightness region 10c is not provided around the high lightness region 10b, the boundary between the high lightness region 10b and the low lightness region 10c is not clear. Therefore, in the first search step, the code region 10a The outer quadrangular area (the boundary between the high brightness area 10b and the low brightness area 10c) cannot be specified.

また、高明度領域10bが枠形状でない(外形が矩形でない)場合にも、第1探索工程では、コード領域10aの外側の四角形領域(高明度領域10bと低明度領域10cの境界)を特定することは出来ない。   Even when the high lightness region 10b is not frame-shaped (the outer shape is not rectangular), the first search step specifies a rectangular region outside the code region 10a (the boundary between the high lightness region 10b and the low lightness region 10c). I can't do that.

但し、いずれの場合も、第2探索工程で、コード領域10aの外側の四角形領域(コード領域10aと高明度領域10bの境界)を特定することは出来る。   However, in either case, the second search step can specify a rectangular area outside the code area 10a (the boundary between the code area 10a and the high brightness area 10b).

コード領域10aと高明度領域10bとの境界における低明度色で形成された四角形の直線は、低明度色だけで形成されたものだけでなく、低明度色の直線上に高明度色の点が混じっているものも含まれるため、高明度領域10bと低明度領域10cとの境界における高明度色で形成された四角形の直線に比べると、探索精度が低くなる可能性があるが、コード領域10aの周囲は大抵の場合高明度領域10bが設けられているし、高明度領域10bの外形形状の制限が無いため、汎用性は高い。   The square straight line formed with the low lightness color at the boundary between the code region 10a and the high lightness region 10b is not only formed with the low lightness color, but the point of the high lightness color on the straight line of the low lightness color. Since some of them are mixed, the search accuracy may be lower than that of a square straight line formed with a high lightness color at the boundary between the high lightness region 10b and the low lightness region 10c, but the code region 10a. In general, the high brightness region 10b is provided around and the outer shape of the high brightness region 10b is not limited, so that versatility is high.

このため、第1探索工程と第2探索工程を行う本実施形態では、高明度領域10bの周囲に低明度領域10cが設けられている場合も、設けられていない場合も、コード領域10aの外側の四角形の外形を特定し、コード領域10a(またはコード領域10aと高明度領域10bを含む領域)を追尾することが可能になる。   Therefore, in the present embodiment in which the first search process and the second search process are performed, the outer side of the code area 10a may be provided regardless of whether the low brightness area 10c is provided around the high brightness area 10b. It is possible to track the code area 10a (or the area including the code area 10a and the high brightness area 10b).

なお、本実施形態では、明度(RGB各チャンネルの最大値)の違いで色領域を区別する形態を説明したが、輝度(RGB値の加重平均)の違いで色領域を区別する形態であってもよい。この場合には、コード領域10aは、輝度が高い色と該輝度が高い色に比べて輝度が低い色の2色でデータセルが表現されたコードを有するものになり、高明度領域10bが高輝度領域10bに、低明度領域10cが低輝度領域10cになり、通常画像処理工程の中で算出される画素ごとの輝度信号に基づいて、第1探索工程や第2探索工程が行われる。   In this embodiment, the color region is distinguished based on the difference in brightness (maximum value of each RGB channel), but the color region is distinguished based on the difference in luminance (weighted average of RGB values). Also good. In this case, the code area 10a has a code in which the data cell is expressed by two colors, a color having a high luminance and a color having a low luminance compared to the color having the high luminance, and the high brightness area 10b has a high color. In the luminance region 10b, the low brightness region 10c becomes the low luminance region 10c, and the first search step and the second search step are performed based on the luminance signal for each pixel calculated in the normal image processing step.

第1探索工程で、コード領域10aを含む高明度領域10bの外形を探索した後、特定工程でコード領域10aと高明度領域10bを含む領域を特定する形態に代え、さらに、内側にあるコード領域10aを探索した後に、特定工程でコード領域10aを特定する形態であってもよい。この場合には、1つ探索工程が増えるが、第1探索工程の後の特定工程でも第2探索工程の後の特定工程でも同じコード領域10aの追尾が出来るメリットがある。   After searching for the outer shape of the high brightness area 10b including the code area 10a in the first search step, the code area located on the inner side is further replaced with a mode of specifying the area including the code area 10a and the high brightness area 10b in the specifying process. After searching 10a, the code region 10a may be specified in the specifying step. In this case, one search process is added, but there is an advantage that the same code area 10a can be tracked in both the specific process after the first search process and the specific process after the second search process.

また、第2探索工程で、コード領域10aの外形を探索した後、特定工程でコード領域10aを特定する形態に代え、特定工程でコード領域10aとその周りの一定範囲にある高明度領域10bを含む領域を特定する形態であってもよい。この場合も、第1探索工程の後の特定工程でも第2探索工程の後の特定工程でもほぼ同じコード領域10aと高明度領域10bを含む領域の追尾が出来るメリットがある。   In addition, after searching for the outer shape of the code area 10a in the second search step, the code area 10a and the high-lightness area 10b in a certain range around the code area 10a are specified in the specification process instead of specifying the code area 10a in the specification process. The form which specifies the area | region to include may be sufficient. In this case as well, there is an advantage that the same region including the code region 10a and the high brightness region 10b can be tracked in the specific step after the first search step and the specific step after the second search step.

10 撮影対象物
10a コード領域
10b 高明度領域(高輝度領域)
10c 低明度領域(低輝度領域)
20 撮像装置
21 操作部
22 記録部
23 画像処理部
24 表示部
25 撮像部
29 制御部
10 Object 10a Code area 10b High brightness area (high brightness area)
10c Low brightness area (low brightness area)
DESCRIPTION OF SYMBOLS 20 Imaging device 21 Operation part 22 Recording part 23 Image processing part 24 Display part 25 Imaging part 29 Control part

Claims (12)

明度が高い色と前記明度が高い色に比べて明度が低い色の2色でデータセルが表現されたコードを有するコード領域を含む撮影対象物を撮像する撮像工程と、
前記撮像工程で得られた画像上で、前記コード領域の周囲に設けられ前記明度が低い色に比べて明度が高い色で構成された高明度領域の外形を特定する第1探索工程と、
前記コード領域の外形を特定する第2探索工程と、
前記第1探索工程で特定された高明度領域の外形に関する情報と、前記第2探索工程で特定された前記コード領域の外形に関する情報に基づいて、前記コード領域と前記高明度領域を含む領域または前記コード領域を特定する特定工程とを備え
前記撮像工程、前記第1探索工程、前記第2探索工程、前記特定工程は、前記コード領域を含む領域の追尾を行うために行われるものであり、
少なくとも、前記撮像工程、前記第1探索工程と前記第2探索工程の少なくとも一方は、前記追尾のために、繰り返し行われることを特徴とするコード領域を含む領域を特定する方法。
An imaging step of imaging a photographing object including a code region having a code in which data cells are expressed in two colors, a color having a high brightness and a color having a low brightness compared to the color having a high brightness;
On the image obtained in the imaging step, a first search step for identifying an outer shape of a high brightness area which is provided around the code area and is configured with a color having a higher brightness than the color having a low brightness,
A second search step for identifying the outer shape of the code region;
The information about the outline of the identified high brightness area has been in the first search step, on the basis of the information about the outline of the said coding region identified in the second search step, an area including the high brightness area and the coding region Or a specific step of specifying the code region ,
The imaging step, the first search step, the second search step, and the specifying step are performed for tracking a region including the code region,
At least, the imaging process, at least one of the first search step and the second search step, for said tracking repeatedly performed method for identifying a region containing the coding region characterized by Rukoto.
前記第1探索工程は、前記高明度領域の周りに設けられ、前記高明度領域を構成する色に比べて明度が低い色で構成される低明度領域と前記高明度領域の境界に形成される明度が高い色の四角形の外形を探索し、
前記第2探索工程は、前記コード領域と前記高明度領域の境界に形成される明度が低い色の四角形の外形を探索することを特徴とする請求項1に記載のコード領域を含む領域を特定する方法。
The first search step is provided around the high lightness region, and is formed at a boundary between the low lightness region and the high lightness region configured by a color having a lightness lower than that of the color forming the high lightness region. Search for the outline of a square with a high brightness,
2. The region including a code region according to claim 1, wherein the second search step searches for an outline of a quadrilateral having a low lightness color formed at a boundary between the code region and the high lightness region. how to.
前記第2探索工程は、前記第1探索工程で前記高明度領域の外形を特定出来なかった場合に行われることを特徴とする請求項1に記載のコード領域を含む領域を特定する方法。   2. The method for specifying a region including a code region according to claim 1, wherein the second search step is performed when an outline of the high brightness region cannot be specified in the first search step. 前記撮像工程、前記第1探索工程、前記第2探索工程、前記特定工程は、前記コード領域のコードを読み取りするコード読み取り工程を含まないことを特徴とする請求項1に記載のコード領域を含む領域を特定する方法。 The code region according to claim 1 , wherein the imaging step, the first search step, the second search step, and the specifying step do not include a code reading step of reading a code of the code region. How to identify the area. 少なくとも、前記撮像工程、前記第1探索工程と前記第2探索工程の少なくとも一方は、一定時間ごとに繰り返し行われ、
前記特定工程で得られた情報に基づいて、前記撮像工程で得られた画像上に、立体画像を重畳する重畳工程を更に備えることを特徴とする請求項に記載のコード領域を含む領域を特定する方法。
At least one of the imaging step, the first search step, and the second search step is repeatedly performed at regular intervals,
The region including the code region according to claim 1 , further comprising a superimposing step of superimposing a stereoscopic image on the image obtained in the imaging step based on the information obtained in the specifying step. How to identify.
前記撮像工程の前に、前記コード領域のコードを読み取りするコード読み取り工程を更に備え、
前記特定工程における前記コード領域と前記高明度領域を含む領域または前記コード領域の特定は、前記コード読み取り工程よりも画像解析処理の負荷が小さいことを特徴とする請求項1に記載のコード領域を含む領域を特定する方法。
Before the imaging step, further comprising a code reading step of reading a code of the code area,
2. The code area according to claim 1, wherein specifying the area including the code area and the high brightness area or the code area in the specifying step has a smaller load of image analysis processing than the code reading step. How to identify the area to include.
前記コード領域と前記高明度領域を含む領域の特定は、前記撮像工程で得られた画像上における前記コード領域と前記高明度領域を含む領域の位置、大きさ、変形度合い、向きの少なくとも一つであり、
前記コード領域の特定は、前記撮像工程で得られた画像上における前記コード領域の位置、大きさ、変形度合い、向きの少なくとも一つであることを特徴とする請求項1に記載のコード領域を含む領域を特定する方法。
The area including the code area and the high brightness area is specified by at least one of the position, size, degree of deformation, and orientation of the area including the code area and the high brightness area on the image obtained in the imaging step. And
2. The code area according to claim 1, wherein the code area is specified by at least one of a position, a size, a deformation degree, and an orientation of the code area on the image obtained in the imaging step. How to identify the area to include.
明度が高い色と前記明度が高い色に比べて明度が低い色の2色でデータセルが表現されたコードを有するコード領域を含む撮影対象物を撮像する撮像工程と、
前記撮像工程で得られた画像上で、前記コード領域の周囲に設けられ前記明度が低い色に比べて明度が高い色で構成された高明度領域の外形を特定する第1探索工程と、
前記コード領域の外形を特定する第2探索工程と、
前記第1探索工程で特定された高明度領域の外形に関する情報と、前記第2探索工程で特定された前記コード領域の外形に関する情報に基づいて、前記コード領域と前記高明度領域を含む領域または前記コード領域を特定する特定工程とを実行するコード領域を含む領域を特定するプログラムであって、
前記撮像工程、前記第1探索工程、前記第2探索工程、前記特定工程は、前記コード領域を含む領域の追尾を行うために行われるものであり、
少なくとも、前記撮像工程、前記第1探索工程と前記第2探索工程の少なくとも一方は、前記追尾のために、繰り返し行われることを特徴とするプログラム。
An imaging step of imaging a photographing object including a code region having a code in which data cells are expressed in two colors, a color having a high brightness and a color having a low brightness compared to the color having a high brightness;
On the image obtained in the imaging step, a first search step for identifying an outer shape of a high brightness area which is provided around the code area and is configured with a color having a higher brightness than the color having a low brightness,
A second search step for identifying the outer shape of the code region;
The information about the outline of the identified high brightness area has been in the first search step, on the basis of the information about the outline of the said coding region identified in the second search step, an area including the high brightness area and the coding region Or a program for specifying an area including a code area for executing the specifying step for specifying the code area,
The imaging step, the first search step, the second search step, and the specifying step are performed for tracking a region including the code region,
At least, the imaging process, at least one of the first search step and the second search step, for said tracking repeatedly performed to Help program and wherein Rukoto.
明度が高い色と前記明度が高い色に比べて明度が低い色の2色でデータセルが表現されたコードを有するコード領域を含む撮影対象物を撮像する撮像部と、
前記撮像部で得られた画像上で、前記コード領域の周囲に設けられ前記明度が低い色に比べて明度が高い色で構成された高明度領域の外形を特定する第1探索工程と、前記コード領域の外形を特定する第2探索工程と、前記第1探索工程で特定された高明度領域の外形に関する情報と、前記第2探索工程で特定された前記コード領域の外形に関する情報に基づいて、前記コード領域と前記高明度領域を含む領域または前記コード領域を特定する特定工程とを実行する画像処理部とを備え
前記撮像工程、前記第1探索工程、前記第2探索工程、前記特定工程は、前記コード領域を含む領域の追尾を行うために行われるものであり、
少なくとも、前記撮像工程、前記第1探索工程と前記第2探索工程の少なくとも一方は、前記追尾のために、繰り返し行われることを特徴とするコード領域を含む領域を特定する装置。
An imaging unit that captures an imaging target including a code area having a code in which data cells are expressed in two colors, a color having a high brightness and a color having a low brightness compared to the color having a high brightness;
On the image obtained by the imaging unit, a first search step for specifying an outer shape of a high brightness area which is provided around the code area and is configured with a color having a higher brightness than the color having a lower brightness, and the basis of the second search step of identifying the outline of the coding region, and the information about the outline of the high intensity regions identified in the first search step, the information about the outline of the said coding region identified in the second search step An image processing unit that executes the code region and a region including the high brightness region or a specifying step of specifying the code region ,
The imaging step, the first search step, the second search step, and the specifying step are performed for tracking a region including the code region,
At least, the imaging process, at least one of the first search step and the second search step, for the tracking, repeatedly conducted apparatus for identifying a region containing the coding region characterized by Rukoto.
輝度が高い色と前記輝度が高い色に比べて輝度が低い色の2色でデータセルが表現されたコードを有するコード領域を含む撮影対象物を撮像する撮像工程と、
前記撮像工程で得られた画像上で、前記コード領域の周囲に設けられ前記輝度が低い色に比べて輝度が高い色で構成された高輝度領域の外形を特定する第1探索工程と、
前記コード領域の外形を特定する第2探索工程と、
前記第1探索工程で特定された高輝度領域の外形に関する情報と、前記第2探索工程で特定された前記コード領域の外形に関する情報に基づいて、前記コード領域と前記高輝度領域を含む領域または前記コード領域を特定する特定工程とを備え
前記撮像工程、前記第1探索工程、前記第2探索工程、前記特定工程は、前記コード領域を含む領域の追尾を行うために行われるものであり、
少なくとも、前記撮像工程、前記第1探索工程と前記第2探索工程の少なくとも一方は、前記追尾のために、繰り返し行われることを特徴とするコード領域を含む領域を特定する方法。
An imaging step of imaging a photographing object including a code region having a code in which a data cell is represented by two colors of a high luminance color and a low luminance color compared to the high luminance color;
On the image obtained in the imaging step, a first search step for specifying an outer shape of a high-luminance region that is provided around the code region and that is configured with a color that is higher in luminance than the low-luminance color;
A second search step for identifying the outer shape of the code region;
The information about the outline of the identified high-luminance regions in the first search step, on the basis of the information about the outline of the said coding region identified in the second search step, a region including the high luminance region and the coding region Or a specific step of specifying the code region ,
The imaging step, the first search step, the second search step, and the specifying step are performed for tracking a region including the code region,
At least, the imaging process, at least one of the first search step and the second search step, for said tracking repeatedly performed method for identifying a region containing the coding region characterized by Rukoto.
輝度が高い色と前記輝度が高い色に比べて輝度が低い色の2色でデータセルが表現されたコードを有するコード領域を含む撮影対象物を撮像する撮像工程と、
前記撮像工程で得られた画像上で、前記コード領域の周囲に設けられ前記輝度が低い色に比べて輝度が高い色で構成された高輝度領域の外形を特定する第1探索工程と、
前記コード領域の外形を特定する第2探索工程と、
前記第1探索工程で特定された高輝度領域の外形に関する情報と、前記第2探索工程で特定された前記コード領域の外形に関する情報に基づいて、前記コード領域と前記高輝度領域を含む領域または前記コード領域を特定する特定工程とを実行するコード領域を含む領域を特定するプログラムであって、
前記撮像工程、前記第1探索工程、前記第2探索工程、前記特定工程は、前記コード領域を含む領域の追尾を行うために行われるものであり、
少なくとも、前記撮像工程、前記第1探索工程と前記第2探索工程の少なくとも一方は、前記追尾のために、繰り返し行われることを特徴とするプログラム。
An imaging step of imaging a photographing object including a code region having a code in which a data cell is represented by two colors of a high luminance color and a low luminance color compared to the high luminance color;
On the image obtained in the imaging step, a first search step for specifying an outer shape of a high-luminance region that is provided around the code region and that is configured with a color that is higher in luminance than the low-luminance color;
A second search step for identifying the outer shape of the code region;
The information about the outline of the identified high-luminance regions in the first search step, on the basis of the information about the outline of the said coding region identified in the second search step, a region including the high luminance region and the coding region Or a program for specifying an area including a code area for executing the specifying step for specifying the code area,
The imaging step, the first search step, the second search step, and the specifying step are performed for tracking a region including the code region,
At least, the imaging process, at least one of the first search step and the second search step, for said tracking repeatedly performed to Help program and wherein Rukoto.
輝度が高い色と前記輝度が高い色に比べて輝度が低い色の2色でデータセルが表現されたコードを有するコード領域を含む撮影対象物を撮像する撮像部と、
前記撮像部で得られた画像上で、前記コード領域の周囲に設けられ前記輝度が低い色に比べて輝度が高い色で構成された高輝度領域の外形を特定する第1探索工程と、前記コード領域の外形を特定する第2探索工程と、前記第1探索工程で特定された高輝度領域の外形に関する情報と、前記第2探索工程で特定された前記コード領域の外形に関する情報に基づいて、前記コード領域と前記高輝度領域を含む領域または前記コード領域を特定する特定工程とを実行する画像処理部とを備え
前記撮像工程、前記第1探索工程、前記第2探索工程、前記特定工程は、前記コード領域を含む領域の追尾を行うために行われるものであり、
少なくとも、前記撮像工程、前記第1探索工程と前記第2探索工程の少なくとも一方は、前記追尾のために、繰り返し行われることを特徴とするコード領域を含む領域を特定する装置。
An imaging unit that captures an imaging object including a code region having a code in which a data cell is represented by two colors, a color having a high luminance and a color having a low luminance compared to the color having a high luminance;
A first search step for identifying an outer shape of a high-luminance region, which is provided around the code region on the image obtained by the imaging unit and is configured with a color having a higher luminance than that of the low-luminance color; the basis of the second search step of identifying the outline of the coding region, and the information about the outline of the high luminance region which is specified by the first search step, the information about the outline of the said coding region identified in the second search step And an image processing unit that executes the code region and a region including the high- luminance region or a specifying step of specifying the code region ,
The imaging step, the first search step, the second search step, and the specifying step are performed for tracking a region including the code region,
At least, the imaging process, at least one of the first search step and the second search step, for the tracking, repeatedly conducted apparatus for identifying a region containing the coding region characterized by Rukoto.
JP2011023593A 2011-02-07 2011-02-07 Method for specifying an area including a code area, program for specifying an area including a code area, and apparatus for specifying an area including a code area Expired - Fee Related JP5435814B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011023593A JP5435814B2 (en) 2011-02-07 2011-02-07 Method for specifying an area including a code area, program for specifying an area including a code area, and apparatus for specifying an area including a code area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011023593A JP5435814B2 (en) 2011-02-07 2011-02-07 Method for specifying an area including a code area, program for specifying an area including a code area, and apparatus for specifying an area including a code area

Publications (2)

Publication Number Publication Date
JP2012164102A JP2012164102A (en) 2012-08-30
JP5435814B2 true JP5435814B2 (en) 2014-03-05

Family

ID=46843438

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011023593A Expired - Fee Related JP5435814B2 (en) 2011-02-07 2011-02-07 Method for specifying an area including a code area, program for specifying an area including a code area, and apparatus for specifying an area including a code area

Country Status (1)

Country Link
JP (1) JP5435814B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6565003B1 (en) * 1998-12-16 2003-05-20 Matsushita Electric Industrial Co., Ltd. Method for locating and reading a two-dimensional barcode
JP2006259510A (en) * 2005-03-18 2006-09-28 Brother Ind Ltd Karaoke device and program

Also Published As

Publication number Publication date
JP2012164102A (en) 2012-08-30

Similar Documents

Publication Publication Date Title
CN103597810B (en) Image stitching
US8144207B2 (en) Computer program product for photographic subject tracking, photographic subject tracking device, and camera
US9407884B2 (en) Image pickup apparatus, control method therefore and storage medium employing phase difference pixels
KR20180109918A (en) Systems and methods for implementing seamless zoom functionality using multiple cameras
US20090227283A1 (en) Electronic device
KR20170135855A (en) Automated generation of panning shots
EP1993071B1 (en) Image zone detection
US8582891B2 (en) Method and apparatus for guiding user with suitable composition, and digital photographing apparatus
JP2007201948A (en) Imaging apparatus, image processing method and program
JP6521626B2 (en) Object tracking device, method and program
WO2008111550A1 (en) Image analysis system and image analysis program
JP2008209306A (en) Camera
JP2011134117A (en) Object region extraction apparatus, method for controlling the same, object tracking apparatus, and program
JP5691629B2 (en) Image composition method
CN104871526A (en) Image processing device, imaging device, image processing method, and image processing program
WO2012014946A1 (en) Image processing device and image processing program
JP2014053722A (en) Imaging system and imaging method
JP5435814B2 (en) Method for specifying an area including a code area, program for specifying an area including a code area, and apparatus for specifying an area including a code area
JP5435815B2 (en) Two-dimensional image code, method for specifying region including code region, program for specifying region including code region, device for specifying region including code region
KR20180075506A (en) Information processing apparatus, information processing method, and program
KR101384784B1 (en) Methods for detecting optimal position for mobile device
CN113794831A (en) Video shooting method and device, electronic equipment and medium
JP2018092507A (en) Image processing apparatus, image processing method, and program
JP6600090B2 (en) Image processing apparatus, image processing method, and program
JP2010176619A (en) Symbol reader and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130906

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20130906

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20130927

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131001

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131120

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131209

R150 Certificate of patent or registration of utility model

Ref document number: 5435814

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees